This file contains 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
Index: public/class-fv-public.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/public/class-fv-public.php b/public/class-fv-public.php | |
--- a/public/class-fv-public.php (revision 180f8ddeef46b02792f1d52a3b66b69eaaf43b04) | |
+++ b/public/class-fv-public.php (date 1679076895854) | |
@@ -86,7 +86,9 @@ | |
$fv_sorting = $contest->sorting; |
This file contains 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 after | |
add_filter('lrm/additional_atts', function( $atts ) { | |
$atts['enctype'] = 'multipart/form-data'; | |
return $atts; | |
}); | |
global $lrm_files; |
This file contains 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
+(function($) { | |
// action before voting | |
FvLib.addFilter('fv/vote/get_data', function(data) { | |
if ( data.res !== 10 ) { | |
return data; | |
} | |
data.no_process = "yes"; | |
if ( FvVote.is_voted_for(data.contestant_id) ) { | |
localStorage.removeItem( "voted_" + data.contestant_id ); |
This file contains 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 AFTER | |
add_filter('wccp__call__woocommerce_order_details_after_order_table', '__return_false'); |
This file contains 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: | |
// USE a custom value: filter-id:fv-meta-email | |
add_action('fv/approve_photo', function($competitor_id, $admin_comment, $competitor) { | |
add_filter('notification/recipient/email/fv-meta-email', function($value) { | |
return $competitor->meta()->get_value( "meta_key" ); | |
}); | |
}, 10, 3); |
This file contains 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
if ( fv.contest_id === "2" ) { | |
jQuery(".fv_lightbox").each(function(K, el) { | |
el.href = "https://boxtelontspant.nl/single-photo/" + fv_lightbox.dataset.id + "/"; | |
el.classList.remove("fv_lightbox"); | |
}); | |
} |
This file contains 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 AFTER | |
add_action( 'fv_after_contest_item', function ($theme, $contestant, $where = 'competitor') { | |
if ( $where === 'competitor' ) { | |
wp_enqueue_script('[email protected]', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js', ['jquery']); | |
wp_enqueue_style('[email protected]', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css', 'fv_main_css'); | |
wp_add_inline_script('[email protected]', "jQuery('.contest-block-extra').slick({ | |
infinite: true, | |
slidesToShow: 3, |
This file contains 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 AFTER | |
remove_all_actions('fv/public/list_item/extra'); |
This file contains 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 AFTER | |
add_action( "wccp/public/confirmation_page/after_left_column", function($order) { | |
echo $order->get_meta('jmeno_ditete_1'); | |
echo $order->get_meta('billing_country'); | |
}, 10, 1); | |
// Too add some data for specific section | |
// For billing: |
This file contains 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( document ).ready(function() { | |
jQuery(".lrm-restore-password #lrm-password1").val( "" ); | |
}); |
NewerOlder