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 | |
/** | |
* Note! Always include mcros file only on 'jet-engine/register-macros' hook - before base class is not avaialable, | |
* after - all macros already registered and you can't insert a new one. | |
*/ | |
add_action( 'jet-engine/register-macros', function() { | |
require_once get_theme_file_path( 'macros.php' ); | |
new My_JE_Macros(); | |
} ); |
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 | |
class JE_Query_Filter_Options_Generator { | |
public function __construct() { | |
add_action( 'plugins_loaded', array( $this, 'maybe_add_filters' ) ); | |
} | |
public function maybe_add_filters() { | |
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( $ ) { | |
$( document ).on( 'jet-filter-content-rendered', function() { | |
$( '.hide-listing' ).removeClass( 'hide-listing' ); | |
}); | |
}); |
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
<style> | |
.jet-filter-label:after { | |
content: "˅"; | |
float: right; | |
margin-right: 10px; | |
} | |
.jet-filter-label.noicon:after{ | |
content: ""; |
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 | |
add_filter( 'jet-woo-builder/template-functions/product-add-to-cart-settings', 'wvs_pro_archive_variation_button_args', 999, 2 ); | |
function wvs_pro_archive_variation_button_args( $args ) { | |
global $product; | |
$product = wc_get_product(); | |
$ajax_add_to_cart_enabled = 'yes' === get_option( 'woocommerce_enable_ajax_add_to_cart' ); |
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 | |
add_filter( 'jet-woo-builder/template-functions/product-price', 'get_wvs_pro_archive_variation_template', 999, 1 ); | |
function get_wvs_pro_archive_variation_template( $html ) { | |
$wvs_archive_variation_template = wvs_pro_archive_variation_template(); | |
$html .= $wvs_archive_variation_template; | |
return '<div class="price">' . $html . '</div>'; | |
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
/* apply to all Listing Grids */ | |
.jet-listing-grid a.jet-engine-listing-overlay-link { | |
z-index: 1; | |
} |
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 | |
add_action( 'init', function(){ | |
global $wp_scripts; | |
$script = $wp_scripts->query( 'imagesloaded', 'registered' ); | |
if ( ! $script ) { | |
return; |
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
document.addEventListener( 'DOMContentLoaded', function() { | |
const { | |
addAction, | |
} = window.JetPlugins.hooks; | |
const textChoose = 'Choose File'; | |
const textEmpty = 'No file has been chosen'; | |
const textUpload = 'File Uploaded'; | |
function getFileNames( fileList ) { |
OlderNewer