Plugin Directory

Changeset 2481601


Ignore:
Timestamp:
02/25/2021 04:43:02 PM (5 years ago)
Author:
hqtheme
Message:

Add Dependency version check

Location:
hq-widgets-for-elementor
Files:
32 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hq-widgets-for-elementor/tags/1.0.10/hq-widgets-for-elementor.php

    r2477060 r2481601  
    55 * 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
    66 * 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.9
     7 * Version:           1.0.10
    88 * Requires at least: 5.3
    99 * Requires PHP:      7.2
     
    6161 * @var string
    6262 */
    63 const VERSION = '1.0.9';
     63const VERSION = '1.0.10';
    6464
    6565// Load Autoloader
  • hq-widgets-for-elementor/tags/1.0.10/inc/admin/admin-settings.php

    r2477060 r2481601  
    6060                        $contentAfter = '<div class="mt-3 border-top-dotted">' . $widget_requires_check->html . '</div>';
    6161                    }
    62                     $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     62                    if (empty($widget_config['demo_url'])) {
     63                        $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     64                    } else {
     65                        $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     66                    }
    6367                    $widgets->add_field(
    6468                            \HQLib\Field::mk('html', $widget_key)
     
    102106            foreach ($module_widgets as $widget_key => $widget_config) {
    103107                $widget_requires_check = \HQLib\Helper::field_requires_check($widget_config);
    104                 $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     108                if (empty($widget_config['demo_url'])) {
     109                    $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     110                } else {
     111                    $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     112                }
    105113                $core_widgets->add_field(
    106114                        \HQLib\Field::mk('checkbox', $widget_key, _x($widget_config['name'], 'admin widgets', 'hq-widgets-for-elementor'))
     
    121129            foreach ($module_widgets as $widget_key => $widget_config) {
    122130                $widget_requires_check = \HQLib\Helper::field_requires_check($widget_config);
    123                 $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     131                if (empty($widget_config['demo_url'])) {
     132                    $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     133                } else {
     134                    $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     135                }
    124136                $third_party_widgets->add_field(
    125137                        \HQLib\Field::mk('checkbox', $widget_key, _x($widget_config['name'], 'admin widgets', 'hq-widgets-for-elementor'))
  • hq-widgets-for-elementor/tags/1.0.10/inc/control/group-control-posts.php

    r2477060 r2481601  
    1616
    1717    public static function get_type() {
    18         return 'posts';
     18        return 'hq-posts';
    1919    }
    2020
     
    2929            'label' => _x('Posts Ids', 'hq-widgets-for-elementor'),
    3030            'type' => Controls_Manager::TEXT,
     31            'description' => __('Select posts by id (comma-separated list of ids)', 'hq-widgets-for-elementor'),
    3132        ];
    3233
  • hq-widgets-for-elementor/tags/1.0.10/inc/dependencies.php

    r2404451 r2481601  
    2525            'file' => 'hqtheme-extra/hqtheme-extra.php',
    2626            'constant' => '\HQExtra\VERSION',
     27            'min_version' => '1.0.12',
    2728            'required' => true,
    2829            'dismiss' => false,
     
    3233            'file' => 'elementor/elementor.php',
    3334            'constant' => '\ELEMENTOR_VERSION',
     35            'min_version' => '3.1.0',
    3436            'required' => true,
    3537            'dismiss' => false,
     
    114116                    Admin_Notifications::instance()->add_notice('plugin_' . $plugin_name, $type, $message, $plugin_data['dismiss']);
    115117                }
     118            } else {
     119                // Check min version
     120                $installed_plugin_version = self::get_installed_plugin_version($plugin_data['file']);
     121                if (!empty($plugin_data['min_version']) && version_compare($installed_plugin_version, $plugin_data['min_version'], '<')) {
     122                    $this->is_dependencies_met = false;
     123                    // Check other plugins only in admin
     124                    if (!is_admin()) {
     125                        return;
     126                    }
     127                    $message_template_update = _x('<b>%s</b> is not working because you need to install <b>%s minimum version %s</b> plugin.', 'plugin dependency', 'hq-widgets-for-elementor');
     128
     129                    $type = 'error';
     130                    $update_url = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=' . $plugin_data['file']), 'upgrade-plugin_' . $plugin_data['file']);
     131
     132                    $message = '<p>' . sprintf($message_template_update, $this->currnet_plugin_name, $plugin_data['name'], $plugin_data['min_version']) . '</p>';
     133                    $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s %s</a>', $update_url, _x('Update', 'plugin dependency', 'hq-widgets-for-elementor'), $plugin_data['name']) . '</p>';
     134                    Admin_Notifications::instance()->add_notice('plugin_' . $plugin_name, $type, $message, $plugin_data['dismiss']);
     135                }
    116136            }
    117137        }
    118138    }
    119139
     140    public static function get_installed_plugin_version($activation) {
     141        require_once (ABSPATH . 'wp-admin/includes/plugin.php');
     142        $allPlugins = get_plugins();
     143
     144        if (empty($allPlugins[$activation])) {
     145            return false;
     146        }
     147
     148        return $allPlugins[$activation]['Version'];
     149    }
     150
    120151}
  • hq-widgets-for-elementor/tags/1.0.10/inc/responsive.php

    r2470080 r2481601  
    6565        // Prevent loop
    6666        remove_action('elementor/core/files/clear_cache', ['HQWidgetsForElementor\Responsive', 'compile_stylesheet_templates']);
    67        
     67
    6868        foreach (self::get_stylesheet_templates() as $file_name => $template_path) {
    6969            self::compile_stylesheet_template($file_name, $template_path);
     
    9292     */
    9393    private static function get_stylesheet_templates() {
    94         // Add widgets templates
    95         $templates = apply_filters('hqt/responsive/get_stylesheet_templates', self::get_widgets_stylesheet_templates());
    96         return apply_filters('elementor/core/responsive/get_stylesheet_templates', $templates);
     94        return apply_filters('hqt/responsive/get_stylesheet_templates', self::get_widgets_stylesheet_templates());
    9795    }
    9896
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/posts-base.php

    r2477060 r2481601  
    107107                    <article id="post-<?php the_ID(); ?>" <?php post_class($masonryCssClass); ?>>
    108108                        <?php
    109                         Utils::load_elementor_template($settings['post_layout_template']);
     109                        Utils::load_elementor_template_with_help($settings['post_layout_template'], 'Content Tab > Layout > Post Layout');
    110110                        ?>
    111111                    </article>
     
    145145                    <article id="post-<?php the_ID(); ?>">
    146146                        <?php
    147                         Utils::load_elementor_template($settings['post_layout_template']);
     147                        Utils::load_elementor_template_with_help($settings['post_layout_template'], 'Content Tab > Layout > Post Layout');
    148148                        ?>
    149149                    </article>
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/products-base.php

    r2477060 r2481601  
    7676                    <div id="product-<?php the_ID(); ?>" <?php post_class($masonryCssClass); ?>>
    7777                        <?php
    78                         Utils::load_elementor_template($settings['product_layout_template']);
     78                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    7979                        ?>
    8080                    </div>
     
    116116                    <div id="product-<?php the_ID(); ?>">
    117117                        <?php
    118                         Utils::load_elementor_template($settings['product_layout_template']);
     118                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    119119                        ?>
    120120                    </div>
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/theme/archive-posts.php

    r2389368 r2481601  
    8282         * Allow third party plugins to change query params
    8383         */
    84         $query_vars = apply_filters('elementor/theme/posts_archive/query_posts/query_vars', $query_vars);
     84        $query_vars = apply_filters('hqt/widget/posts_archive/query_posts/query_vars', $query_vars);
    8585
    8686        // Check if params are changed
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/theme/search-results.php

    r2477060 r2481601  
    133133         * Allow third party plugins to change query params
    134134         */
    135         $query_vars = apply_filters('elementor/theme/posts_search/query_posts/query_vars', $query_vars);
     135        $query_vars = apply_filters('hqt/widget/posts_search/query_posts/query_vars', $query_vars);
    136136
    137137        // Check if params are changed
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/widgets-control.php

    r2477060 r2481601  
    3636                'default_activation' => 'on',
    3737                'icon_class' => 'hq-icon-arrows',
    38                 'demo_url' => 'https://marmot.hqwebs.net/',
     38            //'demo_url' => 'https://marmot.hqwebs.net/',
    3939            ],
    4040            'countdown-timer' => [
    4141                'type' => 'free',
    4242                'name' => 'Countdown Timer',
    43                 'default_activation' => 'on',
     43                'default_activation' => 'off',
    4444                'icon_class' => 'hq-icon-chronometer',
    45                 'demo_url' => 'https://marmot.hqwebs.net/',
    4645            ],
    4746            'elementor-global-template' => [
    4847                'type' => 'free',
    4948                'name' => 'Elementor Global Template',
    50                 'default_activation' => 'off',
     49                'default_activation' => 'on',
    5150                'icon_class' => 'hq-icon-global-template',
    52                 'demo_url' => 'https://marmot.hqwebs.net/',
    5351            ],
    5452            'flip-box' => [
     
    5755                'default_activation' => 'on',
    5856                'icon_class' => 'hq-icon-flip',
    59                 'demo_url' => 'https://marmot.hqwebs.net/',
    6057            ],
    6158            'modal-box' => [
     
    6461                'default_activation' => 'on',
    6562                'icon_class' => 'hq-icon-send',
    66                 'demo_url' => 'https://marmot.hqwebs.net/',
    6763            ],
    6864            'nav-menu' => [
     
    7167                'default_activation' => 'on',
    7268                'icon_class' => 'hq-icon-navigation-menu',
    73                 'demo_url' => 'https://marmot.hqwebs.net/',
    7469            ],
    7570            'social-share' => [
    7671                'type' => 'free',
    7772                'name' => 'Social Share',
    78                 'default_activation' => 'off',
     73                'default_activation' => 'on',
    7974                'icon_class' => 'hq-icon-social-share',
    80                 'demo_url' => 'https://marmot.hqwebs.net/',
    8175            ],
    8276            // Blog
     
    8680                'default_activation' => 'on',
    8781                'icon_class' => 'hq-icon-list',
    88                 'demo_url' => 'https://marmot.hqwebs.net/',
    8982            ],
    9083            'archive-title' => [
     
    9386                'default_activation' => 'on',
    9487                'icon_class' => 'hq-icon-text-tool',
    95                 'demo_url' => 'https://marmot.hqwebs.net/',
    9688            ],
    9789            'posts-grid' => [
     
    10092                'default_activation' => 'on',
    10193                'icon_class' => 'hq-icon-wireframe-list',
    102                 'demo_url' => 'https://marmot.hqwebs.net/',
    10394            ],
    10495            'posts-slider' => [
     
    10798                'default_activation' => 'on',
    10899                'icon_class' => 'hq-icon-layer-slider',
    109                 'demo_url' => 'https://marmot.hqwebs.net/',
    110100            ],
    111101            'search-results' => [
     
    114104                'default_activation' => 'on',
    115105                'icon_class' => 'hq-icon-grid-bordered',
    116                 'demo_url' => 'https://marmot.hqwebs.net/',
    117106            ],
    118107            'author-box' => [
     
    121110                'default_activation' => 'on',
    122111                'icon_class' => 'hq-icon-author-box',
    123                 'demo_url' => 'https://marmot.hqwebs.net/',
    124112            ],
    125113            'post-comments' => [
     
    128116                'default_activation' => 'on',
    129117                'icon_class' => 'hq-icon-conversation',
    130                 'demo_url' => 'https://marmot.hqwebs.net/',
    131118            ],
    132119            'post-content' => [
     
    135122                'default_activation' => 'on',
    136123                'icon_class' => 'hq-icon-content-writing',
    137                 'demo_url' => 'https://marmot.hqwebs.net/',
    138124            ],
    139125            'post-excerpt' => [
     
    142128                'default_activation' => 'on',
    143129                'icon_class' => 'hq-icon-document-add',
    144                 'demo_url' => 'https://marmot.hqwebs.net/',
    145130            ],
    146131            'post-featured-image' => [
     
    149134                'default_activation' => 'on',
    150135                'icon_class' => 'hq-icon-adjust',
    151                 'demo_url' => 'https://marmot.hqwebs.net/',
    152136            ],
    153137            'post-link' => [
     
    156140                'default_activation' => 'on',
    157141                'icon_class' => 'hq-icon-link',
    158                 'demo_url' => 'https://marmot.hqwebs.net/',
    159142            ],
    160143            'post-meta-data' => [
     
    163146                'default_activation' => 'on',
    164147                'icon_class' => 'hq-icon-menu-dots-horizontal',
    165                 'demo_url' => 'https://marmot.hqwebs.net/',
    166148            ],
    167149            'post-navigation' => [
     
    170152                'default_activation' => 'on',
    171153                'icon_class' => 'hq-icon-transfer',
    172                 'demo_url' => 'https://marmot.hqwebs.net/',
    173154            ],
    174155            'post-taxonomies' => [
     
    177158                'default_activation' => 'on',
    178159                'icon_class' => 'hq-icon-price-tag',
    179                 'demo_url' => 'https://marmot.hqwebs.net/',
    180160            ],
    181161            'post-title' => [
     
    184164                'default_activation' => 'on',
    185165                'icon_class' => 'hq-icon-title',
    186                 'demo_url' => 'https://marmot.hqwebs.net/',
    187166            ],
    188167            'post-related-posts-slider' => [
     
    191170                'default_activation' => 'on',
    192171                'icon_class' => 'hq-icon-carousel',
    193                 'demo_url' => 'https://marmot.hqwebs.net/',
    194172            ],
    195173            'post-related-posts-grid' => [
     
    198176                'default_activation' => 'on',
    199177                'icon_class' => 'hq-icon-posts-grid',
    200                 'demo_url' => 'https://marmot.hqwebs.net/',
    201178            ],
    202179        ],
     
    217194                'default_activation' => 'on',
    218195                'icon_class' => 'hq-icon-contact',
    219                 'demo_url' => 'https://marmot.hqwebs.net/',
    220196                'requires' => [
    221197                    'contact-form-seven' => [
     
    233209                'default_activation' => 'off',
    234210                'icon_class' => 'hq-icon-message',
    235                 'demo_url' => 'https://marmot.hqwebs.net/',
    236211                'requires' => [
    237212                    'wp-forms' => [
     
    249224                'default_activation' => 'off',
    250225                'icon_class' => 'hq-icon-translator',
    251                 'demo_url' => 'https://marmot.hqwebs.net/',
    252226                'requires' => [
    253227                    'polylang' => [
     
    267241                'default_activation' => 'on',
    268242                'icon_class' => 'hq-icon-products-layout',
    269                 'demo_url' => 'https://marmot.hqwebs.net/',
    270243                'requires' => [
    271244                    'woocommerce' => [
     
    283256                'default_activation' => 'on',
    284257                'icon_class' => 'hq-icon-quill',
    285                 'demo_url' => 'https://marmot.hqwebs.net/',
    286258                'requires' => [
    287259                    'woocommerce' => [
     
    299271                'default_activation' => 'on',
    300272                'icon_class' => 'hq-icon-archive-product-add-to-cart',
    301                 'demo_url' => 'https://marmot.hqwebs.net/',
    302273                'requires' => [
    303274                    'woocommerce' => [
     
    315286                'default_activation' => 'on',
    316287                'icon_class' => 'hq-icon-document',
    317                 'demo_url' => 'https://marmot.hqwebs.net/',
    318288                'requires' => [
    319289                    'woocommerce' => [
     
    331301                'default_activation' => 'on',
    332302                'icon_class' => 'hq-icon-warning',
    333                 'demo_url' => 'https://marmot.hqwebs.net/',
    334303                'requires' => [
    335304                    'woocommerce' => [
     
    347316                'default_activation' => 'on',
    348317                'icon_class' => 'hq-icon-add-to-cart',
    349                 'demo_url' => 'https://marmot.hqwebs.net/',
    350318                'requires' => [
    351319                    'woocommerce' => [
     
    363331                'default_activation' => 'on',
    364332                'icon_class' => 'hq-icon-product-add-to-cart',
    365                 'demo_url' => 'https://marmot.hqwebs.net/',
    366333                'requires' => [
    367334                    'woocommerce' => [
     
    379346                'default_activation' => 'on',
    380347                'icon_class' => 'hq-icon-product-additional-information',
    381                 'demo_url' => 'https://marmot.hqwebs.net/',
    382348                'requires' => [
    383349                    'woocommerce' => [
     
    395361                'default_activation' => 'on',
    396362                'icon_class' => 'hq-icon-grid',
    397                 'demo_url' => 'https://marmot.hqwebs.net/',
    398363                'requires' => [
    399364                    'woocommerce' => [
     
    411376                'default_activation' => 'on',
    412377                'icon_class' => 'hq-icon-product-content',
    413                 'demo_url' => 'https://marmot.hqwebs.net/',
    414378                'requires' => [
    415379                    'woocommerce' => [
     
    427391                'default_activation' => 'on',
    428392                'icon_class' => 'hq-icon-tabs',
    429                 'demo_url' => 'https://marmot.hqwebs.net/',
    430393                'requires' => [
    431394                    'woocommerce' => [
     
    443406                'default_activation' => 'on',
    444407                'icon_class' => 'hq-icon-add-photo',
    445                 'demo_url' => 'https://marmot.hqwebs.net/',
    446408                'requires' => [
    447409                    'woocommerce' => [
     
    459421                'default_activation' => 'on',
    460422                'icon_class' => 'hq-icon-wireframe-featured',
    461                 'demo_url' => 'https://marmot.hqwebs.net/',
    462423                'requires' => [
    463424                    'woocommerce' => [
     
    475436                'default_activation' => 'on',
    476437                'icon_class' => 'hq-icon-add',
    477                 'demo_url' => 'https://marmot.hqwebs.net/',
    478438                'requires' => [
    479439                    'woocommerce' => [
     
    491451                'default_activation' => 'on',
    492452                'icon_class' => 'hq-icon-metadata',
    493                 'demo_url' => 'https://marmot.hqwebs.net/',
    494453                'requires' => [
    495454                    'woocommerce' => [
     
    507466                'default_activation' => 'on',
    508467                'icon_class' => 'hq-icon-price-label',
    509                 'demo_url' => 'https://marmot.hqwebs.net/',
    510468                'requires' => [
    511469                    'woocommerce' => [
     
    523481                'default_activation' => 'on',
    524482                'icon_class' => 'hq-icon-product-rating',
    525                 'demo_url' => 'https://marmot.hqwebs.net/',
    526483                'requires' => [
    527484                    'woocommerce' => [
     
    539496                'default_activation' => 'on',
    540497                'icon_class' => 'hq-icon-feedback',
    541                 'demo_url' => 'https://marmot.hqwebs.net/',
    542498                'requires' => [
    543499                    'woocommerce' => [
     
    555511                'default_activation' => 'on',
    556512                'icon_class' => 'hq-icon-text-image',
    557                 'demo_url' => 'https://marmot.hqwebs.net/',
    558513                'requires' => [
    559514                    'woocommerce' => [
     
    571526                'default_activation' => 'on',
    572527                'icon_class' => 'hq-icon-vote',
    573                 'demo_url' => 'https://marmot.hqwebs.net/',
    574528                'requires' => [
    575529                    'woocommerce' => [
     
    587541                'default_activation' => 'on',
    588542                'icon_class' => 'hq-icon-transform-text',
    589                 'demo_url' => 'https://marmot.hqwebs.net/',
    590543                'requires' => [
    591544                    'woocommerce' => [
     
    603556                'default_activation' => 'on',
    604557                'icon_class' => 'hq-icon-wireframe-list-mix',
    605                 'demo_url' => 'https://marmot.hqwebs.net/',
    606558                'requires' => [
    607559                    'woocommerce' => [
     
    619571                'default_activation' => 'on',
    620572                'icon_class' => 'hq-icon-slider-2',
    621                 'demo_url' => 'https://marmot.hqwebs.net/',
    622573                'requires' => [
    623574                    'woocommerce' => [
     
    635586                'default_activation' => 'on',
    636587                'icon_class' => 'hq-icon-advertisement',
    637                 'demo_url' => 'https://marmot.hqwebs.net/',
    638588                'requires' => [
    639589                    'woocommerce' => [
     
    651601                'default_activation' => 'on',
    652602                'icon_class' => 'hq-icon-product-upsell-slider',
    653                 'demo_url' => 'https://marmot.hqwebs.net/',
    654603                'requires' => [
    655604                    'woocommerce' => [
     
    667616                'default_activation' => 'on',
    668617                'icon_class' => 'hq-icon-slider',
    669                 'demo_url' => 'https://marmot.hqwebs.net/',
    670618                'requires' => [
    671619                    'woocommerce' => [
     
    683631                'default_activation' => 'on',
    684632                'icon_class' => 'hq-icon-pixels',
    685                 'demo_url' => 'https://marmot.hqwebs.net/',
    686633                'requires' => [
    687634                    'woocommerce' => [
     
    711658                    'categories' => ['hq-widgets-for-elementor'],
    712659                    'icon_class' => 'hq-icon-flip-box',
    713                     'demo_url' => 'https://marmot.hqwebs.net/',
    714660                    'requires' => [
    715661                        'marmot-enhancer-pro' => [
     
    726672                    'categories' => ['hq-widgets-for-elementor'],
    727673                    'icon_class' => 'hq-icon-advanced-icon-box',
    728                     'demo_url' => 'https://marmot.hqwebs.net/',
    729674                    'requires' => [
    730675                        'marmot-enhancer-pro' => [
     
    741686                    'categories' => ['hq-widgets-for-elementor'],
    742687                    'icon_class' => 'hq-icon-menu',
    743                     'demo_url' => 'https://marmot.hqwebs.net/',
    744688                    'requires' => [
    745689                        'marmot-enhancer-pro' => [
     
    760704                    'categories' => ['hq-widgets-for-elementor'],
    761705                    'icon_class' => 'hq-icon-email',
    762                     'demo_url' => 'https://marmot.hqwebs.net/',
    763706                    'requires' => [
    764707                        'marmot-enhancer-pro' => [
     
    775718                    'categories' => ['hq-widgets-for-elementor'],
    776719                    'icon_class' => 'hq-icon-open-table-reservations',
    777                     'demo_url' => 'https://marmot.hqwebs.net/',
    778720                    'requires' => [
    779721                        'marmot-enhancer-pro' => [
     
    792734                    'categories' => ['hq-widgets-for-elementor-woo'],
    793735                    'icon_class' => 'hq-icon-shopping-basket',
    794                     'demo_url' => 'https://marmot.hqwebs.net/',
    795736                    'requires' => [
    796737                        'marmot-enhancer-pro' => [
     
    807748                    'categories' => ['hq-widgets-for-elementor-woo'],
    808749                    'icon_class' => 'hq-icon-woo-product-cross-sell',
    809                     'demo_url' => 'https://marmot.hqwebs.net/',
    810750                    'requires' => [
    811751                        'marmot-enhancer-pro' => [
     
    822762                    'categories' => ['hq-widgets-for-elementor-woo'],
    823763                    'icon_class' => 'hq-icon-online-payment',
    824                     'demo_url' => 'https://marmot.hqwebs.net/',
    825764                    'requires' => [
    826765                        'marmot-enhancer-pro' => [
     
    837776                    'categories' => ['hq-widgets-for-elementor-woo'],
    838777                    'icon_class' => 'hq-icon-purchasing',
    839                     'demo_url' => 'https://marmot.hqwebs.net/',
    840778                    'requires' => [
    841779                        'marmot-enhancer-pro' => [
     
    852790                    'categories' => ['hq-widgets-for-elementor-woo'],
    853791                    'icon_class' => 'hq-icon-checkout-flow',
    854                     'demo_url' => 'https://marmot.hqwebs.net/',
    855792                    'requires' => [
    856793                        'marmot-enhancer-pro' => [
     
    867804                    'categories' => ['hq-widgets-for-elementor-woo'],
    868805                    'icon_class' => 'hq-icon-woo-sale',
    869                     'demo_url' => 'https://marmot.hqwebs.net/',
    870806                    'requires' => [
    871807                        'marmot-enhancer-pro' => [
     
    882818                    'categories' => ['hq-widgets-for-elementor-woo'],
    883819                    'icon_class' => 'hq-icon-online-shopping-3',
    884                     'demo_url' => 'https://marmot.hqwebs.net/',
    885820                    'requires' => [
    886821                        'marmot-enhancer-pro' => [
     
    976911            $promotion_widgets = $config['promotionWidgets'];
    977912        }
    978        
     913
    979914        $hq_promotional_widgets = [];
    980915        foreach (self::$pro_widgets as $group_type) {
     
    990925            }
    991926        }
    992        
     927
    993928        $config['promotionWidgets'] = array_merge($promotion_widgets, $hq_promotional_widgets);
    994929
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/woocommerce/archive-products.php

    r2463415 r2481601  
    8686        $query_vars = $wp_query->query_vars;
    8787
    88         $query_vars = apply_filters('elementor/theme/products_archive/query_posts/query_vars', $query_vars);
     88        $query_vars = apply_filters('hqt/widget/products_archive/query_posts/query_vars', $query_vars);
    8989
    9090        if ($query_vars !== $wp_query->query_vars) {
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/woocommerce/product-related-products-grid.php

    r2452713 r2481601  
    8282                <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8383                    <?php
    84                     Utils::load_elementor_template($settings['product_layout_template']);
     84                    Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8585                    ?>
    8686                </div>
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/woocommerce/product-related-products-slider.php

    r2452713 r2481601  
    8181                    <div id="product-<?php the_ID(); ?>">
    8282                        <?php
    83                         Utils::load_elementor_template($settings['product_layout_template']);
     83                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8484                        ?>
    8585                    </div>
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/woocommerce/product-upsells-grid.php

    r2452713 r2481601  
    8686                <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8787                    <?php
    88                     Utils::load_elementor_template($settings['product_layout_template']);
     88                    Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8989                    ?>
    9090                </div>
  • hq-widgets-for-elementor/tags/1.0.10/inc/widget/woocommerce/product-upsells-slider.php

    r2452713 r2481601  
    8686                    <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8787                        <?php
    88                         Utils::load_elementor_template($settings['product_layout_template']);
     88                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8989                        ?>
    9090                    </div>
  • hq-widgets-for-elementor/tags/1.0.10/readme.txt

    r2477060 r2481601  
    33Tags: hqtheme, widgets for elementor, woocommerce, menu for elementor, contact form 7 for elementor
    44Requires at least: 5.3
    5 Tested up to: 5.5
     5Tested up to: 5.6
    66Requires PHP: 7.2
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPL v3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    129129== Changelog ==
    130130
     131= 1.0.10 - 2021-02-25 =
     132* Update WordPress version compatibility
     133* Elementor Global Template widget - enabled by default
     134* Social Share widget - enabled by default
     135* Add Dependency version check
     136
    131137= 1.0.9 - 2021-02-18 =
    132138* Added Promotional widgets in Elementor editor
  • hq-widgets-for-elementor/trunk/hq-widgets-for-elementor.php

    r2477060 r2481601  
    55 * 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
    66 * 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.9
     7 * Version:           1.0.10
    88 * Requires at least: 5.3
    99 * Requires PHP:      7.2
     
    6161 * @var string
    6262 */
    63 const VERSION = '1.0.9';
     63const VERSION = '1.0.10';
    6464
    6565// Load Autoloader
  • hq-widgets-for-elementor/trunk/inc/admin/admin-settings.php

    r2477060 r2481601  
    6060                        $contentAfter = '<div class="mt-3 border-top-dotted">' . $widget_requires_check->html . '</div>';
    6161                    }
    62                     $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     62                    if (empty($widget_config['demo_url'])) {
     63                        $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     64                    } else {
     65                        $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     66                    }
    6367                    $widgets->add_field(
    6468                            \HQLib\Field::mk('html', $widget_key)
     
    102106            foreach ($module_widgets as $widget_key => $widget_config) {
    103107                $widget_requires_check = \HQLib\Helper::field_requires_check($widget_config);
    104                 $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     108                if (empty($widget_config['demo_url'])) {
     109                    $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     110                } else {
     111                    $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     112                }
    105113                $core_widgets->add_field(
    106114                        \HQLib\Field::mk('checkbox', $widget_key, _x($widget_config['name'], 'admin widgets', 'hq-widgets-for-elementor'))
     
    121129            foreach ($module_widgets as $widget_key => $widget_config) {
    122130                $widget_requires_check = \HQLib\Helper::field_requires_check($widget_config);
    123                 $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     131                if (empty($widget_config['demo_url'])) {
     132                    $description = sprintf('<i class="%1$s"></i>', $widget_config['icon_class']);
     133                } else {
     134                    $description = sprintf('<i class="%1$s"></i><a href="%2$s" class="btn-widget-demo" target="_blank"><i class="eicon-device-desktop"></i></a>', $widget_config['icon_class'], $widget_config['demo_url']);
     135                }
    124136                $third_party_widgets->add_field(
    125137                        \HQLib\Field::mk('checkbox', $widget_key, _x($widget_config['name'], 'admin widgets', 'hq-widgets-for-elementor'))
  • hq-widgets-for-elementor/trunk/inc/control/group-control-posts.php

    r2477060 r2481601  
    1616
    1717    public static function get_type() {
    18         return 'posts';
     18        return 'hq-posts';
    1919    }
    2020
     
    2929            'label' => _x('Posts Ids', 'hq-widgets-for-elementor'),
    3030            'type' => Controls_Manager::TEXT,
     31            'description' => __('Select posts by id (comma-separated list of ids)', 'hq-widgets-for-elementor'),
    3132        ];
    3233
  • hq-widgets-for-elementor/trunk/inc/dependencies.php

    r2404451 r2481601  
    2525            'file' => 'hqtheme-extra/hqtheme-extra.php',
    2626            'constant' => '\HQExtra\VERSION',
     27            'min_version' => '1.0.12',
    2728            'required' => true,
    2829            'dismiss' => false,
     
    3233            'file' => 'elementor/elementor.php',
    3334            'constant' => '\ELEMENTOR_VERSION',
     35            'min_version' => '3.1.0',
    3436            'required' => true,
    3537            'dismiss' => false,
     
    114116                    Admin_Notifications::instance()->add_notice('plugin_' . $plugin_name, $type, $message, $plugin_data['dismiss']);
    115117                }
     118            } else {
     119                // Check min version
     120                $installed_plugin_version = self::get_installed_plugin_version($plugin_data['file']);
     121                if (!empty($plugin_data['min_version']) && version_compare($installed_plugin_version, $plugin_data['min_version'], '<')) {
     122                    $this->is_dependencies_met = false;
     123                    // Check other plugins only in admin
     124                    if (!is_admin()) {
     125                        return;
     126                    }
     127                    $message_template_update = _x('<b>%s</b> is not working because you need to install <b>%s minimum version %s</b> plugin.', 'plugin dependency', 'hq-widgets-for-elementor');
     128
     129                    $type = 'error';
     130                    $update_url = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=' . $plugin_data['file']), 'upgrade-plugin_' . $plugin_data['file']);
     131
     132                    $message = '<p>' . sprintf($message_template_update, $this->currnet_plugin_name, $plugin_data['name'], $plugin_data['min_version']) . '</p>';
     133                    $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s %s</a>', $update_url, _x('Update', 'plugin dependency', 'hq-widgets-for-elementor'), $plugin_data['name']) . '</p>';
     134                    Admin_Notifications::instance()->add_notice('plugin_' . $plugin_name, $type, $message, $plugin_data['dismiss']);
     135                }
    116136            }
    117137        }
    118138    }
    119139
     140    public static function get_installed_plugin_version($activation) {
     141        require_once (ABSPATH . 'wp-admin/includes/plugin.php');
     142        $allPlugins = get_plugins();
     143
     144        if (empty($allPlugins[$activation])) {
     145            return false;
     146        }
     147
     148        return $allPlugins[$activation]['Version'];
     149    }
     150
    120151}
  • hq-widgets-for-elementor/trunk/inc/responsive.php

    r2470080 r2481601  
    6565        // Prevent loop
    6666        remove_action('elementor/core/files/clear_cache', ['HQWidgetsForElementor\Responsive', 'compile_stylesheet_templates']);
    67        
     67
    6868        foreach (self::get_stylesheet_templates() as $file_name => $template_path) {
    6969            self::compile_stylesheet_template($file_name, $template_path);
     
    9292     */
    9393    private static function get_stylesheet_templates() {
    94         // Add widgets templates
    95         $templates = apply_filters('hqt/responsive/get_stylesheet_templates', self::get_widgets_stylesheet_templates());
    96         return apply_filters('elementor/core/responsive/get_stylesheet_templates', $templates);
     94        return apply_filters('hqt/responsive/get_stylesheet_templates', self::get_widgets_stylesheet_templates());
    9795    }
    9896
  • hq-widgets-for-elementor/trunk/inc/widget/posts-base.php

    r2477060 r2481601  
    107107                    <article id="post-<?php the_ID(); ?>" <?php post_class($masonryCssClass); ?>>
    108108                        <?php
    109                         Utils::load_elementor_template($settings['post_layout_template']);
     109                        Utils::load_elementor_template_with_help($settings['post_layout_template'], 'Content Tab > Layout > Post Layout');
    110110                        ?>
    111111                    </article>
     
    145145                    <article id="post-<?php the_ID(); ?>">
    146146                        <?php
    147                         Utils::load_elementor_template($settings['post_layout_template']);
     147                        Utils::load_elementor_template_with_help($settings['post_layout_template'], 'Content Tab > Layout > Post Layout');
    148148                        ?>
    149149                    </article>
  • hq-widgets-for-elementor/trunk/inc/widget/products-base.php

    r2477060 r2481601  
    7676                    <div id="product-<?php the_ID(); ?>" <?php post_class($masonryCssClass); ?>>
    7777                        <?php
    78                         Utils::load_elementor_template($settings['product_layout_template']);
     78                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    7979                        ?>
    8080                    </div>
     
    116116                    <div id="product-<?php the_ID(); ?>">
    117117                        <?php
    118                         Utils::load_elementor_template($settings['product_layout_template']);
     118                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    119119                        ?>
    120120                    </div>
  • hq-widgets-for-elementor/trunk/inc/widget/theme/archive-posts.php

    r2389368 r2481601  
    8282         * Allow third party plugins to change query params
    8383         */
    84         $query_vars = apply_filters('elementor/theme/posts_archive/query_posts/query_vars', $query_vars);
     84        $query_vars = apply_filters('hqt/widget/posts_archive/query_posts/query_vars', $query_vars);
    8585
    8686        // Check if params are changed
  • hq-widgets-for-elementor/trunk/inc/widget/theme/search-results.php

    r2477060 r2481601  
    133133         * Allow third party plugins to change query params
    134134         */
    135         $query_vars = apply_filters('elementor/theme/posts_search/query_posts/query_vars', $query_vars);
     135        $query_vars = apply_filters('hqt/widget/posts_search/query_posts/query_vars', $query_vars);
    136136
    137137        // Check if params are changed
  • hq-widgets-for-elementor/trunk/inc/widget/widgets-control.php

    r2477060 r2481601  
    3636                'default_activation' => 'on',
    3737                'icon_class' => 'hq-icon-arrows',
    38                 'demo_url' => 'https://marmot.hqwebs.net/',
     38            //'demo_url' => 'https://marmot.hqwebs.net/',
    3939            ],
    4040            'countdown-timer' => [
    4141                'type' => 'free',
    4242                'name' => 'Countdown Timer',
    43                 'default_activation' => 'on',
     43                'default_activation' => 'off',
    4444                'icon_class' => 'hq-icon-chronometer',
    45                 'demo_url' => 'https://marmot.hqwebs.net/',
    4645            ],
    4746            'elementor-global-template' => [
    4847                'type' => 'free',
    4948                'name' => 'Elementor Global Template',
    50                 'default_activation' => 'off',
     49                'default_activation' => 'on',
    5150                'icon_class' => 'hq-icon-global-template',
    52                 'demo_url' => 'https://marmot.hqwebs.net/',
    5351            ],
    5452            'flip-box' => [
     
    5755                'default_activation' => 'on',
    5856                'icon_class' => 'hq-icon-flip',
    59                 'demo_url' => 'https://marmot.hqwebs.net/',
    6057            ],
    6158            'modal-box' => [
     
    6461                'default_activation' => 'on',
    6562                'icon_class' => 'hq-icon-send',
    66                 'demo_url' => 'https://marmot.hqwebs.net/',
    6763            ],
    6864            'nav-menu' => [
     
    7167                'default_activation' => 'on',
    7268                'icon_class' => 'hq-icon-navigation-menu',
    73                 'demo_url' => 'https://marmot.hqwebs.net/',
    7469            ],
    7570            'social-share' => [
    7671                'type' => 'free',
    7772                'name' => 'Social Share',
    78                 'default_activation' => 'off',
     73                'default_activation' => 'on',
    7974                'icon_class' => 'hq-icon-social-share',
    80                 'demo_url' => 'https://marmot.hqwebs.net/',
    8175            ],
    8276            // Blog
     
    8680                'default_activation' => 'on',
    8781                'icon_class' => 'hq-icon-list',
    88                 'demo_url' => 'https://marmot.hqwebs.net/',
    8982            ],
    9083            'archive-title' => [
     
    9386                'default_activation' => 'on',
    9487                'icon_class' => 'hq-icon-text-tool',
    95                 'demo_url' => 'https://marmot.hqwebs.net/',
    9688            ],
    9789            'posts-grid' => [
     
    10092                'default_activation' => 'on',
    10193                'icon_class' => 'hq-icon-wireframe-list',
    102                 'demo_url' => 'https://marmot.hqwebs.net/',
    10394            ],
    10495            'posts-slider' => [
     
    10798                'default_activation' => 'on',
    10899                'icon_class' => 'hq-icon-layer-slider',
    109                 'demo_url' => 'https://marmot.hqwebs.net/',
    110100            ],
    111101            'search-results' => [
     
    114104                'default_activation' => 'on',
    115105                'icon_class' => 'hq-icon-grid-bordered',
    116                 'demo_url' => 'https://marmot.hqwebs.net/',
    117106            ],
    118107            'author-box' => [
     
    121110                'default_activation' => 'on',
    122111                'icon_class' => 'hq-icon-author-box',
    123                 'demo_url' => 'https://marmot.hqwebs.net/',
    124112            ],
    125113            'post-comments' => [
     
    128116                'default_activation' => 'on',
    129117                'icon_class' => 'hq-icon-conversation',
    130                 'demo_url' => 'https://marmot.hqwebs.net/',
    131118            ],
    132119            'post-content' => [
     
    135122                'default_activation' => 'on',
    136123                'icon_class' => 'hq-icon-content-writing',
    137                 'demo_url' => 'https://marmot.hqwebs.net/',
    138124            ],
    139125            'post-excerpt' => [
     
    142128                'default_activation' => 'on',
    143129                'icon_class' => 'hq-icon-document-add',
    144                 'demo_url' => 'https://marmot.hqwebs.net/',
    145130            ],
    146131            'post-featured-image' => [
     
    149134                'default_activation' => 'on',
    150135                'icon_class' => 'hq-icon-adjust',
    151                 'demo_url' => 'https://marmot.hqwebs.net/',
    152136            ],
    153137            'post-link' => [
     
    156140                'default_activation' => 'on',
    157141                'icon_class' => 'hq-icon-link',
    158                 'demo_url' => 'https://marmot.hqwebs.net/',
    159142            ],
    160143            'post-meta-data' => [
     
    163146                'default_activation' => 'on',
    164147                'icon_class' => 'hq-icon-menu-dots-horizontal',
    165                 'demo_url' => 'https://marmot.hqwebs.net/',
    166148            ],
    167149            'post-navigation' => [
     
    170152                'default_activation' => 'on',
    171153                'icon_class' => 'hq-icon-transfer',
    172                 'demo_url' => 'https://marmot.hqwebs.net/',
    173154            ],
    174155            'post-taxonomies' => [
     
    177158                'default_activation' => 'on',
    178159                'icon_class' => 'hq-icon-price-tag',
    179                 'demo_url' => 'https://marmot.hqwebs.net/',
    180160            ],
    181161            'post-title' => [
     
    184164                'default_activation' => 'on',
    185165                'icon_class' => 'hq-icon-title',
    186                 'demo_url' => 'https://marmot.hqwebs.net/',
    187166            ],
    188167            'post-related-posts-slider' => [
     
    191170                'default_activation' => 'on',
    192171                'icon_class' => 'hq-icon-carousel',
    193                 'demo_url' => 'https://marmot.hqwebs.net/',
    194172            ],
    195173            'post-related-posts-grid' => [
     
    198176                'default_activation' => 'on',
    199177                'icon_class' => 'hq-icon-posts-grid',
    200                 'demo_url' => 'https://marmot.hqwebs.net/',
    201178            ],
    202179        ],
     
    217194                'default_activation' => 'on',
    218195                'icon_class' => 'hq-icon-contact',
    219                 'demo_url' => 'https://marmot.hqwebs.net/',
    220196                'requires' => [
    221197                    'contact-form-seven' => [
     
    233209                'default_activation' => 'off',
    234210                'icon_class' => 'hq-icon-message',
    235                 'demo_url' => 'https://marmot.hqwebs.net/',
    236211                'requires' => [
    237212                    'wp-forms' => [
     
    249224                'default_activation' => 'off',
    250225                'icon_class' => 'hq-icon-translator',
    251                 'demo_url' => 'https://marmot.hqwebs.net/',
    252226                'requires' => [
    253227                    'polylang' => [
     
    267241                'default_activation' => 'on',
    268242                'icon_class' => 'hq-icon-products-layout',
    269                 'demo_url' => 'https://marmot.hqwebs.net/',
    270243                'requires' => [
    271244                    'woocommerce' => [
     
    283256                'default_activation' => 'on',
    284257                'icon_class' => 'hq-icon-quill',
    285                 'demo_url' => 'https://marmot.hqwebs.net/',
    286258                'requires' => [
    287259                    'woocommerce' => [
     
    299271                'default_activation' => 'on',
    300272                'icon_class' => 'hq-icon-archive-product-add-to-cart',
    301                 'demo_url' => 'https://marmot.hqwebs.net/',
    302273                'requires' => [
    303274                    'woocommerce' => [
     
    315286                'default_activation' => 'on',
    316287                'icon_class' => 'hq-icon-document',
    317                 'demo_url' => 'https://marmot.hqwebs.net/',
    318288                'requires' => [
    319289                    'woocommerce' => [
     
    331301                'default_activation' => 'on',
    332302                'icon_class' => 'hq-icon-warning',
    333                 'demo_url' => 'https://marmot.hqwebs.net/',
    334303                'requires' => [
    335304                    'woocommerce' => [
     
    347316                'default_activation' => 'on',
    348317                'icon_class' => 'hq-icon-add-to-cart',
    349                 'demo_url' => 'https://marmot.hqwebs.net/',
    350318                'requires' => [
    351319                    'woocommerce' => [
     
    363331                'default_activation' => 'on',
    364332                'icon_class' => 'hq-icon-product-add-to-cart',
    365                 'demo_url' => 'https://marmot.hqwebs.net/',
    366333                'requires' => [
    367334                    'woocommerce' => [
     
    379346                'default_activation' => 'on',
    380347                'icon_class' => 'hq-icon-product-additional-information',
    381                 'demo_url' => 'https://marmot.hqwebs.net/',
    382348                'requires' => [
    383349                    'woocommerce' => [
     
    395361                'default_activation' => 'on',
    396362                'icon_class' => 'hq-icon-grid',
    397                 'demo_url' => 'https://marmot.hqwebs.net/',
    398363                'requires' => [
    399364                    'woocommerce' => [
     
    411376                'default_activation' => 'on',
    412377                'icon_class' => 'hq-icon-product-content',
    413                 'demo_url' => 'https://marmot.hqwebs.net/',
    414378                'requires' => [
    415379                    'woocommerce' => [
     
    427391                'default_activation' => 'on',
    428392                'icon_class' => 'hq-icon-tabs',
    429                 'demo_url' => 'https://marmot.hqwebs.net/',
    430393                'requires' => [
    431394                    'woocommerce' => [
     
    443406                'default_activation' => 'on',
    444407                'icon_class' => 'hq-icon-add-photo',
    445                 'demo_url' => 'https://marmot.hqwebs.net/',
    446408                'requires' => [
    447409                    'woocommerce' => [
     
    459421                'default_activation' => 'on',
    460422                'icon_class' => 'hq-icon-wireframe-featured',
    461                 'demo_url' => 'https://marmot.hqwebs.net/',
    462423                'requires' => [
    463424                    'woocommerce' => [
     
    475436                'default_activation' => 'on',
    476437                'icon_class' => 'hq-icon-add',
    477                 'demo_url' => 'https://marmot.hqwebs.net/',
    478438                'requires' => [
    479439                    'woocommerce' => [
     
    491451                'default_activation' => 'on',
    492452                'icon_class' => 'hq-icon-metadata',
    493                 'demo_url' => 'https://marmot.hqwebs.net/',
    494453                'requires' => [
    495454                    'woocommerce' => [
     
    507466                'default_activation' => 'on',
    508467                'icon_class' => 'hq-icon-price-label',
    509                 'demo_url' => 'https://marmot.hqwebs.net/',
    510468                'requires' => [
    511469                    'woocommerce' => [
     
    523481                'default_activation' => 'on',
    524482                'icon_class' => 'hq-icon-product-rating',
    525                 'demo_url' => 'https://marmot.hqwebs.net/',
    526483                'requires' => [
    527484                    'woocommerce' => [
     
    539496                'default_activation' => 'on',
    540497                'icon_class' => 'hq-icon-feedback',
    541                 'demo_url' => 'https://marmot.hqwebs.net/',
    542498                'requires' => [
    543499                    'woocommerce' => [
     
    555511                'default_activation' => 'on',
    556512                'icon_class' => 'hq-icon-text-image',
    557                 'demo_url' => 'https://marmot.hqwebs.net/',
    558513                'requires' => [
    559514                    'woocommerce' => [
     
    571526                'default_activation' => 'on',
    572527                'icon_class' => 'hq-icon-vote',
    573                 'demo_url' => 'https://marmot.hqwebs.net/',
    574528                'requires' => [
    575529                    'woocommerce' => [
     
    587541                'default_activation' => 'on',
    588542                'icon_class' => 'hq-icon-transform-text',
    589                 'demo_url' => 'https://marmot.hqwebs.net/',
    590543                'requires' => [
    591544                    'woocommerce' => [
     
    603556                'default_activation' => 'on',
    604557                'icon_class' => 'hq-icon-wireframe-list-mix',
    605                 'demo_url' => 'https://marmot.hqwebs.net/',
    606558                'requires' => [
    607559                    'woocommerce' => [
     
    619571                'default_activation' => 'on',
    620572                'icon_class' => 'hq-icon-slider-2',
    621                 'demo_url' => 'https://marmot.hqwebs.net/',
    622573                'requires' => [
    623574                    'woocommerce' => [
     
    635586                'default_activation' => 'on',
    636587                'icon_class' => 'hq-icon-advertisement',
    637                 'demo_url' => 'https://marmot.hqwebs.net/',
    638588                'requires' => [
    639589                    'woocommerce' => [
     
    651601                'default_activation' => 'on',
    652602                'icon_class' => 'hq-icon-product-upsell-slider',
    653                 'demo_url' => 'https://marmot.hqwebs.net/',
    654603                'requires' => [
    655604                    'woocommerce' => [
     
    667616                'default_activation' => 'on',
    668617                'icon_class' => 'hq-icon-slider',
    669                 'demo_url' => 'https://marmot.hqwebs.net/',
    670618                'requires' => [
    671619                    'woocommerce' => [
     
    683631                'default_activation' => 'on',
    684632                'icon_class' => 'hq-icon-pixels',
    685                 'demo_url' => 'https://marmot.hqwebs.net/',
    686633                'requires' => [
    687634                    'woocommerce' => [
     
    711658                    'categories' => ['hq-widgets-for-elementor'],
    712659                    'icon_class' => 'hq-icon-flip-box',
    713                     'demo_url' => 'https://marmot.hqwebs.net/',
    714660                    'requires' => [
    715661                        'marmot-enhancer-pro' => [
     
    726672                    'categories' => ['hq-widgets-for-elementor'],
    727673                    'icon_class' => 'hq-icon-advanced-icon-box',
    728                     'demo_url' => 'https://marmot.hqwebs.net/',
    729674                    'requires' => [
    730675                        'marmot-enhancer-pro' => [
     
    741686                    'categories' => ['hq-widgets-for-elementor'],
    742687                    'icon_class' => 'hq-icon-menu',
    743                     'demo_url' => 'https://marmot.hqwebs.net/',
    744688                    'requires' => [
    745689                        'marmot-enhancer-pro' => [
     
    760704                    'categories' => ['hq-widgets-for-elementor'],
    761705                    'icon_class' => 'hq-icon-email',
    762                     'demo_url' => 'https://marmot.hqwebs.net/',
    763706                    'requires' => [
    764707                        'marmot-enhancer-pro' => [
     
    775718                    'categories' => ['hq-widgets-for-elementor'],
    776719                    'icon_class' => 'hq-icon-open-table-reservations',
    777                     'demo_url' => 'https://marmot.hqwebs.net/',
    778720                    'requires' => [
    779721                        'marmot-enhancer-pro' => [
     
    792734                    'categories' => ['hq-widgets-for-elementor-woo'],
    793735                    'icon_class' => 'hq-icon-shopping-basket',
    794                     'demo_url' => 'https://marmot.hqwebs.net/',
    795736                    'requires' => [
    796737                        'marmot-enhancer-pro' => [
     
    807748                    'categories' => ['hq-widgets-for-elementor-woo'],
    808749                    'icon_class' => 'hq-icon-woo-product-cross-sell',
    809                     'demo_url' => 'https://marmot.hqwebs.net/',
    810750                    'requires' => [
    811751                        'marmot-enhancer-pro' => [
     
    822762                    'categories' => ['hq-widgets-for-elementor-woo'],
    823763                    'icon_class' => 'hq-icon-online-payment',
    824                     'demo_url' => 'https://marmot.hqwebs.net/',
    825764                    'requires' => [
    826765                        'marmot-enhancer-pro' => [
     
    837776                    'categories' => ['hq-widgets-for-elementor-woo'],
    838777                    'icon_class' => 'hq-icon-purchasing',
    839                     'demo_url' => 'https://marmot.hqwebs.net/',
    840778                    'requires' => [
    841779                        'marmot-enhancer-pro' => [
     
    852790                    'categories' => ['hq-widgets-for-elementor-woo'],
    853791                    'icon_class' => 'hq-icon-checkout-flow',
    854                     'demo_url' => 'https://marmot.hqwebs.net/',
    855792                    'requires' => [
    856793                        'marmot-enhancer-pro' => [
     
    867804                    'categories' => ['hq-widgets-for-elementor-woo'],
    868805                    'icon_class' => 'hq-icon-woo-sale',
    869                     'demo_url' => 'https://marmot.hqwebs.net/',
    870806                    'requires' => [
    871807                        'marmot-enhancer-pro' => [
     
    882818                    'categories' => ['hq-widgets-for-elementor-woo'],
    883819                    'icon_class' => 'hq-icon-online-shopping-3',
    884                     'demo_url' => 'https://marmot.hqwebs.net/',
    885820                    'requires' => [
    886821                        'marmot-enhancer-pro' => [
     
    976911            $promotion_widgets = $config['promotionWidgets'];
    977912        }
    978        
     913
    979914        $hq_promotional_widgets = [];
    980915        foreach (self::$pro_widgets as $group_type) {
     
    990925            }
    991926        }
    992        
     927
    993928        $config['promotionWidgets'] = array_merge($promotion_widgets, $hq_promotional_widgets);
    994929
  • hq-widgets-for-elementor/trunk/inc/widget/woocommerce/archive-products.php

    r2463415 r2481601  
    8686        $query_vars = $wp_query->query_vars;
    8787
    88         $query_vars = apply_filters('elementor/theme/products_archive/query_posts/query_vars', $query_vars);
     88        $query_vars = apply_filters('hqt/widget/products_archive/query_posts/query_vars', $query_vars);
    8989
    9090        if ($query_vars !== $wp_query->query_vars) {
  • hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-related-products-grid.php

    r2452713 r2481601  
    8282                <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8383                    <?php
    84                     Utils::load_elementor_template($settings['product_layout_template']);
     84                    Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8585                    ?>
    8686                </div>
  • hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-related-products-slider.php

    r2452713 r2481601  
    8181                    <div id="product-<?php the_ID(); ?>">
    8282                        <?php
    83                         Utils::load_elementor_template($settings['product_layout_template']);
     83                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8484                        ?>
    8585                    </div>
  • hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-upsells-grid.php

    r2452713 r2481601  
    8686                <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8787                    <?php
    88                     Utils::load_elementor_template($settings['product_layout_template']);
     88                    Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8989                    ?>
    9090                </div>
  • hq-widgets-for-elementor/trunk/inc/widget/woocommerce/product-upsells-slider.php

    r2452713 r2481601  
    8686                    <div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    8787                        <?php
    88                         Utils::load_elementor_template($settings['product_layout_template']);
     88                        Utils::load_elementor_template_with_help($settings['product_layout_template'], 'Content Tab > Layout > Product Layout');
    8989                        ?>
    9090                    </div>
  • hq-widgets-for-elementor/trunk/readme.txt

    r2477060 r2481601  
    33Tags: hqtheme, widgets for elementor, woocommerce, menu for elementor, contact form 7 for elementor
    44Requires at least: 5.3
    5 Tested up to: 5.5
     5Tested up to: 5.6
    66Requires PHP: 7.2
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPL v3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    129129== Changelog ==
    130130
     131= 1.0.10 - 2021-02-25 =
     132* Update WordPress version compatibility
     133* Elementor Global Template widget - enabled by default
     134* Social Share widget - enabled by default
     135* Add Dependency version check
     136
    131137= 1.0.9 - 2021-02-18 =
    132138* Added Promotional widgets in Elementor editor
Note: See TracChangeset for help on using the changeset viewer.