Changeset 2404451
- Timestamp:
- 10/22/2020 08:34:55 AM (5 years ago)
- Location:
- hq-widgets-for-elementor
- Files:
-
- 12 added
- 64 edited
- 1 copied
-
tags/1.0.3 (copied) (copied from hq-widgets-for-elementor/trunk)
-
tags/1.0.3/assets/images/admin/content.svg (added)
-
tags/1.0.3/assets/images/admin/dashboard-theme.png (added)
-
tags/1.0.3/assets/images/admin/development.svg (added)
-
tags/1.0.3/assets/images/admin/logo-marmot.png (added)
-
tags/1.0.3/assets/images/admin/responsive_1.svg (added)
-
tags/1.0.3/assets/images/admin/startup.svg (added)
-
tags/1.0.3/hq-widgets-for-elementor.php (modified) (5 diffs)
-
tags/1.0.3/inc/admin/admin-settings.php (modified) (1 diff)
-
tags/1.0.3/inc/dependencies.php (modified) (6 diffs)
-
tags/1.0.3/inc/widget/theme/contact-form-7.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/theme/polylang-switcher.php (modified) (5 diffs)
-
tags/1.0.3/inc/widget/woocommerce/add-to-cart.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/archive-description.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/archive-product-add-to-cart.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/archive-products.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/category-image.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/notices.php (modified) (2 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-add-to-cart.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-additional-information.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-categories-grid.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-content.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-data-tabs.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-featured-image.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-images.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-link.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-meta.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-price.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-rating.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-related-products-grid.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-related-products-slider.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-reviews.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-short-description.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-stock.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-upsells-grid.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/product-upsells-slider.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/products-grid.php (modified) (3 diffs)
-
tags/1.0.3/inc/widget/woocommerce/products-slider.php (modified) (3 diffs)
-
tags/1.0.3/readme.txt (modified) (2 diffs)
-
trunk/assets/images/admin/content.svg (added)
-
trunk/assets/images/admin/dashboard-theme.png (added)
-
trunk/assets/images/admin/development.svg (added)
-
trunk/assets/images/admin/logo-marmot.png (added)
-
trunk/assets/images/admin/responsive_1.svg (added)
-
trunk/assets/images/admin/startup.svg (added)
-
trunk/hq-widgets-for-elementor.php (modified) (5 diffs)
-
trunk/inc/admin/admin-settings.php (modified) (1 diff)
-
trunk/inc/dependencies.php (modified) (6 diffs)
-
trunk/inc/widget/theme/contact-form-7.php (modified) (3 diffs)
-
trunk/inc/widget/theme/polylang-switcher.php (modified) (5 diffs)
-
trunk/inc/widget/woocommerce/add-to-cart.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/archive-description.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/archive-product-add-to-cart.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/archive-products.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/category-image.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/notices.php (modified) (2 diffs)
-
trunk/inc/widget/woocommerce/product-add-to-cart.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-additional-information.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-categories-grid.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-content.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-data-tabs.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-featured-image.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-images.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-link.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-meta.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-price.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-rating.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-related-products-grid.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-related-products-slider.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-reviews.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-short-description.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-stock.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-upsells-grid.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/product-upsells-slider.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/products-grid.php (modified) (3 diffs)
-
trunk/inc/widget/woocommerce/products-slider.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hq-widgets-for-elementor/tags/1.0.3/hq-widgets-for-elementor.php
r2400865 r2404451 5 5 * Plugin URI: https://marmot.hqwebs.net/hq-widgets-for-elementor/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hq-widgets-for-elementor&utm_content=plugin-uri 6 6 * Description: The HQ Widgets for Elementor is an elementor addons package for Elementor page builder plugin for WordPress. Works Best with Marmot theme 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Requires at least: 5.3 9 9 * Requires PHP: 7.2 … … 62 62 * @var string 63 63 */ 64 const VERSION = '1.0. 2';64 const VERSION = '1.0.3'; 65 65 66 66 // Load Autoloader … … 141 141 Admin\Admin_Settings::instance(); 142 142 } 143 143 144 144 /** 145 145 * Regenerate css in debug mode … … 197 197 198 198 // Redirect to dashboard after plugin activation 199 if (is_plugin_active('hqtheme-extra/hqtheme-extra.php') && is_plugin_active('elementor/elementor.php')) { 199 if ( 200 defined('\HQExtra\VERSION') && 201 defined('\ELEMENTOR_VERSION') && 202 !Dependencies::is_theme_active() 203 ) { 200 204 set_transient(PLUGIN_SLUG . '_activation_redirect', true, MINUTE_IN_SECONDS); 201 205 } … … 335 339 } 336 340 337 /**338 * Checks if plugin is active339 *340 * @since 1.0.0341 *342 * @param string $plugin Plugin activation string343 * @return bool344 */345 function is_plugin_active($plugin) {346 return in_array($plugin, (array) \get_option('active_plugins', [])) || is_plugin_active_for_network($plugin);347 }348 349 /**350 * Checks if plugin is active for network351 *352 * @since 1.0.0353 *354 * @param string $plugin Plugin activation string355 * @return bool356 */357 function is_plugin_active_for_network($plugin) {358 if (!is_multisite()) {359 return false;360 }361 362 $plugins = get_site_option('active_sitewide_plugins');363 if (isset($plugins[$plugin])) {364 return true;365 }366 367 return false;368 }369 370 341 // Run Plugin 371 342 HQ_Widgets_For_Elementor::instance(); -
hq-widgets-for-elementor/tags/1.0.3/inc/admin/admin-settings.php
r2400865 r2404451 305 305 </div> 306 306 </div> 307 <?php /* Theme presentaion */ ?> 308 <div class="hqt-row mt-3"> 309 <div class="hqt-col-1-2__md"> 310 <h3 class="my-1 mb-2"><?php _ex('HQ Widgets for Elementor Recommends Marmot Theme', 'admin', 'marmot'); ?></h3> 311 <div class="hqt-logo-wrap"> 312 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=logo&utm_campaign=default&utm_content=hqwidgets" target="_blank"> 313 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/logo-marmot.png"> 314 </a> 315 </div> 316 317 <h2 class="mt-6 mb-0 text-medium"><?php _ex('Fully customizable WordPress theme', 'admin', 'marmot'); ?></h2> 318 <ul class="hqt-list list-dot my-3"> 319 <li><?php _ex('The most flexible theme for Elementor page builder fans', 'admin', 'marmot'); ?></li> 320 <li><?php _ex('Professionally ready to use demos right behind a click', 'admin', 'marmot'); ?></li> 321 <li><?php _ex('Fast and light - Marmot theme is made for speed', 'admin', 'marmot'); ?></li> 322 </ul> 323 <div class="mt-5"> 324 <a href="https://marmot.hqwebs.net/ready-demos/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_content=learn-more" class="btn btn-border ml-2 mr-1"><?php _ex('View Demos', 'admin', 'marmot'); ?></a> 325 <a target="_blank" href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_content=learn-more" ><?php _ex('Learn More', 'admin', 'marmot'); ?></a> 326 </div> 327 </div> 328 <div class="hqt-col-1-2__md d-flex align-items-center"> 329 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/dashboard-theme.png" class="img-fluid"> 330 </div> 331 </div> 332 <div class="hqt-row mt-5"> 333 <div class="hqt-col-1-2__sm hqt-col-2-3__lg hqt-col-1-2__xl"> 334 <div class="hqt-row"> 335 <div class="hqt-col-1-2 mb-4"> 336 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 337 <div class="p-2" style="background: #f40c3c;"> 338 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/startup.svg" class="hqt-svg-icon white"> 339 </div> 340 <div class="d-flex flex-basis-100 align-items-center"> 341 <h3 class="px-3"><?php _ex('Modern Design', 'admin', 'marmot'); ?></h3> 342 </div> 343 </div> 344 </div> 345 <div class="hqt-col-1-2 mb-4"> 346 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 347 <div class="p-2" style="background: #f7382b;"> 348 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/responsive.svg" class="hqt-svg-icon white"> 349 </div> 350 <div class="d-flex flex-basis-100 align-items-center"> 351 <h3 class="px-3"><?php _ex('Fully Responsive', 'admin', 'marmot'); ?></h3> 352 </div> 353 </div> 354 </div> 355 <div class="hqt-col-1-2 mb-4"> 356 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 357 <div class="p-2" style="background: #fb7015;"> 358 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/development.svg" class="hqt-svg-icon white"> 359 </div> 360 <div class="d-flex flex-basis-100 align-items-center"> 361 <h3 class="px-3"><?php _ex('No Coding Required', 'admin', 'marmot'); ?></h3> 362 </div> 363 </div> 364 </div> 365 <div class="hqt-col-1-2 mb-4"> 366 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 367 <div class="p-2" style="background: #ffa002;"> 368 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/content.svg" class="hqt-svg-icon white"> 369 </div> 370 <div class="d-flex flex-basis-100 align-items-center"> 371 <h3 class="px-3"><?php _ex('Customize Everything', 'admin', 'marmot'); ?></h3> 372 </div> 373 </div> 374 </div> 375 </div> 376 </div> 377 <div class="hqt-col-1-2__sm hqt-col-1-3__lg hqt-col-1-2__xl px-6"> 378 <h2 class="mt-0 mb-2 text-medium"><?php _ex('Use Elementor templates for', 'admin', 'marmot'); ?></h2> 379 <h3 class="mt-2 mb-0"><?php _ex('Header and Footer', 'admin', 'marmot'); ?></h3> 380 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 381 <?php _ex('Learn how', 'admin', 'marmot'); ?> 382 </a> 383 <h3 class="mt-2 mb-0"><?php _ex('Single and Archive post page', 'admin', 'marmot'); ?></h3> 384 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 385 <?php _ex('Learn how', 'admin', 'marmot'); ?> 386 </a> 387 <h3 class="mt-2 mb-0"><?php _ex('WooCommerce product and Woo Archive page', 'admin', 'marmot'); ?></h3> 388 <a href="https://marmot.hqwebs.net/woocommerce-integration/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 389 <?php _ex('Learn how', 'admin', 'marmot'); ?> 390 </a> 391 </div> 392 </div> 307 393 <?php 308 394 return ob_get_clean(); -
hq-widgets-for-elementor/tags/1.0.3/inc/dependencies.php
r2400865 r2404451 24 24 'name' => 'HQTheme Extra', 25 25 'file' => 'hqtheme-extra/hqtheme-extra.php', 26 'constant' => '', 27 'action' => '', 26 'constant' => '\HQExtra\VERSION', 28 27 'required' => true, 29 28 'dismiss' => false, … … 32 31 'name' => 'Elementor', 33 32 'file' => 'elementor/elementor.php', 34 'constant' => '', 35 'action' => 'elementor/loaded', 33 'constant' => '\ELEMENTOR_VERSION', 36 34 'required' => true, 37 35 'dismiss' => false, … … 53 51 } 54 52 55 public function is_theme_installed() {53 public static function is_theme_installed() { 56 54 foreach ((array) wp_get_themes() as $theme_dir => $theme) { 57 55 if ('Marmot' === $theme->name || 'Marmot' === $theme->parent_theme) { … … 62 60 } 63 61 64 public function is_theme_active() {62 public static function is_theme_active() { 65 63 $theme = wp_get_theme(); 66 64 … … 77 75 public function check_plugins() { 78 76 foreach (static::$plugins as $plugin_name => $plugin_data) { 79 if (! $this->is_plugin_active($plugin_data)) {77 if (!defined($plugin_data['constant'])) { 80 78 $type = ''; 81 79 if ($plugin_data['required']) { … … 120 118 } 121 119 122 public function is_plugin_active($plugin) {123 if (!empty($plugin['action']) && did_action($plugin['action'])) {124 return true;125 } elseif (!empty($plugin['constant']) && defined($plugin['action'])) {126 return true;127 } elseif (is_plugin_active($plugin['file'])) {128 return true;129 }130 return false;131 }132 133 120 } -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/theme/contact-form-7.php
r2389368 r2404451 11 11 use Elementor\Group_Control_Border; 12 12 use Elementor\Group_Control_Box_Shadow; 13 use function HQWidgetsForElementor\is_plugin_active;14 13 use const HQWidgetsForElementor\VERSION; 15 14 use const HQWidgetsForElementor\PLUGIN_SLUG; … … 74 73 75 74 protected function _register_controls() { 76 if (! is_plugin_active('contact-form-7/wp-contact-form-7.php')) {75 if (!defined('WPCF7_VERSION')) { 77 76 $this->start_controls_section('section_plugin_missing', [ 78 77 'label' => __('Contact Form 7', 'hq-widgets-for-elementor'), … … 999 998 1000 999 protected function render() { 1001 if (! is_plugin_active('contact-form-7/wp-contact-form-7.php')) {1000 if (!defined('WPCF7_VERSION')) { 1002 1001 if (Plugin::instance()->editor->is_edit_mode()) { 1003 1002 ?> -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/theme/polylang-switcher.php
r2389368 r2404451 13 13 use const HQWidgetsForElementor\PLUGIN_SLUG; 14 14 use const HQWidgetsForElementor\VERSION; 15 use function HQWidgetsForElementor\is_plugin_active;16 15 17 16 class Polylang_Switcher extends Widget_Base { … … 47 46 48 47 protected function _register_controls() { 49 if (! is_plugin_active('polylang/polylang.php')) {48 if (!defined('POLYLANG_VERSION')) { 50 49 $this->start_controls_section('section_plugin_missing', [ 51 50 'label' => __('Polylang', 'hq-widgets-for-elementor'), … … 669 668 670 669 protected function render() { 671 if (! is_plugin_active('polylang/polylang.php')) {670 if (!defined('POLYLANG_VERSION')) { 672 671 \HQLib\Utils::editor_alert_box('Polylang plugin is missing.'); 673 672 return; … … 687 686 $listHtml = ''; 688 687 $currentHtml = ''; 689 688 690 689 foreach ($languages as $language) { 691 690 $this->remove_render_attribute('hq-polylang-menu-item', 'class'); … … 702 701 703 702 $this->add_render_attribute('hq-polylang-menu-item', 'class', 'menu-item'); 704 703 705 704 if ($language['current_lang']) { 706 705 $this->add_render_attribute('hq-polylang-menu-item', 'class', 'menu-item__active'); -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/add-to-cart.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Add_To_Cart extends Product_Add_To_Cart { … … 55 54 56 55 protected function _register_controls() { 57 if (! is_plugin_active('woocommerce/woocommerce.php')) {56 if (!defined('WC_VERSION')) { 58 57 $this->start_controls_section('section_plugin_missing', [ 59 58 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 124 123 125 124 protected function render() { 126 if (! is_plugin_active('woocommerce/woocommerce.php')) {125 if (!defined('WC_VERSION')) { 127 126 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 128 127 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/archive-description.php
r2389368 r2404451 9 9 use Elementor\Group_Control_Typography; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Archive_Description extends Widget_Base { … … 34 33 35 34 protected function _register_controls() { 36 if (! is_plugin_active('woocommerce/woocommerce.php')) {35 if (!defined('WC_VERSION')) { 37 36 $this->start_controls_section('section_plugin_missing', [ 38 37 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 121 120 122 121 protected function render() { 123 if (! is_plugin_active('woocommerce/woocommerce.php')) {122 if (!defined('WC_VERSION')) { 124 123 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 125 124 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/archive-product-add-to-cart.php
r2389368 r2404451 16 16 use const HQWidgetsForElementor\PLUGIN_SLUG; 17 17 use const HQWidgetsForElementor\PLUGIN_URL; 18 use function HQWidgetsForElementor\is_plugin_active;19 18 20 19 class Archive_Product_Add_To_Cart extends Widget_Button { … … 59 58 60 59 protected function _register_controls() { 61 if (! is_plugin_active('woocommerce/woocommerce.php')) {60 if (!defined('WC_VERSION')) { 62 61 $this->start_controls_section('section_plugin_missing', [ 63 62 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 338 337 339 338 protected function render() { 340 if (! is_plugin_active('woocommerce/woocommerce.php')) {339 if (!defined('WC_VERSION')) { 341 340 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 342 341 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/archive-products.php
r2389368 r2404451 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 10 use HQWidgetsForElementor\Widget\Woocommerce\Products_Base; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Archive_Products extends Products_Base { … … 38 37 39 38 protected function _register_controls() { 40 if (! is_plugin_active('woocommerce/woocommerce.php')) {39 if (!defined('WC_VERSION')) { 41 40 $this->start_controls_section('section_plugin_missing', [ 42 41 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 102 101 103 102 public function render() { 104 if (! is_plugin_active('woocommerce/woocommerce.php')) {103 if (!defined('WC_VERSION')) { 105 104 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 106 105 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/category-image.php
r2389368 r2404451 8 8 use Elementor\Controls_Manager; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Category_Image extends Widget_Image { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 57 56 58 57 protected function render() { 59 if (! is_plugin_active('woocommerce/woocommerce.php')) {58 if (!defined('WC_VERSION')) { 60 59 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 61 60 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/notices.php
r2389368 r2404451 14 14 use const HQWidgetsForElementor\PLUGIN_SLUG; 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 use function HQWidgetsForElementor\is_plugin_active;17 16 18 17 class Notices extends Widget_Base { … … 203 202 204 203 protected function render() { 205 if (! is_plugin_active('woocommerce/woocommerce.php')) {204 if (!defined('WC_VERSION')) { 206 205 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 207 206 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-add-to-cart.php
r2389368 r2404451 16 16 use const HQWidgetsForElementor\PLUGIN_SLUG; 17 17 use const HQWidgetsForElementor\PLUGIN_URL; 18 use function HQWidgetsForElementor\is_plugin_active;19 18 20 19 class Product_Add_To_Cart extends Widget_Button { … … 59 58 60 59 protected function _register_controls() { 61 if (! is_plugin_active('woocommerce/woocommerce.php')) {60 if (!defined('WC_VERSION')) { 62 61 $this->start_controls_section('section_plugin_missing', [ 63 62 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 720 719 721 720 protected function render() { 722 if (! is_plugin_active('woocommerce/woocommerce.php')) {721 if (!defined('WC_VERSION')) { 723 722 Utils::editor_alert_box('WooCommerce plugin is missing.'); 724 723 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-additional-information.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Product_Additional_Information extends Posts_Base { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 224 223 225 224 protected function render() { 226 if (! is_plugin_active('woocommerce/woocommerce.php')) {225 if (!defined('WC_VERSION')) { 227 226 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 228 227 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-categories-grid.php
r2389368 r2404451 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 16 use const HQWidgetsForElementor\VERSION; 17 use function HQWidgetsForElementor\is_plugin_active;18 17 19 18 class Product_Categories_Grid extends Widget_Base { … … 51 50 52 51 protected function _register_controls() { 53 if (! is_plugin_active('woocommerce/woocommerce.php')) {52 if (!defined('WC_VERSION')) { 54 53 $this->start_controls_section('section_plugin_missing', [ 55 54 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 568 567 569 568 public function render() { 570 if (! is_plugin_active('woocommerce/woocommerce.php')) {569 if (!defined('WC_VERSION')) { 571 570 Utils::editor_alert_box('WooCommerce plugin is missing.'); 572 571 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-content.php
r2389368 r2404451 10 10 use const HQWidgetsForElementor\PLUGIN_URL; 11 11 use const HQWidgetsForElementor\VERSION; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Content extends Post_Content { … … 45 44 46 45 protected function _register_controls() { 47 if (! is_plugin_active('woocommerce/woocommerce.php')) {46 if (!defined('WC_VERSION')) { 48 47 $this->start_controls_section('section_plugin_missing', [ 49 48 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 66 65 67 66 protected function render() { 68 if (! is_plugin_active('woocommerce/woocommerce.php')) {67 if (!defined('WC_VERSION')) { 69 68 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 70 69 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-data-tabs.php
r2389368 r2404451 18 18 use const HQWidgetsForElementor\PLUGIN_SLUG; 19 19 use const HQWidgetsForElementor\PLUGIN_URL; 20 use function HQWidgetsForElementor\is_plugin_active;21 20 22 21 class Product_Data_Tabs extends Posts_Base { … … 62 61 63 62 protected function _register_controls() { 64 if (! is_plugin_active('woocommerce/woocommerce.php')) {63 if (!defined('WC_VERSION')) { 65 64 $this->start_controls_section('section_plugin_missing', [ 66 65 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 1604 1603 1605 1604 protected function render() { 1606 if (! is_plugin_active('woocommerce/woocommerce.php')) {1605 if (!defined('WC_VERSION')) { 1607 1606 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 1608 1607 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-featured-image.php
r2389368 r2404451 8 8 use HQWidgetsForElementor\Widget\Theme\Post_Featured_Image; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Featured_Image extends Post_Featured_Image { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 55 54 56 55 protected function render() { 57 if (! is_plugin_active('woocommerce/woocommerce.php')) {56 if (!defined('WC_VERSION')) { 58 57 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 59 58 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-images.php
r2389368 r2404451 13 13 use const HQWidgetsForElementor\PLUGIN_SLUG; 14 14 use const HQWidgetsForElementor\PLUGIN_URL; 15 use function HQWidgetsForElementor\is_plugin_active;16 15 17 16 class Product_Images extends Posts_Base { … … 57 56 58 57 protected function _register_controls() { 59 if (! is_plugin_active('woocommerce/woocommerce.php')) {58 if (!defined('WC_VERSION')) { 60 59 $this->start_controls_section('section_plugin_missing', [ 61 60 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 466 465 467 466 public function render() { 468 if (! is_plugin_active('woocommerce/woocommerce.php')) {467 if (!defined('WC_VERSION')) { 469 468 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 470 469 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-link.php
r2389368 r2404451 8 8 use Elementor\Widget_Button; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Link extends Widget_Button { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 63 62 64 63 protected function render() { 65 if (! is_plugin_active('woocommerce/woocommerce.php')) {64 if (!defined('WC_VERSION')) { 66 65 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 67 66 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-meta.php
r2389368 r2404451 10 10 use Elementor\Widget_Base; 11 11 use const HQWidgetsForElementor\PLUGIN_SLUG; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Meta extends Widget_Base { … … 35 34 36 35 protected function _register_controls() { 37 if (! is_plugin_active('woocommerce/woocommerce.php')) {36 if (!defined('WC_VERSION')) { 38 37 $this->start_controls_section('section_plugin_missing', [ 39 38 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 388 387 389 388 protected function render() { 390 if (! is_plugin_active('woocommerce/woocommerce.php')) {389 if (!defined('WC_VERSION')) { 391 390 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 392 391 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-price.php
r2389368 r2404451 14 14 use const HQWidgetsForElementor\PLUGIN_SLUG; 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 use function HQWidgetsForElementor\is_plugin_active;17 16 18 17 class Product_Price extends Posts_Base { … … 48 47 49 48 protected function _register_controls() { 50 if (! is_plugin_active('woocommerce/woocommerce.php')) {49 if (!defined('WC_VERSION')) { 51 50 $this->start_controls_section('section_plugin_missing', [ 52 51 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 213 212 214 213 protected function render() { 215 if (! is_plugin_active('woocommerce/woocommerce.php')) {214 if (!defined('WC_VERSION')) { 216 215 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 217 216 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-rating.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Product_Rating extends Widget_Base { … … 46 45 47 46 protected function _register_controls() { 48 if (! is_plugin_active('woocommerce/woocommerce.php')) {47 if (!defined('WC_VERSION')) { 49 48 $this->start_controls_section('section_plugin_missing', [ 50 49 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 213 212 214 213 protected function render() { 215 if (! is_plugin_active('woocommerce/woocommerce.php')) {214 if (!defined('WC_VERSION')) { 216 215 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 217 216 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-related-products-grid.php
r2389368 r2404451 7 7 use Elementor\Controls_Manager; 8 8 use HQWidgetsForElementor\Widget\Woocommerce\Product_Related_Products; 9 use function HQWidgetsForElementor\is_plugin_active;10 9 11 10 class Product_Related_Products_Grid extends Product_Related_Products { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 61 60 62 61 public function render() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 65 64 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-related-products-slider.php
r2389368 r2404451 8 8 use HQLib\Utils; 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Related_Products; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Related_Products_Slider extends Product_Related_Products { … … 37 36 38 37 protected function _register_controls() { 39 if (! is_plugin_active('woocommerce/woocommerce.php')) {38 if (!defined('WC_VERSION')) { 40 39 $this->start_controls_section('section_plugin_missing', [ 41 40 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 62 61 63 62 public function render() { 64 if (! is_plugin_active('woocommerce/woocommerce.php')) {63 if (!defined('WC_VERSION')) { 65 64 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 66 65 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-reviews.php
r2389368 r2404451 17 17 use const HQWidgetsForElementor\PLUGIN_SLUG; 18 18 use const HQWidgetsForElementor\PLUGIN_URL; 19 use function HQWidgetsForElementor\is_plugin_active;20 19 21 20 class Product_Reviews extends Posts { … … 61 60 62 61 protected function _register_controls() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 $this->start_controls_section('section_plugin_missing', [ 65 64 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 1163 1162 1164 1163 public function render() { 1165 if (! is_plugin_active('woocommerce/woocommerce.php')) {1164 if (!defined('WC_VERSION')) { 1166 1165 Utils::editor_alert_box('WooCommerce plugin is missing.'); 1167 1166 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-short-description.php
r2389368 r2404451 10 10 use HQWidgetsForElementor\Widget\Posts_Base; 11 11 use const HQWidgetsForElementor\PLUGIN_SLUG; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Short_Description extends Posts_Base { … … 35 34 36 35 protected function _register_controls() { 37 if (! is_plugin_active('woocommerce/woocommerce.php')) {36 if (!defined('WC_VERSION')) { 38 37 $this->start_controls_section('section_plugin_missing', [ 39 38 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 114 113 115 114 protected function render() { 116 if (! is_plugin_active('woocommerce/woocommerce.php')) {115 if (!defined('WC_VERSION')) { 117 116 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 118 117 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-stock.php
r2389368 r2404451 11 11 use HQWidgetsForElementor\Widget\Posts_Base; 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 use function HQWidgetsForElementor\is_plugin_active;14 13 15 14 class Product_Stock extends Posts_Base { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 263 262 264 263 protected function render() { 265 if (! is_plugin_active('woocommerce/woocommerce.php')) {264 if (!defined('WC_VERSION')) { 266 265 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 267 266 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-upsells-grid.php
r2389368 r2404451 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Upsells; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Product_Upsells_Grid extends Product_Upsells { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 67 66 68 67 public function render() { 69 if (! is_plugin_active('woocommerce/woocommerce.php')) {68 if (!defined('WC_VERSION')) { 70 69 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 71 70 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/product-upsells-slider.php
r2389368 r2404451 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Upsells; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Product_Upsells_Slider extends Product_Upsells { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 67 66 68 67 public function render() { 69 if (! is_plugin_active('woocommerce/woocommerce.php')) {68 if (!defined('WC_VERSION')) { 70 69 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 71 70 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/products-grid.php
r2389368 r2404451 8 8 use const HQWidgetsForElementor\PLUGIN_SLUG; 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Products; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Products_Grid extends Products { … … 37 36 38 37 protected function _register_controls() { 39 if (! is_plugin_active('woocommerce/woocommerce.php')) {38 if (!defined('WC_VERSION')) { 40 39 $this->start_controls_section('section_plugin_missing', [ 41 40 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 68 67 69 68 public function render() { 70 if (! is_plugin_active('woocommerce/woocommerce.php')) {69 if (!defined('WC_VERSION')) { 71 70 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 72 71 return; -
hq-widgets-for-elementor/tags/1.0.3/inc/widget/woocommerce/products-slider.php
r2389368 r2404451 7 7 use Elementor\Controls_Manager; 8 8 use HQWidgetsForElementor\Widget\Woocommerce\Products; 9 use function HQWidgetsForElementor\is_plugin_active;10 9 11 10 class Products_Slider extends Products { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 61 60 62 61 public function render() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 65 64 return; -
hq-widgets-for-elementor/tags/1.0.3/readme.txt
r2400865 r2404451 5 5 Tested up to: 5.5 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPL v2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 138 138 = 1.0.2 - 2020-09-20 = 139 139 * Fixing some visual bugs 140 141 = 1.0.3 - 2020-10-22 = 142 * Fix Marmot theme dashboard redirect dependency 143 * Improving widgets dependencies -
hq-widgets-for-elementor/trunk/hq-widgets-for-elementor.php
r2400865 r2404451 5 5 * Plugin URI: https://marmot.hqwebs.net/hq-widgets-for-elementor/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_term=hq-widgets-for-elementor&utm_content=plugin-uri 6 6 * Description: The HQ Widgets for Elementor is an elementor addons package for Elementor page builder plugin for WordPress. Works Best with Marmot theme 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Requires at least: 5.3 9 9 * Requires PHP: 7.2 … … 62 62 * @var string 63 63 */ 64 const VERSION = '1.0. 2';64 const VERSION = '1.0.3'; 65 65 66 66 // Load Autoloader … … 141 141 Admin\Admin_Settings::instance(); 142 142 } 143 143 144 144 /** 145 145 * Regenerate css in debug mode … … 197 197 198 198 // Redirect to dashboard after plugin activation 199 if (is_plugin_active('hqtheme-extra/hqtheme-extra.php') && is_plugin_active('elementor/elementor.php')) { 199 if ( 200 defined('\HQExtra\VERSION') && 201 defined('\ELEMENTOR_VERSION') && 202 !Dependencies::is_theme_active() 203 ) { 200 204 set_transient(PLUGIN_SLUG . '_activation_redirect', true, MINUTE_IN_SECONDS); 201 205 } … … 335 339 } 336 340 337 /**338 * Checks if plugin is active339 *340 * @since 1.0.0341 *342 * @param string $plugin Plugin activation string343 * @return bool344 */345 function is_plugin_active($plugin) {346 return in_array($plugin, (array) \get_option('active_plugins', [])) || is_plugin_active_for_network($plugin);347 }348 349 /**350 * Checks if plugin is active for network351 *352 * @since 1.0.0353 *354 * @param string $plugin Plugin activation string355 * @return bool356 */357 function is_plugin_active_for_network($plugin) {358 if (!is_multisite()) {359 return false;360 }361 362 $plugins = get_site_option('active_sitewide_plugins');363 if (isset($plugins[$plugin])) {364 return true;365 }366 367 return false;368 }369 370 341 // Run Plugin 371 342 HQ_Widgets_For_Elementor::instance(); -
hq-widgets-for-elementor/trunk/inc/admin/admin-settings.php
r2400865 r2404451 305 305 </div> 306 306 </div> 307 <?php /* Theme presentaion */ ?> 308 <div class="hqt-row mt-3"> 309 <div class="hqt-col-1-2__md"> 310 <h3 class="my-1 mb-2"><?php _ex('HQ Widgets for Elementor Recommends Marmot Theme', 'admin', 'marmot'); ?></h3> 311 <div class="hqt-logo-wrap"> 312 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=logo&utm_campaign=default&utm_content=hqwidgets" target="_blank"> 313 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/logo-marmot.png"> 314 </a> 315 </div> 316 317 <h2 class="mt-6 mb-0 text-medium"><?php _ex('Fully customizable WordPress theme', 'admin', 'marmot'); ?></h2> 318 <ul class="hqt-list list-dot my-3"> 319 <li><?php _ex('The most flexible theme for Elementor page builder fans', 'admin', 'marmot'); ?></li> 320 <li><?php _ex('Professionally ready to use demos right behind a click', 'admin', 'marmot'); ?></li> 321 <li><?php _ex('Fast and light - Marmot theme is made for speed', 'admin', 'marmot'); ?></li> 322 </ul> 323 <div class="mt-5"> 324 <a href="https://marmot.hqwebs.net/ready-demos/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_content=learn-more" class="btn btn-border ml-2 mr-1"><?php _ex('View Demos', 'admin', 'marmot'); ?></a> 325 <a target="_blank" href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=link&utm_campaign=default&utm_content=learn-more" ><?php _ex('Learn More', 'admin', 'marmot'); ?></a> 326 </div> 327 </div> 328 <div class="hqt-col-1-2__md d-flex align-items-center"> 329 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/dashboard-theme.png" class="img-fluid"> 330 </div> 331 </div> 332 <div class="hqt-row mt-5"> 333 <div class="hqt-col-1-2__sm hqt-col-2-3__lg hqt-col-1-2__xl"> 334 <div class="hqt-row"> 335 <div class="hqt-col-1-2 mb-4"> 336 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 337 <div class="p-2" style="background: #f40c3c;"> 338 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/startup.svg" class="hqt-svg-icon white"> 339 </div> 340 <div class="d-flex flex-basis-100 align-items-center"> 341 <h3 class="px-3"><?php _ex('Modern Design', 'admin', 'marmot'); ?></h3> 342 </div> 343 </div> 344 </div> 345 <div class="hqt-col-1-2 mb-4"> 346 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 347 <div class="p-2" style="background: #f7382b;"> 348 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/responsive.svg" class="hqt-svg-icon white"> 349 </div> 350 <div class="d-flex flex-basis-100 align-items-center"> 351 <h3 class="px-3"><?php _ex('Fully Responsive', 'admin', 'marmot'); ?></h3> 352 </div> 353 </div> 354 </div> 355 <div class="hqt-col-1-2 mb-4"> 356 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 357 <div class="p-2" style="background: #fb7015;"> 358 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/development.svg" class="hqt-svg-icon white"> 359 </div> 360 <div class="d-flex flex-basis-100 align-items-center"> 361 <h3 class="px-3"><?php _ex('No Coding Required', 'admin', 'marmot'); ?></h3> 362 </div> 363 </div> 364 </div> 365 <div class="hqt-col-1-2 mb-4"> 366 <div class="d-flex border-rad-10 overflow-hidden box-shadow"> 367 <div class="p-2" style="background: #ffa002;"> 368 <img src="<?php echo PLUGIN_URL; ?>/assets/images/admin/content.svg" class="hqt-svg-icon white"> 369 </div> 370 <div class="d-flex flex-basis-100 align-items-center"> 371 <h3 class="px-3"><?php _ex('Customize Everything', 'admin', 'marmot'); ?></h3> 372 </div> 373 </div> 374 </div> 375 </div> 376 </div> 377 <div class="hqt-col-1-2__sm hqt-col-1-3__lg hqt-col-1-2__xl px-6"> 378 <h2 class="mt-0 mb-2 text-medium"><?php _ex('Use Elementor templates for', 'admin', 'marmot'); ?></h2> 379 <h3 class="mt-2 mb-0"><?php _ex('Header and Footer', 'admin', 'marmot'); ?></h3> 380 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 381 <?php _ex('Learn how', 'admin', 'marmot'); ?> 382 </a> 383 <h3 class="mt-2 mb-0"><?php _ex('Single and Archive post page', 'admin', 'marmot'); ?></h3> 384 <a href="https://marmot.hqwebs.net/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 385 <?php _ex('Learn how', 'admin', 'marmot'); ?> 386 </a> 387 <h3 class="mt-2 mb-0"><?php _ex('WooCommerce product and Woo Archive page', 'admin', 'marmot'); ?></h3> 388 <a href="https://marmot.hqwebs.net/woocommerce-integration/?utm_source=wp-admin&utm_medium=button&utm_campaign=default&utm_content=learn-more" target="_blank"> 389 <?php _ex('Learn how', 'admin', 'marmot'); ?> 390 </a> 391 </div> 392 </div> 307 393 <?php 308 394 return ob_get_clean(); -
hq-widgets-for-elementor/trunk/inc/dependencies.php
r2400865 r2404451 24 24 'name' => 'HQTheme Extra', 25 25 'file' => 'hqtheme-extra/hqtheme-extra.php', 26 'constant' => '', 27 'action' => '', 26 'constant' => '\HQExtra\VERSION', 28 27 'required' => true, 29 28 'dismiss' => false, … … 32 31 'name' => 'Elementor', 33 32 'file' => 'elementor/elementor.php', 34 'constant' => '', 35 'action' => 'elementor/loaded', 33 'constant' => '\ELEMENTOR_VERSION', 36 34 'required' => true, 37 35 'dismiss' => false, … … 53 51 } 54 52 55 public function is_theme_installed() {53 public static function is_theme_installed() { 56 54 foreach ((array) wp_get_themes() as $theme_dir => $theme) { 57 55 if ('Marmot' === $theme->name || 'Marmot' === $theme->parent_theme) { … … 62 60 } 63 61 64 public function is_theme_active() {62 public static function is_theme_active() { 65 63 $theme = wp_get_theme(); 66 64 … … 77 75 public function check_plugins() { 78 76 foreach (static::$plugins as $plugin_name => $plugin_data) { 79 if (! $this->is_plugin_active($plugin_data)) {77 if (!defined($plugin_data['constant'])) { 80 78 $type = ''; 81 79 if ($plugin_data['required']) { … … 120 118 } 121 119 122 public function is_plugin_active($plugin) {123 if (!empty($plugin['action']) && did_action($plugin['action'])) {124 return true;125 } elseif (!empty($plugin['constant']) && defined($plugin['action'])) {126 return true;127 } elseif (is_plugin_active($plugin['file'])) {128 return true;129 }130 return false;131 }132 133 120 } -
hq-widgets-for-elementor/trunk/inc/widget/theme/contact-form-7.php
r2389368 r2404451 11 11 use Elementor\Group_Control_Border; 12 12 use Elementor\Group_Control_Box_Shadow; 13 use function HQWidgetsForElementor\is_plugin_active;14 13 use const HQWidgetsForElementor\VERSION; 15 14 use const HQWidgetsForElementor\PLUGIN_SLUG; … … 74 73 75 74 protected function _register_controls() { 76 if (! is_plugin_active('contact-form-7/wp-contact-form-7.php')) {75 if (!defined('WPCF7_VERSION')) { 77 76 $this->start_controls_section('section_plugin_missing', [ 78 77 'label' => __('Contact Form 7', 'hq-widgets-for-elementor'), … … 999 998 1000 999 protected function render() { 1001 if (! is_plugin_active('contact-form-7/wp-contact-form-7.php')) {1000 if (!defined('WPCF7_VERSION')) { 1002 1001 if (Plugin::instance()->editor->is_edit_mode()) { 1003 1002 ?> -
hq-widgets-for-elementor/trunk/inc/widget/theme/polylang-switcher.php
r2389368 r2404451 13 13 use const HQWidgetsForElementor\PLUGIN_SLUG; 14 14 use const HQWidgetsForElementor\VERSION; 15 use function HQWidgetsForElementor\is_plugin_active;16 15 17 16 class Polylang_Switcher extends Widget_Base { … … 47 46 48 47 protected function _register_controls() { 49 if (! is_plugin_active('polylang/polylang.php')) {48 if (!defined('POLYLANG_VERSION')) { 50 49 $this->start_controls_section('section_plugin_missing', [ 51 50 'label' => __('Polylang', 'hq-widgets-for-elementor'), … … 669 668 670 669 protected function render() { 671 if (! is_plugin_active('polylang/polylang.php')) {670 if (!defined('POLYLANG_VERSION')) { 672 671 \HQLib\Utils::editor_alert_box('Polylang plugin is missing.'); 673 672 return; … … 687 686 $listHtml = ''; 688 687 $currentHtml = ''; 689 688 690 689 foreach ($languages as $language) { 691 690 $this->remove_render_attribute('hq-polylang-menu-item', 'class'); … … 702 701 703 702 $this->add_render_attribute('hq-polylang-menu-item', 'class', 'menu-item'); 704 703 705 704 if ($language['current_lang']) { 706 705 $this->add_render_attribute('hq-polylang-menu-item', 'class', 'menu-item__active'); -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/add-to-cart.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Add_To_Cart extends Product_Add_To_Cart { … … 55 54 56 55 protected function _register_controls() { 57 if (! is_plugin_active('woocommerce/woocommerce.php')) {56 if (!defined('WC_VERSION')) { 58 57 $this->start_controls_section('section_plugin_missing', [ 59 58 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 124 123 125 124 protected function render() { 126 if (! is_plugin_active('woocommerce/woocommerce.php')) {125 if (!defined('WC_VERSION')) { 127 126 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 128 127 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/archive-description.php
r2389368 r2404451 9 9 use Elementor\Group_Control_Typography; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Archive_Description extends Widget_Base { … … 34 33 35 34 protected function _register_controls() { 36 if (! is_plugin_active('woocommerce/woocommerce.php')) {35 if (!defined('WC_VERSION')) { 37 36 $this->start_controls_section('section_plugin_missing', [ 38 37 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 121 120 122 121 protected function render() { 123 if (! is_plugin_active('woocommerce/woocommerce.php')) {122 if (!defined('WC_VERSION')) { 124 123 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 125 124 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/archive-product-add-to-cart.php
r2389368 r2404451 16 16 use const HQWidgetsForElementor\PLUGIN_SLUG; 17 17 use const HQWidgetsForElementor\PLUGIN_URL; 18 use function HQWidgetsForElementor\is_plugin_active;19 18 20 19 class Archive_Product_Add_To_Cart extends Widget_Button { … … 59 58 60 59 protected function _register_controls() { 61 if (! is_plugin_active('woocommerce/woocommerce.php')) {60 if (!defined('WC_VERSION')) { 62 61 $this->start_controls_section('section_plugin_missing', [ 63 62 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 338 337 339 338 protected function render() { 340 if (! is_plugin_active('woocommerce/woocommerce.php')) {339 if (!defined('WC_VERSION')) { 341 340 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 342 341 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/archive-products.php
r2389368 r2404451 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 10 use HQWidgetsForElementor\Widget\Woocommerce\Products_Base; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Archive_Products extends Products_Base { … … 38 37 39 38 protected function _register_controls() { 40 if (! is_plugin_active('woocommerce/woocommerce.php')) {39 if (!defined('WC_VERSION')) { 41 40 $this->start_controls_section('section_plugin_missing', [ 42 41 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 102 101 103 102 public function render() { 104 if (! is_plugin_active('woocommerce/woocommerce.php')) {103 if (!defined('WC_VERSION')) { 105 104 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 106 105 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/category-image.php
r2389368 r2404451 8 8 use Elementor\Controls_Manager; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Category_Image extends Widget_Image { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 57 56 58 57 protected function render() { 59 if (! is_plugin_active('woocommerce/woocommerce.php')) {58 if (!defined('WC_VERSION')) { 60 59 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 61 60 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/notices.php
r2389368 r2404451 14 14 use const HQWidgetsForElementor\PLUGIN_SLUG; 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 use function HQWidgetsForElementor\is_plugin_active;17 16 18 17 class Notices extends Widget_Base { … … 203 202 204 203 protected function render() { 205 if (! is_plugin_active('woocommerce/woocommerce.php')) {204 if (!defined('WC_VERSION')) { 206 205 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 207 206 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-add-to-cart.php
r2389368 r2404451 16 16 use const HQWidgetsForElementor\PLUGIN_SLUG; 17 17 use const HQWidgetsForElementor\PLUGIN_URL; 18 use function HQWidgetsForElementor\is_plugin_active;19 18 20 19 class Product_Add_To_Cart extends Widget_Button { … … 59 58 60 59 protected function _register_controls() { 61 if (! is_plugin_active('woocommerce/woocommerce.php')) {60 if (!defined('WC_VERSION')) { 62 61 $this->start_controls_section('section_plugin_missing', [ 63 62 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 720 719 721 720 protected function render() { 722 if (! is_plugin_active('woocommerce/woocommerce.php')) {721 if (!defined('WC_VERSION')) { 723 722 Utils::editor_alert_box('WooCommerce plugin is missing.'); 724 723 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-additional-information.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Product_Additional_Information extends Posts_Base { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 224 223 225 224 protected function render() { 226 if (! is_plugin_active('woocommerce/woocommerce.php')) {225 if (!defined('WC_VERSION')) { 227 226 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 228 227 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-categories-grid.php
r2389368 r2404451 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 16 use const HQWidgetsForElementor\VERSION; 17 use function HQWidgetsForElementor\is_plugin_active;18 17 19 18 class Product_Categories_Grid extends Widget_Base { … … 51 50 52 51 protected function _register_controls() { 53 if (! is_plugin_active('woocommerce/woocommerce.php')) {52 if (!defined('WC_VERSION')) { 54 53 $this->start_controls_section('section_plugin_missing', [ 55 54 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 568 567 569 568 public function render() { 570 if (! is_plugin_active('woocommerce/woocommerce.php')) {569 if (!defined('WC_VERSION')) { 571 570 Utils::editor_alert_box('WooCommerce plugin is missing.'); 572 571 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-content.php
r2389368 r2404451 10 10 use const HQWidgetsForElementor\PLUGIN_URL; 11 11 use const HQWidgetsForElementor\VERSION; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Content extends Post_Content { … … 45 44 46 45 protected function _register_controls() { 47 if (! is_plugin_active('woocommerce/woocommerce.php')) {46 if (!defined('WC_VERSION')) { 48 47 $this->start_controls_section('section_plugin_missing', [ 49 48 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 66 65 67 66 protected function render() { 68 if (! is_plugin_active('woocommerce/woocommerce.php')) {67 if (!defined('WC_VERSION')) { 69 68 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 70 69 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-data-tabs.php
r2389368 r2404451 18 18 use const HQWidgetsForElementor\PLUGIN_SLUG; 19 19 use const HQWidgetsForElementor\PLUGIN_URL; 20 use function HQWidgetsForElementor\is_plugin_active;21 20 22 21 class Product_Data_Tabs extends Posts_Base { … … 62 61 63 62 protected function _register_controls() { 64 if (! is_plugin_active('woocommerce/woocommerce.php')) {63 if (!defined('WC_VERSION')) { 65 64 $this->start_controls_section('section_plugin_missing', [ 66 65 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 1604 1603 1605 1604 protected function render() { 1606 if (! is_plugin_active('woocommerce/woocommerce.php')) {1605 if (!defined('WC_VERSION')) { 1607 1606 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 1608 1607 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-featured-image.php
r2389368 r2404451 8 8 use HQWidgetsForElementor\Widget\Theme\Post_Featured_Image; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Featured_Image extends Post_Featured_Image { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 55 54 56 55 protected function render() { 57 if (! is_plugin_active('woocommerce/woocommerce.php')) {56 if (!defined('WC_VERSION')) { 58 57 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 59 58 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-images.php
r2389368 r2404451 13 13 use const HQWidgetsForElementor\PLUGIN_SLUG; 14 14 use const HQWidgetsForElementor\PLUGIN_URL; 15 use function HQWidgetsForElementor\is_plugin_active;16 15 17 16 class Product_Images extends Posts_Base { … … 57 56 58 57 protected function _register_controls() { 59 if (! is_plugin_active('woocommerce/woocommerce.php')) {58 if (!defined('WC_VERSION')) { 60 59 $this->start_controls_section('section_plugin_missing', [ 61 60 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 466 465 467 466 public function render() { 468 if (! is_plugin_active('woocommerce/woocommerce.php')) {467 if (!defined('WC_VERSION')) { 469 468 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 470 469 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-link.php
r2389368 r2404451 8 8 use Elementor\Widget_Button; 9 9 use const HQWidgetsForElementor\PLUGIN_SLUG; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Link extends Widget_Button { … … 33 32 34 33 protected function _register_controls() { 35 if (! is_plugin_active('woocommerce/woocommerce.php')) {34 if (!defined('WC_VERSION')) { 36 35 $this->start_controls_section('section_plugin_missing', [ 37 36 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 63 62 64 63 protected function render() { 65 if (! is_plugin_active('woocommerce/woocommerce.php')) {64 if (!defined('WC_VERSION')) { 66 65 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 67 66 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-meta.php
r2389368 r2404451 10 10 use Elementor\Widget_Base; 11 11 use const HQWidgetsForElementor\PLUGIN_SLUG; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Meta extends Widget_Base { … … 35 34 36 35 protected function _register_controls() { 37 if (! is_plugin_active('woocommerce/woocommerce.php')) {36 if (!defined('WC_VERSION')) { 38 37 $this->start_controls_section('section_plugin_missing', [ 39 38 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 388 387 389 388 protected function render() { 390 if (! is_plugin_active('woocommerce/woocommerce.php')) {389 if (!defined('WC_VERSION')) { 391 390 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 392 391 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-price.php
r2389368 r2404451 14 14 use const HQWidgetsForElementor\PLUGIN_SLUG; 15 15 use const HQWidgetsForElementor\PLUGIN_URL; 16 use function HQWidgetsForElementor\is_plugin_active;17 16 18 17 class Product_Price extends Posts_Base { … … 48 47 49 48 protected function _register_controls() { 50 if (! is_plugin_active('woocommerce/woocommerce.php')) {49 if (!defined('WC_VERSION')) { 51 50 $this->start_controls_section('section_plugin_missing', [ 52 51 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 213 212 214 213 protected function render() { 215 if (! is_plugin_active('woocommerce/woocommerce.php')) {214 if (!defined('WC_VERSION')) { 216 215 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 217 216 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-rating.php
r2389368 r2404451 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 13 use const HQWidgetsForElementor\PLUGIN_URL; 14 use function HQWidgetsForElementor\is_plugin_active;15 14 16 15 class Product_Rating extends Widget_Base { … … 46 45 47 46 protected function _register_controls() { 48 if (! is_plugin_active('woocommerce/woocommerce.php')) {47 if (!defined('WC_VERSION')) { 49 48 $this->start_controls_section('section_plugin_missing', [ 50 49 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 213 212 214 213 protected function render() { 215 if (! is_plugin_active('woocommerce/woocommerce.php')) {214 if (!defined('WC_VERSION')) { 216 215 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 217 216 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-related-products-grid.php
r2389368 r2404451 7 7 use Elementor\Controls_Manager; 8 8 use HQWidgetsForElementor\Widget\Woocommerce\Product_Related_Products; 9 use function HQWidgetsForElementor\is_plugin_active;10 9 11 10 class Product_Related_Products_Grid extends Product_Related_Products { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 61 60 62 61 public function render() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 65 64 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-related-products-slider.php
r2389368 r2404451 8 8 use HQLib\Utils; 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Related_Products; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Product_Related_Products_Slider extends Product_Related_Products { … … 37 36 38 37 protected function _register_controls() { 39 if (! is_plugin_active('woocommerce/woocommerce.php')) {38 if (!defined('WC_VERSION')) { 40 39 $this->start_controls_section('section_plugin_missing', [ 41 40 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 62 61 63 62 public function render() { 64 if (! is_plugin_active('woocommerce/woocommerce.php')) {63 if (!defined('WC_VERSION')) { 65 64 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 66 65 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-reviews.php
r2389368 r2404451 17 17 use const HQWidgetsForElementor\PLUGIN_SLUG; 18 18 use const HQWidgetsForElementor\PLUGIN_URL; 19 use function HQWidgetsForElementor\is_plugin_active;20 19 21 20 class Product_Reviews extends Posts { … … 61 60 62 61 protected function _register_controls() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 $this->start_controls_section('section_plugin_missing', [ 65 64 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 1163 1162 1164 1163 public function render() { 1165 if (! is_plugin_active('woocommerce/woocommerce.php')) {1164 if (!defined('WC_VERSION')) { 1166 1165 Utils::editor_alert_box('WooCommerce plugin is missing.'); 1167 1166 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-short-description.php
r2389368 r2404451 10 10 use HQWidgetsForElementor\Widget\Posts_Base; 11 11 use const HQWidgetsForElementor\PLUGIN_SLUG; 12 use function HQWidgetsForElementor\is_plugin_active;13 12 14 13 class Product_Short_Description extends Posts_Base { … … 35 34 36 35 protected function _register_controls() { 37 if (! is_plugin_active('woocommerce/woocommerce.php')) {36 if (!defined('WC_VERSION')) { 38 37 $this->start_controls_section('section_plugin_missing', [ 39 38 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 114 113 115 114 protected function render() { 116 if (! is_plugin_active('woocommerce/woocommerce.php')) {115 if (!defined('WC_VERSION')) { 117 116 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 118 117 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-stock.php
r2389368 r2404451 11 11 use HQWidgetsForElementor\Widget\Posts_Base; 12 12 use const HQWidgetsForElementor\PLUGIN_SLUG; 13 use function HQWidgetsForElementor\is_plugin_active;14 13 15 14 class Product_Stock extends Posts_Base { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 263 262 264 263 protected function render() { 265 if (! is_plugin_active('woocommerce/woocommerce.php')) {264 if (!defined('WC_VERSION')) { 266 265 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 267 266 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-upsells-grid.php
r2389368 r2404451 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Upsells; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Product_Upsells_Grid extends Product_Upsells { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 67 66 68 67 public function render() { 69 if (! is_plugin_active('woocommerce/woocommerce.php')) {68 if (!defined('WC_VERSION')) { 70 69 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 71 70 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-upsells-slider.php
r2389368 r2404451 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Product_Upsells; 10 10 use const HQWidgetsForElementor\PLUGIN_SLUG; 11 use function HQWidgetsForElementor\is_plugin_active;12 11 13 12 class Product_Upsells_Slider extends Product_Upsells { … … 42 41 43 42 protected function _register_controls() { 44 if (! is_plugin_active('woocommerce/woocommerce.php')) {43 if (!defined('WC_VERSION')) { 45 44 $this->start_controls_section('section_plugin_missing', [ 46 45 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 67 66 68 67 public function render() { 69 if (! is_plugin_active('woocommerce/woocommerce.php')) {68 if (!defined('WC_VERSION')) { 70 69 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 71 70 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/products-grid.php
r2389368 r2404451 8 8 use const HQWidgetsForElementor\PLUGIN_SLUG; 9 9 use HQWidgetsForElementor\Widget\Woocommerce\Products; 10 use function HQWidgetsForElementor\is_plugin_active;11 10 12 11 class Products_Grid extends Products { … … 37 36 38 37 protected function _register_controls() { 39 if (! is_plugin_active('woocommerce/woocommerce.php')) {38 if (!defined('WC_VERSION')) { 40 39 $this->start_controls_section('section_plugin_missing', [ 41 40 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 68 67 69 68 public function render() { 70 if (! is_plugin_active('woocommerce/woocommerce.php')) {69 if (!defined('WC_VERSION')) { 71 70 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 72 71 return; -
hq-widgets-for-elementor/trunk/inc/widget/woocommerce/products-slider.php
r2389368 r2404451 7 7 use Elementor\Controls_Manager; 8 8 use HQWidgetsForElementor\Widget\Woocommerce\Products; 9 use function HQWidgetsForElementor\is_plugin_active;10 9 11 10 class Products_Slider extends Products { … … 36 35 37 36 protected function _register_controls() { 38 if (! is_plugin_active('woocommerce/woocommerce.php')) {37 if (!defined('WC_VERSION')) { 39 38 $this->start_controls_section('section_plugin_missing', [ 40 39 'label' => __('Woocommerce', 'hq-widgets-for-elementor'), … … 61 60 62 61 public function render() { 63 if (! is_plugin_active('woocommerce/woocommerce.php')) {62 if (!defined('WC_VERSION')) { 64 63 \HQLib\Utils::editor_alert_box('WooCommerce plugin is missing.'); 65 64 return; -
hq-widgets-for-elementor/trunk/readme.txt
r2400865 r2404451 5 5 Tested up to: 5.5 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPL v2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 138 138 = 1.0.2 - 2020-09-20 = 139 139 * Fixing some visual bugs 140 141 = 1.0.3 - 2020-10-22 = 142 * Fix Marmot theme dashboard redirect dependency 143 * Improving widgets dependencies
Note: See TracChangeset
for help on using the changeset viewer.