Changeset 2811951
- Timestamp:
- 11/04/2022 01:00:47 PM (3 years ago)
- Location:
- widget-detector-elementor/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
application/views/wde_used_widgets/index.php (modified) (1 diff)
-
vendor/Winter_MVC/core/form.php (modified) (2 diffs)
-
vendor/Winter_MVC/core/helpers.php (modified) (1 diff)
-
vendor/Winter_MVC/init.php (modified) (2 diffs)
-
widget-detector-elementor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-detector-elementor/trunk/README.txt
r2780270 r2811951 4 4 Tags: Elementor,Widgets,Speed,Detector, elementor addon, elementor addons 5 5 Requires at least: 5.2 6 Tested up to: 6. 07 Stable tag: 1.2. 46 Tested up to: 6.1 7 Stable tag: 1.2.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 58 58 59 59 == Changelog == 60 61 = 1.2.5 = 62 * compatibility improvements with wp and plugins 63 * stability improvements 64 * More paid features 60 65 61 66 = 1.2.4 = -
widget-detector-elementor/trunk/application/views/wde_used_widgets/index.php
r2780270 r2811951 62 62 <input type="text" id="eli-search-input" name="s" value="<?php echo esc_attr(wmvc_show_data('s', $_GET, '')); ?>"> 63 63 </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> 65 65 </form> 66 66 -
widget-detector-elementor/trunk/vendor/Winter_MVC/core/form.php
r2656083 r2811951 90 90 } 91 91 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 92 143 public function messages($extra = 'class="alert alert-danger"', $success_message = NULL, $success_extra = 'class="alert alert-success"') 93 144 { … … 112 163 } 113 164 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 114 188 115 189 } -
widget-detector-elementor/trunk/vendor/Winter_MVC/core/helpers.php
r2740856 r2811951 1140 1140 // Remove really unwanted tags 1141 1141 $old_data = $data; 1142 $data = preg_replace('#</*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:fram e|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); 1143 1143 } 1144 1144 while ($old_data !== $data); -
widget-detector-elementor/trunk/vendor/Winter_MVC/init.php
r2740856 r2811951 4 4 * Winter_MVC library 5 5 * 6 * @version 2. 36 * @version 2.4 7 7 * 8 8 * @author SWIT … … 10 10 */ 11 11 12 $Winter_MVC_version_this = 2. 3;12 $Winter_MVC_version_this = 2.4; 13 13 14 14 global $Winter_MVC; -
widget-detector-elementor/trunk/widget-detector-elementor.php
r2780270 r2811951 17 17 * Plugin URI: https://elementdetector.com 18 18 * Description: Detect Which Elementor widgets Used on Pages, also not Used Widgets or Missing Widgets. 19 * Version: 1.2. 419 * Version: 1.2.5 20 20 * Author: ElementInvader & FreelancersTools (Ivica Delić) 21 21 * Author URI: https://elementinvader.com … … 25 25 * Domain Path: /languages 26 26 * 27 * Elementor tested up to: 3. 7.428 * Elementor Pro tested up to: 3. 8.427 * Elementor tested up to: 3.8.0 28 * Elementor Pro tested up to: 3.9.0 29 29 * 30 30 */
Note: See TracChangeset
for help on using the changeset viewer.