Elementor Essential Addons - Version 4.3.2

Version Description

  • 18/10/2020 =
  • Fixed: Assets not generating properly
  • Fixed: Fatal error with BuddyPress plugin
  • Fixed: EA Twitter Feed | content not loading properly
  • Fixed: EA Table of Contents | not working correctly for posts
  • Fixed: PHP notices with EA Post Grid, Post Timeline & Post Carousel
  • Fixed: EA FormStack | Auth error in PHP 5.6
  • Few minor bug fix and improvements
Download this release

Release Info

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

Code changes from version 4.3.1 to 4.3.2

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.1
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -21,12 +21,11 @@ if (!defined('ABSPATH')) {
21
  *
22
  * @since 3.0.0
23
  */
24
- define('EAEL_DEV_MODE', $_SERVER['REMOTE_ADDR'] == '127.0.0.1');
25
  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.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
  /**
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.2
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
21
  *
22
  * @since 3.0.0
23
  */
 
24
  define('EAEL_PLUGIN_FILE', __FILE__);
25
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
26
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
27
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
28
+ define('EAEL_PLUGIN_VERSION', '4.3.2');
29
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
30
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
31
  /**
includes/Classes/Helper.php CHANGED
@@ -20,7 +20,7 @@ class Helper
20
  * @return string
21
  * @since 4.2.2
22
  */
23
- public static function include_with_variable(string $file_path, array $variables = [])
24
  {
25
  if (file_exists($file_path)) {
26
  extract($variables);
@@ -635,8 +635,7 @@ class Helper
635
  if ($settings['post_type'] === 'source_dynamic' && is_archive()) {
636
 
637
  $data = get_queried_object();
638
-
639
- if ($data) {
640
  $args['post_type'] = $data->post_type;
641
 
642
  $args['tax_query'] = [];
20
  * @return string
21
  * @since 4.2.2
22
  */
23
+ public static function include_with_variable( $file_path, $variables = [])
24
  {
25
  if (file_exists($file_path)) {
26
  extract($variables);
635
  if ($settings['post_type'] === 'source_dynamic' && is_archive()) {
636
 
637
  $data = get_queried_object();
638
+ if (isset($data->post_type)) {
 
639
  $args['post_type'] = $data->post_type;
640
 
641
  $args['tax_query'] = [];
includes/Classes/Migration.php CHANGED
@@ -58,12 +58,15 @@ class Migration
58
  *
59
  * @since 3.0.0
60
  */
61
- public function migrator() {
 
62
  // set current version to db
63
- if(get_option('eael_version') != EAEL_PLUGIN_VERSION) {
 
64
  update_option('eael_version', EAEL_PLUGIN_VERSION);
65
 
66
- // tricky updates here...
 
67
  }
68
 
69
  }
58
  *
59
  * @since 3.0.0
60
  */
61
+ public function migrator()
62
+ {
63
  // set current version to db
64
+ if (get_option('eael_version') != EAEL_PLUGIN_VERSION) {
65
+ // update plugin version
66
  update_option('eael_version', EAEL_PLUGIN_VERSION);
67
 
68
+ // update editor time
69
+ set_transient('eael_editor_updated_at', strtotime('now'));
70
  }
71
 
72
  }
includes/Elements/Formstack.php CHANGED
@@ -60,7 +60,7 @@ class Formstack extends Widget_Base {
60
  return get_option('formstack_oauth2_code', '');
61
  }
62
 
63
- private function formstackAuth (string $key) {
64
  return get_option('formstack_settings')[$key];
65
  }
66
 
60
  return get_option('formstack_oauth2_code', '');
61
  }
62
 
63
+ private function formstackAuth ($key) {
64
  return get_option('formstack_settings')[$key];
65
  }
66
 
includes/Traits/Elements.php CHANGED
@@ -322,7 +322,6 @@ trait Elements
322
  }
323
 
324
  $post_id = get_the_ID();
325
-
326
  $html = '';
327
  $global_settings = $setting_data = $document = [];
328
 
@@ -367,9 +366,9 @@ trait Elements
367
 
368
  $reading_progress_html .= '</div>';
369
 
370
- if ($document->get_settings('eael_ext_reading_progress') != 'yes') {
371
  $display_condition = $this->get_extensions_value('eael_ext_reading_progress_global_display_condition');
372
- if (get_post_status($settings_data['post_id']) != 'publish') {
373
  $reading_progress_html = '';
374
  } else if ($display_condition == 'pages' && !is_page()) {
375
  $reading_progress_html = '';
@@ -390,6 +389,11 @@ trait Elements
390
  // Table of Contents
391
  if ($this->get_settings('table-of-content')) {
392
  $toc_status = false;
 
 
 
 
 
393
  if (isset($settings_data['eael_ext_table_of_content']) && $settings_data['eael_ext_table_of_content'] == 'yes') {
394
  $toc_status = true;
395
  } elseif (isset($global_settings['eael_ext_table_of_content']['enabled']) && $global_settings['eael_ext_table_of_content']['enabled']) {
@@ -405,6 +409,7 @@ trait Elements
405
  $el_class .= ' eael-toc-global';
406
  $this->toc_global_css($global_settings);
407
  }
 
408
  $icon = 'fas fa-list';
409
  $support_tag = (array) $settings_data['eael_ext_toc_supported_heading_tag'];
410
  $support_tag = implode(',', array_filter($support_tag));
@@ -439,19 +444,19 @@ trait Elements
439
  }
440
 
441
  $table_of_content_html = "<div data-eaelTocTag='{$support_tag}' data-contentSelector='{$content_selector}' data-excludeSelector='{$exclude_selector}' data-stickyScroll='{$sticky_scroll['size']}' data-titleUrl='{$title_url}' id='eael-toc' class='{$el_class} '>
442
- <div class='eael-toc-header'>
443
- <span class='eael-toc-close'>×</span>
444
- <h2 class='eael-toc-title'>{$toc_title}</h2>
445
- </div>
446
- <div class='eael-toc-body'>
447
- <ul id='eael-toc-list' class='eael-toc-list {$toc_style_class}'></ul>
448
- </div>
449
- <button class='eael-toc-button'><i class='{$icon}'></i><span>{$toc_title}</span></button>
450
- </div>";
451
 
452
  if ($this->get_extensions_value('eael_ext_table_of_content') != 'yes') {
453
  $toc_global_display_condition = $this->get_extensions_value('eael_ext_toc_global_display_condition');
454
- if (get_post_status($settings_data['post_id']) != 'publish') {
455
  $table_of_content_html = '';
456
  } else if ($toc_global_display_condition == 'pages' && !is_page()) {
457
  $table_of_content_html = '';
@@ -468,8 +473,8 @@ trait Elements
468
  }
469
  }
470
  }
471
- echo $html;
472
 
 
473
  }
474
 
475
  /**
322
  }
323
 
324
  $post_id = get_the_ID();
 
325
  $html = '';
326
  $global_settings = $setting_data = $document = [];
327
 
366
 
367
  $reading_progress_html .= '</div>';
368
 
369
+ if ($this->get_extensions_value('eael_ext_reading_progress') != 'yes') {
370
  $display_condition = $this->get_extensions_value('eael_ext_reading_progress_global_display_condition');
371
+ if (get_post_status($this->get_extensions_value('post_id')) != 'publish') {
372
  $reading_progress_html = '';
373
  } else if ($display_condition == 'pages' && !is_page()) {
374
  $reading_progress_html = '';
389
  // Table of Contents
390
  if ($this->get_settings('table-of-content')) {
391
  $toc_status = false;
392
+
393
+ if (is_object($document)) {
394
+ $settings_data = $document->get_settings();
395
+ }
396
+
397
  if (isset($settings_data['eael_ext_table_of_content']) && $settings_data['eael_ext_table_of_content'] == 'yes') {
398
  $toc_status = true;
399
  } elseif (isset($global_settings['eael_ext_table_of_content']['enabled']) && $global_settings['eael_ext_table_of_content']['enabled']) {
409
  $el_class .= ' eael-toc-global';
410
  $this->toc_global_css($global_settings);
411
  }
412
+
413
  $icon = 'fas fa-list';
414
  $support_tag = (array) $settings_data['eael_ext_toc_supported_heading_tag'];
415
  $support_tag = implode(',', array_filter($support_tag));
444
  }
445
 
446
  $table_of_content_html = "<div data-eaelTocTag='{$support_tag}' data-contentSelector='{$content_selector}' data-excludeSelector='{$exclude_selector}' data-stickyScroll='{$sticky_scroll['size']}' data-titleUrl='{$title_url}' id='eael-toc' class='{$el_class} '>
447
+ <div class='eael-toc-header'>
448
+ <span class='eael-toc-close'>×</span>
449
+ <h2 class='eael-toc-title'>{$toc_title}</h2>
450
+ </div>
451
+ <div class='eael-toc-body'>
452
+ <ul id='eael-toc-list' class='eael-toc-list {$toc_style_class}'></ul>
453
+ </div>
454
+ <button class='eael-toc-button'><i class='{$icon}'></i><span>{$toc_title}</span></button>
455
+ </div>";
456
 
457
  if ($this->get_extensions_value('eael_ext_table_of_content') != 'yes') {
458
  $toc_global_display_condition = $this->get_extensions_value('eael_ext_toc_global_display_condition');
459
+ if (get_post_status($this->get_extensions_value('post_id')) != 'publish') {
460
  $table_of_content_html = '';
461
  } else if ($toc_global_display_condition == 'pages' && !is_page()) {
462
  $table_of_content_html = '';
473
  }
474
  }
475
  }
 
476
 
477
+ echo $html;
478
  }
479
 
480
  /**
includes/Traits/Generator.php CHANGED
@@ -193,6 +193,11 @@ trait Generator
193
  return;
194
  }
195
 
 
 
 
 
 
196
  // parse loaded elements
197
  $this->loaded_elements = $this->parse_elements($this->loaded_elements);
198
 
193
  return;
194
  }
195
 
196
+ // check if already updated
197
+ if (get_transient('eael_editor_updated_at') == get_transient($this->uid . '_updated_at')) {
198
+ return;
199
+ }
200
+
201
  // parse loaded elements
202
  $this->loaded_elements = $this->parse_elements($this->loaded_elements);
203
 
includes/Traits/Library.php CHANGED
@@ -171,10 +171,6 @@ trait Library
171
  */
172
  public function is_running_background()
173
  {
174
- if (isset($_REQUEST['doing_wp_cron'])) {
175
- return true;
176
- }
177
-
178
  if (wp_doing_cron()) {
179
  return true;
180
  }
@@ -182,6 +178,10 @@ trait Library
182
  if (wp_doing_ajax()) {
183
  return true;
184
  }
 
 
 
 
185
 
186
  return false;
187
  }
@@ -193,7 +193,7 @@ trait Library
193
  */
194
  public function is_edit_mode()
195
  {
196
- if (isset($_REQUEST['elementor-preview']) && isset($_REQUEST['ver'])) {
197
  return true;
198
  }
199
 
@@ -211,11 +211,7 @@ trait Library
211
  return false;
212
  }
213
 
214
- if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'elementor') {
215
- return false;
216
- }
217
-
218
- if (isset($_REQUEST['ver'])) {
219
  return false;
220
  }
221
 
171
  */
172
  public function is_running_background()
173
  {
 
 
 
 
174
  if (wp_doing_cron()) {
175
  return true;
176
  }
178
  if (wp_doing_ajax()) {
179
  return true;
180
  }
181
+
182
+ if (isset($_REQUEST['action'])) {
183
+ return true;
184
+ }
185
 
186
  return false;
187
  }
193
  */
194
  public function is_edit_mode()
195
  {
196
+ if (isset($_REQUEST['elementor-preview'])) {
197
  return true;
198
  }
199
 
211
  return false;
212
  }
213
 
214
+ if (isset($_REQUEST['action'])) {
 
 
 
 
215
  return false;
216
  }
217
 
includes/Traits/Twitter_Feed.php CHANGED
@@ -121,10 +121,8 @@ trait Twitter_Feed
121
  $html .= '</div>
122
 
123
  <div class="eael-twitter-feed-item-content">';
124
- if (isset($item['entities']['urls'][0]['url'])) {
125
- $html .= '<p>' . substr(str_replace($item['entities']['urls'][0]['url'], '', $item['full_text']), 0, $settings['eael_twitter_feed_content_length']) . $delimeter . '</p>';
126
- }
127
-
128
  if ($settings['eael_twitter_feed_show_read_more'] == 'true') {
129
  $html .= '<a href="//twitter.com/' . $item['user']['screen_name'] . '/status/' . $item['id_str'] . '" target="_blank" class="read-more-link">Read More <i class="fas fa-angle-double-right"></i></a>';
130
  }
121
  $html .= '</div>
122
 
123
  <div class="eael-twitter-feed-item-content">';
124
+ $link_free_text = isset($item['entities']['urls'][0]['url'])?str_replace($item['entities']['urls'][0]['url'], '', $item['full_text']):$item['full_text'];
125
+ $html .= '<p>' . substr( $link_free_text, 0, $settings['eael_twitter_feed_content_length']) . $delimeter . '</p>';
 
 
126
  if ($settings['eael_twitter_feed_show_read_more'] == 'true') {
127
  $html .= '<a href="//twitter.com/' . $item['user']['screen_name'] . '/status/' . $item['id_str'] . '" target="_blank" class="read-more-link">Read More <i class="fas fa-angle-double-right"></i></a>';
128
  }
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.1
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -224,6 +224,15 @@ Your existing elements/content will work with premium version. So you won't lose
224
 
225
  == Changelog ==
226
 
 
 
 
 
 
 
 
 
 
227
  = 4.3.1 - 14/10/2020 =
228
  - Few minor bug fix
229
 
4
  Requires at least: 4.0
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 4.3.2
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 4.3.2 - 18/10/2020 =
228
+ - Fixed: Assets not generating properly
229
+ - Fixed: Fatal error with BuddyPress plugin
230
+ - Fixed: EA Twitter Feed | content not loading properly
231
+ - Fixed: EA Table of Contents | not working correctly for posts
232
+ - Fixed: PHP notices with EA Post Grid, Post Timeline & Post Carousel
233
+ - Fixed: EA FormStack | Auth error in PHP 5.6
234
+ - Few minor bug fix and improvements
235
+
236
  = 4.3.1 - 14/10/2020 =
237
  - Few minor bug fix
238