Plugin Directory

Changeset 2349892


Ignore:
Timestamp:
07/31/2020 04:59:46 PM (6 years ago)
Author:
yaidier
Message:

fix elementor widget bug

Location:
wn-flipbox-pro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wn-flipbox-pro/trunk/templates/output.php

    r2349854 r2349892  
    2323var load_google_fonts = <?php if($wn_flipbox_general_options['load_google_fonts_selector']) echo 'true'; else echo 'false'; ?>;
    2424
    25     <?php
    26         include plugin_dir_path( __DIR__ ) . 'js/templates_selector.js';
     25    <?php
     26        if(function_exists('elementor_load_plugin_textdomain')){
     27            include plugin_dir_path( __DIR__ ) . 'js/templates_selector.js';
     28        }
    2729    ?>       
    2830
  • wn-flipbox-pro/trunk/wp-hover-images.php

    r2349866 r2349892  
    134134           
    135135            if ( !is_admin() ) {
    136                 wp_enqueue_script( 'jquery' );
    137                 wp_enqueue_script(
    138                     "wn_flipbox_pro_outputJs",
    139                     array( 'jquery' ),
    140                     '1.0',
    141                     false
    142                 );
     136                if(!function_exists('elementor_load_plugin_textdomain')){
     137                    wp_enqueue_script( 'jquery' );
     138                    wp_enqueue_script(
     139                        "wn_flipbox_pro_outputJs",
     140                        array( 'jquery' ),
     141                        '1.0',
     142                        false
     143                    );
     144                }
    143145                $shortcode = $atts['id'];
    144146                $file = strip_tags( plugin_dir_path( __FILE__ ) . 'templates/output.php' );
Note: See TracChangeset for help on using the changeset viewer.