Plugin Directory

Changeset 2811951


Ignore:
Timestamp:
11/04/2022 01:00:47 PM (3 years ago)
Author:
elementinvader
Message:

v1.2.5

Location:
widget-detector-elementor/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • widget-detector-elementor/trunk/README.txt

    r2780270 r2811951  
    44Tags: Elementor,Widgets,Speed,Detector, elementor addon, elementor addons
    55Requires at least: 5.2
    6 Tested up to: 6.0
    7 Stable tag: 1.2.4
     6Tested up to: 6.1
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5858
    5959== Changelog ==
     60
     61= 1.2.5 =
     62* compatibility improvements with wp and plugins
     63* stability improvements
     64* More paid features
    6065
    6166= 1.2.4 =
  • widget-detector-elementor/trunk/application/views/wde_used_widgets/index.php

    r2780270 r2811951  
    6262            <input type="text" id="eli-search-input" name="s" value="<?php echo esc_attr(wmvc_show_data('s', $_GET, '')); ?>">
    6363        </fieldset>
    64         <p class="filter-submit"><input type="submit" name="screen-options-apply" id="screen-options-apply" class="button button-primary <?php if ( !function_exists('wdep_fs') || !wdep_fs()->is_plan_or_trial('widgetdetectorelementorpropro') ) echo ''; ?>" value="<?php echo esc_attr(__('Filter', 'w-d-e')); ?>"></p>
     64        <p class="filter-submit"><input type="submit" name="screen-options-apply" id="screen-options-apply" class="button button-primary <?php if ( !function_exists('wdep_fs') || !wdep_fs()->is_plan_or_trial('widgetdetectorelementorpropro') ) echo 'wde-pro'; ?>" value="<?php echo esc_attr(__('Filter', 'w-d-e')); ?>"></p>
    6565    </form>
    6666
  • widget-detector-elementor/trunk/vendor/Winter_MVC/core/form.php

    r2656083 r2811951  
    9090    }
    9191
     92    public function run_json($rules)
     93    {
     94        $postBody = file_get_contents('php://input');
     95        $data_json = json_decode($postBody);
     96        $__POST = (array) $data_json;
     97
     98        if(!isset($__POST))return FALSE;
     99        if(count($__POST)==0)return FALSE;
     100
     101        $this->rules = $rules;
     102
     103        foreach($rules as $key=>$rule)
     104        {
     105            $field_rules = explode('|', $rule['rules']);
     106
     107            if(isset($__POST[$rule['field']]) && !empty($__POST[$rule['field']]))
     108            {
     109                foreach($field_rules as $one_rule)
     110                {
     111                    if(!empty($one_rule))
     112                    if(function_exists('is_'.$one_rule))
     113                    {
     114                        if(call_user_func('is_'.$one_rule, $__POST[$rule['field']]) === FALSE)
     115                        {
     116                            if(isset($this->error_messages[$one_rule]))
     117                            {
     118                                $this->messages[] = $this->error_messages[$one_rule];
     119                            }
     120                            else
     121                            {
     122                                $this->messages[] = __('Field', 'wmvc_win').' '.$rule['label'].' '.__('must be', 'wmvc_win').' '.__($one_rule, 'wmvc_win');
     123                            }
     124                        }
     125                    }
     126                    else
     127                    {
     128                        $this->messages[] = __('Missing function for rule:', 'wmvc_win').' is_'.$one_rule;
     129                    }
     130                }
     131            }
     132            elseif(in_array('required', $field_rules))
     133            {
     134                $this->messages[] = __('Field is required:', 'wmvc_win').' '.$rule['label'];
     135            }
     136        }
     137
     138        if(count($this->messages) == 0)return TRUE;
     139
     140        return FALSE;
     141    }
     142
    92143    public function messages($extra = 'class="alert alert-danger"', $success_message = NULL, $success_extra = 'class="alert alert-success"')
    93144    {
     
    112163    }
    113164
     165    public function messages_api($success_message = NULL)
     166    {
     167        $postBody = file_get_contents('php://input');
     168        $data_json = json_decode($postBody);
     169        $__POST = (array) $data_json;
     170
     171        if(!isset($_GET['is_updated'])){
     172            if(!isset($__POST))return FALSE;
     173            if(count($__POST)==0)return FALSE;
     174        }
     175
     176        if($success_message === NULL)
     177            $success_message = __('Successfully saved', 'wmvc_win');
     178
     179
     180        if(count($this->messages) == 0)
     181        {
     182            return $success_message;
     183        }
     184
     185        return join("\n", $this->messages);
     186    }
     187
    114188
    115189}
  • widget-detector-elementor/trunk/vendor/Winter_MVC/core/helpers.php

    r2740856 r2811951  
    11401140        // Remove really unwanted tags
    11411141        $old_data = $data;
    1142         $data = preg_replace('#</*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $data);
     1142        $data = preg_replace('#</*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:framXe|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $data);
    11431143    }
    11441144    while ($old_data !== $data);
  • widget-detector-elementor/trunk/vendor/Winter_MVC/init.php

    r2740856 r2811951  
    44 * Winter_MVC library
    55 *
    6  * @version 2.3
     6 * @version 2.4
    77 *
    88 * @author SWIT
     
    1010 */
    1111
    12 $Winter_MVC_version_this = 2.3;
     12$Winter_MVC_version_this = 2.4;
    1313
    1414global $Winter_MVC;
  • widget-detector-elementor/trunk/widget-detector-elementor.php

    r2780270 r2811951  
    1717 * Plugin URI:        https://elementdetector.com
    1818 * Description:       Detect Which Elementor widgets Used on Pages, also not Used Widgets or Missing Widgets.
    19  * Version:           1.2.4
     19 * Version:           1.2.5
    2020 * Author:            ElementInvader & FreelancersTools (Ivica Delić)
    2121 * Author URI:        https://elementinvader.com
     
    2525 * Domain Path:       /languages
    2626 *
    27  * Elementor tested up to: 3.7.4
    28  * Elementor Pro tested up to: 3.8.4
     27 * Elementor tested up to: 3.8.0
     28 * Elementor Pro tested up to: 3.9.0
    2929 *
    3030 */
Note: See TracChangeset for help on using the changeset viewer.