Elementor Essential Addons - Version 3.3.1

Version Description

  • 18/09/2019 =
  • Added : Option to enable/disable EA Quick Tools menu in admin bar
  • Few minor bugfix and improvements
Download this release

Release Info

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

Code changes from version 3.3.0 to 3.3.1

assets/admin/css/admin-bar.css CHANGED
@@ -1,6 +1,7 @@
1
  #wpadminbar .ea-wp-admin-bar > .ab-item {
2
  position: relative;
3
  padding-left: 33px;
 
4
  }
5
 
6
  #wpadminbar .ea-wp-admin-bar > .ab-item:before {
1
  #wpadminbar .ea-wp-admin-bar > .ab-item {
2
  position: relative;
3
  padding-left: 33px;
4
+ cursor: pointer;
5
  }
6
 
7
  #wpadminbar .ea-wp-admin-bar > .ab-item:before {
assets/admin/css/admin.css CHANGED
@@ -188,6 +188,26 @@ textarea.eael-form-control {
188
  box-shadow: 0px 5px 18px 0px rgba(0, 4, 32, 0.08);
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  .eael-checkbox.checkbox-toggle-all {
192
  border-radius: 100px;
193
  padding: 12px 25px;
188
  box-shadow: 0px 5px 18px 0px rgba(0, 4, 32, 0.08);
189
  }
190
 
191
+ .eael-checkbox-quick-tools {
192
+ margin-left: 0;
193
+ margin-right: 0;
194
+ max-width: 320px;
195
+ margin-top: 15px;
196
+ box-shadow: none;
197
+ border: 1px solid #eee;
198
+ padding: 5px 15px;
199
+ background: #f9f9f9;
200
+ }
201
+
202
+ .eael-checkbox-quick-tools p.eael-el-title {
203
+ font-size: 13px;
204
+ font-weight: 500;
205
+ }
206
+ .eael-settings-tab p.quick-tools-description {
207
+ padding: 0 0 0 10px;
208
+ font-style: italic;
209
+ font-size: 12px;
210
+ }
211
  .eael-checkbox.checkbox-toggle-all {
212
  border-radius: 100px;
213
  padding: 12px 25px;
assets/admin/images/icon-quick-tools.svg ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 23.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:url(#SVGID_1_);}
7
+ .st1{fill:url(#SVGID_2_);}
8
+ .st2{fill:url(#SVGID_3_);}
9
+ .st3{fill:url(#SVGID_4_);}
10
+ </style>
11
+ <g>
12
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-5.1489" y1="250.8" x2="500.383" y2="250.8">
13
+ <stop offset="0" style="stop-color:#5725FF"/>
14
+ <stop offset="1" style="stop-color:#9271FF"/>
15
+ </linearGradient>
16
+ <path class="st0" d="M250,0.8C112.2,0.8,0,112.9,0,250.8s112.2,250,250,250s250-112.2,250-250C500,112.9,387.8,0.8,250,0.8z
17
+ M250,476.4c-124.4,0-225.6-101.2-225.6-225.6S125.6,25.2,250,25.2s225.6,101.2,225.6,225.6S374.4,476.4,250,476.4z"/>
18
+ <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-5.1489" y1="238.6994" x2="500.383" y2="238.6994">
19
+ <stop offset="0" style="stop-color:#5725FF"/>
20
+ <stop offset="1" style="stop-color:#9271FF"/>
21
+ </linearGradient>
22
+ <path class="st1" d="M324.1,265.8c-3.4,0-6.9,0.4-10.4,1.1c-1.7,0.4-3.2,0.6-4.5,0.6c-4,0-7.4-1.6-10.7-4.9
23
+ c-20.9-21.3-43.8-44.2-72.1-72.3c-4.5-4.5-5.8-8.7-4.4-14.7c3.2-13.9,0-28.3-8.8-39.3c-8.8-11-21.8-17.3-35.6-17.3
24
+ c-3.2,0-6.5,0.4-9.8,1c-1.7,0.4-3.8,1.8-4.3,2.5c0,0.9,1,3.2,2.5,4.8c3.1,3.6,6.6,7,10.2,10.5c1.8,1.8,3.7,3.6,5.6,5.5
25
+ c4.6,4.7,7,10,6.9,15.5c-0.1,4.8-2,9.2-5.7,12.9c-3.6,3.5-8,5.3-12.7,5.3c-5.3,0-10.7-2.4-15.2-6.8c-2.5-2.4-5-4.9-7.4-7.3
26
+ c-3.1-3.1-6.3-6.4-9.5-9.5c-2.2-2.1-3.6-2.2-4-2.2c-1.6,0-2.2,3.1-2.3,3.7c-0.8,4.7-1.7,10.8-0.9,16.2
27
+ c3.5,24.1,21.6,40.3,45.2,40.3c3.8,0,7.7-0.4,11.6-1.3c1.4-0.3,2.6-0.5,3.8-0.5c3.6,0,6.6,1.4,9.5,4.3
28
+ c22.2,22.5,46.1,46.6,70.2,70.2c4.1,4,11,10.7,6.4,21.5c-0.2,0.4-0.2,1.5-0.2,2.3c0,0.7,0,1.5-0.1,2.4c-1,12,3.1,23.7,11.5,32.9
29
+ c8.8,9.6,21.2,15.1,34.1,15.1c3.3,0,6.7-0.4,10-1.1c1.5-0.3,3.4-1.7,3.9-2.4c0-0.8-0.8-3-2.1-4.4c-3.3-3.7-6.9-7.3-10.5-10.8
30
+ c-2.1-2.1-4.4-4.3-6.5-6.5c-8.1-8.4-8.3-19.9-0.4-27.5c3.5-3.4,8.1-5.3,12.9-5.3c5.1,0,10.2,2.1,14.2,6c2.2,2.1,4.4,4.4,6.5,6.5
31
+ c3.6,3.7,7,7.2,10.8,10.4c1.3,1.1,3.5,2.1,4.8,2.1c0,0,0,0,0,0c0.7-0.6,1.8-2.5,2.2-4.1c2.9-13.6-0.4-27.6-9-38.3
32
+ C351,272.1,338,265.8,324.1,265.8z"/>
33
+ <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="-5.1489" y1="300.7668" x2="500.383" y2="300.7668">
34
+ <stop offset="0" style="stop-color:#5725FF"/>
35
+ <stop offset="1" style="stop-color:#9271FF"/>
36
+ </linearGradient>
37
+ <path class="st2" d="M188.6,265.5c-17.4,17.2-35.4,35-52.6,52.9c-2.8,2.9-4.9,8.5-5.7,15c-1.1,9.4,4.7,18.8,14.1,23
38
+ c3.5,1.6,7.1,2.3,10.7,2.3c6.4,0,12.2-2.4,16.8-7c10.4-10.3,20.9-20.8,31.1-30.9c7.9-7.9,15.7-15.7,23.6-23.5
39
+ c3.5-3.5,7.2-6.9,10.8-10.2c0.5-0.4,8.8-8.6,9.3-9l-35.1-35.2C206.5,247.8,193.6,260.5,188.6,265.5z M219.2,282
40
+ c0,2.5-0.8,6.3-4.9,10.5l-4.7,4.7c-11.9,12-24.3,24.3-36.5,36.4c-1.5,1.5-3.2,2.5-5,3.6c-0.1,0-0.3,0.2-0.6,0.3
41
+ c-3,1.5-6.6,1.3-9.3-0.7c0,0-0.1-0.1-0.1-0.1c-2.1-1.6-4.4-3.3-5.2-6.2c-1.1-3.9,0-9.1,2.5-12c3.9-4.5,8.2-8.7,12.3-12.8
42
+ c1.5-1.5,3.1-3,4.6-4.5l5.7-5.7c6.6-6.6,13.2-13.2,19.9-19.8c3.3-3.3,6.7-5,10.2-5c2.8,0,5.4,1.1,7.6,3.2
43
+ C217.9,276.3,219.1,279.1,219.2,282z"/>
44
+ <linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="-5.1489" y1="171.0199" x2="500.383" y2="171.0199">
45
+ <stop offset="0" style="stop-color:#5725FF"/>
46
+ <stop offset="1" style="stop-color:#9271FF"/>
47
+ </linearGradient>
48
+ <path class="st3" d="M365.1,127.9c-2.6-2.7-5-5.3-7.7-7.3c-0.7-0.5-2.5-1.1-3.8-1.1c-0.2,0-0.4,0-0.4,0
49
+ c-13.3,7.3-26.5,15.4-38.8,23c-0.8,0.5-1.2,1-1.3,1.5c-0.1,0.8,0.3,1.9,1.1,3c0.5,0.6,1,1.3,1.8,2.1c0.4,0.4,0.8,0.9,1.3,1.5
50
+ l2.7,3.1l-55.2,54.9l14,13.9l54.4-55.5l3.2,2.8c0.8,0.7,1.3,1.2,1.8,1.5c0.8,0.7,1.3,1.1,1.7,1.5c2.9,2.7,4.1,2.9,4.4,2.9
51
+ c0.4,0,1.6-0.8,3.4-3.6c3.6-6,7.3-12.1,10.8-18c3.4-5.6,6.8-11.5,10.3-17.2c1.6-2.7,1.2-4-0.4-5.6
52
+ C367.2,130.2,366.1,129,365.1,127.9z"/>
53
+ </g>
54
+ </svg>
assets/admin/js/admin-bar.js CHANGED
@@ -25,6 +25,7 @@
25
  success: function(response) {
26
  setTimeout(function() {
27
  text.text('Clear Page Cache');
 
28
  }, 1000);
29
  },
30
  error: function() {
@@ -57,6 +58,7 @@
57
  success: function(response) {
58
  setTimeout(function() {
59
  text.text('Clear All Cache');
 
60
  }, 1000);
61
  },
62
  error: function() {
25
  success: function(response) {
26
  setTimeout(function() {
27
  text.text('Clear Page Cache');
28
+ window.location.reload();
29
  }, 1000);
30
  },
31
  error: function() {
58
  success: function(response) {
59
  setTimeout(function() {
60
  text.text('Clear All Cache');
61
+ window.location.reload();
62
  }, 1000);
63
  },
64
  error: function() {
assets/admin/js/admin.js CHANGED
@@ -28,7 +28,7 @@
28
  // Save Button reacting on any changes
29
  var saveButton = $(".js-eael-settings-save");
30
 
31
- $(".eael-checkbox-container .eael-checkbox input:enabled").on(
32
  "click",
33
  function(e) {
34
  saveButton
28
  // Save Button reacting on any changes
29
  var saveButton = $(".js-eael-settings-save");
30
 
31
+ $(".eael-checkbox input:enabled").on(
32
  "click",
33
  function(e) {
34
  saveButton
essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The ultimate elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 3.3.0
8
  * Author URI: https://wpdeveloper.net/
9
  *
10
  * Text Domain: essential-addons-elementor
@@ -24,7 +24,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
24
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
25
  define('EAEL_PLUGIN_PATH', plugin_dir_path(__FILE__));
26
  define('EAEL_PLUGIN_URL', plugins_url('/', __FILE__));
27
- define('EAEL_PLUGIN_VERSION', '3.3.0');
28
  define('EAEL_ASSET_PATH', WP_CONTENT_DIR . '/uploads/essential-addons-elementor');
29
  define('EAEL_ASSET_URL', WP_CONTENT_URL . '/uploads/essential-addons-elementor');
30
 
4
  * Description: The ultimate elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 3.3.1
8
  * Author URI: https://wpdeveloper.net/
9
  *
10
  * Text Domain: essential-addons-elementor
24
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
25
  define('EAEL_PLUGIN_PATH', plugin_dir_path(__FILE__));
26
  define('EAEL_PLUGIN_URL', plugins_url('/', __FILE__));
27
+ define('EAEL_PLUGIN_VERSION', '3.3.1');
28
  define('EAEL_ASSET_PATH', WP_CONTENT_DIR . '/uploads/essential-addons-elementor');
29
  define('EAEL_ASSET_URL', WP_CONTENT_URL . '/uploads/essential-addons-elementor');
30
 
includes/Classes/Bootstrap.php CHANGED
@@ -33,6 +33,9 @@ class Bootstrap
33
  // transient elements container
34
  public $transient_extensions;
35
 
 
 
 
36
  // identify whether pro is enabled
37
  public $pro_enabled;
38
 
@@ -72,6 +75,11 @@ class Bootstrap
72
  // extensions classmap
73
  $this->registered_extensions = apply_filters('eael/registered_extensions', $GLOBALS['eael_config']['extensions']);
74
 
 
 
 
 
 
75
  // initialize transient container
76
  $this->transient_elements = [];
77
  $this->transient_extensions = [];
33
  // transient elements container
34
  public $transient_extensions;
35
 
36
+ // additional settings
37
+ public $additional_settings;
38
+
39
  // identify whether pro is enabled
40
  public $pro_enabled;
41
 
75
  // extensions classmap
76
  $this->registered_extensions = apply_filters('eael/registered_extensions', $GLOBALS['eael_config']['extensions']);
77
 
78
+ // additional settings
79
+ $this->additional_settings = apply_filters('eael/additional_settings', [
80
+ 'quick_tools' => true
81
+ ]);
82
+
83
  // initialize transient container
84
  $this->transient_elements = [];
85
  $this->transient_extensions = [];
includes/Traits/Admin.php CHANGED
@@ -200,7 +200,7 @@ trait Admin
200
  * Message message for showing.
201
  */
202
  $notice->classes( 'upsale', 'notice is-dismissible ' );
203
- $notice->message( 'upsale', '<p>'. __( '5000+ People already using <a href="hhttps://wpdeveloper.net/ea/notificationX" target="_blank">NotificationX</a> to increase their Sales & Engagement! Join Free or Get <a href="https://wpdeveloper.net/ea/notificationX" target="_blank">Exclusive Lifetime Pro</a> for only $39! Limied Time!', $notice->text_domain ) .'</p>' );
204
  $notice->thumbnail( 'upsale', plugins_url( 'assets/admin/images/nx-icon.svg', EAEL_PLUGIN_BASENAME ) );
205
 
206
  // Update Notice For PRO Version
@@ -236,6 +236,14 @@ trait Admin
236
  }
237
 
238
  public function admin_bar($wp_admin_bar) {
 
 
 
 
 
 
 
 
239
  $wp_admin_bar->add_node([
240
  'id' => 'ea-wp-admin-bar',
241
  'meta' => [
200
  * Message message for showing.
201
  */
202
  $notice->classes( 'upsale', 'notice is-dismissible ' );
203
+ $notice->message( 'upsale', '<p>'. __( '5000+ People already using <a href="https://wpdeveloper.net/ea/notificationX" target="_blank">NotificationX</a> to increase their Sales & Engagement! Join Free or Get <a href="https://wpdeveloper.net/ea/notificationX" target="_blank">Exclusive Lifetime Pro</a> for only $39! Limied Time!', $notice->text_domain ) .'</p>' );
204
  $notice->thumbnail( 'upsale', plugins_url( 'assets/admin/images/nx-icon.svg', EAEL_PLUGIN_BASENAME ) );
205
 
206
  // Update Notice For PRO Version
236
  }
237
 
238
  public function admin_bar($wp_admin_bar) {
239
+ if(is_admin()) {
240
+ return;
241
+ }
242
+
243
+ if(!$this->get_settings('quick_tools')) {
244
+ return;
245
+ }
246
+
247
  $wp_admin_bar->add_node([
248
  'id' => 'ea-wp-admin-bar',
249
  'meta' => [
includes/Traits/Enqueue.php CHANGED
@@ -46,7 +46,7 @@ trait Enqueue
46
 
47
  //Admin bar css
48
  wp_enqueue_style(
49
- 'essential_addons_elementor-admin-bar-css',
50
  EAEL_PLUGIN_URL . '/assets/admin/css/admin-bar.css',
51
  false,
52
  EAEL_PLUGIN_VERSION
46
 
47
  //Admin bar css
48
  wp_enqueue_style(
49
+ 'ea-admin-bar',
50
  EAEL_PLUGIN_URL . '/assets/admin/css/admin-bar.css',
51
  false,
52
  EAEL_PLUGIN_VERSION
includes/Traits/Library.php CHANGED
@@ -25,7 +25,7 @@ trait Library
25
  */
26
  public function get_settings($element = null)
27
  {
28
- $elements = get_option('eael_save_settings', array_fill_keys(array_keys(array_merge($this->registered_elements, $this->registered_extensions)), true));
29
 
30
  return (isset($element) ? (isset($elements[$element]) ? $elements[$element] : 0) : array_keys(array_filter($elements)));
31
  }
25
  */
26
  public function get_settings($element = null)
27
  {
28
+ $elements = get_option('eael_save_settings', array_fill_keys(array_keys(array_merge($this->registered_elements, $this->registered_extensions, $this->additional_settings)), true));
29
 
30
  return (isset($element) ? (isset($elements[$element]) ? $elements[$element] : 0) : array_keys(array_filter($elements)));
31
  }
includes/templates/admin/tools.php CHANGED
@@ -12,9 +12,19 @@
12
  <div class="eael-admin-block-content">
13
  <p><?php _e('Essential Addons styles & scripts are saved in Uploads folder. This option will clear all those cached files.', 'essential-addons-elementor'); ?></p>
14
  <a href="#" id="eael-regenerate-files" class="button eael-btn" target="_blank"><?php _e('Clear Cache', 'essential-addons-elementor'); ?></a>
 
 
 
 
 
 
 
 
 
 
15
  </div>
16
  </div>
17
- </div><!--admin block-wrapper end-->
18
  </div>
19
  </div>
20
  </div>
12
  <div class="eael-admin-block-content">
13
  <p><?php _e('Essential Addons styles & scripts are saved in Uploads folder. This option will clear all those cached files.', 'essential-addons-elementor'); ?></p>
14
  <a href="#" id="eael-regenerate-files" class="button eael-btn" target="_blank"><?php _e('Clear Cache', 'essential-addons-elementor'); ?></a>
15
+
16
+ <div class="eael-checkbox eael-checkbox-quick-tools">
17
+ <p class="eael-el-title">
18
+ <?php _e( 'Show Quick Tools in Admin Bar?', 'essential-addons-elementor' ); ?>
19
+ </p>
20
+
21
+ <input type="checkbox" id="<?php echo esc_attr('quick_tools'); ?>" name="<?php echo esc_attr('quick_tools'); ?>" <?php echo checked( 1, $this->get_settings('quick_tools'), false ); ?>>
22
+ <label for="<?php echo esc_attr('quick_tools'); ?>"></label>
23
+ </div>
24
+ <p class="quick-tools-description"><?php _e('Display quick cache clearing tools in admin bar from where you can clear global cache or page cache.', 'essential-addons-elementor'); ?></p>
25
  </div>
26
  </div>
27
+ </div>
28
  </div>
29
  </div>
30
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, page build
4
  Requires at least: 4.0
5
  Tested up to: 5.2
6
  Requires PHP: 5.4
7
- Stable tag: 3.3.0
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -171,6 +171,10 @@ Your existing elements/content will work with premium version. So you won't lose
171
 
172
  == Changelog ==
173
 
 
 
 
 
174
  = 3.3.0 - 15/09/2019 =
175
  - Improved : All post queries optimized to improve the load time and memory usage
176
  - Improved : Icon Manager optmized for better performance
4
  Requires at least: 4.0
5
  Tested up to: 5.2
6
  Requires PHP: 5.4
7
+ Stable tag: 3.3.1
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
171
 
172
  == Changelog ==
173
 
174
+ = 3.3.1 - 18/09/2019 =
175
+ - Added : Option to enable/disable EA Quick Tools menu in admin bar
176
+ - Few minor bugfix and improvements
177
+
178
  = 3.3.0 - 15/09/2019 =
179
  - Improved : All post queries optimized to improve the load time and memory usage
180
  - Improved : Icon Manager optmized for better performance