Changeset 3445985
- Timestamp:
- 01/24/2026 06:34:01 AM (4 weeks ago)
- Location:
- envo-extra/tags/1.9.14
- Files:
-
- 15 deleted
- 3 edited
- 62 copied
-
. (copied) (copied from envo-extra/trunk)
-
controls/responsive-devices/control-responsive-devices-typography.php (copied) (copied from envo-extra/trunk/controls/responsive-devices/control-responsive-devices-typography.php)
-
css/admin/admin.css (copied) (copied from envo-extra/trunk/css/admin/admin.css)
-
css/responsive-controls.css (copied) (copied from envo-extra/trunk/css/responsive-controls.css)
-
envo-extra.php (copied) (copied from envo-extra/trunk/envo-extra.php) (3 diffs)
-
images/envo-one.png (copied) (copied from envo-extra/trunk/images/envo-one.png)
-
include/packages/kirki-framework/l10n/src/L10n.php (copied) (copied from envo-extra/trunk/include/packages/kirki-framework/l10n/src/L10n.php)
-
js/envo.js (modified) (1 diff)
-
js/responsive-controls.js (modified) (3 diffs)
-
lib/elementor/assets/css/pricing/pricing.css (copied) (copied from envo-extra/trunk/lib/elementor/assets/css/pricing/pricing.css)
-
lib/elementor/assets/css/team/team.css (copied) (copied from envo-extra/trunk/lib/elementor/assets/css/team/team.css)
-
lib/elementor/assets/css/testimonial/testimonial.css (copied) (copied from envo-extra/trunk/lib/elementor/assets/css/testimonial/testimonial.css)
-
lib/elementor/assets/js/elementor.js (copied) (copied from envo-extra/trunk/lib/elementor/assets/js/elementor.js) (1 diff)
-
lib/elementor/shortcode.php (copied) (copied from envo-extra/trunk/lib/elementor/shortcode.php) (1 diff)
-
lib/elementor/widgets.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets.php) (7 diffs)
-
lib/elementor/widgets/block-quote/block-quote.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/block-quote/block-quote.php)
-
lib/elementor/widgets/button/button.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/button/button.php)
-
lib/elementor/widgets/counter/counter.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/counter/counter.php)
-
lib/elementor/widgets/icon-box/icon-box.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/icon-box/icon-box.php)
-
lib/elementor/widgets/team/team.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/team/team.php)
-
lib/elementor/widgets/testimonial/testimonial.php (copied) (copied from envo-extra/trunk/lib/elementor/widgets/testimonial/testimonial.php)
-
lib/envothemes-demo-import/envothemes-demo-import.php (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/envothemes-demo-import.php) (6 diffs)
-
lib/envothemes-demo-import/img/demos/envo-one (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-one)
-
lib/envothemes-demo-import/img/demos/envo-royal-pro-woocommerce/screenshot-woo-7.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal-pro-woocommerce/screenshot-woo-7.webp)
-
lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-6.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-6.webp)
-
lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-7.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-7.webp)
-
lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-8.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal-pro/screenshot-8.webp)
-
lib/envothemes-demo-import/img/demos/envo-royal/screenshot-1-new.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal/screenshot-1-new.webp)
-
lib/envothemes-demo-import/img/demos/envo-royal/screenshot-4.webp (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/img/demos/envo-royal/screenshot-4.webp)
-
lib/envothemes-demo-import/includes/notify/notify.php (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/notify/notify.php)
-
lib/envothemes-demo-import/includes/panel/assets/css/demos.css (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/panel/assets/css/demos.css)
-
lib/envothemes-demo-import/includes/panel/assets/css/demos.min.css (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/panel/assets/css/demos.min.css)
-
lib/envothemes-demo-import/includes/panel/classes/class-install-demos.php (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/panel/classes/class-install-demos.php)
-
lib/envothemes-demo-import/includes/panel/demos.php (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/panel/demos.php)
-
lib/envothemes-demo-import/includes/panel/envo-royal-pro-demos.php (copied) (copied from envo-extra/trunk/lib/envothemes-demo-import/includes/panel/envo-royal-pro-demos.php)
-
lib/woocommerce.php (modified) (1 diff)
-
options/assets (deleted)
-
options/back-to-top.php (deleted)
-
options/custom-codes.php (deleted)
-
options/envo-royal/assets/img/pro/colors_preset_section.webp (copied) (copied from envo-extra/trunk/options/envo-royal/assets/img/pro/colors_preset_section.webp)
-
options/envo-royal/back-to-top.php (copied) (copied from envo-extra/trunk/options/envo-royal/back-to-top.php)
-
options/envo-royal/color-preset.php (copied) (copied from envo-extra/trunk/options/envo-royal/color-preset.php)
-
options/envo-royal/footer-credits.php (copied) (copied from envo-extra/trunk/options/envo-royal/footer-credits.php)
-
options/envo-royal/footer-widgets.php (copied) (copied from envo-extra/trunk/options/envo-royal/footer-widgets.php)
-
options/envo-royal/header.php (copied) (copied from envo-extra/trunk/options/envo-royal/header.php)
-
options/envo-royal/main-colors.php (copied) (copied from envo-extra/trunk/options/envo-royal/main-colors.php)
-
options/envo-royal/main-menu.php (copied) (copied from envo-extra/trunk/options/envo-royal/main-menu.php) (1 diff)
-
options/envo-royal/posts-pages.php (copied) (copied from envo-extra/trunk/options/envo-royal/posts-pages.php)
-
options/envo-royal/pro.php (copied) (copied from envo-extra/trunk/options/envo-royal/pro.php)
-
options/envo-royal/sidebar.php (copied) (copied from envo-extra/trunk/options/envo-royal/sidebar.php)
-
options/envo-royal/top-bar.php (copied) (copied from envo-extra/trunk/options/envo-royal/top-bar.php)
-
options/envo-royal/woocommerce/archive-shop.php (copied) (copied from envo-extra/trunk/options/envo-royal/woocommerce/archive-shop.php)
-
options/envo-royal/woocommerce/buttons.php (copied) (copied from envo-extra/trunk/options/envo-royal/woocommerce/buttons.php)
-
options/envo-royal/woocommerce/product-page.php (copied) (copied from envo-extra/trunk/options/envo-royal/woocommerce/product-page.php)
-
options/enwoo/back-to-top.php (copied) (copied from envo-extra/trunk/options/enwoo/back-to-top.php)
-
options/enwoo/footer-credits.php (copied) (copied from envo-extra/trunk/options/enwoo/footer-credits.php)
-
options/enwoo/footer-widgets.php (copied) (copied from envo-extra/trunk/options/enwoo/footer-widgets.php)
-
options/enwoo/header.php (copied) (copied from envo-extra/trunk/options/enwoo/header.php)
-
options/enwoo/main-colors.php (copied) (copied from envo-extra/trunk/options/enwoo/main-colors.php)
-
options/enwoo/main-menu.php (copied) (copied from envo-extra/trunk/options/enwoo/main-menu.php)
-
options/enwoo/posts-pages.php (copied) (copied from envo-extra/trunk/options/enwoo/posts-pages.php)
-
options/enwoo/sidebar.php (copied) (copied from envo-extra/trunk/options/enwoo/sidebar.php)
-
options/enwoo/top-bar.php (copied) (copied from envo-extra/trunk/options/enwoo/top-bar.php)
-
options/enwoo/woocommerce/archive-shop.php (copied) (copied from envo-extra/trunk/options/enwoo/woocommerce/archive-shop.php)
-
options/enwoo/woocommerce/buttons.php (copied) (copied from envo-extra/trunk/options/enwoo/woocommerce/buttons.php)
-
options/enwoo/woocommerce/product-page.php (copied) (copied from envo-extra/trunk/options/enwoo/woocommerce/product-page.php)
-
options/extra.php (copied) (copied from envo-extra/trunk/options/extra.php)
-
options/footer-credits.php (deleted)
-
options/footer-widgets.php (deleted)
-
options/header.php (deleted)
-
options/main-colors.php (deleted)
-
options/main-menu.php (deleted)
-
options/posts-pages.php (deleted)
-
options/pro.php (deleted)
-
options/sidebar.php (deleted)
-
options/site-width.php (deleted)
-
options/top-bar.php (deleted)
-
options/woocommerce (deleted)
-
options/woocommerce.php (deleted)
-
readme.txt (copied) (copied from envo-extra/trunk/readme.txt) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
envo-extra/tags/1.9.14/envo-extra.php
r3402362 r3445985 4 4 * Plugin URI: https://envothemes.com/ 5 5 * Description: Extra addon for EnvoThemes Themes 6 * Version: 1.9.1 36 * Version: 1.9.14 7 7 * Author: EnvoThemes 8 8 * Author URI: https://envothemes.com/ … … 57 57 add_action( 'wp_enqueue_scripts', 'envo_extra_scripts' ); 58 58 59 function 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 } 59 62 //Dequeue Styles 60 63 function envo_extra_dequeue_unnecessary_styles() { … … 444 447 <i class="fa fa-comments-o"></i> 445 448 </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 452 endif; 453 454 /** 455 * Check Elementor plugin 456 */ 457 function 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 */ 465 function 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 */ 473 if ( 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 480 include_once( plugin_dir_path( __FILE__ ) . 'lib/elementor/widgets.php' ); 481 482 function 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 502 add_action( 'after_switch_theme', 'envo_extra_activate_fc' ); 503 register_activation_hook( __FILE__, 'envo_extra_activate_fc' ); 504 505 506 507 register_activation_hook( __FILE__, 'envo_extra_plugin_activate' ); 508 add_action( 'admin_init', 'envo_extra_plugin_redirect' ); 509 add_action( 'after_switch_theme', 'envo_extra_theme_redirect' ); 510 511 function envo_extra_plugin_activate() { 512 add_option( 'envo_plugin_do_activation_redirect', true ); 513 } 514 515 /** 516 * Check PRO plugin 517 */ 518 function 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 */ 528 function envo_extra_plugin_redirect() { 529 if ( get_option( 'envo_plugin_do_activation_redirect', false ) ) { 530 delete_option( 'envo_plugin_do_activation_redirect' ); 537 531 if ( !is_network_admin() || !isset( $_GET[ 'activate-multi' ] ) ) { 538 532 wp_redirect( 'themes.php?page=envothemes-panel-install-demos' ); 539 533 } 540 534 } 541 542 /** 543 * Adjust customizer preview. 544 */ 545 function envo_extra_customizer_responsive_sizes() { 535 } 536 537 /** 538 * Redirect after plugin activation 539 */ 540 function 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 */ 549 function envo_extra_customizer_responsive_sizes() { 546 550 547 551 $medium_breakpoint = 990; -
envo-extra/tags/1.9.14/js/envo.js
r2901769 r3445985 1 ( function ($) {1 ( function ( $ ) { 2 2 'use strict'; 3 3 4 4 // float cart 5 5 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; 10 10 11 if ( $(window).scrollTop() > distanceTop)12 $myDiv.animate( {'bottom': '0'}, 200);11 if ( $( window ).scrollTop() > distanceTop ) 12 $myDiv.animate( { 'bottom': '0' }, 200 ); 13 13 else 14 $myDiv.stop( true).animate({'bottom': '-400px'}, 100);15 } );14 $myDiv.stop( true ).animate( { 'bottom': '-400px' }, 100 ); 15 } ); 16 16 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 22 23 // return to top button 23 24 // ===== Scroll to Top ==== 24 $( window).scroll(function () {25 if ( $(this).scrollTop() >= 50) { // If page is scrolled more than 50px26 $( '#return-to-top').fadeIn(200); // Fade in the arrow25 $( 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 27 28 } else { 28 $( '#return-to-top').fadeOut(200); // Else fade out the arrow29 $( '#return-to-top' ).fadeOut( 200 ); // Else fade out the arrow 29 30 } 30 } );31 $( '#return-to-top').click(function () { // When arrow is clicked32 $( 'body,html').animate({31 } ); 32 $( '#return-to-top' ).click( function () { // When arrow is clicked 33 $( 'body,html' ).animate( { 33 34 scrollTop: 0 // Scroll to top of body 34 }, 500 );35 } );35 }, 500 ); 36 } ); 36 37 37 } )(jQuery);38 } )( jQuery ); -
envo-extra/tags/1.9.14/js/responsive-controls.js
r2800544 r3445985 92 92 93 93 jQuery( document ).ready( function ( $ ) { 94 94 95 95 // Let's use the API. 96 96 var api = wp.customize; … … 100 100 $( '.envo-control-desktop' ).removeClass( 'active' ); 101 101 // 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' ); 103 103 $( '.envo-control-tablet' ).removeClass( 'active' ); 104 104 $( '.envo-control-mobile' ).removeClass( 'active' ); … … 114 114 e.preventDefault(); 115 115 } ); 116 116 117 117 118 118 -
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 44 44 return ''; 45 45 } 46 if ( get_post_status ( $attributes[ 'id' ] ) != 'publish') {46 if ( get_post_status( $attributes[ 'id' ] ) != 'publish' ) { 47 47 return ''; 48 48 } -
envo-extra/tags/1.9.14/lib/elementor/widgets.php
r3102665 r3445985 34 34 public function register_widgets() { 35 35 36 36 37 37 foreach ( $this->modules as $key => $value ) { 38 38 require_once ENVO_EXTRA_PATH . 'lib/elementor/widgets/' . $key . '/' . $key . '.php'; … … 51 51 52 52 } 53 53 54 public function editor_scripts() { 54 55 wp_register_script( 'preview-script-elmn', ENVO_EXTRA_PLUGIN_URL . 'lib/elementor/assets/js/elementor.js', [ 'elementor-editor' ], ELEMENTOR_VERSION, true ); … … 66 67 */ 67 68 public function widget_scripts_preview() { 68 69 69 70 } 70 71 … … 77 78 */ 78 79 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 } 83 84 wp_register_style( 'font-awesome-5-all', ELEMENTOR_ASSETS_URL . 'lib/font-awesome/css/all.min.css', false ); 84 85 } 85 86 86 87 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 } 91 91 } 92 92 … … 109 109 */ 110 110 public function __construct() { 111 111 112 112 add_action( 'elementor/widgets/register', [$this, 'register_widgets' ] ); 113 113 // Register Widget Styles … … 123 123 124 124 add_action( 'elementor/preview/enqueue_styles', [$this, 'widget_styles_preview' ] ); 125 125 126 126 $this->modules = array( 127 127 'block-quote' => array( … … 137 137 'class' => 'Heading', 138 138 ), 139 'team' => array(139 'team' => array( 140 140 'class' => 'Team', 141 141 ), -
envo-extra/tags/1.9.14/lib/envothemes-demo-import/envothemes-demo-import.php
r3272327 r3445985 1 1 <?php 2 2 3 /** 3 4 * Plugin Name: EnvoThemes Demo Import … … 11 12 */ 12 13 // Exit if accessed directly 13 if ( !defined('ABSPATH')) {14 exit;14 if ( !defined( 'ABSPATH' ) ) { 15 exit; 15 16 } 16 17 … … 22 23 */ 23 24 function EnvoThemes_Demo_Import() { 24 return EnvoThemes_Demo_Import::instance();25 return EnvoThemes_Demo_Import::instance(); 25 26 } 26 27 … … 40 41 final class EnvoThemes_Demo_Import { 41 42 42 /**43 * EnvoThemes_Demo_Import The single instance of EnvoThemes_Demo_Import.44 * @var object45 * @access private46 * @since 1.0.047 */48 private static $_instance = null;49 50 /**51 * The token.52 * @var string53 * @access public54 * @since 1.0.055 */56 public $token;57 58 /**59 * The version number.60 * @var string61 * @access public62 * @since 1.0.063 */64 public $version;65 66 // Admin - Start67 68 /**69 * The admin object.70 * @var object71 * @access public72 * @since 1.0.073 */74 public $admin;75 76 /**77 * Constructor function.78 * @access public79 * @since 1.0.080 * @return void81 */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 scripts100 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 Instance116 *117 * Ensures only one instance of EnvoThemes_Demo_Import is loaded or can be loaded.118 *119 * @since 1.0.0120 * @static121 * @see EnvoThemes_Demo_Import()122 * @return Main EnvoThemes_Demo_Import instance123 */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 } 129 130 130 131 // End instance() 131 132 132 /**133 * Load the localisation file.134 * @access public135 * @since 1.0.0136 * @return void137 */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.0146 */147 public function __clone() {148 _doing_it_wrong(__FUNCTION__, esc_html__('Cheatin’ huh?'), '1.0.0');149 }150 151 /**152 * Unserializing instances of this class is forbidden.153 *154 * @since 1.0.0155 */156 public function __wakeup() {157 _doing_it_wrong(__FUNCTION__, esc_html__('Cheatin’ 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 public164 * @since 1.0.0165 * @return void166 */167 public function install() {168 $this->_log_version_number();169 }170 171 /**172 * Log the plugin version number.173 * @access private174 * @since 1.0.0175 * @return void176 */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’ 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’ 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 } 181 182 182 183 } … … 196 197 $source = 'https://envothemes.com'; 197 198 } 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 205 register_activation_hook( __FILE__, 'envo_extra_activate' ); 205 206 206 207 /** … … 208 209 */ 209 210 function 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 217 register_deactivation_hook( __FILE__, 'envo_extra_deactivate' ); 218 219 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'envothemes_action_links' ); 220 221 function 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 226 remove_filter( 'wp_import_post_meta', 'Elementor\Compatibility::on_wp_import_post_meta' ); 227 remove_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 1 1 <?php 2 2 3 if ( !function_exists('envo_extra_product_categories')) {3 if ( !function_exists( 'envo_extra_product_categories' ) ) { 4 4 5 function envo_extra_product_categories() {5 function envo_extra_product_categories() { 6 6 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; 9 9 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(); 13 13 14 // if product has categories, concatenate cart item name with them15 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 } 18 18 19 echo wp_kses_post($name);20 }21 }19 echo wp_kses_post( $name ); 20 } 21 } 22 22 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 ); 24 24 } -
envo-extra/tags/1.9.14/options/envo-royal/main-menu.php
r3347282 r3445985 124 124 'settings' => 'typography_mainmenu_separator_bottom', 125 125 'section' => 'main_menu', 126 'priority' => 20,126 'priority' => 19, 127 127 'default' => '<hr style="border-top: 1px solid #ccc; border-bottom: 1px solid #f8f8f8; margin: 0;">', 128 128 ) ); -
envo-extra/tags/1.9.14/readme.txt
r3402362 r3445985 5 5 Requires at Least: 4.9 6 6 Tested Up To: 6.9 7 Stable tag: 1.9.1 37 Stable tag: 1.9.14 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 31 31 32 32 == Changelog == 33 34 = 1.9.14 = 35 * Updated code 36 * Improved customizer options styling 33 37 34 38 = 1.9.13 =
Note: See TracChangeset
for help on using the changeset viewer.