Elementor Essential Addons - Version 5.2.1

Version Description

  • 14/08/2022 =

  • Fixed: Fatal Error in different PHP Versions

  • Few minor bug fixes & improvements

Download this release

Release Info

Developer wpdevteam
Plugin Icon 128x128 Elementor Essential Addons
Version 5.2.1
Comparing to
See all releases

Code changes from version 5.2.0 to 5.2.1

assets/front-end/css/view/load-more.css CHANGED
@@ -24,6 +24,10 @@
24
  display: -ms-flexbox;
25
  display: flex;
26
  }
 
 
 
 
27
  .eael-button,
28
  .eael-load-more-button {
29
  display: -webkit-box !important;
24
  display: -ms-flexbox;
25
  display: flex;
26
  }
27
+ .eael-button-wrap.eael-force-hide,
28
+ .eael-load-more-button-wrap.eael-force-hide {
29
+ display: none !important;
30
+ }
31
  .eael-button,
32
  .eael-load-more-button {
33
  display: -webkit-box !important;
assets/front-end/css/view/load-more.min.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes loaderSpin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loaderSpin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.eael-button-wrap,.eael-load-more-button-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.eael-button,.eael-load-more-button{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:1em 2em;border:0px solid;font-size:16px;overflow:hidden}.eael-button.hide,.eael-load-more-button.hide{display:none !important}.eael-button.button--loading .eael-btn-loader,.eael-load-more-button.button--loading .eael-btn-loader{display:block}.eael-button .eael-btn-loader,.eael-load-more-button .eael-btn-loader{display:none;border-radius:50%;width:20px;height:20px;font-size:10px;position:relative;top:auto;left:-200%;border-top:4px solid rgba(255,255,255,.2);border-right:4px solid rgba(255,255,255,.2);border-bottom:4px solid rgba(255,255,255,.2);border-left:4px solid #fff;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:loaderSpin 1.1s infinite linear;animation:loaderSpin 1.1s infinite linear;margin-right:5px;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.eael-button .eael-btn-loader:after,.eael-load-more-button .eael-btn-loader:after{border-radius:50%;width:20px;height:20px}.eael-button:focus,.eael-load-more-button:focus{outline:none}.eael-button.button--loading>span,.eael-load-more-button.button--loading>span{margin-left:0}.eael-button.button--loading .eael-btn-loader,.eael-load-more-button.button--loading .eael-btn-loader{left:0}.rtl .eael-load-more-button-wrap{direction:ltr}
1
+ @-webkit-keyframes loaderSpin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loaderSpin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.eael-button-wrap,.eael-load-more-button-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.eael-button-wrap.eael-force-hide,.eael-load-more-button-wrap.eael-force-hide{display:none !important}.eael-button,.eael-load-more-button{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:1em 2em;border:0px solid;font-size:16px;overflow:hidden}.eael-button.hide,.eael-load-more-button.hide{display:none !important}.eael-button.button--loading .eael-btn-loader,.eael-load-more-button.button--loading .eael-btn-loader{display:block}.eael-button .eael-btn-loader,.eael-load-more-button .eael-btn-loader{display:none;border-radius:50%;width:20px;height:20px;font-size:10px;position:relative;top:auto;left:-200%;border-top:4px solid rgba(255,255,255,.2);border-right:4px solid rgba(255,255,255,.2);border-bottom:4px solid rgba(255,255,255,.2);border-left:4px solid #fff;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:loaderSpin 1.1s infinite linear;animation:loaderSpin 1.1s infinite linear;margin-right:5px;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.eael-button .eael-btn-loader:after,.eael-load-more-button .eael-btn-loader:after{border-radius:50%;width:20px;height:20px}.eael-button:focus,.eael-load-more-button:focus{outline:none}.eael-button.button--loading>span,.eael-load-more-button.button--loading>span{margin-left:0}.eael-button.button--loading .eael-btn-loader,.eael-load-more-button.button--loading .eael-btn-loader{left:0}.rtl .eael-load-more-button-wrap{direction:ltr}
essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 5.2.0
8
  * Author URI: https://wpdeveloper.com/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -27,7 +27,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
- define('EAEL_PLUGIN_VERSION', '5.2.0');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 5.2.1
8
  * Author URI: https://wpdeveloper.com/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
27
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
29
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
30
+ define('EAEL_PLUGIN_VERSION', '5.2.1');
31
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
32
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
33
  /**
includes/Classes/Asset_Builder.php CHANGED
@@ -374,7 +374,7 @@ class Asset_Builder {
374
  * @param array $elements
375
  * @param string $context
376
  */
377
- public function enqueue_asset( $post_id = null, $elements, $context = 'view' ) {
378
  $dynamic_asset_id = ( $post_id ? '-' . $post_id : '' );
379
 
380
  if ( $this->css_print_method == 'internal' ) {
374
  * @param array $elements
375
  * @param string $context
376
  */
377
+ public function enqueue_asset( $post_id = null, $elements = [], $context = 'view' ) {
378
  $dynamic_asset_id = ( $post_id ? '-' . $post_id : '' );
379
 
380
  if ( $this->css_print_method == 'internal' ) {
includes/Classes/Bootstrap.php CHANGED
@@ -123,7 +123,7 @@ class Bootstrap
123
  // register hooks
124
  $this->register_hooks();
125
 
126
- if ( defined( 'ELEMENTOR_VERSION' ) ) {
127
  new Asset_Builder( $this->registered_elements, $this->registered_extensions );
128
  }
129
 
123
  // register hooks
124
  $this->register_hooks();
125
 
126
+ if ( $this->is_activate_elementor() ) {
127
  new Asset_Builder( $this->registered_elements, $this->registered_extensions );
128
  }
129
 
includes/Classes/Elements_Manager.php CHANGED
@@ -84,7 +84,7 @@ class Elements_Manager {
84
 
85
  if ( ! empty( $element['widgetType'] ) && $element['widgetType'] === 'global' ) {
86
  $document = Plugin::$instance->documents->get( $element['templateID'] );
87
- $type = current( $this->get_widget_list( $document->get_elements_data() ) );
88
 
89
  if ( ! empty( $type ) ) {
90
  $type = 'eael-' . $type;
@@ -122,7 +122,7 @@ class Elements_Manager {
122
  */
123
  public function get_element_list( $post_id ) {
124
 
125
- if ( Plugin::instance()->editor->is_edit_mode() ) {
126
  return false;
127
  }
128
 
@@ -131,9 +131,9 @@ class Elements_Manager {
131
  }
132
 
133
  $document = Plugin::$instance->documents->get( $post_id );
134
- $data = $document ? $document->get_elements_data() : [];
135
  $data = $this->get_widget_list( $data );
136
- $custom_js = $document ? $document->get_settings( 'eael_custom_js' ) : '';
137
  $this->save_widgets_list( $post_id, $data, $custom_js );
138
 
139
  return true;
@@ -207,7 +207,9 @@ class Elements_Manager {
207
  return $post_id;
208
  }
209
 
210
- if ( get_post_status( $post_id ) !== 'publish' || ! Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() ) {
 
 
211
  return false;
212
  }
213
 
84
 
85
  if ( ! empty( $element['widgetType'] ) && $element['widgetType'] === 'global' ) {
86
  $document = Plugin::$instance->documents->get( $element['templateID'] );
87
+ $type = is_object( $document ) ? current( $this->get_widget_list( $document->get_elements_data() ) ) : $type;
88
 
89
  if ( ! empty( $type ) ) {
90
  $type = 'eael-' . $type;
122
  */
123
  public function get_element_list( $post_id ) {
124
 
125
+ if ( is_object( Plugin::instance()->editor ) && Plugin::instance()->editor->is_edit_mode() ) {
126
  return false;
127
  }
128
 
131
  }
132
 
133
  $document = Plugin::$instance->documents->get( $post_id );
134
+ $data = is_object( $document ) ? $document->get_elements_data() : [];
135
  $data = $this->get_widget_list( $data );
136
+ $custom_js = is_object( $document ) ? $document->get_settings( 'eael_custom_js' ) : '';
137
  $this->save_widgets_list( $post_id, $data, $custom_js );
138
 
139
  return true;
207
  return $post_id;
208
  }
209
 
210
+ $documents = Plugin::$instance->documents->get( $post_id );
211
+
212
+ if ( get_post_status( $post_id ) !== 'publish' || ( is_object( $documents ) && ! $documents->is_built_with_elementor() ) ) {
213
  return false;
214
  }
215
 
includes/Traits/Ajax_Handler.php CHANGED
@@ -915,7 +915,7 @@ trait Ajax_Handler {
915
  } else {
916
  // clear cache files
917
  $this->empty_dir( EAEL_ASSET_PATH );
918
- if ( defined( 'ELEMENTOR_VERSION' ) ) {
919
  \Elementor\Plugin::$instance->files_manager->clear_cache();
920
  }
921
  }
915
  } else {
916
  // clear cache files
917
  $this->empty_dir( EAEL_ASSET_PATH );
918
+ if ( $this->is_activate_elementor() ) {
919
  \Elementor\Plugin::$instance->files_manager->clear_cache();
920
  }
921
  }
includes/Traits/Core.php CHANGED
@@ -304,8 +304,8 @@ trait Core
304
  return;
305
  }
306
 
307
- if ( !defined( 'ELEMENTOR_VERSION' ) ) {
308
- return false;
309
  }
310
 
311
  $document = Plugin::$instance->documents->get($post_id, false);
304
  return;
305
  }
306
 
307
+ if ( ! $this->is_activate_elementor() ) {
308
+ return false;
309
  }
310
 
311
  $document = Plugin::$instance->documents->get($post_id, false);
includes/Traits/Elements.php CHANGED
@@ -334,9 +334,9 @@ trait Elements
334
  */
335
  public function render_global_html()
336
  {
337
- if (!apply_filters('eael/is_plugin_active', 'elementor/elementor.php')) {
338
- return;
339
- }
340
 
341
  if (!is_singular() && !is_archive()) {
342
  return;
334
  */
335
  public function render_global_html()
336
  {
337
+ if ( ! apply_filters( 'eael/is_plugin_active', 'elementor/elementor.php' ) || ! $this->is_activate_elementor() ) {
338
+ return;
339
+ }
340
 
341
  if (!is_singular() && !is_archive()) {
342
  return;
includes/Traits/Helper.php CHANGED
@@ -470,6 +470,14 @@ trait Helper
470
  update_option( 'eael_admin_menu_notice',self::EAEL_ADMIN_MENU_FLAG,'no' );
471
  }
472
  }
473
-
 
 
 
 
 
 
 
 
474
  }
475
 
470
  update_option( 'eael_admin_menu_notice',self::EAEL_ADMIN_MENU_FLAG,'no' );
471
  }
472
  }
473
+
474
+ /**
475
+ * Checking that is actually elementor activated and works
476
+ *
477
+ * @return bool
478
+ */
479
+ public function is_activate_elementor() {
480
+ return defined( 'ELEMENTOR_VERSION' ) && class_exists( 'Elementor\Plugin' );
481
+ }
482
  }
483
 
languages/essential-addons-for-elementor-lite.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-08-11 03:07+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-08-14 07:03+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addons, elementor widget, elementor
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 5.2.0
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -242,6 +242,12 @@ Your existing elements/content will work with premium version. So you won't lose
242
 
243
  == Changelog ==
244
 
 
 
 
 
 
 
245
  = 5.2.0 - 11/08/2022 =
246
 
247
  - Improved: Asset loading mechanism for better performance
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 5.2.1
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
242
 
243
  == Changelog ==
244
 
245
+
246
+ = 5.2.1 - 14/08/2022 =
247
+
248
+ - Fixed: Fatal Error in different PHP Versions
249
+ - Few minor bug fixes & improvements
250
+
251
  = 5.2.0 - 11/08/2022 =
252
 
253
  - Improved: Asset loading mechanism for better performance