Elementor Essential Addons - Version 4.3.1

Version Description

  • 14/10/2020 =
  • Few minor bug fix
Download this release

Release Info

Developer re_enter_rupok
Plugin Icon 128x128 Elementor Essential Addons
Version 4.3.1
Comparing to
See all releases

Code changes from version 4.3.0 to 4.3.1

essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 4.3.0
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -26,7 +26,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
- define('EAEL_PLUGIN_VERSION', '4.3.0');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
  /**
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 4.3.1
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
+ define('EAEL_PLUGIN_VERSION', '4.3.1');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
  /**
includes/Traits/Controls.php CHANGED
@@ -13,7 +13,7 @@ use \Elementor\Group_Control_Box_Shadow;
13
  use \Elementor\Group_Control_Image_Size;
14
  use \Elementor\Group_Control_Typography;
15
  use \Elementor\Utils;
16
- use \Essential_Addons_Elementor\Classes\Helper;
17
 
18
  trait Controls
19
  {
@@ -23,7 +23,7 @@ trait Controls
23
  */
24
  public static function query($wb)
25
  {
26
- $post_types = Helper::get_post_types();
27
  $post_types['by_id'] = __('Manual Selection', 'essential-addons-for-elementor-lite');
28
 
29
  if ($wb->get_name() !== 'eael-dynamic-filterable-gallery' && $wb->get_name() !== 'eael-post-list') {
@@ -88,7 +88,7 @@ trait Controls
88
  [
89
  'label' => __('Search & Select', 'essential-addons-for-elementor-lite'),
90
  'type' => Controls_Manager::SELECT2,
91
- 'options' => Helper::get_post_list(),
92
  'label_block' => true,
93
  'multiple' => true,
94
  'condition' => [
@@ -104,7 +104,7 @@ trait Controls
104
  'type' => Controls_Manager::SELECT2,
105
  'multiple' => true,
106
  'default' => [],
107
- 'options' => Helper::get_authors_list(),
108
  'condition' => [
109
  'post_type!' => ['by_id', 'source_dynamic'],
110
  ],
@@ -137,7 +137,7 @@ trait Controls
137
  [
138
  'label' => __('Exclude', 'essential-addons-for-elementor-lite'),
139
  'type' => Controls_Manager::SELECT2,
140
- 'options' => Helper::get_post_list(),
141
  'label_block' => true,
142
  'post_type' => '',
143
  'multiple' => true,
@@ -170,7 +170,7 @@ trait Controls
170
  [
171
  'label' => __('Order By', 'essential-addons-for-elementor-lite'),
172
  'type' => Controls_Manager::SELECT,
173
- 'options' => Helper::get_post_orderby_options(),
174
  'default' => 'date',
175
 
176
  ]
@@ -206,10 +206,10 @@ trait Controls
206
  ]
207
  );
208
 
209
- $default_multiple_kb = Helper::get_betterdocs_multiple_kb_status();
210
 
211
  if ($default_multiple_kb) {
212
- $multiple_kb_terms = Helper::get_multiple_kb_terms(true, false);
213
  $default_slug = count($multiple_kb_terms) > 0 ? array_keys($multiple_kb_terms)[0] : '';
214
 
215
  $wb->add_control(
@@ -245,7 +245,7 @@ trait Controls
245
  'label' => __('Include', 'essential-addons-for-elementor-lite'),
246
  'label_block' => true,
247
  'type' => Controls_Manager::SELECT2,
248
- 'options' => Helper::get_terms_list('doc_category', 'term_id'),
249
  'multiple' => true,
250
  'default' => [],
251
  ]
@@ -256,7 +256,7 @@ trait Controls
256
  [
257
  'label' => __('Exclude', 'essential-addons-for-elementor-lite'),
258
  'type' => Controls_Manager::SELECT2,
259
- 'options' => Helper::get_terms_list('doc_category', 'term_id'),
260
  'label_block' => true,
261
  'post_type' => '',
262
  'multiple' => true,
@@ -348,7 +348,7 @@ trait Controls
348
  [
349
  'label' => __('Order By', 'essential-addons-for-elementor-lite'),
350
  'type' => Controls_Manager::SELECT,
351
- 'options' => Helper::get_post_orderby_options(),
352
  'default' => 'date',
353
  ]
354
  );
@@ -1615,7 +1615,7 @@ trait Controls
1615
  [
1616
  'label' => esc_html__('Table ID', 'essential-addons-for-elementor-lite'),
1617
  'type' => Controls_Manager::SELECT,
1618
- 'options' => Helper::get_ninja_tables_list(),
1619
  'condition' => [
1620
  'ea_adv_data_table_source' => 'ninja',
1621
  ],
13
  use \Elementor\Group_Control_Image_Size;
14
  use \Elementor\Group_Control_Typography;
15
  use \Elementor\Utils;
16
+ use \Essential_Addons_Elementor\Classes\Helper as ControlsHelper;
17
 
18
  trait Controls
19
  {
23
  */
24
  public static function query($wb)
25
  {
26
+ $post_types = ControlsHelper::get_post_types();
27
  $post_types['by_id'] = __('Manual Selection', 'essential-addons-for-elementor-lite');
28
 
29
  if ($wb->get_name() !== 'eael-dynamic-filterable-gallery' && $wb->get_name() !== 'eael-post-list') {
88
  [
89
  'label' => __('Search & Select', 'essential-addons-for-elementor-lite'),
90
  'type' => Controls_Manager::SELECT2,
91
+ 'options' => ControlsHelper::get_post_list(),
92
  'label_block' => true,
93
  'multiple' => true,
94
  'condition' => [
104
  'type' => Controls_Manager::SELECT2,
105
  'multiple' => true,
106
  'default' => [],
107
+ 'options' => ControlsHelper::get_authors_list(),
108
  'condition' => [
109
  'post_type!' => ['by_id', 'source_dynamic'],
110
  ],
137
  [
138
  'label' => __('Exclude', 'essential-addons-for-elementor-lite'),
139
  'type' => Controls_Manager::SELECT2,
140
+ 'options' => ControlsHelper::get_post_list(),
141
  'label_block' => true,
142
  'post_type' => '',
143
  'multiple' => true,
170
  [
171
  'label' => __('Order By', 'essential-addons-for-elementor-lite'),
172
  'type' => Controls_Manager::SELECT,
173
+ 'options' => ControlsHelper::get_post_orderby_options(),
174
  'default' => 'date',
175
 
176
  ]
206
  ]
207
  );
208
 
209
+ $default_multiple_kb = ControlsHelper::get_betterdocs_multiple_kb_status();
210
 
211
  if ($default_multiple_kb) {
212
+ $multiple_kb_terms = ControlsHelper::get_multiple_kb_terms(true, false);
213
  $default_slug = count($multiple_kb_terms) > 0 ? array_keys($multiple_kb_terms)[0] : '';
214
 
215
  $wb->add_control(
245
  'label' => __('Include', 'essential-addons-for-elementor-lite'),
246
  'label_block' => true,
247
  'type' => Controls_Manager::SELECT2,
248
+ 'options' => ControlsHelper::get_terms_list('doc_category', 'term_id'),
249
  'multiple' => true,
250
  'default' => [],
251
  ]
256
  [
257
  'label' => __('Exclude', 'essential-addons-for-elementor-lite'),
258
  'type' => Controls_Manager::SELECT2,
259
+ 'options' => ControlsHelper::get_terms_list('doc_category', 'term_id'),
260
  'label_block' => true,
261
  'post_type' => '',
262
  'multiple' => true,
348
  [
349
  'label' => __('Order By', 'essential-addons-for-elementor-lite'),
350
  'type' => Controls_Manager::SELECT,
351
+ 'options' => ControlsHelper::get_post_orderby_options(),
352
  'default' => 'date',
353
  ]
354
  );
1615
  [
1616
  'label' => esc_html__('Table ID', 'essential-addons-for-elementor-lite'),
1617
  'type' => Controls_Manager::SELECT,
1618
+ 'options' => ControlsHelper::get_ninja_tables_list(),
1619
  'condition' => [
1620
  'ea_adv_data_table_source' => 'ninja',
1621
  ],
includes/Traits/Core.php CHANGED
@@ -157,19 +157,23 @@ trait Core
157
  */
158
  public function save_global_values($post_id, $editor_data)
159
  {
160
- $document = Plugin::$instance->documents->get($post_id,false);
 
 
 
 
161
  $global_settings = get_option('eael_global_settings');
 
162
  if ($document->get_settings('eael_ext_reading_progress_global') == 'yes' && $document->get_settings('eael_ext_reading_progress') == 'yes') {
163
  $global_settings['reading_progress'] = [
164
- 'post_id' => $post_id,
165
- 'enabled' => true,
166
- //'eael_ext_reading_progress' => $document->get_settings('eael_ext_reading_progress'),
167
  'eael_ext_reading_progress_global_display_condition' => $document->get_settings('eael_ext_reading_progress_global_display_condition'),
168
- 'eael_ext_reading_progress_position' => $document->get_settings('eael_ext_reading_progress_position'),
169
- 'eael_ext_reading_progress_height' => $document->get_settings('eael_ext_reading_progress_height'),
170
- 'eael_ext_reading_progress_bg_color' => $document->get_settings('eael_ext_reading_progress_bg_color'),
171
- 'eael_ext_reading_progress_fill_color' => $document->get_settings('eael_ext_reading_progress_fill_color'),
172
- 'eael_ext_reading_progress_animation_speed' => $document->get_settings('eael_ext_reading_progress_animation_speed'),
173
  ];
174
  } else {
175
  if (isset($global_settings['reading_progress']['post_id']) && $global_settings['reading_progress']['post_id'] == $post_id) {
@@ -179,6 +183,7 @@ trait Core
179
  ];
180
  }
181
  }
 
182
  //save table of contents global value
183
  if ($document->get_settings('eael_ext_toc_global') == 'yes' && $document->get_settings('eael_ext_table_of_content') == 'yes') {
184
  $typography_fields = [
@@ -191,10 +196,10 @@ trait Core
191
  'letter_spacing',
192
  'line_height',
193
  ];
 
194
  $global_settings['eael_ext_table_of_content'] = [
195
  'post_id' => $post_id,
196
  'enabled' => ($document->get_settings('eael_ext_toc_global') == 'yes'),
197
- //'eael_ext_table_of_content' => $document->get_settings('eael_ext_table_of_content'),
198
  'eael_ext_toc_global_display_condition' => $document->get_settings('eael_ext_toc_global_display_condition'),
199
  'eael_ext_toc_title' => $document->get_settings('eael_ext_toc_title'),
200
  'eael_ext_toc_position' => $document->get_settings('eael_ext_toc_position'),
@@ -204,7 +209,6 @@ trait Core
204
  'eael_ext_toc_collapse_sub_heading' => $document->get_settings('eael_ext_toc_collapse_sub_heading'),
205
  'eael_ext_toc_use_title_in_url' => $document->get_settings('eael_ext_toc_use_title_in_url'),
206
  'eael_ext_toc_word_wrap' => $document->get_settings('eael_ext_toc_word_wrap'),
207
- //'eael_ext_toc_box_shadow' => $document->get_settings('eael_ext_toc_box_shadow'),
208
  'eael_ext_toc_table_box_shadow_box_shadow' => $document->get_settings('eael_ext_toc_table_box_shadow_box_shadow'),
209
  'eael_ext_toc_auto_collapse' => $document->get_settings('eael_ext_toc_auto_collapse'),
210
  'eael_ext_toc_hide_in_mobile' => $document->get_settings('eael_ext_toc_hide_in_mobile'),
@@ -264,7 +268,7 @@ trait Core
264
  }
265
  }
266
 
267
- // update editor time
268
  set_transient('eael_editor_updated_at', strtotime('now'));
269
 
270
  // update options
157
  */
158
  public function save_global_values($post_id, $editor_data)
159
  {
160
+ if (wp_doing_cron()) {
161
+ return;
162
+ }
163
+
164
+ $document = Plugin::$instance->documents->get($post_id, false);
165
  $global_settings = get_option('eael_global_settings');
166
+
167
  if ($document->get_settings('eael_ext_reading_progress_global') == 'yes' && $document->get_settings('eael_ext_reading_progress') == 'yes') {
168
  $global_settings['reading_progress'] = [
169
+ 'post_id' => $post_id,
170
+ 'enabled' => true,
 
171
  'eael_ext_reading_progress_global_display_condition' => $document->get_settings('eael_ext_reading_progress_global_display_condition'),
172
+ 'eael_ext_reading_progress_position' => $document->get_settings('eael_ext_reading_progress_position'),
173
+ 'eael_ext_reading_progress_height' => $document->get_settings('eael_ext_reading_progress_height'),
174
+ 'eael_ext_reading_progress_bg_color' => $document->get_settings('eael_ext_reading_progress_bg_color'),
175
+ 'eael_ext_reading_progress_fill_color' => $document->get_settings('eael_ext_reading_progress_fill_color'),
176
+ 'eael_ext_reading_progress_animation_speed' => $document->get_settings('eael_ext_reading_progress_animation_speed'),
177
  ];
178
  } else {
179
  if (isset($global_settings['reading_progress']['post_id']) && $global_settings['reading_progress']['post_id'] == $post_id) {
183
  ];
184
  }
185
  }
186
+
187
  //save table of contents global value
188
  if ($document->get_settings('eael_ext_toc_global') == 'yes' && $document->get_settings('eael_ext_table_of_content') == 'yes') {
189
  $typography_fields = [
196
  'letter_spacing',
197
  'line_height',
198
  ];
199
+
200
  $global_settings['eael_ext_table_of_content'] = [
201
  'post_id' => $post_id,
202
  'enabled' => ($document->get_settings('eael_ext_toc_global') == 'yes'),
 
203
  'eael_ext_toc_global_display_condition' => $document->get_settings('eael_ext_toc_global_display_condition'),
204
  'eael_ext_toc_title' => $document->get_settings('eael_ext_toc_title'),
205
  'eael_ext_toc_position' => $document->get_settings('eael_ext_toc_position'),
209
  'eael_ext_toc_collapse_sub_heading' => $document->get_settings('eael_ext_toc_collapse_sub_heading'),
210
  'eael_ext_toc_use_title_in_url' => $document->get_settings('eael_ext_toc_use_title_in_url'),
211
  'eael_ext_toc_word_wrap' => $document->get_settings('eael_ext_toc_word_wrap'),
 
212
  'eael_ext_toc_table_box_shadow_box_shadow' => $document->get_settings('eael_ext_toc_table_box_shadow_box_shadow'),
213
  'eael_ext_toc_auto_collapse' => $document->get_settings('eael_ext_toc_auto_collapse'),
214
  'eael_ext_toc_hide_in_mobile' => $document->get_settings('eael_ext_toc_hide_in_mobile'),
268
  }
269
  }
270
 
271
+ // set editor time
272
  set_transient('eael_editor_updated_at', strtotime('now'));
273
 
274
  // update options
includes/Traits/Enqueue.php CHANGED
@@ -6,7 +6,7 @@ if (!defined('ABSPATH')) {
6
  exit;
7
  } // Exit if accessed directly
8
 
9
- use \Essential_Addons_Elementor\Classes\Helper;
10
 
11
  trait Enqueue
12
  {
@@ -14,7 +14,7 @@ trait Enqueue
14
  {
15
  // Compatibility: Gravity forms
16
  if (in_array('gravity-form', $widgets) && class_exists('GFCommon')) {
17
- foreach (Helper::get_gravity_form_list() as $form_id => $form_name) {
18
  if ($form_id != '0') {
19
  gravity_form_enqueue_scripts($form_id);
20
  }
6
  exit;
7
  } // Exit if accessed directly
8
 
9
+ use \Essential_Addons_Elementor\Classes\Helper as EnqueueHelper;
10
 
11
  trait Enqueue
12
  {
14
  {
15
  // Compatibility: Gravity forms
16
  if (in_array('gravity-form', $widgets) && class_exists('GFCommon')) {
17
+ foreach (EnqueueHelper::get_gravity_form_list() as $form_id => $form_name) {
18
  if ($form_id != '0') {
19
  gravity_form_enqueue_scripts($form_id);
20
  }
includes/Traits/Generator.php CHANGED
@@ -6,7 +6,6 @@ if (!defined('ABSPATH')) {
6
  } // Exit if accessed directly
7
 
8
  use \Elementor\Plugin;
9
- use \Essential_Addons_Elementor\Classes\Helper;
10
 
11
  trait Generator
12
  {
@@ -165,22 +164,11 @@ trait Generator
165
  return;
166
  }
167
 
168
- $global_settings = get_option('eael_global_settings');
169
  $document = Plugin::$instance->documents->get($post_id);
170
 
171
  if ($document->get_settings('eael_custom_js')) {
172
  $this->custom_js_strings .= $document->get_settings('eael_custom_js');
173
  }
174
-
175
- // if (!Helper::prevent_extension_loading($post_id)) {
176
- // if ($document->get_settings('eael_ext_reading_progress') == 'yes' || isset($global_settings['reading_progress']['enabled'])) {
177
- // $this->loaded_elements[] = 'eael-eael-reading-progress';
178
- // }
179
-
180
- // if ($document->get_settings('eael_ext_table_of_content') == 'yes' || isset($global_settings['eael_ext_table_of_content']['enabled'])) {
181
- // $this->loaded_elements[] = 'eael-eael-table-of-content';
182
- // }
183
- // }
184
  }
185
 
186
  public function update_request_data()
6
  } // Exit if accessed directly
7
 
8
  use \Elementor\Plugin;
 
9
 
10
  trait Generator
11
  {
164
  return;
165
  }
166
 
 
167
  $document = Plugin::$instance->documents->get($post_id);
168
 
169
  if ($document->get_settings('eael_custom_js')) {
170
  $this->custom_js_strings .= $document->get_settings('eael_custom_js');
171
  }
 
 
 
 
 
 
 
 
 
 
172
  }
173
 
174
  public function update_request_data()
includes/Traits/Library.php CHANGED
@@ -175,6 +175,10 @@ trait Library
175
  return true;
176
  }
177
 
 
 
 
 
178
  if (wp_doing_ajax()) {
179
  return true;
180
  }
175
  return true;
176
  }
177
 
178
+ if (wp_doing_cron()) {
179
+ return true;
180
+ }
181
+
182
  if (wp_doing_ajax()) {
183
  return true;
184
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, elementor
4
  Requires at least: 4.0
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
- Stable tag: 4.3.0
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -224,6 +224,9 @@ Your existing elements/content will work with premium version. So you won't lose
224
 
225
  == Changelog ==
226
 
 
 
 
227
  = 4.3.0 - 12/10/2020 =
228
  - Revamped: Code Structure for better performance
229
  - Improved: Asset Generator method
4
  Requires at least: 4.0
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 4.3.1
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 4.3.1 - 14/10/2020 =
228
+ - Few minor bug fix
229
+
230
  = 4.3.0 - 12/10/2020 =
231
  - Revamped: Code Structure for better performance
232
  - Improved: Asset Generator method