Version Description
- Tweak: Added image vertical align option in Premium Banner widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5.0 to 2.5.1
- admin/settings/version-control.php +1 -1
- assets/css/premium-addons.css +12 -0
- premium-addons-for-elementor.php +3 -3
- readme.txt +7 -4
- widgets/premium-banner.php +30 -6
admin/settings/version-control.php
CHANGED
@@ -80,7 +80,7 @@ class PA_Version_Control {
|
|
80 |
<tr class="pa-roll-row">
|
81 |
<th>Rollback Version</th>
|
82 |
<td>
|
83 |
-
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.
|
84 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
85 |
</td>
|
86 |
</tr>
|
80 |
<tr class="pa-roll-row">
|
81 |
<th>Rollback Version</th>
|
82 |
<td>
|
83 |
+
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.5.0</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
|
84 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
85 |
</td>
|
86 |
</tr>
|
assets/css/premium-addons.css
CHANGED
@@ -5,6 +5,18 @@
|
|
5 |
display: block;
|
6 |
position: relative;
|
7 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
.premium_addons-banner-ib {
|
9 |
z-index: 1;
|
10 |
overflow: hidden;
|
5 |
display: block;
|
6 |
position: relative;
|
7 |
}
|
8 |
+
.premium_addons-banner-img-wrap {
|
9 |
+
display: -ms-flexbox;
|
10 |
+
display: -webkit-flex;
|
11 |
+
display: -moz-flex;
|
12 |
+
display: -ms-flex;
|
13 |
+
display: flex;
|
14 |
+
height: 100%;
|
15 |
+
}
|
16 |
+
.premium_addons-banner-img-wrap .premium_addons-banner-ib-img {
|
17 |
+
-webkit-flex-shrink: 0;
|
18 |
+
flex-shrink: 0;
|
19 |
+
}
|
20 |
.premium_addons-banner-ib {
|
21 |
z-index: 1;
|
22 |
overflow: hidden;
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 2.5.
|
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.5.
|
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.
|
31 |
|
32 |
/**
|
33 |
* Loading text domain, Including required files
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 2.5.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.5.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.5.0');
|
31 |
|
32 |
/**
|
33 |
* Loading text domain, Including required files
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.7
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.5.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -63,7 +63,7 @@ Premium Addons for Elementor can be used only as a complement of Elementor page
|
|
63 |
5. [Premium Content Switcher](https://premiumaddons.com/content-switcher-widget-for-elementor-page-builder/)
|
64 |
6. [Premium Divider](https://premiumaddons.com/dual-header-widget-for-elementor-page-builder/)
|
65 |
7. [Premium Facebook Messenger](https://premiumaddons.com/facebook-messenger-widget-for-elementor-page-builder/)
|
66 |
-
8. [Premium Facebook Reviews](https://premiumaddons.com/facebook-reviews-widget-for-elementor-page-builder
|
67 |
9. [Premium Flip Box](https://premiumaddons.com/flip-box-widget-for-elementor-page-builder/)
|
68 |
10. [Premium Google Reviews](https://premiumaddons.com/google-reviews-for-elementor-page-builder/)
|
69 |
11. [Premium Icon Box](https://premiumaddons.com/icon-box-widget-for-elementor-page-builder/)
|
@@ -130,6 +130,10 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
133 |
= 2.5.0 =
|
134 |
|
135 |
- New: Added Premium Addons PRO Controls.
|
@@ -210,7 +214,6 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
210 |
- Fix: Premium Person cropped image issue.
|
211 |
- Fix: Premium Blog cropped image issue.
|
212 |
|
213 |
-
|
214 |
= 2.2.5 =
|
215 |
|
216 |
- Fix: Premium Carousel slides on Tabs/Mobiles options bug.
|
@@ -438,4 +441,4 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
438 |
|
439 |
= 1.0 =
|
440 |
|
441 |
-
- Initial stable release
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.7
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.5.1
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
63 |
5. [Premium Content Switcher](https://premiumaddons.com/content-switcher-widget-for-elementor-page-builder/)
|
64 |
6. [Premium Divider](https://premiumaddons.com/dual-header-widget-for-elementor-page-builder/)
|
65 |
7. [Premium Facebook Messenger](https://premiumaddons.com/facebook-messenger-widget-for-elementor-page-builder/)
|
66 |
+
8. [Premium Facebook Reviews](https://premiumaddons.com/facebook-reviews-widget-for-elementor-page-builder/)
|
67 |
9. [Premium Flip Box](https://premiumaddons.com/flip-box-widget-for-elementor-page-builder/)
|
68 |
10. [Premium Google Reviews](https://premiumaddons.com/google-reviews-for-elementor-page-builder/)
|
69 |
11. [Premium Icon Box](https://premiumaddons.com/icon-box-widget-for-elementor-page-builder/)
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 2.5.1 =
|
134 |
+
|
135 |
+
- Tweak: Added image vertical align option in Premium Banner widget.
|
136 |
+
|
137 |
= 2.5.0 =
|
138 |
|
139 |
- New: Added Premium Addons PRO Controls.
|
214 |
- Fix: Premium Person cropped image issue.
|
215 |
- Fix: Premium Blog cropped image issue.
|
216 |
|
|
|
217 |
= 2.2.5 =
|
218 |
|
219 |
- Fix: Premium Carousel slides on Tabs/Mobiles options bug.
|
441 |
|
442 |
= 1.0 =
|
443 |
|
444 |
+
- Initial stable release.
|
widgets/premium-banner.php
CHANGED
@@ -173,12 +173,13 @@ class Premium_Banner_Widget extends Widget_Base {
|
|
173 |
[
|
174 |
'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
|
175 |
'type' => Controls_Manager::SELECT,
|
176 |
-
|
177 |
-
'description' => esc_html__( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' ),
|
178 |
-
'options' => [
|
179 |
'default' => 'Default',
|
180 |
'custom' => 'Custom',
|
181 |
-
]
|
|
|
|
|
|
|
182 |
]
|
183 |
);
|
184 |
|
@@ -196,7 +197,28 @@ class Premium_Banner_Widget extends Widget_Base {
|
|
196 |
]
|
197 |
]
|
198 |
);
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
$this->add_control(
|
201 |
'premium_banner_extra_class',
|
202 |
[
|
@@ -529,7 +551,9 @@ class Premium_Banner_Widget extends Widget_Base {
|
|
529 |
<div class="premium_banner" id="premium-banner-<?php echo esc_attr($this->get_id()); ?>">
|
530 |
<div class="premium_addons-banner-ib <?php echo $full_class; ?> premium-banner-min-height">
|
531 |
<?php if( isset( $settings['premium_banner_image']['url'] ) && $settings['premium_banner_image']['url'] != '' ): ?>
|
532 |
-
|
|
|
|
|
533 |
<?php endif; ?>
|
534 |
<div class="premium_addons-banner-ib-desc" style="">
|
535 |
<?php echo $full_title; ?>
|
173 |
[
|
174 |
'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
|
175 |
'type' => Controls_Manager::SELECT,
|
176 |
+
'options' => [
|
|
|
|
|
177 |
'default' => 'Default',
|
178 |
'custom' => 'Custom',
|
179 |
+
],
|
180 |
+
'default' => 'default',
|
181 |
+
'description' => esc_html__( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' ),
|
182 |
+
|
183 |
]
|
184 |
);
|
185 |
|
197 |
]
|
198 |
]
|
199 |
);
|
200 |
+
|
201 |
+
$this->add_control(
|
202 |
+
'premium_banner_img_vertical_align',
|
203 |
+
[
|
204 |
+
'label' => esc_html__( 'Vertical Align', 'premium-addons-for-elementor' ),
|
205 |
+
'type' => Controls_Manager::SELECT,
|
206 |
+
'condition' => [
|
207 |
+
'premium_banner_height' => 'custom'
|
208 |
+
],
|
209 |
+
'options' => [
|
210 |
+
'flex-start' => esc_html__('Top', 'premium-addons-for-elementor'),
|
211 |
+
'center' => esc_html__('Middle', 'premium-addons-for-elementor'),
|
212 |
+
'flex-end' => esc_html__('Bottom', 'premium-addons-for-elementor'),
|
213 |
+
'inherit' => esc_html__('Full', 'premium-addons-for-elementor'),
|
214 |
+
],
|
215 |
+
'default' => 'inherit',
|
216 |
+
'selectors' => [
|
217 |
+
'{{WRAPPER}} .premium_addons-banner-img-wrap' => 'align-items: {{VALUE}}; -webkit-align-items: {{VALUE}};'
|
218 |
+
]
|
219 |
+
]
|
220 |
+
);
|
221 |
+
|
222 |
$this->add_control(
|
223 |
'premium_banner_extra_class',
|
224 |
[
|
551 |
<div class="premium_banner" id="premium-banner-<?php echo esc_attr($this->get_id()); ?>">
|
552 |
<div class="premium_addons-banner-ib <?php echo $full_class; ?> premium-banner-min-height">
|
553 |
<?php if( isset( $settings['premium_banner_image']['url'] ) && $settings['premium_banner_image']['url'] != '' ): ?>
|
554 |
+
<div class="premium_addons-banner-img-wrap">
|
555 |
+
<img class="premium_addons-banner-ib-img" alt="null" src="<?php echo $settings['premium_banner_image']['url']; ?>">
|
556 |
+
</div>
|
557 |
<?php endif; ?>
|
558 |
<div class="premium_addons-banner-ib-desc" style="">
|
559 |
<?php echo $full_title; ?>
|