This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // http://edd.wp-a2z.org/oik_api/edd_store_discount/ | |
| // https://gist.github.com/renventura/9a645b904279862614a4 | |
| function create_coupon_edd3466( $args ) { | |
| if( ! is_callable( 'edd_store_discount' ) ) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_shortcode('last_fv', function(){ | |
| $contest = ModelContest::query() | |
| ->limit(1) | |
| ->sort_by('date_finish', 'DESC') | |
| ->findRow(); | |
| if (!$contest) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function($){ | |
| jQuery(document).on('click', '.fv_lightbox', function(e){ | |
| e.preventDefault(); | |
| return false; | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div style="text-align: center"> | |
| <video style="margin-left: 50px;" width="853" height="480" poster="video/maxresdefault.jpg?2" controls=""> | |
| <source src="video/amst_video.mp4" type="video/mp4"> | |
| Your browser does not support the video tag. | |
| </video> | |
| </div> | |
| <script> | |
| $('.video > video').click(function(){ | |
| if (this.paused) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Example: https://monosnap.com/file/kD9Liz759zrsxi6lnSL49KHxAu8haX | |
| // Tested with Tribe Events Calendar 4.6.12 | |
| /** | |
| * Set up the keyword search in the tribe events bar. | |
| * | |
| * @param array $filters The current filters in the bar array. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * return default messages for frontend translated with i18n | |
| * | |
| * @return array $key => $title | |
| */ | |
| function fv_get_default_public_translation_messages() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="de-DE" prefix="og: http://ogp.me/ns#"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <meta name="viewport" content="width=device-width"/> | |
| <link rel="stylesheet" type="text/css" | |
| href="https://www.pumperlgsund.info/wp-content/themes/pg-contest/Resources/Public/pumperlgsund-bio.de/css/styles.css"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ## Trigger when Youtube Video is uploaded and Video thumbnail parsed by Video addon | |
| add_action("wp_youtube_upload_attachment_thumbnail_saved", function($att){ | |
| // Update competitor Thumbnail& change type to Video | |
| $competitor = ModelCompetitors::q()->where('image_id', $att->get_post_id() )->findRow(); | |
| if ( !$competitor ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define("POINTS_PER_UPLOAD", 20); | |
| /** | |
| * Change money for upload | |
| */ | |
| add_action('fv/public/upload_after_insert', function($competitor_ID) { | |
| $competitor = new FV_Competitor( $competitor_ID, false ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // COPY CODE AFTER THIS LINE >>>>> | |
| /** | |
| * Exclude specific pages from displaying traking code | |
| * Created: 05 June 2018 | |
| * Tested With Wordpress 4.9.6 and GADWP 5.3.3 | |
| * You need to specify page ID's for exclude | |
| * How to find page/post ID: https://www.competethemes.com/blog/find-page-id/ |