Elementor Essential Addons - Version 2.2.5

Version Description

  • Few minor bug fixed and improvements
  • Admin notice removed
Download this release

Release Info

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

Code changes from version 2.2.4 to 2.2.5

admin/assets/css/admin.css CHANGED
@@ -282,6 +282,12 @@ textarea.eael-form-control {
282
  margin-top: 30px;
283
  }
284
 
 
 
 
 
 
 
285
  .eael-notice {
286
  background-color: #F7F6D4;
287
  padding: 10px 15px;
@@ -331,24 +337,4 @@ textarea.eael-form-control {
331
  .eael-save-btn-wrap .eael-btn.save-now:hover,
332
  .eael-header-bar .eael-btn.save-now:hover {
333
  background: #ff5544;
334
- }
335
-
336
- .updated.notice.notice-success.is-dismissible.eael-update-notice {
337
- padding-top: 5px;
338
- padding-bottom: 15px;
339
- }
340
-
341
- .eael-update-notice a {
342
- background-color: #0dc9c3;
343
- color: #fff;
344
- padding: 10px 20px;
345
- text-decoration: none;
346
- text-transform: uppercase;
347
- letter-spacing: 1px;
348
- font-size: 13px;
349
- margin-top: 15px;
350
- display: block;
351
- width: 140px;
352
- text-align: center;
353
- border-radius: 3px;
354
  }
282
  margin-top: 30px;
283
  }
284
 
285
+ .go-premium img {
286
+ width: 100%;
287
+ max-width: 400px;
288
+ display: block;
289
+ float: right;
290
+ }
291
  .eael-notice {
292
  background-color: #F7F6D4;
293
  padding: 10px 15px;
337
  .eael-save-btn-wrap .eael-btn.save-now:hover,
338
  .eael-header-bar .eael-btn.save-now:hover {
339
  background: #ff5544;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  }
admin/lib/dismiss-notice.js DELETED
@@ -1,29 +0,0 @@
1
- (function ($) {
2
- //shorthand for ready event.
3
- $(function () {
4
- $('div[data-dismissible] button.notice-dismiss').click(function (event) {
5
- event.preventDefault();
6
- var $this = $(this);
7
-
8
- var attr_value, option_name, dismissible_length, data;
9
-
10
- attr_value = $this.parent().attr('data-dismissible').split('-');
11
-
12
- // remove the dismissible length from the attribute value and rejoin the array.
13
- dismissible_length = attr_value.pop();
14
-
15
- option_name = attr_value.join('-');
16
-
17
- data = {
18
- 'action': 'dismiss_admin_notice',
19
- 'option_name': option_name,
20
- 'dismissible_length': dismissible_length,
21
- 'nonce': dismissible_notice.nonce
22
- };
23
-
24
- // We can also pass the url value separately from ajaxurl for front end AJAX implementations
25
- $.post(ajaxurl, data);
26
- });
27
- })
28
-
29
- }(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/lib/persist-admin-notices-dismissal.php DELETED
@@ -1,119 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Persist Admin notices Dismissal
5
- *
6
- * Copyright (C) 2016 Agbonghama Collins <http://w3guy.com>
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- * @package Persist Admin notices Dismissal
22
- * @author Agbonghama Collins
23
- * @author Andy Fragen
24
- * @license http://www.gnu.org/licenses GNU General Public License
25
- * @version 1.3
26
- */
27
-
28
- /**
29
- * Exit if called directly.
30
- */
31
- if ( ! defined( 'WPINC' ) ) {
32
- die;
33
- }
34
-
35
- if ( ! class_exists( 'PAnD' ) ) {
36
-
37
- /**
38
- * Class PAnD
39
- */
40
- class PAnD {
41
-
42
- /**
43
- * Init hooks.
44
- */
45
- public static function init() {
46
- add_action( 'admin_enqueue_scripts', array( __CLASS__, 'load_script' ) );
47
- add_action( 'wp_ajax_dismiss_admin_notice', array( __CLASS__, 'dismiss_admin_notice' ) );
48
- }
49
-
50
- /**
51
- * Enqueue javascript and variables.
52
- */
53
- public static function load_script() {
54
-
55
- if(is_customize_preview()) return;
56
-
57
- wp_enqueue_script(
58
- 'dismissible-notices',
59
- plugins_url( 'dismiss-notice.js', __FILE__ ),
60
- array( 'jquery', 'common' ),
61
- false,
62
- true
63
- );
64
-
65
- wp_localize_script(
66
- 'dismissible-notices',
67
- 'dismissible_notice',
68
- array(
69
- 'nonce' => wp_create_nonce( 'dismissible-notice' ),
70
- )
71
- );
72
- }
73
-
74
- /**
75
- * Handles Ajax request to persist notices dismissal.
76
- * Uses check_ajax_referer to verify nonce.
77
- */
78
- public static function dismiss_admin_notice() {
79
- $option_name = sanitize_text_field( $_POST['option_name'] );
80
- $dismissible_length = sanitize_text_field( $_POST['dismissible_length'] );
81
- $transient = 0;
82
-
83
- if ( 'forever' != $dismissible_length ) {
84
- // If $dismissible_length is not an integer default to 1
85
- $dismissible_length = ( 0 == absint( $dismissible_length ) ) ? 1 : $dismissible_length;
86
- $transient = absint( $dismissible_length ) * DAY_IN_SECONDS;
87
- $dismissible_length = strtotime( absint( $dismissible_length ) . ' days' );
88
- }
89
-
90
- check_ajax_referer( 'dismissible-notice', 'nonce' );
91
- set_site_transient( $option_name, $dismissible_length, $transient );
92
- wp_die();
93
- }
94
-
95
- /**
96
- * Is admin notice active?
97
- *
98
- * @param string $arg data-dismissible content of notice.
99
- *
100
- * @return bool
101
- */
102
- public static function is_admin_notice_active( $arg ) {
103
- $array = explode( '-', $arg );
104
- $length = array_pop( $array );
105
- $option_name = implode( '-', $array );
106
- $db_record = get_site_transient( $option_name );
107
-
108
- if ( 'forever' == $db_record ) {
109
- return false;
110
- } elseif ( absint( $db_record ) >= time() ) {
111
- return false;
112
- } else {
113
- return true;
114
- }
115
- }
116
-
117
- }
118
-
119
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings.php CHANGED
@@ -46,20 +46,11 @@ class Eael_Admin_Settings {
46
  public function __construct() {
47
 
48
  add_action( 'admin_menu', array( $this, 'create_eael_admin_menu' ) );
49
- add_action( 'init', array( $this, 'enqueue_eael_admin_style' ) );
50
  add_action( 'init', array( $this, 'enqueue_eael_admin_scripts' ) );
51
  add_action( 'wp_ajax_save_settings_with_ajax', array( $this, 'eael_save_settings_with_ajax' ) );
52
 
53
  }
54
 
55
- /**
56
- * Register and enqueue a custom stylesheet in the WordPress admin.
57
- */
58
- function enqueue_eael_admin_style() {
59
- wp_enqueue_style( 'essential_addons_elementor-admin-css', plugins_url( '/', __FILE__ ).'assets/css/admin.css' );
60
- wp_enqueue_script( 'essential_addons_dismiss-js', plugins_url( '/', __FILE__ ).'lib/dismiss-notice.js', array( '', 'essential_addons_dismisscore-js' ), '', true );
61
- }
62
-
63
  /**
64
  * Loading all essential scripts
65
  * @param
@@ -69,6 +60,7 @@ class Eael_Admin_Settings {
69
  public function enqueue_eael_admin_scripts() {
70
 
71
  if( isset( $_GET['page'] ) && $_GET['page'] == 'eael-settings' ) {
 
72
  wp_enqueue_style( 'font-awesome-css', plugins_url( '/', __FILE__ ).'assets/vendor/font-awesome/css/font-awesome.min.css' );
73
  wp_enqueue_style( 'essential_addons_elementor-sweetalert2-css', plugins_url( '/', __FILE__ ).'assets/vendor/sweetalert2/css/sweetalert2.min.css' );
74
 
@@ -80,7 +72,6 @@ class Eael_Admin_Settings {
80
 
81
  }
82
 
83
-
84
  /**
85
  * Create an admin menu.
86
  * @param
@@ -153,7 +144,7 @@ class Eael_Admin_Settings {
153
  </div>
154
  <div class="col-half">
155
  <a href="https://essential-addons.com/elementor/" target="_blank" class="button eael-btn eael-demo-btn">Explore Demos</a>
156
- <a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn eael-license-btn">Get Pro License</a>
157
 
158
  <div class="eael-notice">
159
  <h5>Troubleshooting Info</h5>
@@ -457,7 +448,7 @@ class Eael_Admin_Settings {
457
 
458
  <p>You will also get world class support from our dedicated team, 24/7.</p>
459
 
460
- <a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn eael-license-btn">Get Premium Version</a>
461
  </div>
462
  <div class="col-half">
463
  <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/unlock-gif.gif'; ?>">
@@ -474,7 +465,7 @@ class Eael_Admin_Settings {
474
  <div class="col-half">
475
  <h4>Need Premium Support?</h4>
476
  <p>Purchasing a license entitles you to receive premium support.</p>
477
- <a href="https://essential-addons.com/elementor/buy.php" target="_blank" class="button eael-btn">Get a license</a>
478
  </div>
479
  </div>
480
  <div class="row">
46
  public function __construct() {
47
 
48
  add_action( 'admin_menu', array( $this, 'create_eael_admin_menu' ) );
 
49
  add_action( 'init', array( $this, 'enqueue_eael_admin_scripts' ) );
50
  add_action( 'wp_ajax_save_settings_with_ajax', array( $this, 'eael_save_settings_with_ajax' ) );
51
 
52
  }
53
 
 
 
 
 
 
 
 
 
54
  /**
55
  * Loading all essential scripts
56
  * @param
60
  public function enqueue_eael_admin_scripts() {
61
 
62
  if( isset( $_GET['page'] ) && $_GET['page'] == 'eael-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
 
72
 
73
  }
74
 
 
75
  /**
76
  * Create an admin menu.
77
  * @param
144
  </div>
145
  <div class="col-half">
146
  <a href="https://essential-addons.com/elementor/" target="_blank" class="button eael-btn eael-demo-btn">Explore Demos</a>
147
+ <a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" class="button eael-btn eael-license-btn">Get Pro License</a>
148
 
149
  <div class="eael-notice">
150
  <h5>Troubleshooting Info</h5>
448
 
449
  <p>You will also get world class support from our dedicated team, 24/7.</p>
450
 
451
+ <a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" class="button eael-btn eael-license-btn">Get Premium Version</a>
452
  </div>
453
  <div class="col-half">
454
  <img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/unlock-gif.gif'; ?>">
465
  <div class="col-half">
466
  <h4>Need Premium Support?</h4>
467
  <p>Purchasing a license entitles you to receive premium support.</p>
468
+ <a href="https://wpdeveloper.net/in/upgrade-essential-addons-elementor" target="_blank" class="button eael-btn">Get a license</a>
469
  </div>
470
  </div>
471
  <div class="row">
assets/css/essential-addons-editor.css CHANGED
@@ -24,24 +24,4 @@
24
  .elementor-control-eael_fancy_text_style_pro_alert .elementor-control-title,
25
  .elementor-control-eael_team_members_preset_pro_alert .elementor-control-title {
26
  color: #f54;
27
- }
28
-
29
- .updated.notice.notice-success.is-dismissible.eael-update-notice {
30
- padding-top: 5px;
31
- padding-bottom: 15px;
32
- }
33
-
34
- .eael-update-notice a {
35
- background-color: #0dc9c3;
36
- color: #fff;
37
- padding: 10px 20px;
38
- text-decoration: none;
39
- text-transform: uppercase;
40
- letter-spacing: 1px;
41
- font-size: 13px;
42
- margin-top: 15px;
43
- display: block;
44
- width: 140px;
45
- text-align: center;
46
- border-radius: 3px;
47
  }
24
  .elementor-control-eael_fancy_text_style_pro_alert .elementor-control-title,
25
  .elementor-control-eael_team_members_preset_pro_alert .elementor-control-title {
26
  color: #f54;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  }
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.2.4
8
  * Author URI: http://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
@@ -150,28 +150,4 @@ function eael_redirect() {
150
  wp_redirect("admin.php?page=eael-settings");
151
  }
152
  }
153
- }
154
-
155
- // admin notice
156
-
157
- require __DIR__ . '/admin/lib/persist-admin-notices-dismissal.php';
158
- add_action( 'admin_init', array( 'PAnD', 'init' ) );
159
-
160
- function eael_update_notice() {
161
- if ( ! PAnD::is_admin_notice_active( 'disable-done-notice-forever' ) ) {
162
- return;
163
- }
164
-
165
- ?>
166
- <div class="updated notice notice-success is-dismissible eael-update-notice">
167
- <h2><?php _e( 'Essential Addons for Elementor Giveaway! Only $14.98 for First 25 Orders!', 'essential-addons-elementor' ); ?></h2>
168
- <p><?php _e( 'We are running a whopping 40% discount on our all packages. First come, first served! This is our biggest discount, and we are not sure if we will ever do it again! Hurry Up!', 'essential-addons-elementor' ); ?></p>
169
- <a href="https://wpdeveloper.net/in/CM40EAF"><?php _e( 'Get the Offer', 'essential-addons-elementor' ); ?></a>
170
- </div>
171
- <?php
172
- }
173
- add_action( 'admin_init', array( 'PAnD', 'init' ) );
174
- add_action( 'admin_notices', 'eael_update_notice' );
175
-
176
-
177
-
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.2.5
8
  * Author URI: http://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
150
  wp_redirect("admin.php?page=eael-settings");
151
  }
152
  }
153
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
4
  Requires at least: 4.0
5
  Tested up to: 4.9
6
- Stable tag: 2.2.4
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
@@ -95,6 +95,11 @@ Your existing elements/content will work with premium version. So you won't lose
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
98
  = 2.2.4 =
99
 
100
  - Ninja Form selector improved
3
  Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder
4
  Requires at least: 4.0
5
  Tested up to: 4.9
6
+ Stable tag: 2.2.5
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
95
 
96
  == Changelog ==
97
 
98
+ = 2.2.5 =
99
+
100
+ - Few minor bug fixed and improvements
101
+ - Admin notice removed
102
+
103
  = 2.2.4 =
104
 
105
  - Ninja Form selector improved