Premium Addons for Elementor - Version 2.8.1

Version Description

  • Tweak: Post date format now is retrieved from WordPress general settings.
  • Tweak: Shortcodes support using text editor in Premium Modal Box widget.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.8.1
Comparing to
See all releases

Code changes from version 2.8.0 to 2.8.1

admin/includes/notices.php CHANGED
@@ -25,8 +25,8 @@ class Premium_Admin_Notices {
25
  public function init(){
26
  // $this->handle_get_pro_notice();
27
  $this->handle_review_notice();
28
- //$this->handle_multi_scroll_notice();
29
- //$this->handle_vertical_scroll_notice();
30
  }
31
 
32
  /**
@@ -36,8 +36,8 @@ class Premium_Admin_Notices {
36
  $this->required_plugins_check();
37
  $this->get_review_notice();
38
  // $this->get_pro_notice();
39
- //$this->get_multi_scroll_notice();
40
- //$this->get_vertical_scroll_notice();
41
  }
42
 
43
  /**
@@ -176,13 +176,13 @@ class Premium_Admin_Notices {
176
  } else if ( '1' !== $review ) {
177
  $optout_url = wp_nonce_url( add_query_arg( 'pa_review', 'opt_out' ), 'opt_out' );
178
 
179
- $review_message = sprintf( __('<div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Did you like<strong>&nbspPremium Addons for Elementor&nbsp</strong>Plugin?<span></p><p>Could you please do us a BIG favor ? if you could take 2 min of your time, we\'d really appreaciate if you give Premium Addons for Elementor 5-star rating on WordPress. By spreading the love, we can create even greater free stuff in the future!</p><p><a class="button button-primary" href="%s" target="_blank"><span><i class="dashicons dashicons-external"></i>Leave a Review</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-calendar-alt"></i>Maybe Later</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-smiley"></i>I Already did</span></a></p></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$review_url, $optout_url, $optout_url );
180
 
181
  }
182
 
183
  $review_message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; margin-top: 1em"><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
184
 
185
- $this->render_admin_notices( $review_message );
186
  }
187
 
188
 
@@ -327,7 +327,7 @@ class Premium_Admin_Notices {
327
  */
328
  private function render_admin_notices( $message ) {
329
  ?>
330
- <div class="error pa-notice-wrap">
331
  <?php echo $message; ?>
332
  </div>
333
  <?php
25
  public function init(){
26
  // $this->handle_get_pro_notice();
27
  $this->handle_review_notice();
28
+ $this->handle_multi_scroll_notice();
29
+ $this->handle_vertical_scroll_notice();
30
  }
31
 
32
  /**
36
  $this->required_plugins_check();
37
  $this->get_review_notice();
38
  // $this->get_pro_notice();
39
+ $this->get_multi_scroll_notice();
40
+ $this->get_vertical_scroll_notice();
41
  }
42
 
43
  /**
176
  } else if ( '1' !== $review ) {
177
  $optout_url = wp_nonce_url( add_query_arg( 'pa_review', 'opt_out' ), 'opt_out' );
178
 
179
+ $review_message = sprintf( __('<div class="error pa-notice-wrap"><div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Did you like<strong>&nbspPremium Addons for Elementor&nbsp</strong>Plugin?<span></p><p>Could you please do us a BIG favor ? if you could take 2 min of your time, we\'d really appreaciate if you give Premium Addons for Elementor 5-star rating on WordPress. By spreading the love, we can create even greater free stuff in the future!</p><p><a class="button button-primary" href="%s" target="_blank"><span><i class="dashicons dashicons-external"></i>Leave a Review</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-calendar-alt"></i>Maybe Later</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-smiley"></i>I Already did</span></a></p></div></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$review_url, $optout_url, $optout_url );
180
 
181
  }
182
 
183
  $review_message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; margin-top: 1em"><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
184
 
185
+ echo $review_message;
186
  }
187
 
188
 
327
  */
328
  private function render_admin_notices( $message ) {
329
  ?>
330
+ <div class="error">
331
  <?php echo $message; ?>
332
  </div>
333
  <?php
admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.7.9</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.8.0</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
assets/js/lib/modal.js CHANGED
@@ -231,10 +231,6 @@ if (typeof jQuery === 'undefined') {
231
 
232
  if (!callback) return
233
 
234
- doAnimate ?
235
- this.$backdrop
236
- .one('bsTransitionEnd', callback)
237
- .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
238
  callback()
239
 
240
  } else if (!this.isShown && this.$backdrop) {
231
 
232
  if (!callback) return
233
 
 
 
 
 
234
  callback()
235
 
236
  } else if (!this.isShown && this.$backdrop) {
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.8.0
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if (! function_exists('add_action')) {
22
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
- define('PREMIUM_ADDONS_VERSION', '2.8.0');
26
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
  define('PREMIUM_ADDONS_FILE', __FILE__);
29
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define('PREMIUM_ADDONS_STABLE_VERSION', '2.7.9');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.8.1
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
22
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
+ define('PREMIUM_ADDONS_VERSION', '2.8.1');
26
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
  define('PREMIUM_ADDONS_FILE', __FILE__);
29
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define('PREMIUM_ADDONS_STABLE_VERSION', '2.8.0');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 2.8.0
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -137,6 +137,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
 
138
  == Changelog ==
139
 
 
 
 
 
 
140
  = 2.8.0 =
141
 
142
  - Fixed: Carousel issue on IE11.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.8.1
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.8.1 =
141
+
142
+ - Tweak: Post date format now is retrieved from WordPress general settings.
143
+ - Tweak: Shortcodes support using text editor in Premium Modal Box widget.
144
+
145
  = 2.8.0 =
146
 
147
  - Fixed: Carousel issue on IE11.
widgets/premium-blog.php CHANGED
@@ -866,7 +866,7 @@ class Premium_Blog extends Widget_Base {
866
 
867
  $excerpt_type = $settings['premium_blog_excerpt_type'];
868
  $excerpt_text = $settings['premium_blog_excerpt_text'];
869
-
870
  switch($settings['premium_blog_columns_number']){
871
  case '50%' :
872
  $col_number = 'col-2';
@@ -880,6 +880,8 @@ class Premium_Blog extends Widget_Base {
880
  }
881
 
882
 
 
 
883
  ?>
884
  <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
885
  <?php
@@ -926,7 +928,7 @@ if(count($posts)){
926
  <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
927
  <?php endif; ?>
928
  <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
929
- <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_time('F j, Y'); ?></a></span>
930
  <?php endif; ?>
931
  <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
932
  <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
866
 
867
  $excerpt_type = $settings['premium_blog_excerpt_type'];
868
  $excerpt_text = $settings['premium_blog_excerpt_text'];
869
+ $date_format = get_option('date_format');
870
  switch($settings['premium_blog_columns_number']){
871
  case '50%' :
872
  $col_number = 'col-2';
880
  }
881
 
882
 
883
+
884
+
885
  ?>
886
  <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
887
  <?php
928
  <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
929
  <?php endif; ?>
930
  <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
931
+ <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_time($date_format); ?></a></span>
932
  <?php endif; ?>
933
  <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
934
  <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
widgets/premium-modalbox.php CHANGED
@@ -1312,7 +1312,7 @@ class Premium_Modalbox extends Widget_Base {
1312
  </div>
1313
  <?php endif; ?>
1314
  <div class="premium-modal-box-modal-body">
1315
- <?php if($settings['premium_modal_box_content_type'] == 'editor') : echo $settings['premium_modal_box_content']; else: echo $premium_elements_frontend->get_builder_content($elementor_post_id, true); endif; ?>
1316
  </div>
1317
  <?php if ( $settings['premium_modal_box_lower_close'] === 'yes' ) : ?>
1318
  <div class="premium-modal-box-modal-footer">
1312
  </div>
1313
  <?php endif; ?>
1314
  <div class="premium-modal-box-modal-body">
1315
+ <?php if($settings['premium_modal_box_content_type'] == 'editor') : echo $this->parse_text_editor($settings['premium_modal_box_content']); else: echo $premium_elements_frontend->get_builder_content($elementor_post_id, true); endif; ?>
1316
  </div>
1317
  <?php if ( $settings['premium_modal_box_lower_close'] === 'yes' ) : ?>
1318
  <div class="premium-modal-box-modal-footer">