Plugin Directory

Changeset 3445985


Ignore:
Timestamp:
01/24/2026 06:34:01 AM (4 weeks ago)
Author:
envothemes
Message:

v1.9.14

Location:
envo-extra/tags/1.9.14
Files:
15 deleted
3 edited
62 copied

Legend:

Unmodified
Added
Removed
  • envo-extra/tags/1.9.14/envo-extra.php

    r3402362 r3445985  
    44 * Plugin URI: https://envothemes.com/
    55 * Description: Extra addon for EnvoThemes Themes
    6  * Version: 1.9.13
     6 * Version: 1.9.14
    77 * Author: EnvoThemes
    88 * Author URI: https://envothemes.com/
     
    5757add_action( 'wp_enqueue_scripts', 'envo_extra_scripts' );
    5858
     59function envo_extra_admin_scripts() {
     60    wp_enqueue_script( 'preview-script-elmn', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/js/elementor.js', [ ], ELEMENTOR_VERSION, true );
     61}
    5962//Dequeue Styles
    6063function envo_extra_dequeue_unnecessary_styles() {
     
    444447            <i class="fa fa-comments-o"></i>
    445448        </span>
    446             <?php
    447         }
    448 
    449     endif;
    450 
    451     /**
    452      * Check Elementor plugin
    453      */
    454     function envo_extra_check_for_elementor() {
    455         require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    456         return is_plugin_active( 'elementor/elementor.php' );
    457     }
    458 
    459     /**
    460      * Check Elementor PRO plugin
    461      */
    462     function envo_extra_check_for_elementor_pro() {
    463         require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    464         return is_plugin_active( 'elementor-pro/elementor-pro.php' );
    465     }
    466 
    467     /**
    468      * Register Elementor features
    469      */
    470     if ( envo_extra_check_for_elementor() ) {
    471         if ( !envo_extra_check_for_elementor_pro() ) {
    472             include_once( plugin_dir_path( __FILE__ ) . 'lib/elementor/shortcode.php' );
    473         }
    474     }
    475 
    476     include_once( plugin_dir_path( __FILE__ ) . 'lib/elementor/widgets.php' );
    477 
    478     function envo_extra_activate_fc() {
    479         $arr     = array( '' );
    480         $theme   = wp_get_theme();
    481         if ( 'Enwoo' == $theme->name || 'enwoo' == $theme->template ) {
    482             $arr = array(
    483                 'Created with <a href="https://enwoo-wp.com/free-woocommerce-theme/" title="Free WooCommerce WordPress Theme">Enwoo</a> WordPress theme',
    484                 'Created with <a href="https://enwoo-wp.com/free-business-wp-theme/" title="Free Business WordPress Theme">Enwoo</a> WordPress theme',
    485                 'Created with <a href="https://enwoo-wp.com/" title="Free Multipurpose WordPress Theme">Enwoo</a> WordPress theme',
    486             );
    487         } elseif ( 'Envo Royal' == $theme->name || 'envo-royal' == $theme->template ) {
    488             $arr = array(
    489                 'Created with <a href="https://envothemes.com/envo-royal-free-wp-theme/" title="Free Multipurpose WordPress Theme">Envo Royal</a> WordPress theme',
    490             );
    491         }
    492 
    493         $key = array_rand( $arr );
    494 
    495         update_site_option( 'et_fc', $arr[ $key ] );
    496     }
    497 
    498     add_action( 'after_switch_theme', 'envo_extra_activate_fc' );
    499     register_activation_hook( __FILE__, 'envo_extra_activate_fc' );
    500 
    501 
    502 
    503     register_activation_hook( __FILE__, 'envo_extra_plugin_activate' );
    504     add_action( 'admin_init', 'envo_extra_plugin_redirect' );
    505     add_action( 'after_switch_theme', 'envo_extra_theme_redirect' );
    506 
    507     function envo_extra_plugin_activate() {
    508         add_option( 'envo_plugin_do_activation_redirect', true );
    509     }
    510 
    511     /**
    512      * Check PRO plugin
    513      */
    514     function envo_extra_check_for_pro( $plugin ) {
    515         if ( in_array( $plugin . '-pro/' . $plugin . '-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    516             return true;
    517         }
    518         return;
    519     }
    520 
    521     /**
    522      * Redirect after plugin activation
    523      */
    524     function envo_extra_plugin_redirect() {
    525         if ( get_option( 'envo_plugin_do_activation_redirect', false ) ) {
    526             delete_option( 'envo_plugin_do_activation_redirect' );
    527             if ( !is_network_admin() || !isset( $_GET[ 'activate-multi' ] ) ) {
    528                 wp_redirect( 'themes.php?page=envothemes-panel-install-demos' );
    529             }
    530         }
    531     }
    532 
    533     /**
    534      * Redirect after plugin activation
    535      */
    536     function envo_extra_theme_redirect() {
     449        <?php
     450    }
     451
     452endif;
     453
     454/**
     455 * Check Elementor plugin
     456 */
     457function envo_extra_check_for_elementor() {
     458    require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     459    return is_plugin_active( 'elementor/elementor.php' );
     460}
     461
     462/**
     463 * Check Elementor PRO plugin
     464 */
     465function envo_extra_check_for_elementor_pro() {
     466    require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     467    return is_plugin_active( 'elementor-pro/elementor-pro.php' );
     468}
     469
     470/**
     471 * Register Elementor features
     472 */
     473if ( envo_extra_check_for_elementor() ) {
     474    if ( !envo_extra_check_for_elementor_pro() ) {
     475        include_once( plugin_dir_path( __FILE__ ) . 'lib/elementor/shortcode.php' );
     476        add_action( 'admin_enqueue_scripts', 'envo_extra_admin_scripts' );
     477    }
     478}
     479
     480include_once( plugin_dir_path( __FILE__ ) . 'lib/elementor/widgets.php' );
     481
     482function envo_extra_activate_fc() {
     483    $arr     = array( '' );
     484    $theme   = wp_get_theme();
     485    if ( 'Enwoo' == $theme->name || 'enwoo' == $theme->template ) {
     486        $arr = array(
     487            'Created with <a href="https://enwoo-wp.com/free-woocommerce-theme/" title="Free WooCommerce WordPress Theme">Enwoo</a> WordPress theme',
     488            'Created with <a href="https://enwoo-wp.com/free-business-wp-theme/" title="Free Business WordPress Theme">Enwoo</a> WordPress theme',
     489            'Created with <a href="https://enwoo-wp.com/" title="Free Multipurpose WordPress Theme">Enwoo</a> WordPress theme',
     490        );
     491    } elseif ( 'Envo Royal' == $theme->name || 'envo-royal' == $theme->template ) {
     492        $arr = array(
     493            'Created with <a href="https://envothemes.com/envo-royal-free-wp-theme/" title="Free Multipurpose WordPress Theme">Envo Royal</a> WordPress theme',
     494        );
     495    }
     496
     497    $key = array_rand( $arr );
     498
     499    update_site_option( 'et_fc', $arr[ $key ] );
     500}
     501
     502add_action( 'after_switch_theme', 'envo_extra_activate_fc' );
     503register_activation_hook( __FILE__, 'envo_extra_activate_fc' );
     504
     505
     506
     507register_activation_hook( __FILE__, 'envo_extra_plugin_activate' );
     508add_action( 'admin_init', 'envo_extra_plugin_redirect' );
     509add_action( 'after_switch_theme', 'envo_extra_theme_redirect' );
     510
     511function envo_extra_plugin_activate() {
     512    add_option( 'envo_plugin_do_activation_redirect', true );
     513}
     514
     515/**
     516 * Check PRO plugin
     517 */
     518function envo_extra_check_for_pro( $plugin ) {
     519    if ( in_array( $plugin . '-pro/' . $plugin . '-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
     520        return true;
     521    }
     522    return;
     523}
     524
     525/**
     526 * Redirect after plugin activation
     527 */
     528function envo_extra_plugin_redirect() {
     529    if ( get_option( 'envo_plugin_do_activation_redirect', false ) ) {
     530        delete_option( 'envo_plugin_do_activation_redirect' );
    537531        if ( !is_network_admin() || !isset( $_GET[ 'activate-multi' ] ) ) {
    538532            wp_redirect( 'themes.php?page=envothemes-panel-install-demos' );
    539533        }
    540534    }
    541 
    542     /**
    543      * Adjust customizer preview.
    544      */
    545     function envo_extra_customizer_responsive_sizes() {
     535}
     536
     537/**
     538 * Redirect after plugin activation
     539 */
     540function envo_extra_theme_redirect() {
     541    if ( !is_network_admin() || !isset( $_GET[ 'activate-multi' ] ) ) {
     542        wp_redirect( 'themes.php?page=envothemes-panel-install-demos' );
     543    }
     544}
     545
     546/**
     547 * Adjust customizer preview.
     548 */
     549function envo_extra_customizer_responsive_sizes() {
    546550
    547551        $medium_breakpoint   = 990;
  • envo-extra/tags/1.9.14/js/envo.js

    r2901769 r3445985  
    1 (function ($) {
     1( function ( $ ) {
    22    'use strict';
    33
    44    // float cart
    55
    6     var $myDiv = $('.woo-float-info');
    7     if ($myDiv.length) {
    8         $(window).scroll(function () {
    9             var distanceTop = $('.woocommerce div.product form.cart').offset().top - 60;
     6    var $myDiv = $( '.woo-float-info' );
     7    if ( $myDiv.length ) {
     8        $( window ).scroll( function () {
     9            var distanceTop = $( '.woocommerce div.product form.cart' ).offset().top - 60;
    1010
    11             if ($(window).scrollTop() > distanceTop)
    12                 $myDiv.animate({'bottom': '0'}, 200);
     11            if ( $( window ).scrollTop() > distanceTop )
     12                $myDiv.animate( { 'bottom': '0' }, 200 );
    1313            else
    14                 $myDiv.stop(true).animate({'bottom': '-400px'}, 100);
    15         });
     14                $myDiv.stop( true ).animate( { 'bottom': '-400px' }, 100 );
     15        } );
    1616
    17         $('.woo-float-info .close-me').bind('click', function () {
    18             $(this).parent().remove();
    19         });
    20     };
    21    
     17        $( '.woo-float-info .close-me' ).bind( 'click', function () {
     18            $( this ).parent().remove();
     19        } );
     20    }
     21    ;
     22
    2223    // return to top button
    2324    // ===== Scroll to Top ====
    24     $(window).scroll(function () {
    25         if ($(this).scrollTop() >= 50) {        // If page is scrolled more than 50px
    26             $('#return-to-top').fadeIn(200);    // Fade in the arrow
     25    $( window ).scroll( function () {
     26        if ( $( this ).scrollTop() >= 50 ) {        // If page is scrolled more than 50px
     27            $( '#return-to-top' ).fadeIn( 200 );    // Fade in the arrow
    2728        } else {
    28             $('#return-to-top').fadeOut(200);   // Else fade out the arrow
     29            $( '#return-to-top' ).fadeOut( 200 );   // Else fade out the arrow
    2930        }
    30     });
    31     $('#return-to-top').click(function () {      // When arrow is clicked
    32         $('body,html').animate({
     31    } );
     32    $( '#return-to-top' ).click( function () {      // When arrow is clicked
     33        $( 'body,html' ).animate( {
    3334            scrollTop: 0                       // Scroll to top of body
    34         }, 500);
    35     });
     35        }, 500 );
     36    } );
    3637
    37 })(jQuery);
     38} )( jQuery );
  • envo-extra/tags/1.9.14/js/responsive-controls.js

    r2800544 r3445985  
    9292
    9393jQuery( document ).ready( function ( $ ) {
    94    
     94
    9595    // Let's use the API.
    9696    var api = wp.customize;
     
    100100        $( '.envo-control-desktop' ).removeClass( 'active' );
    101101        // we go 2 parents up, to find the '.customize-control-kirki-custom' element, and toggle it
    102         $( this ).parents().eq( 2 ).nextUntil( '.customize-control-kirki-custom' ).toggleClass( 'active' ).toggleClass('activated');
     102        $( this ).parents().eq( 2 ).nextUntil( '.customize-control-kirki-custom' ).toggleClass( 'active' ).toggleClass( 'activated' );
    103103        $( '.envo-control-tablet' ).removeClass( 'active' );
    104104        $( '.envo-control-mobile' ).removeClass( 'active' );
     
    114114        e.preventDefault();
    115115    } );
    116    
     116
    117117
    118118
  • envo-extra/tags/1.9.14/lib/elementor/assets/js/elementor.js

    r3102665 r3445985  
    1 !function(e){"use strict";e(document).ready((function(){setTimeout((function(){e(document).on("click",'a[href*="go.elementor.com"]',(function(t){t.preventDefault();var n="https://envothemes.com/go-elementor/";e(this).attr("href",n),window.open(n,"_blank")})),e(document).on("click",".elementor-button.go-pro",(function(t){t.preventDefault();var n="https://envothemes.com/go-elementor/";e(this).attr("href",n),window.open(n,"_blank")}))}))}),3e3)}(jQuery);
     1!function(e){"use strict";e(document).ready((function(){setTimeout((function(){e(document).on("click",'a[href*="go.elementor.com"], a[href*="elementor-one-upgrade"]',(function(t){t.preventDefault();t.stopPropagation();t.stopImmediatePropagation();var n="https://envothemes.com/go-elementor/";e(this).attr("href",n),window.open(n,"_blank")})),e(document).on("click",".elementor-button.go-pro, #editor-one-sidebar-navigation button.MuiButtonBase-root.MuiButton-root, button.MuiButtonBase-root.MuiButton-colorPromotion",(function(t){t.preventDefault();t.stopImmediatePropagation();t.stopPropagation();var n="https://envothemes.com/go-elementor/";e(this).attr("href",n),window.open(n,"_blank")}))}))}),3e3)}(jQuery);
  • envo-extra/tags/1.9.14/lib/elementor/shortcode.php

    r3182181 r3445985  
    4444            return '';
    4545        }
    46         if ( get_post_status ( $attributes[ 'id' ] ) != 'publish' ) {
     46        if ( get_post_status( $attributes[ 'id' ] ) != 'publish' ) {
    4747            return '';
    4848        }
  • envo-extra/tags/1.9.14/lib/elementor/widgets.php

    r3102665 r3445985  
    3434    public function register_widgets() {
    3535
    36        
     36
    3737        foreach ( $this->modules as $key => $value ) {
    3838            require_once ENVO_EXTRA_PATH . 'lib/elementor/widgets/' . $key . '/' . $key . '.php';
     
    5151       
    5252    }
     53
    5354    public function editor_scripts() {
    5455        wp_register_script( 'preview-script-elmn', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/js/elementor.js', [ 'elementor-editor' ], ELEMENTOR_VERSION, true );
     
    6667     */
    6768    public function widget_scripts_preview() {
    68 
     69       
    6970    }
    7071
     
    7778     */
    7879    public function widget_styles() {
    79        
    80         foreach ($this->modules as $key => $value) {
    81             wp_register_style('envo-extra-' . $key . '', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/css/' . $key . '/' . $key . '.css');
    82         }
     80
     81        foreach ( $this->modules as $key => $value ) {
     82            wp_register_style( 'envo-extra-' . $key . '', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/css/' . $key . '/' . $key . '.css' );
     83        }
    8384        wp_register_style( 'font-awesome-5-all', ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/all.min.css', false );
    8485    }
    8586
    8687    public function widget_styles_preview() {
    87         foreach ($this->modules as $key => $value) {
    88             wp_register_style('envo-extra-' . $key . '', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/css/' . $key . '/' . $key . '.css');
    89         }
    90        
     88        foreach ( $this->modules as $key => $value ) {
     89            wp_register_style( 'envo-extra-' . $key . '', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/css/' . $key . '/' . $key . '.css' );
     90        }
    9191    }
    9292
     
    109109     */
    110110    public function __construct() {
    111        
     111
    112112        add_action( 'elementor/widgets/register', [$this, 'register_widgets' ] );
    113113        // Register Widget Styles
     
    123123
    124124        add_action( 'elementor/preview/enqueue_styles', [$this, 'widget_styles_preview' ] );
    125        
     125
    126126        $this->modules = array(
    127127            'block-quote'    => array(
     
    137137                'class' => 'Heading',
    138138            ),
    139             'team'      => array(
     139            'team'          => array(
    140140                'class' => 'Team',
    141141            ),
  • envo-extra/tags/1.9.14/lib/envothemes-demo-import/envothemes-demo-import.php

    r3272327 r3445985  
    11<?php
     2
    23/**
    34 * Plugin Name: EnvoThemes Demo Import
     
    1112 */
    1213// Exit if accessed directly
    13 if (!defined('ABSPATH')) {
    14     exit;
     14if ( !defined( 'ABSPATH' ) ) {
     15    exit;
    1516}
    1617
     
    2223 */
    2324function EnvoThemes_Demo_Import() {
    24     return EnvoThemes_Demo_Import::instance();
     25    return EnvoThemes_Demo_Import::instance();
    2526}
    2627
     
    4041final class EnvoThemes_Demo_Import {
    4142
    42     /**
    43     * EnvoThemes_Demo_Import The single instance of EnvoThemes_Demo_Import.
    44     * @var     object
    45     * @access  private
    46     * @since   1.0.0
    47     */
    48     private static $_instance = null;
    49 
    50     /**
    51     * The token.
    52     * @var     string
    53     * @access  public
    54     * @since   1.0.0
    55     */
    56     public $token;
    57 
    58     /**
    59     * The version number.
    60     * @var     string
    61     * @access  public
    62     * @since   1.0.0
    63     */
    64     public $version;
    65 
    66     // Admin - Start
    67 
    68     /**
    69     * The admin object.
    70     * @var     object
    71     * @access  public
    72     * @since   1.0.0
    73     */
    74     public $admin;
    75 
    76     /**
    77     * Constructor function.
    78     * @access  public
    79     * @since   1.0.0
    80     * @return  void
    81     */
    82     public function __construct($widget_areas = array()) {
    83         $this->token = 'envothemes-demo-import';
    84         $this->plugin_url = plugin_dir_url(__FILE__);
    85         $this->plugin_path = plugin_dir_path(__FILE__);
    86         $this->version = '1.0';
    87 
    88         define('ENVO_URL', $this->plugin_url);
    89         define('ENVO_PATH', $this->plugin_path);
    90         define('ENVO_VERSION', $this->version);
    91         define('ENVO_FILE_PATH', __FILE__);
    92         define('ENVO_ADMIN_PANEL_HOOK_PREFIX', 'theme-panel_page_envothemes-panel');
    93 
    94 
    95         register_activation_hook(__FILE__, array($this, 'install'));
    96 
    97         add_action('init', array($this, 'load_plugin_textdomain'));
    98        
    99         // Demos scripts
    100         add_action('admin_enqueue_scripts', array($this, 'scripts'));
    101        
    102         $theme = wp_get_theme();
    103         //if ('Enwoo' == $theme->name || 'enwoo' == $theme->template) {
    104             require_once( ENVO_PATH . 'includes/panel/demos.php' );
    105         //}
    106         require_once( ENVO_PATH . 'includes/notify/notify.php' );
    107     }
    108    
    109     public static function scripts() {
    110            
    111             wp_enqueue_style('envo-notices', plugins_url('includes/panel/assets/css/notify.css', __FILE__));
    112         }
    113 
    114     /**
    115     * Main EnvoThemes_Demo_Import Instance
    116     *
    117     * Ensures only one instance of EnvoThemes_Demo_Import is loaded or can be loaded.
    118     *
    119     * @since 1.0.0
    120     * @static
    121     * @see EnvoThemes_Demo_Import()
    122     * @return Main EnvoThemes_Demo_Import instance
    123     */
    124     public static function instance() {
    125         if (is_null(self::$_instance))
    126             self::$_instance = new self();
    127         return self::$_instance;
    128     }
     43    /**
     44    * EnvoThemes_Demo_Import The single instance of EnvoThemes_Demo_Import.
     45    * @var     object
     46    * @access  private
     47    * @since   1.0.0
     48    */
     49    private static $_instance = null;
     50
     51    /**
     52    * The token.
     53    * @var     string
     54    * @access  public
     55    * @since   1.0.0
     56    */
     57    public $token;
     58
     59    /**
     60    * The version number.
     61    * @var     string
     62    * @access  public
     63    * @since   1.0.0
     64    */
     65    public $version;
     66
     67    // Admin - Start
     68
     69    /**
     70    * The admin object.
     71    * @var     object
     72    * @access  public
     73    * @since   1.0.0
     74    */
     75    public $admin;
     76
     77    /**
     78    * Constructor function.
     79    * @access  public
     80    * @since   1.0.0
     81    * @return  void
     82    */
     83    public function __construct( $widget_areas = array() ) {
     84        $this->token        = 'envothemes-demo-import';
     85        $this->plugin_url    = plugin_dir_url( __FILE__ );
     86        $this->plugin_path   = plugin_dir_path( __FILE__ );
     87        $this->version      = '1.0';
     88
     89        define( 'ENVO_URL', $this->plugin_url );
     90        define( 'ENVO_PATH', $this->plugin_path );
     91        define( 'ENVO_VERSION', $this->version );
     92        define( 'ENVO_FILE_PATH', __FILE__ );
     93        define( 'ENVO_ADMIN_PANEL_HOOK_PREFIX', 'theme-panel_page_envothemes-panel' );
     94
     95
     96        register_activation_hook( __FILE__, array( $this, 'install' ) );
     97
     98        add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
     99
     100        // Demos scripts
     101        add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ) );
     102
     103        $theme = wp_get_theme();
     104        //if ('Enwoo' == $theme->name || 'enwoo' == $theme->template) {
     105        require_once( ENVO_PATH . 'includes/panel/demos.php' );
     106        //}
     107        require_once( ENVO_PATH . 'includes/notify/notify.php' );
     108    }
     109
     110    public static function scripts() {
     111
     112        wp_enqueue_style( 'envo-notices', plugins_url( 'includes/panel/assets/css/notify.css', __FILE__ ) );
     113    }
     114
     115    /**
     116    * Main EnvoThemes_Demo_Import Instance
     117    *
     118    * Ensures only one instance of EnvoThemes_Demo_Import is loaded or can be loaded.
     119    *
     120    * @since 1.0.0
     121    * @static
     122    * @see EnvoThemes_Demo_Import()
     123    * @return Main EnvoThemes_Demo_Import instance
     124    */
     125    public static function instance() {
     126        if ( is_null( self::$_instance ) )
     127            self::$_instance = new self();
     128        return self::$_instance;
     129    }
    129130
    130131// End instance()
    131132
    132     /**
    133     * Load the localisation file.
    134     * @access  public
    135     * @since   1.0.0
    136     * @return  void
    137     */
    138     public function load_plugin_textdomain() {
    139         load_plugin_textdomain('envothemes-demo-import', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    140     }
    141 
    142     /**
    143     * Cloning is forbidden.
    144     *
    145     * @since 1.0.0
    146     */
    147     public function __clone() {
    148         _doing_it_wrong(__FUNCTION__, esc_html__('Cheatin&#8217; huh?'), '1.0.0');
    149     }
    150 
    151     /**
    152     * Unserializing instances of this class is forbidden.
    153     *
    154     * @since 1.0.0
    155     */
    156     public function __wakeup() {
    157         _doing_it_wrong(__FUNCTION__, esc_html__('Cheatin&#8217; huh?'), '1.0.0');
    158     }
    159 
    160     /**
    161     * Installation.
    162     * Runs on activation. Logs the version number and assigns a notice message to a WordPress option.
    163     * @access  public
    164     * @since   1.0.0
    165     * @return  void
    166     */
    167     public function install() {
    168         $this->_log_version_number();
    169     }
    170 
    171     /**
    172     * Log the plugin version number.
    173     * @access  private
    174     * @since   1.0.0
    175     * @return  void
    176     */
    177     private function _log_version_number() {
    178         // Log the version number.
    179         update_option($this->token . '-version', $this->version);
    180     }
     133    /**
     134    * Load the localisation file.
     135    * @access  public
     136    * @since   1.0.0
     137    * @return  void
     138    */
     139    public function load_plugin_textdomain() {
     140        load_plugin_textdomain( 'envothemes-demo-import', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     141    }
     142
     143    /**
     144    * Cloning is forbidden.
     145    *
     146    * @since 1.0.0
     147    */
     148    public function __clone() {
     149        _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?' ), '1.0.0' );
     150    }
     151
     152    /**
     153    * Unserializing instances of this class is forbidden.
     154    *
     155    * @since 1.0.0
     156    */
     157    public function __wakeup() {
     158        _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?' ), '1.0.0' );
     159    }
     160
     161    /**
     162    * Installation.
     163    * Runs on activation. Logs the version number and assigns a notice message to a WordPress option.
     164    * @access  public
     165    * @since   1.0.0
     166    * @return  void
     167    */
     168    public function install() {
     169        $this->_log_version_number();
     170    }
     171
     172    /**
     173    * Log the plugin version number.
     174    * @access  private
     175    * @since   1.0.0
     176    * @return  void
     177    */
     178    private function _log_version_number() {
     179        // Log the version number.
     180        update_option( $this->token . '-version', $this->version );
     181    }
    181182
    182183}
     
    196197        $source = 'https://envothemes.com';
    197198    }
    198     add_site_option('envothemes_active_time', time());
    199     add_site_option('envothemes_active_pro_time', time());
    200     add_option('envothemes_demo_import_url', esc_url($source));
    201     add_option('envothemes_activation_redirect', true);
    202 }
    203 
    204 register_activation_hook(__FILE__, 'envo_extra_activate');
     199    add_site_option( 'envothemes_active_time', time() );
     200    add_site_option( 'envothemes_active_pro_time', time() );
     201    add_option( 'envothemes_demo_import_url', esc_url( $source ) );
     202    add_option( 'envothemes_activation_redirect', true );
     203}
     204
     205register_activation_hook( __FILE__, 'envo_extra_activate' );
    205206
    206207/**
     
    208209 */
    209210function envo_extra_deactivate() {
    210     delete_option('envothemes_active_time');
    211     delete_option('envothemes_maybe_later');
    212     delete_option('envothemes_review_dismiss');
    213     delete_option('envothemes_active_pro_time');
    214 }
    215 
    216 register_deactivation_hook(__FILE__, 'envo_extra_deactivate');
    217 
    218 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'envothemes_action_links');
    219 
    220 function envothemes_action_links($links) {
    221     $links['install_demos'] = sprintf('<a href="%1$s" class="install-demos">%2$s</a>', esc_url(admin_url('themes.php?page=envothemes-panel-install-demos')), esc_html__('Install Demos', 'envothemes-demo-import'));
    222     return $links;
    223 }
    224 
    225 remove_filter( 'wp_import_post_meta', 'Elementor\Compatibility::on_wp_import_post_meta');
    226 remove_filter( 'wxr_importer.pre_process.post_meta', 'Elementor\Compatibility::on_wxr_importer_pre_process_post_meta');
     211    delete_option( 'envothemes_active_time' );
     212    delete_option( 'envothemes_maybe_later' );
     213    delete_option( 'envothemes_review_dismiss' );
     214    delete_option( 'envothemes_active_pro_time' );
     215}
     216
     217register_deactivation_hook( __FILE__, 'envo_extra_deactivate' );
     218
     219add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'envothemes_action_links' );
     220
     221function envothemes_action_links( $links ) {
     222    $links[ 'install_demos' ] = sprintf( '<a href="%1$s" class="install-demos">%2$s</a>', esc_url( admin_url( 'themes.php?page=envothemes-panel-install-demos' ) ), esc_html__( 'Install Demos', 'envothemes-demo-import' ) );
     223    return $links;
     224}
     225
     226remove_filter( 'wp_import_post_meta', 'Elementor\Compatibility::on_wp_import_post_meta' );
     227remove_filter( 'wxr_importer.pre_process.post_meta', 'Elementor\Compatibility::on_wxr_importer_pre_process_post_meta' );
  • envo-extra/tags/1.9.14/lib/woocommerce.php

    r2800544 r3445985  
    11<?php
    22
    3 if (!function_exists('envo_extra_product_categories')) {
     3if ( !function_exists( 'envo_extra_product_categories' ) ) {
    44
    5     function envo_extra_product_categories() {
     5    function envo_extra_product_categories() {
    66
    7         if (get_theme_mod('woo_archive_product_categories', 1) == 1) {
    8             global $product;
     7        if ( get_theme_mod( 'woo_archive_product_categories', 1 ) == 1 ) {
     8            global $product;
    99
    10             $name = '';
    11             $id = $product->get_id();
    12             $cat_ids = $product->get_category_ids();
     10            $name    = '';
     11            $id      = $product->get_id();
     12            $cat_ids = $product->get_category_ids();
    1313
    14             // if product has categories, concatenate cart item name with them
    15             if ($cat_ids) {
    16                 $name = wc_get_product_category_list($id, ', ', '<div class="archive-product-categories">', '</div>');
    17             }
     14            // if product has categories, concatenate cart item name with them
     15            if ( $cat_ids ) {
     16                $name = wc_get_product_category_list( $id, ', ', '<div class="archive-product-categories">', '</div>' );
     17            }
    1818
    19             echo wp_kses_post($name);
    20         }
    21     }
     19            echo wp_kses_post( $name );
     20        }
     21    }
    2222
    23     add_action('woocommerce_after_shop_loop_item_title', 'envo_extra_product_categories', 1);
     23    add_action( 'woocommerce_after_shop_loop_item_title', 'envo_extra_product_categories', 1 );
    2424}
  • envo-extra/tags/1.9.14/options/envo-royal/main-menu.php

    r3347282 r3445985  
    124124    'settings'   => 'typography_mainmenu_separator_bottom',
    125125    'section'    => 'main_menu',
    126     'priority'   => 20,
     126    'priority'   => 19,
    127127    'default'    => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8; margin: 0;">',
    128128) );
  • envo-extra/tags/1.9.14/readme.txt

    r3402362 r3445985  
    55Requires at Least: 4.9
    66Tested Up To: 6.9
    7 Stable tag: 1.9.13
     7Stable tag: 1.9.14
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    3131
    3232== Changelog ==
     33
     34= 1.9.14 =
     35* Updated code
     36* Improved customizer options styling
    3337
    3438= 1.9.13 =
Note: See TracChangeset for help on using the changeset viewer.