Elementor Essential Addons - Version 2.4.2

Version Description

  • Filterable Galley control improved
  • Element saving improved
  • Few minor bugfix and improvements
Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

admin/assets/css/admin.css CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  *=============================================================
3
- * Essential Addons Elementor Admin Settings Page Styles
4
- *=============================================================
5
  */
6
 
7
  /* General Style */
@@ -25,7 +25,7 @@
25
  line-height: 1;
26
  }
27
 
28
- .eael-header-left,
29
  .eael-header-right {
30
  -webkit-flex-grow: 1;
31
  flex-grow: 1;
@@ -109,7 +109,7 @@ textarea.eael-form-control {
109
  font-size: 14px;
110
  font-weight: 600;
111
  color: #5d5d5d;
112
- }
113
  .row {
114
  width: 100%;
115
  height: auto;
@@ -191,6 +191,16 @@ textarea.eael-form-control {
191
  transform: scaleX(1.3);
192
  }
193
  }
 
 
 
 
 
 
 
 
 
 
194
  /* Footer Style */
195
 
196
  .eael-settings-footer {
1
  /**
2
  *=============================================================
3
+ * Essential Addons Elementor Admin Settings Page Styles
4
+ *=============================================================
5
  */
6
 
7
  /* General Style */
25
  line-height: 1;
26
  }
27
 
28
+ .eael-header-left,
29
  .eael-header-right {
30
  -webkit-flex-grow: 1;
31
  flex-grow: 1;
109
  font-size: 14px;
110
  font-weight: 600;
111
  color: #5d5d5d;
112
+ }
113
  .row {
114
  width: 100%;
115
  height: auto;
191
  transform: scaleX(1.3);
192
  }
193
  }
194
+ /* Eael Tab Toggles */
195
+ .eael-settings-tab {
196
+ display: none;
197
+ }
198
+ .eael-settings-tab.active {
199
+ display: block;
200
+ }
201
+ .eael-tabs li a.active {
202
+ background-color: #fff;
203
+ }
204
  /* Footer Style */
205
 
