Version Description
- Fixed: Carousel issue on IE11.
- Fixed: Horizontal align issue in Premium Countdown widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.8.0 |
Comparing to | |
See all releases |
Code changes from version 2.7.9 to 2.8.0
- admin/assets/notice.css +40 -0
- admin/includes/notices.php +8 -8
- admin/settings/elements.php +1 -0
- admin/settings/version-control.php +1 -1
- assets/js/premium-addons.js +3 -6
- premium-addons-for-elementor.php +3 -3
- readme.txt +6 -1
- widgets/premium-countdown.php +1 -1
admin/assets/notice.css
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.error.pa-notice-wrap {
|
2 |
+
display: flex;
|
3 |
+
border: none;
|
4 |
+
padding: 0;
|
5 |
+
margin: 0;
|
6 |
+
min-height: 120px;
|
7 |
+
padding-right: 1em;
|
8 |
+
}
|
9 |
+
.error.pa-notice-wrap div {
|
10 |
+
padding: 0;
|
11 |
+
margin: 0;
|
12 |
+
}
|
13 |
+
.error.pa-notice-wrap .pa-img-wrap {
|
14 |
+
display: flex;
|
15 |
+
align-items: center;
|
16 |
+
min-height: 120px;
|
17 |
+
padding: 0 0.7em;
|
18 |
+
}
|
19 |
+
.error.pa-notice-wrap .pa-text-wrap {
|
20 |
+
padding-top: 0.3em;
|
21 |
+
}
|
22 |
+
.error.pa-notice-wrap .pa-img-wrap img {
|
23 |
+
width: 40px;
|
24 |
+
}
|
25 |
+
.error.pa-notice-wrap .pa-text-wrap a {
|
26 |
+
margin-right: 0.3em;
|
27 |
+
text-transform: uppercase;
|
28 |
+
font-weight: 500;
|
29 |
+
font-style: normal;
|
30 |
+
}
|
31 |
+
.error.pa-notice-wrap .pa-text-wrap a i {
|
32 |
+
margin-right: 0.1em;
|
33 |
+
margin-top: 0.1em;
|
34 |
+
}
|
35 |
+
.error.pa-notice-wrap .pa-text-wrap a:first-of-type {
|
36 |
+
background: #0f6aa7
|
37 |
+
}
|
38 |
+
.error.pa-notice-wrap .pa-text-wrap a:not(:first-of-type) {
|
39 |
+
margin-left: 0.3em;
|
40 |
+
}
|
admin/includes/notices.php
CHANGED
@@ -24,9 +24,9 @@ class Premium_Admin_Notices {
|
|
24 |
*/
|
25 |
public function init(){
|
26 |
// $this->handle_get_pro_notice();
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
}
|
31 |
|
32 |
/**
|
@@ -34,10 +34,10 @@ class Premium_Admin_Notices {
|
|
34 |
*/
|
35 |
public function check_admin_notices() {
|
36 |
$this->required_plugins_check();
|
37 |
-
|
38 |
// $this->get_pro_notice();
|
39 |
-
|
40 |
-
|
41 |
}
|
42 |
|
43 |
/**
|
@@ -176,11 +176,11 @@ 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( __('<
|
180 |
|
181 |
}
|
182 |
|
183 |
-
$review_message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
|
184 |
|
185 |
$this->render_admin_notices( $review_message );
|
186 |
}
|
24 |
*/
|
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 |
/**
|
34 |
*/
|
35 |
public function check_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 |
} 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> Premium Addons for Elementor </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 |
}
|
admin/settings/elements.php
CHANGED
@@ -42,6 +42,7 @@ class PA_admin_settings {
|
|
42 |
public function pa_admin_page_scripts () {
|
43 |
wp_enqueue_style( 'pa_admin_icon', PREMIUM_ADDONS_URL .'admin/assets/pa-elements-font/css/pafont.css' );
|
44 |
$current_screen = get_current_screen();
|
|
|
45 |
if( strpos($current_screen->id , $this->page_slug) !== false ){
|
46 |
wp_enqueue_style( 'pa-admin-css', PREMIUM_ADDONS_URL.'admin/assets/admin.css' );
|
47 |
|
42 |
public function pa_admin_page_scripts () {
|
43 |
wp_enqueue_style( 'pa_admin_icon', PREMIUM_ADDONS_URL .'admin/assets/pa-elements-font/css/pafont.css' );
|
44 |
$current_screen = get_current_screen();
|
45 |
+
wp_enqueue_style( 'pa-notice-css', PREMIUM_ADDONS_URL.'admin/assets/notice.css' );
|
46 |
if( strpos($current_screen->id , $this->page_slug) !== false ){
|
47 |
wp_enqueue_style( 'pa-admin-css', PREMIUM_ADDONS_URL.'admin/assets/admin.css' );
|
48 |
|
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.
|
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.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>
|
assets/js/premium-addons.js
CHANGED
@@ -351,12 +351,9 @@
|
|
351 |
var width = this.element.outerWidth();
|
352 |
return width / 2;
|
353 |
},
|
354 |
-
setWidth : function( type
|
355 |
-
|
356 |
-
|
357 |
-
} else {
|
358 |
-
this.element.css( 'margin-top', '-' + this.getWidth() + 'px' );
|
359 |
-
}
|
360 |
}
|
361 |
}
|
362 |
marginFix.setWidth();
|
351 |
var width = this.element.outerWidth();
|
352 |
return width / 2;
|
353 |
},
|
354 |
+
setWidth : function( type ) {
|
355 |
+
type = type || 'vertical';
|
356 |
+
this.element.css( 'margin-' + 'vertical' === type ? 'left' : 'top' , '-' + this.getWidth() + 'px' );
|
|
|
|
|
|
|
357 |
}
|
358 |
}
|
359 |
marginFix.setWidth();
|
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.
|
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.
|
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.
|
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.0
|
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.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 |
/*
|
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.
|
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.7.9 =
|
141 |
|
142 |
- Tweak: Images `Alt` attribute enhanced in all widgets.
|
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 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 2.8.0 =
|
141 |
+
|
142 |
+
- Fixed: Carousel issue on IE11.
|
143 |
+
- Fixed: Horizontal align issue in Premium Countdown widget.
|
144 |
+
|
145 |
= 2.7.9 =
|
146 |
|
147 |
- Tweak: Images `Alt` attribute enhanced in all widgets.
|
widgets/premium-countdown.php
CHANGED
@@ -459,7 +459,7 @@ class Premium_Countdown extends Widget_Base {
|
|
459 |
]
|
460 |
],
|
461 |
'selectors' => [
|
462 |
-
'{{WRAPPER}} .countdown .pre_countdown-section' => 'margin-right: {{SIZE}}{{UNIT}};'
|
463 |
]
|
464 |
]
|
465 |
);
|
459 |
]
|
460 |
],
|
461 |
'selectors' => [
|
462 |
+
'{{WRAPPER}} .countdown .pre_countdown-section' => 'margin-right: calc( {{SIZE}}{{UNIT}} / 2 ); margin-left: calc( {{SIZE}}{{UNIT}} / 2 );'
|
463 |
]
|
464 |
]
|
465 |
);
|