206
  .eael-settings-footer {
admin/assets/images/icon-heart.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg style="enable-background:new 0 0 48 48;" version="1.1" viewBox="0 0 48 48" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Icons"><g><g id="Icons_7_"><g><path d="M35.72935,25.74662l0.8357-0.8271c1.611-1.611,2.4122-3.7475,2.4122-5.8668 c0-2.1279-0.8012-4.2558-2.4122-5.8668c-3.2221-3.2221-8.5031-3.2221-11.7337,0l-0.8271,0.8356l-0.8356-0.8356 c-3.222-3.2221-8.5031-3.2221-11.7251,0c-1.6196,1.611-2.4208,3.7389-2.4208,5.8668c0,2.1193,0.8012,4.2558,2.4208,5.8668 l0.8271,0.8271l11.3076,11.3077c0.2353,0.2352,0.6167,0.2351,0.8519-0.0002L35.72935,25.74662" style="fill:#EF4B53;"></path></g></g><path d="M17.80325,12.24382c0,0-6.9318-0.5491-7.6524,7.3092c0,0,1.4413-5.765,7.8583-5.4905 c0,0,1.5941,0.1605,1.5901-0.8317C19.59495,12.14722,17.80325,12.24382,17.80325,12.24382z" style="fill:#F47682;"></path></g></g></svg>
admin/assets/js/admin.js CHANGED
@@ -1,7 +1,17 @@
1
  ( function( $ ) {
2
  'use strict';
3
- // Init jQuery Ui Tabs
4
- $( ".eael-settings-tabs" ).tabs();
 
 
 
 
 
 
 
 
 
 
5
 
6
  $( '.eael-get-pro' ).on( 'click', function() {
7
  swal({
@@ -16,11 +26,11 @@
16
  } );
17
 
18
  // Adding link id after the url
19
- $('.eael-settings-tabs ul li a').click(function () {
20
- var tabUrl = $(this).attr( 'href' );
21
- window.location.hash = tabUrl;
22
- $('html, body').scrollTop(tabUrl);
23
- });
24
 
25
  // Save Button reacting on any changes
26
  var headerSaveBtn = $( '.eael-header-bar .eael-btn' );
@@ -31,7 +41,7 @@
31
  } );
32
 
33
  // Saving Data With Ajax Request
34
- $( 'form#eael-settings' ).on( 'submit', function(e) {
35
  e.preventDefault();
36
 
37
  $.ajax( {
1
  ( function( $ ) {
2
  'use strict';
3
+
4
+ /**
5
+ * Eael Tabs
6
+ */
7
+ $( '.eael-tabs li a' ).on( 'click', function(e) {
8
+ e.preventDefault();
9
+ $( '.eael-tabs li a' ).removeClass( 'active' );
10
+ $(this).addClass( 'active' );
11
+ var tab = $(this).attr( 'href' );
12
+ $( '.eael-settings-tab' ).removeClass( 'active' );
13
+ $( '.eael-settings-tabs' ).find( tab ).addClass( 'active' );
14
+ });
15
 
16
  $( '.eael-get-pro' ).on( 'click', function() {
17
  swal({
26
  } );
27
 
28
  // Adding link id after the url
29
+ // $('.eael-settings-tabs ul li a').click(function () {
30
+ // var tabUrl = $(this).attr( 'href' );
31
+ // window.location.hash = tabUrl;
32
+ // $('html, body').scrollTop(tabUrl);
33
+ // });
34
 
35
  // Save Button reacting on any changes
36
  var headerSaveBtn = $( '.eael-header-bar .eael-btn' );
41
  } );
42
 
43
  // Saving Data With Ajax Request
44
+ $( '.js-eael-settings-save' ).on( 'click', function(e) {
45
  e.preventDefault();
46
 
47
  $.ajax( {
admin/settings.php CHANGED
@@ -63,8 +63,6 @@ class Eael_Admin_Settings {
63
  wp_enqueue_style( 'essential_addons_elementor-admin-css', plugins_url( '/', __FILE__ ).'assets/css/admin.css' );
64
  wp_enqueue_style( 'font-awesome-css', plugins_url( '/', __FILE__ ).'assets/vendor/font-awesome/css/font-awesome.min.css' );
65
  wp_enqueue_style( 'essential_addons_elementor-sweetalert2-css', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/css/sweetalert2.min.css' );
66
-
67
- wp_enqueue_script( "jquery-ui-tabs" );
68
  wp_enqueue_script( 'essential_addons_elementor-admin-js', plugins_url( '/', __FILE__ ).'assets/js/admin.js', array( 'jquery', 'jquery-ui-tabs' ), '1.0', true );
69
  wp_enqueue_script( 'essential_addons_core-js', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/js/core.js', array( 'jquery' ), '1.0', true );
70
  wp_enqueue_script( 'essential_addons_sweetalert2-js', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/js/sweetalert2.min.js', array( 'jquery', 'essential_addons_core-js' ), '1.0', true );
@@ -126,20 +124,19 @@ class Eael_Admin_Settings {
126
  <h4 class="title"><?php _e( 'Essential Addons Settings', 'essential-addons-elementor' ); ?></h4>
127
  </div>
128
  <div class="eael-header-right">
129
- <input type="submit" value="Save settings" class="button eael-btn"/>
130
  </div>
131
  </div>
132
  <div class="eael-settings-tabs">
133
- <ul>
134
- <li><a href="#general"><i class="fa fa-cogs"></i> General</a></li>
135
- <li><a href="#elements"><i class="fa fa-cubes"></i> Elements</a></li>
136
- <li><a href="#go-pro"><i class="fa fa-bolt"></i> Go Premium</a></li>
137
- <li><a href="#support"><i class="fa fa-ticket"></i> Support</a></li>
138
  </ul>
139
- <div id="general" class="eael-settings-tab">
140
  <div class="row">
141
  <div class="col-half">
142
-
143
  <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/eael-featured.png'; ?>">
144
  </div>
145
  <div class="col-half">
@@ -155,384 +152,384 @@ class Eael_Admin_Settings {
155
  </div>
156
  </div>
157
  <div id="elements" class="eael-settings-tab">
158
- <div class="row">
159
- <div class="col-full">
160
- <p class="eael-elements-control-notice">You can disable the elements you are not using on your site. That will disable all associated assets of those widgets to improve your site loading.</p>
161
- <table class="form-table">
162
- <tr>
163
- <td>
164
- <div class="eael-checkbox">
165
- <p class="title"><?php _e( 'Contact Form 7', 'essential-addons-elementor' ); ?></p>
166
- <p class="desc"><?php _e( 'Activate / Deactivate Contact Form 7', 'essential-addons-elementor' ); ?></p>
167
- <input type="checkbox" id="contact-form-7" name="contact-form-7" <?php checked( 1, $this->eael_get_settings['contact-form-7'], true ); ?> >
168
- <label for="contact-form-7"></label>
169
- </div>
170
- </td>
171
- <td>
172
- <div class="eael-checkbox">
173
- <p class="title"><?php _e( 'Count Down', 'essential-addons-elementor' ); ?></p>
174
- <p class="desc"><?php _e( 'Activate / Deactivate Count Down', 'essential-addons-elementor' ); ?></p>
175
- <input type="checkbox" id="count-down" name="count-down" <?php checked( 1, $this->eael_get_settings['count-down'], true ); ?> >
176
- <label for="count-down"></label>
177
- </div>
178
- </td>
179
- <td>
180
- <div class="eael-checkbox">
181
- <p class="title"><?php _e( 'Creative Button', 'essential-addons-elementor' ); ?></p>
182
- <p class="desc"><?php _e( 'Activate / Deactivate Creative Button', 'essential-addons-elementor' ); ?></p>
183
- <input type="checkbox" id="creative-btn" name="creative-btn" <?php checked( 1, $this->eael_get_settings['creative-btn'], true ); ?> >
184
- <label for="creative-btn"></label>
185
- </div>
186
- </td>
187
- <td>
188
- <div class="eael-checkbox">
189
- <p class="title"><?php _e( 'Fancy Text', 'essential-addons-elementor' ); ?></p>
190
- <p class="desc"><?php _e( 'Activate / Deactivate Fancy Text', 'essential-addons-elementor' ); ?></p>
191
- <input type="checkbox" id="fancy-text" name="fancy-text" <?php checked( 1, $this->eael_get_settings['fancy-text'], true ); ?> >
192
- <label for="fancy-text"></label>
193
- </div>
194
- </td>
195
- <td>
196
- <div class="eael-checkbox">
197
- <p class="title"><?php _e( 'Post Grid', 'essential-addons-elementor' ); ?></p>
198
- <p class="desc"><?php _e( 'Activate / Deactivate Post Grid', 'essential-addons-elementor' ); ?></p>
199
- <input type="checkbox" id="post-grid" name="post-grid" <?php checked( 1, $this->eael_get_settings['post-grid'], true ); ?> >
200
- <label for="post-grid"></label>
201
- </div>
202
- </td>
203
- </tr>
204
- <tr>
205
- <td>
206
- <div class="eael-checkbox">
207
- <p class="title"><?php _e( 'Post Timeline', 'essential-addons-elementor' ) ?></p>
208
- <p class="desc"><?php _e( 'Activate / Deactivate Post Timeline', 'essential-addons-elementor' ); ?></p>
209
- <input type="checkbox" id="post-timeline" name="post-timeline" <?php checked( 1, $this->eael_get_settings['post-timeline'], true ); ?> >
210
- <label for="post-timeline"></label>
211
- </div>
212
- </td>
213
- <td>
214
- <div class="eael-checkbox">
215
- <p class="title"><?php _e( 'Product Grid', 'essential-addons-elementor' ) ?></p>
216
- <p class="desc"><?php _e( 'Activate / Deactivate Product Grid', 'essential-addons-elementor' ); ?></p>
217
- <input type="checkbox" id="product-grid" name="product-grid" <?php checked( 1, $this->eael_get_settings['product-grid'], true ); ?> >
218
- <label for="product-grid"></label>
219
- </div>
220
- </td>
221
- <td>
222
- <div class="eael-checkbox">
223
- <p class="title"><?php _e( 'Team Member', 'essential-addons-elementor' ) ?></p>
224
- <p class="desc"><?php _e( 'Activate / Deactivate Team Member', 'essential-addons-elementor' ); ?></p>
225
- <input type="checkbox" id="team-members" name="team-members" <?php checked( 1, $this->eael_get_settings['team-members'], true ); ?> >
226
- <label for="team-members"></label>
227
- </div>
228
- </td>
229
- <td>
230
- <div class="eael-checkbox">
231
- <p class="title"><?php _e( 'Testimonials', 'essential-addons-elementor' ) ?></p>
232
- <p class="desc"><?php _e( 'Activate / Deactivate Testimonials', 'essential-addons-elementor' ); ?></p>
233
- <input type="checkbox" id="testimonials" name="testimonials" <?php checked( 1, $this->eael_get_settings['testimonials'], true ); ?> >
234
- <label for="testimonials"></label>
235
- </div>
236
- </td>
237
- <td>
238
- <div class="eael-checkbox">
239
- <p class="title"><?php _e( 'We-Forms', 'essential-addons-elementor' ) ?></p>
240
- <p class="desc"><?php _e( 'Activate / Deactivate WeForms', 'essential-addons-elementor' ); ?></p>
241
- <input type="checkbox" id="weforms" name="weforms" <?php checked( 1, $this->eael_get_settings['weforms'], true ); ?> >
242
- <label for="weforms"></label>
243
- </div>
244
- </td>
245
- </tr>
246
- <tr>
247
- <td>
248
- <div class="eael-checkbox">
249
- <p class="title"><?php _e( 'Call To Action', 'essential-addons-elementor' ) ?></p>
250
- <p class="desc"><?php _e( 'Activate / Deactivate Call To Action', 'essential-addons-elementor' ); ?></p>
251
- <input type="checkbox" id="call-to-action" name="call-to-action" <?php checked( 1, $this->eael_get_settings['call-to-action'], true ); ?> >
252
- <label for="call-to-action"></label>
253
- </div>
254
- </td>
255
- <td>
256
- <div class="eael-checkbox">
257
- <p class="title"><?php _e( 'Flip Box', 'essential-addons-elementor' ) ?></p>
258
- <p class="desc"><?php _e( 'Activate / Deactivate Flip Box', 'essential-addons-elementor' ); ?></p>
259
- <input type="checkbox" id="flip-box" name="flip-box" <?php checked( 1, $this->eael_get_settings['flip-box'], true ); ?> >
260
- <label for="flip-box"></label>
261
- </div>
262
- </td>
263
- <td>
264
- <div class="eael-checkbox">
265
- <p class="title"><?php _e( 'Info Box', 'essential-addons-elementor' ) ?></p>
266
- <p class="desc"><?php _e( 'Activate / Deactivate Info Box', 'essential-addons-elementor' ); ?></p>
267
- <input type="checkbox" id="info-box" name="info-box" <?php checked( 1, $this->eael_get_settings['info-box'], true ); ?> >
268
- <label for="info-box"></label>
269
- </div>
270
- </td>
271
- <td>
272
- <div class="eael-checkbox">
273
- <p class="title"><?php _e( 'Dual Color Header', 'essential-addons-elementor' ) ?></p>
274
- <p class="desc"><?php _e( 'Activate / Deactivate Dual Color Header', 'essential-addons-elementor' ); ?></p>
275
- <input type="checkbox" id="dual-header" name="dual-header" <?php checked( 1, $this->eael_get_settings['dual-header'], true ); ?> >
276
- <label for="dual-header"></label>
277
- </div>
278
- </td>
279
- <td>
280
- <div class="eael-checkbox">
281
- <p class="title"><?php _e( 'Pricing Table', 'essential-addons-elementor' ) ?></p>
282
- <p class="desc"><?php _e( 'Activate / Deactivate Pricing Table', 'essential-addons-elementor' ); ?></p>
283
- <input type="checkbox" id="price-table" name="price-table" <?php checked( 1, $this->eael_get_settings['price-table'], true ); ?> >
284
- <label for="price-table"></label>
285
- </div>
286
- </td>
287
- </tr>
288
- <tr>
289
- <td>
290
- <div class="eael-checkbox">
291
- <p class="title"><?php _e( 'Ninja Form', 'essential-addons-elementor' ) ?></p>
292
- <p class="desc"><?php _e( 'Activate / Deactivate Ninja Form', 'essential-addons-elementor' ); ?></p>
293
- <input type="checkbox" id="ninja-form" name="ninja-form" <?php checked( 1, $this->eael_get_settings['ninja-form'], true ); ?> >
294
- <label for="ninja-form"></label>
295
- </div>
296
- </td>
297
- <td>
298
- <div class="eael-checkbox">
299
- <p class="title"><?php _e( 'Gravity Form', 'essential-addons-elementor' ) ?></p>
300
- <p class="desc"><?php _e( 'Activate / Deactivate Gravity Form', 'essential-addons-elementor' ); ?></p>
301
- <input type="checkbox" id="gravity-form" name="gravity-form" <?php checked( 1, $this->eael_get_settings['gravity-form'], true ); ?> >
302
- <label for="gravity-form"></label>
303
- </div>
304
- </td>
305
- <td>
306
- <div class="eael-checkbox">
307
- <p class="title"><?php _e( 'Caldera Form', 'essential-addons-elementor' ) ?></p>
308
- <p class="desc"><?php _e( 'Activate / Deactivate Caldera Form', 'essential-addons-elementor' ); ?></p>
309
- <input type="checkbox" id="caldera-form" name="caldera-form" <?php checked( 1, $this->eael_get_settings['caldera-form'], true ); ?> >
310
- <label for="caldera-form"></label>
311
- </div>
312
- </td>
313
- <td>
314
- <div class="eael-checkbox">
315
- <p class="title"><?php _e( 'Twitter Feed', 'essential-addons-elementor' ) ?></p>
316
- <p class="desc"><?php _e( 'Activate / Deactivate Twitter Feed', 'essential-addons-elementor' ); ?></p>
317
- <input type="checkbox" id="twitter-feed" name="twitter-feed" <?php checked( 1, $this->eael_get_settings['twitter-feed'], true ); ?> >
318
- <label for="twitter-feed"></label>
319
- </div>
320
- </td>
321
- <td>
322
- <div class="eael-checkbox">
323
- <p class="title"><?php _e( 'Facebook Feed', 'essential-addons-elementor' ) ?></p>
324
- <p class="desc"><?php _e( 'Activate / Deactivate Facebook Feed', 'essential-addons-elementor' ); ?></p>
325
- <input type="checkbox" id="facebook-feed" name="facebook-feed" <?php checked( 1, $this->eael_get_settings['facebook-feed'], true ); ?> >
326
- <label for="facebook-feed"></label>
327
- </div>
328
- </td>
329
- </tr>
330
- <tr>
331
- <td>
332
- <div class="eael-checkbox">
333
- <p class="title"><?php _e( 'Data Table', 'essential-addons-elementor' ) ?></p>
334
- <p class="desc"><?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?></p>
335
- <input type="checkbox" id="data-table" name="data-table" <?php checked( 1, $this->eael_get_settings['data-table'], true ); ?> >
336
- <label for="data-table"></label>
337
- </div>
338
- </td>
339
- <td>
340
- <div class="eael-checkbox">
341
- <p class="title"><?php _e( 'Filterable Gallery', 'essential-addons-elementor' ) ?></p>
342
- <p class="desc"><?php _e( 'Activate / Deactivate Filterable Gallery', 'essential-addons-elementor' ); ?></p>
343
- <input type="checkbox" id="filter-gallery" name="filter-gallery" <?php checked( 1, $this->eael_get_settings['filter-gallery'], true ); ?> >
344
- <label for="filter-gallery"></label>
345
- </div>
346
- </td>
347
- </tr>
348
- </table>
349
- </div>
350
- <div class="col-full">
351
- <div class="premium-elements-title">
352
- <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/lock-icon.png'; ?>">
353
- <h4 class="section-title">Premium Elements</h4>
354
- </div>
355
- <table class="form-table">
356
- <tr>
357
- <td>
358
- <div class="eael-checkbox">
359
- <p class="title">
360
- <?php _e( 'Image Comparison', 'essential-addons-elementor' ); ?>
361
- </p>
362
- <p class="desc">
363
- <?php _e( 'Activate / Deactivate Image Comparison', 'essential-addons-elementor' ); ?>
364
- </p>
365
- <input type="checkbox" id="img-comparison" name="img-comparison" disabled>
366
- <label for="img-comparison" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
367
- </div>
368
- </td>
369
- <td>
370
- <div class="eael-checkbox">
371
- <p class="title">
372
- <?php _e( 'Instagram Gallery', 'essential-addons-elementor' ); ?>
373
- </p>
374
- <p class="desc">
375
- <?php _e( 'Activate / Deactivate Instagram Gallery', 'essential-addons-elementor' ); ?>
376
- </p>
377
- <input type="checkbox" id="instagram-gallery" name="instagram-gallery" disabled>
378
- <label for="instagram-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
379
- </div>
380
- </td>
381
- <td>
382
- <div class="eael-checkbox">
383
- <p class="title">
384
- <?php _e( 'Interactive Promo', 'essential-addons-elementor' ); ?>
385
- </p>
386
- <p class="desc">
387
- <?php _e( 'Activate / Deactivate Interactive Promo', 'essential-addons-elementor' ); ?>
388
- </p>
389
- <input type="checkbox" id="interactive-promo" name="interactive-promo" disabled>
390
- <label for="interactive-promo" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
391
- </div>
392
- </td>
393
- <td>
394
- <div class="eael-checkbox">
395
- <p class="title">
396
- <?php _e( 'Lightbox', 'essential-addons-elementor' ); ?>
397
- </p>
398
- <p class="desc">
399
- <?php _e( 'Activate / Deactivate Lightbox', 'essential-addons-elementor' ); ?>
400
- </p>
401
- <input type="checkbox" id="lightbox" name="lightbox" disabled>
402
- <label for="lightbox" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
403
- </div>
404
- </td>
405
- <td>
406
- <div class="eael-checkbox">
407
- <p class="title">
408
- <?php _e( 'Post Block', 'essential-addons-elementor' ); ?>
409
- </p>
410
- <p class="desc">
411
- <?php _e( 'Activate / Deactivate Post Block', 'essential-addons-elementor' ); ?>
412
- </p>
413
- <input type="checkbox" id="post-block" name="post-block" disabled>
414
- <label for="post-block" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
415
- </div>
416
- </td>
417
- </tr>
418
- <tr>
419
- <td>
420
- <div class="eael-checkbox">
421
- <p class="title">
422
- <?php _e( 'Testimonial Slider', 'essential-addons-elementor' ) ?>
423
- </p>
424
- <p class="desc">
425
- <?php _e( 'Activate / Deactivate Testimonial Slider', 'essential-addons-elementor' ); ?>
426
- </p>
427
- <input type="checkbox" id="testimonial-slider" name="testimonial-slider" disabled>
428
- <label for="testimonial-slider" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
429
- </div>
430
- </td>
431
- <td>
432
- <div class="eael-checkbox">
433
- <p class="title">
434
- <?php _e( 'Static Product', 'essential-addons-elementor' ) ?>
435
- </p>
436
- <p class="desc">
437
- <?php _e( 'Activate / Deactivate Static Product', 'essential-addons-elementor' ); ?>
438
- </p>
439
- <input type="checkbox" id="static-product" name="static-product" disabled>
440
- <label for="static-product" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
441
- </div>
442
- </td>
443
- <td>
444
- <div class="eael-checkbox">
445
- <p class="title">
446
- <?php _e( 'Flip Carousel', 'essential-addons-elementor' ) ?>
447
- </p>
448
- <p class="desc">
449
- <?php _e( 'Activate / Deactivate Flip Carousel', 'essential-addons-elementor' ); ?>
450
- </p>
451
- <input type="checkbox" id="flip-carousel" name="flip-carousel" disabled>
452
- <label for="flip-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
453
- </div>
454
- </td>
455
- <td>
456
- <div class="eael-checkbox">
457
- <p class="title">
458
- <?php _e( 'Interactive Cards', 'essential-addons-elementor' ) ?>
459
- </p>
460
- <p class="desc">
461
- <?php _e( 'Activate / Deactivate Interactive Cards', 'essential-addons-elementor' ); ?>
462
- </p>
463
- <input type="checkbox" id="interactive-cards" name="interactive-cards" disabled>
464
- <label for="interactive-cards" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
465
- </div>
466
- </td>
467
- <td>
468
- <div class="eael-checkbox">
469
- <p class="title">
470
- <?php _e( 'Content Timeline', 'essential-addons-elementor' ) ?>
471
- </p>
472
- <p class="desc">
473
- <?php _e( 'Activate / Deactivate Content Timeline', 'essential-addons-elementor' ); ?>
474
- </p>
475
- <input type="checkbox" id="content-timeline" name="content-timeline" disabled>
476
- <label for="content-timeline" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
477
- </div>
478
- </td>
479
- </tr>
480
- <tr>
481
- <td>
482
- <div class="eael-checkbox">
483
- <p class="title">
484
- <?php _e( 'Data Table', 'essential-addons-elementor' ) ?>
485
- </p>
486
- <p class="desc">
487
- <?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?>
488
- </p>
489
- <input type="checkbox" id="data-table" name="data-table" disabled>
490
- <label for="data-table" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
491
- </div>
492
- </td>
493
- <td>
494
- <div class="eael-checkbox">
495
- <p class="title">
496
- <?php _e( 'Twitter Feed Carousel', 'essential-addons-elementor' ) ?>
497
- </p>
498
- <p class="desc">
499
- <?php _e( 'Activate / Deactivate Twitter Feed Carousel', 'essential-addons-elementor' ); ?>
500
- </p>
501
- <input type="checkbox" id="twitter-feed-carousel" name="twitter-feed-carousel" disabled>
502
- <label for="twitter-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
503
- </div>
504
- </td>
505
- <td>
506
- <div class="eael-checkbox">
507
- <p class="title">
508
- <?php _e( 'Facebook Feed Carousel', 'essential-addons-elementor' ) ?>
509
- </p>
510
- <p class="desc">
511
- <?php _e( 'Activate / Deactivate Facebook Feed Carousel', 'essential-addons-elementor' ); ?>
512
- </p>
513
- <input type="checkbox" id="facebook-feed-carousel" name="facebook-feed-carousel" disabled>
514
- <label for="facebook-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
515
- </div>
516
- </td>
517
- <td>
518
- <div class="eael-checkbox">
519
- <p class="title">
520
- <?php _e( 'Dynamic Filter Gallery', 'essential-addons-elementor' ) ?>
521
- </p>
522
- <p class="desc">
523
- <?php _e( 'Activate / Deactivate Dynamic Filter Gallery', 'essential-addons-elementor' ); ?>
524
- </p>
525
- <input type="checkbox" id="dynamic-filter-gallery" name="dynamic-filter-gallery" disabled>
526
- <label for="dynamic-filter-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
527
- </div>
528
- </td>
529
- </tr>
530
- </table>
531
- <div class="eael-save-btn-wrap">
532
- <input type="submit" value="Save settings" class="button eael-btn"/>
533
- </div>
534
- </div>
535
- </div>
536
  </div>
537
  <div id="go-pro" class="eael-settings-tab">
538
  <div class="row go-premium">
@@ -550,25 +547,25 @@ class Eael_Admin_Settings {
550
  </div>
551
  </div>
552
  <div id="support" class="eael-settings-tab">
553
- <div class="row">
554
- <div class="col-half">
555
- <h4>Need help? Open a support ticket!</h4>
556
- <p>You can always get support from the community.</p>
557
- <a href="https://wordpress.org/support/plugin/essential-addons-for-elementor-lite" target="_blank" class="button eael-btn">Get Help</a>
 
 
 
 
 
 
558
  </div>
559
- <div class="col-half">
560
- <h4>Need Premium Support?</h4>
561
- <p>Purchasing a license entitles you to receive premium support.</p>
562
- <a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" class="button eael-btn">Get a license</a>
 
 
563
  </div>
564
- </div>
565
- <div class="row">
566
- <div class="col-half">
567
- <div class="essential-addons-community-link">
568
- <a href="https://www.facebook.com/groups/essentialaddons/" target="_blank"><i class="fa fa-facebook-official fa-2x fa-fw" aria-hidden="true"></i> <span>Join the Facebook Community</span></a>
569
- </div>
570
- </div>
571
- </div>
572
  </div>
573
  </div>
574
  </form>
63
  wp_enqueue_style( 'essential_addons_elementor-admin-css', plugins_url( '/', __FILE__ ).'assets/css/admin.css' );
64
  wp_enqueue_style( 'font-awesome-css', plugins_url( '/', __FILE__ ).'assets/vendor/font-awesome/css/font-awesome.min.css' );
65
  wp_enqueue_style( 'essential_addons_elementor-sweetalert2-css', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/css/sweetalert2.min.css' );
 
 
66
  wp_enqueue_script( 'essential_addons_elementor-admin-js', plugins_url( '/', __FILE__ ).'assets/js/admin.js', array( 'jquery', 'jquery-ui-tabs' ), '1.0', true );
67
  wp_enqueue_script( 'essential_addons_core-js', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/js/core.js', array( 'jquery' ), '1.0', true );
68
  wp_enqueue_script( 'essential_addons_sweetalert2-js', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/js/sweetalert2.min.js', array( 'jquery', 'essential_addons_core-js' ), '1.0', true );
124
  <h4 class="title"><?php _e( 'Essential Addons Settings', 'essential-addons-elementor' ); ?></h4>
125
  </div>
126
  <div class="eael-header-right">
127
+ <input type="submit" value="Save settings" class="button eael-btn js-eael-settings-save"/>
128
  </div>
129
  </div>
130
  <div class="eael-settings-tabs">
131
+ <ul class="eael-tabs">
132
+ <li><a href="#general" class="active"><i class="fa fa-cogs"></i> General</a></li>
133
+ <li><a href="#elements"><i class="fa fa-cubes"></i> Elements</a></li>
134
+ <li><a href="#go-pro"><i class="fa fa-bolt"></i> Go Premium</a></li>
135
+ <li><a href="#support"><i class="fa fa-ticket"></i> Support</a></li>
136
  </ul>
137
+ <div id="general" class="eael-settings-tab active">
138
  <div class="row">
139
  <div class="col-half">
 
140
  <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/eael-featured.png'; ?>">
141
  </div>
142
  <div class="col-half">
152
  </div>
153
  </div>
154
  <div id="elements" class="eael-settings-tab">
155
+ <div class="row">
156
+ <div class="col-full">
157
+ <p class="eael-elements-control-notice">You can disable the elements you are not using on your site. That will disable all associated assets of those widgets to improve your site loading.</p>
158
+ <table class="form-table">
159
+ <tr>
160
+ <td>
161
+ <div class="eael-checkbox">
162
+ <p class="title"><?php _e( 'Contact Form 7', 'essential-addons-elementor' ); ?></p>
163
+ <p class="desc"><?php _e( 'Activate / Deactivate Contact Form 7', 'essential-addons-elementor' ); ?></p>
164
+ <input type="checkbox" id="contact-form-7" name="contact-form-7" <?php checked( 1, $this->eael_get_settings['contact-form-7'], true ); ?> >
165
+ <label for="contact-form-7"></label>
166
+ </div>
167
+ </td>
168
+ <td>
169
+ <div class="eael-checkbox">
170
+ <p class="title"><?php _e( 'Count Down', 'essential-addons-elementor' ); ?></p>
171
+ <p class="desc"><?php _e( 'Activate / Deactivate Count Down', 'essential-addons-elementor' ); ?></p>
172
+ <input type="checkbox" id="count-down" name="count-down" <?php checked( 1, $this->eael_get_settings['count-down'], true ); ?> >
173
+ <label for="count-down"></label>
174
+ </div>
175
+ </td>
176
+ <td>
177
+ <div class="eael-checkbox">
178
+ <p class="title"><?php _e( 'Creative Button', 'essential-addons-elementor' ); ?></p>
179
+ <p class="desc"><?php _e( 'Activate / Deactivate Creative Button', 'essential-addons-elementor' ); ?></p>
180
+ <input type="checkbox" id="creative-btn" name="creative-btn" <?php checked( 1, $this->eael_get_settings['creative-btn'], true ); ?> >
181
+ <label for="creative-btn"></label>
182
+ </div>
183
+ </td>
184
+ <td>
185
+ <div class="eael-checkbox">
186
+ <p class="title"><?php _e( 'Fancy Text', 'essential-addons-elementor' ); ?></p>
187
+ <p class="desc"><?php _e( 'Activate / Deactivate Fancy Text', 'essential-addons-elementor' ); ?></p>
188
+ <input type="checkbox" id="fancy-text" name="fancy-text" <?php checked( 1, $this->eael_get_settings['fancy-text'], true ); ?> >
189
+ <label for="fancy-text"></label>
190
+ </div>
191
+ </td>
192
+ <td>
193
+ <div class="eael-checkbox">
194
+ <p class="title"><?php _e( 'Post Grid', 'essential-addons-elementor' ); ?></p>
195
+ <p class="desc"><?php _e( 'Activate / Deactivate Post Grid', 'essential-addons-elementor' ); ?></p>
196
+ <input type="checkbox" id="post-grid" name="post-grid" <?php checked( 1, $this->eael_get_settings['post-grid'], true ); ?> >
197
+ <label for="post-grid"></label>
198
+ </div>
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td>
203
+ <div class="eael-checkbox">
204
+ <p class="title"><?php _e( 'Post Timeline', 'essential-addons-elementor' ) ?></p>
205
+ <p class="desc"><?php _e( 'Activate / Deactivate Post Timeline', 'essential-addons-elementor' ); ?></p>
206
+ <input type="checkbox" id="post-timeline" name="post-timeline" <?php checked( 1, $this->eael_get_settings['post-timeline'], true ); ?> >
207
+ <label for="post-timeline"></label>
208
+ </div>
209
+ </td>
210
+ <td>
211
+ <div class="eael-checkbox">
212
+ <p class="title"><?php _e( 'Product Grid', 'essential-addons-elementor' ) ?></p>
213
+ <p class="desc"><?php _e( 'Activate / Deactivate Product Grid', 'essential-addons-elementor' ); ?></p>
214
+ <input type="checkbox" id="product-grid" name="product-grid" <?php checked( 1, $this->eael_get_settings['product-grid'], true ); ?> >
215
+ <label for="product-grid"></label>
216
+ </div>
217
+ </td>
218
+ <td>
219
+ <div class="eael-checkbox">
220
+ <p class="title"><?php _e( 'Team Member', 'essential-addons-elementor' ) ?></p>
221
+ <p class="desc"><?php _e( 'Activate / Deactivate Team Member', 'essential-addons-elementor' ); ?></p>
222
+ <input type="checkbox" id="team-members" name="team-members" <?php checked( 1, $this->eael_get_settings['team-members'], true ); ?> >
223
+ <label for="team-members"></label>
224
+ </div>
225
+ </td>
226
+ <td>
227
+ <div class="eael-checkbox">
228
+ <p class="title"><?php _e( 'Testimonials', 'essential-addons-elementor' ) ?></p>
229
+ <p class="desc"><?php _e( 'Activate / Deactivate Testimonials', 'essential-addons-elementor' ); ?></p>
230
+ <input type="checkbox" id="testimonials" name="testimonials" <?php checked( 1, $this->eael_get_settings['testimonials'], true ); ?> >
231
+ <label for="testimonials"></label>
232
+ </div>
233
+ </td>
234
+ <td>
235
+ <div class="eael-checkbox">
236
+ <p class="title"><?php _e( 'We-Forms', 'essential-addons-elementor' ) ?></p>
237
+ <p class="desc"><?php _e( 'Activate / Deactivate WeForms', 'essential-addons-elementor' ); ?></p>
238
+ <input type="checkbox" id="weforms" name="weforms" <?php checked( 1, $this->eael_get_settings['weforms'], true ); ?> >
239
+ <label for="weforms"></label>
240
+ </div>
241
+ </td>
242
+ </tr>
243
+ <tr>
244
+ <td>
245
+ <div class="eael-checkbox">
246
+ <p class="title"><?php _e( 'Call To Action', 'essential-addons-elementor' ) ?></p>
247
+ <p class="desc"><?php _e( 'Activate / Deactivate Call To Action', 'essential-addons-elementor' ); ?></p>
248
+ <input type="checkbox" id="call-to-action" name="call-to-action" <?php checked( 1, $this->eael_get_settings['call-to-action'], true ); ?> >
249
+ <label for="call-to-action"></label>
250
+ </div>
251
+ </td>
252
+ <td>
253
+ <div class="eael-checkbox">
254
+ <p class="title"><?php _e( 'Flip Box', 'essential-addons-elementor' ) ?></p>
255
+ <p class="desc"><?php _e( 'Activate / Deactivate Flip Box', 'essential-addons-elementor' ); ?></p>
256
+ <input type="checkbox" id="flip-box" name="flip-box" <?php checked( 1, $this->eael_get_settings['flip-box'], true ); ?> >
257
+ <label for="flip-box"></label>
258
+ </div>
259
+ </td>
260
+ <td>
261
+ <div class="eael-checkbox">
262
+ <p class="title"><?php _e( 'Info Box', 'essential-addons-elementor' ) ?></p>
263
+ <p class="desc"><?php _e( 'Activate / Deactivate Info Box', 'essential-addons-elementor' ); ?></p>
264
+ <input type="checkbox" id="info-box" name="info-box" <?php checked( 1, $this->eael_get_settings['info-box'], true ); ?> >
265
+ <label for="info-box"></label>
266
+ </div>
267
+ </td>
268
+ <td>
269
+ <div class="eael-checkbox">
270
+ <p class="title"><?php _e( 'Dual Color Header', 'essential-addons-elementor' ) ?></p>
271
+ <p class="desc"><?php _e( 'Activate / Deactivate Dual Color Header', 'essential-addons-elementor' ); ?></p>
272
+ <input type="checkbox" id="dual-header" name="dual-header" <?php checked( 1, $this->eael_get_settings['dual-header'], true ); ?> >
273
+ <label for="dual-header"></label>
274
+ </div>
275
+ </td>
276
+ <td>
277
+ <div class="eael-checkbox">
278
+ <p class="title"><?php _e( 'Pricing Table', 'essential-addons-elementor' ) ?></p>
279
+ <p class="desc"><?php _e( 'Activate / Deactivate Pricing Table', 'essential-addons-elementor' ); ?></p>
280
+ <input type="checkbox" id="price-table" name="price-table" <?php checked( 1, $this->eael_get_settings['price-table'], true ); ?> >
281
+ <label for="price-table"></label>
282
+ </div>
283
+ </td>
284
+ </tr>
285
+ <tr>
286
+ <td>
287
+ <div class="eael-checkbox">
288
+ <p class="title"><?php _e( 'Ninja Form', 'essential-addons-elementor' ) ?></p>
289
+ <p class="desc"><?php _e( 'Activate / Deactivate Ninja Form', 'essential-addons-elementor' ); ?></p>
290
+ <input type="checkbox" id="ninja-form" name="ninja-form" <?php checked( 1, $this->eael_get_settings['ninja-form'], true ); ?> >
291
+ <label for="ninja-form"></label>
292
+ </div>
293
+ </td>
294
+ <td>
295
+ <div class="eael-checkbox">
296
+ <p class="title"><?php _e( 'Gravity Form', 'essential-addons-elementor' ) ?></p>
297
+ <p class="desc"><?php _e( 'Activate / Deactivate Gravity Form', 'essential-addons-elementor' ); ?></p>
298
+ <input type="checkbox" id="gravity-form" name="gravity-form" <?php checked( 1, $this->eael_get_settings['gravity-form'], true ); ?> >
299
+ <label for="gravity-form"></label>
300
+ </div>
301
+ </td>
302
+ <td>
303
+ <div class="eael-checkbox">
304
+ <p class="title"><?php _e( 'Caldera Form', 'essential-addons-elementor' ) ?></p>
305
+ <p class="desc"><?php _e( 'Activate / Deactivate Caldera Form', 'essential-addons-elementor' ); ?></p>
306
+ <input type="checkbox" id="caldera-form" name="caldera-form" <?php checked( 1, $this->eael_get_settings['caldera-form'], true ); ?> >
307
+ <label for="caldera-form"></label>
308
+ </div>
309
+ </td>
310
+ <td>
311
+ <div class="eael-checkbox">
312
+ <p class="title"><?php _e( 'Twitter Feed', 'essential-addons-elementor' ) ?></p>
313
+ <p class="desc"><?php _e( 'Activate / Deactivate Twitter Feed', 'essential-addons-elementor' ); ?></p>
314
+ <input type="checkbox" id="twitter-feed" name="twitter-feed" <?php checked( 1, $this->eael_get_settings['twitter-feed'], true ); ?> >
315
+ <label for="twitter-feed"></label>
316
+ </div>
317
+ </td>
318
+ <td>
319
+ <div class="eael-checkbox">
320
+ <p class="title"><?php _e( 'Facebook Feed', 'essential-addons-elementor' ) ?></p>
321
+ <p class="desc"><?php _e( 'Activate / Deactivate Facebook Feed', 'essential-addons-elementor' ); ?></p>
322
+ <input type="checkbox" id="facebook-feed" name="facebook-feed" <?php checked( 1, $this->eael_get_settings['facebook-feed'], true ); ?> >
323
+ <label for="facebook-feed"></label>
324
+ </div>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td>
329
+ <div class="eael-checkbox">
330
+ <p class="title"><?php _e( 'Data Table', 'essential-addons-elementor' ) ?></p>
331
+ <p class="desc"><?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?></p>
332
+ <input type="checkbox" id="data-table" name="data-table" <?php checked( 1, $this->eael_get_settings['data-table'], true ); ?> >
333
+ <label for="data-table"></label>
334
+ </div>
335
+ </td>
336
+ <td>
337
+ <div class="eael-checkbox">
338
+ <p class="title"><?php _e( 'Filterable Gallery', 'essential-addons-elementor' ) ?></p>
339
+ <p class="desc"><?php _e( 'Activate / Deactivate Filterable Gallery', 'essential-addons-elementor' ); ?></p>
340
+ <input type="checkbox" id="filter-gallery" name="filter-gallery" <?php checked( 1, $this->eael_get_settings['filter-gallery'], true ); ?> >
341
+ <label for="filter-gallery"></label>
342
+ </div>
343
+ </td>
344
+ </tr>
345
+ </table>
346
+ </div>
347
+ <div class="col-full">
348
+ <div class="premium-elements-title">
349
+ <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/lock-icon.png'; ?>">
350
+ <h4 class="section-title">Premium Elements</h4>
351
+ </div>
352
+ <table class="form-table">
353
+ <tr>
354
+ <td>
355
+ <div class="eael-checkbox">
356
+ <p class="title">
357
+ <?php _e( 'Image Comparison', 'essential-addons-elementor' ); ?>
358
+ </p>
359
+ <p class="desc">
360
+ <?php _e( 'Activate / Deactivate Image Comparison', 'essential-addons-elementor' ); ?>
361
+ </p>
362
+ <input type="checkbox" id="img-comparison" name="img-comparison" disabled>
363
+ <label for="img-comparison" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
364
+ </div>
365
+ </td>
366
+ <td>
367
+ <div class="eael-checkbox">
368
+ <p class="title">
369
+ <?php _e( 'Instagram Gallery', 'essential-addons-elementor' ); ?>
370
+ </p>
371
+ <p class="desc">
372
+ <?php _e( 'Activate / Deactivate Instagram Gallery', 'essential-addons-elementor' ); ?>
373
+ </p>
374
+ <input type="checkbox" id="instagram-gallery" name="instagram-gallery" disabled>
375
+ <label for="instagram-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
376
+ </div>
377
+ </td>
378
+ <td>
379
+ <div class="eael-checkbox">
380
+ <p class="title">
381
+ <?php _e( 'Interactive Promo', 'essential-addons-elementor' ); ?>
382
+ </p>
383
+ <p class="desc">
384
+ <?php _e( 'Activate / Deactivate Interactive Promo', 'essential-addons-elementor' ); ?>
385
+ </p>
386
+ <input type="checkbox" id="interactive-promo" name="interactive-promo" disabled>
387
+ <label for="interactive-promo" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
388
+ </div>
389
+ </td>
390
+ <td>
391
+ <div class="eael-checkbox">
392
+ <p class="title">
393
+ <?php _e( 'Lightbox', 'essential-addons-elementor' ); ?>
394
+ </p>
395
+ <p class="desc">
396
+ <?php _e( 'Activate / Deactivate Lightbox', 'essential-addons-elementor' ); ?>
397
+ </p>
398
+ <input type="checkbox" id="lightbox" name="lightbox" disabled>
399
+ <label for="lightbox" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
400
+ </div>
401
+ </td>
402
+ <td>
403
+ <div class="eael-checkbox">
404
+ <p class="title">
405
+ <?php _e( 'Post Block', 'essential-addons-elementor' ); ?>
406
+ </p>
407
+ <p class="desc">
408
+ <?php _e( 'Activate / Deactivate Post Block', 'essential-addons-elementor' ); ?>
409
+ </p>
410
+ <input type="checkbox" id="post-block" name="post-block" disabled>
411
+ <label for="post-block" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
412
+ </div>
413
+ </td>
414
+ </tr>
415
+ <tr>
416
+ <td>
417
+ <div class="eael-checkbox">
418
+ <p class="title">
419
+ <?php _e( 'Testimonial Slider', 'essential-addons-elementor' ) ?>
420
+ </p>
421
+ <p class="desc">
422
+ <?php _e( 'Activate / Deactivate Testimonial Slider', 'essential-addons-elementor' ); ?>
423
+ </p>
424
+ <input type="checkbox" id="testimonial-slider" name="testimonial-slider" disabled>
425
+ <label for="testimonial-slider" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
426
+ </div>
427
+ </td>
428
+ <td>
429
+ <div class="eael-checkbox">
430
+ <p class="title">
431
+ <?php _e( 'Static Product', 'essential-addons-elementor' ) ?>
432
+ </p>
433
+ <p class="desc">
434
+ <?php _e( 'Activate / Deactivate Static Product', 'essential-addons-elementor' ); ?>
435
+ </p>
436
+ <input type="checkbox" id="static-product" name="static-product" disabled>
437
+ <label for="static-product" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
438
+ </div>
439
+ </td>
440
+ <td>
441
+ <div class="eael-checkbox">
442
+ <p class="title">
443
+ <?php _e( 'Flip Carousel', 'essential-addons-elementor' ) ?>
444
+ </p>
445
+ <p class="desc">
446
+ <?php _e( 'Activate / Deactivate Flip Carousel', 'essential-addons-elementor' ); ?>
447
+ </p>
448
+ <input type="checkbox" id="flip-carousel" name="flip-carousel" disabled>
449
+ <label for="flip-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
450
+ </div>
451
+ </td>
452
+ <td>
453
+ <div class="eael-checkbox">
454
+ <p class="title">
455
+ <?php _e( 'Interactive Cards', 'essential-addons-elementor' ) ?>
456
+ </p>
457
+ <p class="desc">
458
+ <?php _e( 'Activate / Deactivate Interactive Cards', 'essential-addons-elementor' ); ?>
459
+ </p>
460
+ <input type="checkbox" id="interactive-cards" name="interactive-cards" disabled>
461
+ <label for="interactive-cards" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
462
+ </div>
463
+ </td>
464
+ <td>
465
+ <div class="eael-checkbox">
466
+ <p class="title">
467
+ <?php _e( 'Content Timeline', 'essential-addons-elementor' ) ?>
468
+ </p>
469
+ <p class="desc">
470
+ <?php _e( 'Activate / Deactivate Content Timeline', 'essential-addons-elementor' ); ?>
471
+ </p>
472
+ <input type="checkbox" id="content-timeline" name="content-timeline" disabled>
473
+ <label for="content-timeline" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
474
+ </div>
475
+ </td>
476
+ </tr>
477
+ <tr>
478
+ <td>
479
+ <div class="eael-checkbox">
480
+ <p class="title">
481
+ <?php _e( 'Data Table', 'essential-addons-elementor' ) ?>
482
+ </p>
483
+ <p class="desc">
484
+ <?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?>
485
+ </p>
486
+ <input type="checkbox" id="data-table" name="data-table" disabled>
487
+ <label for="data-table" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
488
+ </div>
489
+ </td>
490
+ <td>
491
+ <div class="eael-checkbox">
492
+ <p class="title">
493
+ <?php _e( 'Twitter Feed Carousel', 'essential-addons-elementor' ) ?>
494
+ </p>
495
+ <p class="desc">
496
+ <?php _e( 'Activate / Deactivate Twitter Feed Carousel', 'essential-addons-elementor' ); ?>
497
+ </p>
498
+ <input type="checkbox" id="twitter-feed-carousel" name="twitter-feed-carousel" disabled>
499
+ <label for="twitter-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
500
+ </div>
501
+ </td>
502
+ <td>
503
+ <div class="eael-checkbox">
504
+ <p class="title">
505
+ <?php _e( 'Facebook Feed Carousel', 'essential-addons-elementor' ) ?>
506
+ </p>
507
+ <p class="desc">
508
+ <?php _e( 'Activate / Deactivate Facebook Feed Carousel', 'essential-addons-elementor' ); ?>
509
+ </p>
510
+ <input type="checkbox" id="facebook-feed-carousel" name="facebook-feed-carousel" disabled>
511
+ <label for="facebook-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
512
+ </div>
513
+ </td>
514
+ <td>
515
+ <div class="eael-checkbox">
516
+ <p class="title">
517
+ <?php _e( 'Dynamic Filter Gallery', 'essential-addons-elementor' ) ?>
518
+ </p>
519
+ <p class="desc">
520
+ <?php _e( 'Activate / Deactivate Dynamic Filter Gallery', 'essential-addons-elementor' ); ?>
521
+ </p>
522
+ <input type="checkbox" id="dynamic-filter-gallery" name="dynamic-filter-gallery" disabled>
523
+ <label for="dynamic-filter-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
524
+ </div>
525
+ </td>
526
+ </tr>
527
+ </table>
528
+ <div class="eael-save-btn-wrap">
529
+ <input type="submit" value="Save settings" class="button eael-btn js-eael-settings-save"/>
530
+ </div>
531
+ </div>
532
+ </div>
533
  </div>
534
  <div id="go-pro" class="eael-settings-tab">
535
  <div class="row go-premium">
547
  </div>
548
  </div>
549
  <div id="support" class="eael-settings-tab">
550
+ <div class="row">
551
+ <div class="col-half">
552
+ <h4>Need help? Open a support ticket!</h4>
553
+ <p>You can always get support from the community.</p>
554
+ <a href="https://wordpress.org/support/plugin/essential-addons-for-elementor-lite" target="_blank" class="button eael-btn">Get Help</a>
555
+ </div>
556
+ <div class="col-half">
557
+ <h4>Need Premium Support?</h4>
558
+ <p>Purchasing a license entitles you to receive premium support.</p>
559
+ <a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" class="button eael-btn">Get a license</a>
560
+ </div>
561
  </div>
562
+ <div class="row">
563
+ <div class="col-half">
564
+ <div class="essential-addons-community-link">
565
+ <a href="https://www.facebook.com/groups/essentialaddons/" target="_blank"><i class="fa fa-facebook-official fa-2x fa-fw" aria-hidden="true"></i> <span>Join the Facebook Community</span></a>
566
+ </div>
567
+ </div>
568
  </div>
 
 
 
 
 
 
 
 
569
  </div>
570
  </div>
571
  </form>
assets/css/essential-addons-elementor.css CHANGED
@@ -3645,6 +3645,9 @@ img.mfp-img {
3645
  .eael-filter-gallery-control {
3646
  width: 100%;
3647
  }
 
 
 
3648
  .eael-filter-gallery-control ul {
3649
  margin: 0px 0px 20px 0px;
3650
  padding: 0px;
3645
  .eael-filter-gallery-control {
3646
  width: 100%;
3647
  }
3648
+ .eael-filter-gallery-control ul, .eael-filter-gallery-control ul li {
3649
+ text-align: center;
3650
+ }
3651
  .eael-filter-gallery-control ul {
3652
  margin: 0px 0px 20px 0px;
3653
  padding: 0px;
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: Codetic
7
- * Version: 2.4.1
8
  * Author URI: https://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
@@ -21,12 +21,40 @@ require_once ESSENTIAL_ADDONS_EL_PATH.'includes/queries.php';
21
  require_once ESSENTIAL_ADDONS_EL_PATH.'includes/class-plugin-usage-tracker.php';
22
  require_once ESSENTIAL_ADDONS_EL_PATH.'admin/settings.php';
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  function add_eael_elements(){
25
 
26
  $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery' ];
27
  $eael_default_settings = array_fill_keys( $eael_default_keys, true );
28
 
29
- $is_component_active = get_option( 'eael_save_settings', $eael_default_settings );
 
30
  // load elements
31
  if( $is_component_active['post-grid'] ) {
32
  require_once ESSENTIAL_ADDONS_EL_PATH.'elements/post-grid/post-grid.php';
@@ -104,9 +132,13 @@ function add_eael_elements(){
104
  }
105
  add_action('elementor/widgets/widgets_registered','add_eael_elements');
106
 
107
-
 
 
 
 
108
  function essential_addons_el_enqueue(){
109
- $is_component_active = get_option( 'eael_save_settings' );
110
  wp_enqueue_style('essential_addons_elementor-css',ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-elementor.css');
111
 
112
  if( $is_component_active['fancy-text'] ) {
@@ -139,8 +171,9 @@ function essential_addons_el_enqueue(){
139
  add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
140
 
141
 
142
- // Editor CSS
143
-
 
144
  add_action( 'elementor/editor/before_enqueue_scripts', function() {
145
 
146
  wp_register_style( 'essential_addons_elementor_editor-css', ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-editor.css');
@@ -148,8 +181,9 @@ add_action( 'elementor/editor/before_enqueue_scripts', function() {
148
 
149
  } );
150
 
151
- // Action menus
152
-
 
153
  function eael_add_settings_link( $links ) {
154
  $settings_link = sprintf( '<a href="admin.php?page=eael-settings">' . __( 'Settings' ) . '</a>' );
155
  $go_pro_link = sprintf( '<a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" style="color: #39b54a; font-weight: bold;">' . __( 'Go Pro' ) . '</a>' );
@@ -159,17 +193,21 @@ function eael_add_settings_link( $links ) {
159
  $plugin = plugin_basename( __FILE__ );
160
  add_filter( "plugin_action_links_$plugin", 'eael_add_settings_link' );
161
 
162
-
163
-
164
- // Redirect to options page
165
-
166
- register_activation_hook(__FILE__, 'eael_activate');
167
- add_action('admin_init', 'eael_redirect');
168
-
169
  function eael_activate() {
170
  add_option('eael_do_activation_redirect', true);
171
  }
 
172
 
 
 
 
 
 
173
  function eael_redirect() {
174
  if (get_option('eael_do_activation_redirect', false)) {
175
  delete_option('eael_do_activation_redirect');
@@ -179,9 +217,13 @@ function eael_redirect() {
179
  }
180
  }
181
  }
 
182
 
183
- // Optional usage tracker
184
-
 
 
 
185
  if( ! class_exists( 'Eael_Plugin_Usage_Tracker') ) {
186
  require_once dirname( __FILE__ ) . '/includes/class-plugin-usage-tracker.php';
187
  }
@@ -199,34 +241,37 @@ if( ! function_exists( 'essential_addons_elementor_lite_start_plugin_tracking' )
199
  essential_addons_elementor_lite_start_plugin_tracking();
200
  }
201
 
202
-
203
- // admin notice
204
-
205
- add_action('admin_notices', 'eael_admin_notice');
206
-
207
  function eael_admin_notice() {
208
- if ( current_user_can( 'install_plugins' ) )
209
- {
210
- global $current_user ;
211
- $user_id = $current_user->ID;
212
- /* Check that the user hasn't already clicked to ignore the message */
213
- if ( ! get_user_meta($user_id, 'eael_ignore_notice241') ) {
214
- echo '<div class="eael-admin-notice updated"><p>';
215
- echo '<img style="width: 15px; padding-right: 6px; float: left" src="' . plugins_url( '/', __FILE__ ).'admin/assets/images/gift-icon.png'. '" > ';
216
- printf(__('Last chance to grab the <strong>New Year Deal!!</strong> Enjoy <strong>25&#37;</strong> discount on <strong>Essential Addons for Elementor Pro.</strong> Use the coupon <strong>"NewYear"</strong><a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" style="text-decoration: none;"><span class="dashicons dashicons-tickets-alt" style="margin-top: -1px;margin-left: 10px;"></span> Grab the Deal</a>
217
-  <a href="%1$s" style="text-decoration: none; margin-left: 10px;"><span class="dashicons dashicons-dismiss"></span> No Thanks</a>'), admin_url( 'admin.php?page=eael-settings&eael_nag_ignore=0' ));
218
- echo "</p></div>";
219
- }
220
  }
 
221
  }
 
222
 
223
- add_action('admin_init', 'eael_nag_ignore');
224
 
 
 
 
225
  function eael_nag_ignore() {
226
  global $current_user;
227
  $user_id = $current_user->ID;
228
  /* If user clicks to ignore the notice, add that to their user meta */
229
  if ( isset($_GET['eael_nag_ignore']) && '0' == $_GET['eael_nag_ignore'] ) {
230
- add_user_meta($user_id, 'eael_ignore_notice241', 'true', true);
231
  }
232
- }
 
4
  * Description: The ultimate elements library for Elementor page builder plugin for WordPress.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: Codetic
7
+ * Version: 2.4.2
8
  * Author URI: https://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
21
  require_once ESSENTIAL_ADDONS_EL_PATH.'includes/class-plugin-usage-tracker.php';
22
  require_once ESSENTIAL_ADDONS_EL_PATH.'admin/settings.php';
23
 
24
+ /**
25
+ * This function will return true for all activated modules
26
+ *
27
+ * @since v2.4.1
28
+ */
29
+ function eael_activated_modules() {
30
+
31
+ $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery' ];
32
+
33
+ $eael_default_settings = array_fill_keys( $eael_default_keys, true );
34
+ $eael_get_settings = get_option( 'eael_save_settings', $eael_default_settings );
35
+ $eael_new_settings = array_diff_key( $eael_default_settings, $eael_get_settings );
36
+
37
+ if( ! empty( $eael_new_settings ) ) {
38
+ $eael_updated_settings = array_merge( $eael_get_settings, $eael_new_settings );
39
+ update_option( 'eael_save_settings', $eael_updated_settings );
40
+ }
41
+
42
+ return $eael_get_settings = get_option( 'eael_save_settings', $eael_default_settings );
43
+
44
+ }
45
+
46
+ /**
47
+ * Acivate or Deactivate Modules
48
+ *
49
+ * @since v1.0.0
50
+ */
51
  function add_eael_elements(){
52
 
53
  $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery' ];
54
  $eael_default_settings = array_fill_keys( $eael_default_keys, true );
55
 
56
+ $is_component_active = eael_activated_modules();
57
+
58
  // load elements
59
  if( $is_component_active['post-grid'] ) {
60
  require_once ESSENTIAL_ADDONS_EL_PATH.'elements/post-grid/post-grid.php';
132
  }
133
  add_action('elementor/widgets/widgets_registered','add_eael_elements');
134
 
135
+ /**
136
+ * Load module's scripts and styles if any module is active.
137
+ *
138
+ * @since v1.0.0
139
+ */
140
  function essential_addons_el_enqueue(){
141
+ $is_component_active = eael_activated_modules();
142
  wp_enqueue_style('essential_addons_elementor-css',ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-elementor.css');
143
 
144
  if( $is_component_active['fancy-text'] ) {
171
  add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
172
 
173
 
174
+ /**
175
+ * Editor Css
176
+ */
177
  add_action( 'elementor/editor/before_enqueue_scripts', function() {
178
 
179
  wp_register_style( 'essential_addons_elementor_editor-css', ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-editor.css');
181
 
182
  } );
183
 
184
+ /**
185
+ * Creates an Action Menu
186
+ */
187
  function eael_add_settings_link( $links ) {
188
  $settings_link = sprintf( '<a href="admin.php?page=eael-settings">' . __( 'Settings' ) . '</a>' );
189
  $go_pro_link = sprintf( '<a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" style="color: #39b54a; font-weight: bold;">' . __( 'Go Pro' ) . '</a>' );
193
  $plugin = plugin_basename( __FILE__ );
194
  add_filter( "plugin_action_links_$plugin", 'eael_add_settings_link' );
195
 
196
+ /**
197
+ * Activation redirects
198
+ *
199
+ * @since v1.0.0
200
+ */
 
 
201
  function eael_activate() {
202
  add_option('eael_do_activation_redirect', true);
203
  }
204
+ register_activation_hook(__FILE__, 'eael_activate');
205
 
206
+ /**
207
+ * Redirect to options page
208
+ *
209
+ * @since v1.0.0
210
+ */
211
  function eael_redirect() {
212
  if (get_option('eael_do_activation_redirect', false)) {
213
  delete_option('eael_do_activation_redirect');
217
  }
218
  }
219
  }
220
+ add_action('admin_init', 'eael_redirect');
221
 
222
+ /**
223
+ * Optional usage tracker
224
+ *
225
+ * @since v1.0.0
226
+ */
227
  if( ! class_exists( 'Eael_Plugin_Usage_Tracker') ) {
228
  require_once dirname( __FILE__ ) . '/includes/class-plugin-usage-tracker.php';
229
  }
241
  essential_addons_elementor_lite_start_plugin_tracking();
242
  }
243
 
244
+ /**
245
+ * Admin Notice
246
+ *
247
+ * @since v1.0.0
248
+ */
249
  function eael_admin_notice() {
250
+ if ( current_user_can( 'install_plugins' ) ) {
251
+ global $current_user ;
252
+ $user_id = $current_user->ID;
253
+ /* Check that the user hasn't already clicked to ignore the message */
254
+ if ( ! get_user_meta($user_id, 'eael_ignore_notice242') ) {
255
+ echo '<div class="eael-admin-notice updated" style="display: flex; align-items: center; padding-left: 0; border-left-color: #EF4B53"><p style="width: 36px;">';
256
+ echo '<img style="width: 100%; display: block;" src="' . plugins_url( '/', __FILE__ ).'admin/assets/images/icon-heart.svg'. '" ></p><p> ';
257
+ printf(__('Show your support for <strong>Essential Addons for Elementor.</strong> If you like the plugin, leave a review to support this project. Thanks in advance :) <a href="https://wpdeveloper.net/review-essential-addons-elementor" target="_blank" style="text-decoration: none;"><span class="dashicons dashicons-admin-comments" style="margin-left: 10px;"></span> Leave a Review</a>
258
+ <a href="%1$s" style="text-decoration: none; margin-left: 10px;"><span class="dashicons dashicons-dismiss"></span> Dismiss</a>'), admin_url( 'admin.php?page=eael-settings&eael_nag_ignore=0' ));
259
+ echo "</p></div>";
 
 
260
  }
261
+ }
262
  }
263
+ add_action('admin_notices', 'eael_admin_notice');
264
 
 
265
 
266
+ /**
267
+ * Nag Ignore
268
+ */
269
  function eael_nag_ignore() {
270
  global $current_user;
271
  $user_id = $current_user->ID;
272
  /* If user clicks to ignore the notice, add that to their user meta */
273
  if ( isset($_GET['eael_nag_ignore']) && '0' == $_GET['eael_nag_ignore'] ) {
274
+ add_user_meta($user_id, 'eael_ignore_notice242', 'true', true);
275
  }
276
+ }
277
+ add_action('admin_init', 'eael_nag_ignore');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Codetic, re_enter_rupok, Asif2BD, robicse11128
3
  Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
4
  Requires at least: 4.0
5
  Tested up to: 4.9.2
6
- Stable tag: 2.4.1
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
@@ -110,6 +110,12 @@ Your existing elements/content will work with premium version. So you won't lose
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
 
113
  = 2.4.1 =
114
 
115
  - Lightbox Gallery conflict fixed with Elementor
3
  Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
4
  Requires at least: 4.0
5
  Tested up to: 4.9.2
6
+ Stable tag: 2.4.2
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
110
 
111
  == Changelog ==
112
 
113
+ = 2.4.2 =
114
+
115
+ - Filterable Galley control improved
116
+ - Element saving improved
117
+ - Few minor bugfix and improvements
118
+
119
  = 2.4.1 =
120
 
121
  - Lightbox Gallery conflict fixed with Elementor