Version Description
- Tweak: Added slashed price option to Premium Pricing Table widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- admin/settings-page.php +1 -1
- assets/css/premium-addons.css +6 -0
- premium-addons-for-elementor.php +3 -3
- readme.txt +5 -1
- widgets/premium-pricing-table.php +55 -4
admin/settings-page.php
CHANGED
@@ -373,7 +373,7 @@ class PA_admin_settings {
|
|
373 |
|
374 |
<tr class="pa-roll-row">
|
375 |
<th>Rollback Version</th>
|
376 |
-
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.3.
|
377 |
</tr>
|
378 |
<tr>
|
379 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
373 |
|
374 |
<tr class="pa-roll-row">
|
375 |
<th>Rollback Version</th>
|
376 |
+
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.3.2</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
|
377 |
</tr>
|
378 |
<tr>
|
379 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
assets/css/premium-addons.css
CHANGED
@@ -2067,6 +2067,12 @@ button.premium-modal-box-modal-close {
|
|
2067 |
list-style-type: none;
|
2068 |
margin: 0;
|
2069 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2070 |
.premium-pricing-price-value {
|
2071 |
font-size: 70px;
|
2072 |
}
|
2067 |
list-style-type: none;
|
2068 |
margin: 0;
|
2069 |
}
|
2070 |
+
.premium-pricing-slashed-price-value {
|
2071 |
+
display: inline-block;
|
2072 |
+
font-size: 20px;
|
2073 |
+
font-weight: 400;
|
2074 |
+
margin-right: 5px;
|
2075 |
+
}
|
2076 |
.premium-pricing-price-value {
|
2077 |
font-size: 70px;
|
2078 |
}
|
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.3.
|
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 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
-
define( 'PREMIUM_ADDONS_VERSION', '2.3.
|
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.3.
|
31 |
|
32 |
|
33 |
/**
|
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.3.3
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
22 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
+
define( 'PREMIUM_ADDONS_VERSION', '2.3.3' );
|
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.3.2');
|
31 |
|
32 |
|
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.6
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -99,6 +99,10 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 2.3.2 =
|
103 |
|
104 |
- Tweak: Added link option to excerpt in Premium Blog widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.6
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.3.3
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.3.3 =
|
103 |
+
|
104 |
+
- Tweak: Added slashed price option to Premium Pricing Table widget.
|
105 |
+
|
106 |
= 2.3.2 =
|
107 |
|
108 |
- Tweak: Added link option to excerpt in Premium Blog widget.
|
widgets/premium-pricing-table.php
CHANGED
@@ -113,6 +113,15 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
113 |
'label_block' => true,
|
114 |
]
|
115 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
/*Price Value*/
|
118 |
$this->add_control('premium_pricing_table_price_value',
|
@@ -755,7 +764,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
755 |
$this->add_group_control(
|
756 |
Group_Control_Typography::get_type(),
|
757 |
[
|
758 |
-
'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
|
759 |
'name' => 'currency_typo',
|
760 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
761 |
'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
|
@@ -799,6 +807,49 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
799 |
]
|
800 |
]
|
801 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
|
803 |
$this->add_control('premium_pricing_price_heading',
|
804 |
[
|
@@ -827,7 +878,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
827 |
$this->add_group_control(
|
828 |
Group_Control_Typography::get_type(),
|
829 |
[
|
830 |
-
'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
|
831 |
'name' => 'price_typo',
|
832 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
833 |
'selector' => '{{WRAPPER}} .premium-pricing-price-value',
|
@@ -872,7 +922,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
872 |
$this->add_group_control(
|
873 |
Group_Control_Typography::get_type(),
|
874 |
[
|
875 |
-
'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
|
876 |
'name' => 'separator_typo',
|
877 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
878 |
'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
|
@@ -924,7 +973,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
924 |
$this->add_group_control(
|
925 |
Group_Control_Typography::get_type(),
|
926 |
[
|
927 |
-
'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
|
928 |
'name' => 'duration_typo',
|
929 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
930 |
'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
|
@@ -1792,6 +1840,9 @@ class Premium_Pricing_Table_Widget extends Widget_Base
|
|
1792 |
<span class="premium-pricing-price-currency">
|
1793 |
<?php echo $settings['premium_pricing_table_price_currency']; ?>
|
1794 |
</span>
|
|
|
|
|
|
|
1795 |
<span class="premium-pricing-price-value">
|
1796 |
<?php echo $settings['premium_pricing_table_price_value']; ?>
|
1797 |
</span>
|
113 |
'label_block' => true,
|
114 |
]
|
115 |
);
|
116 |
+
|
117 |
+
/*Price Value*/
|
118 |
+
$this->add_control('premium_pricing_table_slashed_price_value',
|
119 |
+
[
|
120 |
+
'label' => esc_html__('Slashed Price', 'premium-addons-for-elementor'),
|
121 |
+
'type' => Controls_Manager::TEXT,
|
122 |
+
'label_block' => true,
|
123 |
+
]
|
124 |
+
);
|
125 |
|
126 |
/*Price Value*/
|
127 |
$this->add_control('premium_pricing_table_price_value',
|
764 |
$this->add_group_control(
|
765 |
Group_Control_Typography::get_type(),
|
766 |
[
|
|
|
767 |
'name' => 'currency_typo',
|
768 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
769 |
'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
|
807 |
]
|
808 |
]
|
809 |
);
|
810 |
+
|
811 |
+
$this->add_control('premium_pricing_slashed_price_heading',
|
812 |
+
[
|
813 |
+
'label' => esc_html__('Slashed Price', 'premium-addons-for-elementor'),
|
814 |
+
'type' => Controls_Manager::HEADING,
|
815 |
+
]
|
816 |
+
);
|
817 |
+
|
818 |
+
/*Price Color*/
|
819 |
+
$this->add_control('premium_pricing_slashed_price_color',
|
820 |
+
[
|
821 |
+
'label' => esc_html__('Color', 'premium-addons-for-elementor'),
|
822 |
+
'type' => Controls_Manager::COLOR,
|
823 |
+
'scheme' => [
|
824 |
+
'type' => Scheme_Color::get_type(),
|
825 |
+
'value' => Scheme_Color::COLOR_1,
|
826 |
+
],
|
827 |
+
'selectors' => [
|
828 |
+
'{{WRAPPER}} .premium-pricing-slashed-price-value' => 'color: {{VALUE}};'
|
829 |
+
],
|
830 |
+
]
|
831 |
+
);
|
832 |
+
|
833 |
+
/*Price Typo*/
|
834 |
+
$this->add_group_control(
|
835 |
+
Group_Control_Typography::get_type(),
|
836 |
+
[
|
837 |
+
'name' => 'slashed_price_typo',
|
838 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
839 |
+
'selector' => '{{WRAPPER}} .premium-pricing-slashed-price-value',
|
840 |
+
]
|
841 |
+
);
|
842 |
+
|
843 |
+
$this->add_responsive_control('premium_pricing_slashed_price_margin',
|
844 |
+
[
|
845 |
+
'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
|
846 |
+
'type' => Controls_Manager::DIMENSIONS,
|
847 |
+
'size_units' => ['px', 'em', '%'],
|
848 |
+
'selectors' => [
|
849 |
+
'{{WRAPPER}} .premium-pricing--slashed-price-value' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
850 |
+
]
|
851 |
+
]
|
852 |
+
);
|
853 |
|
854 |
$this->add_control('premium_pricing_price_heading',
|
855 |
[
|
878 |
$this->add_group_control(
|
879 |
Group_Control_Typography::get_type(),
|
880 |
[
|
|
|
881 |
'name' => 'price_typo',
|
882 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
883 |
'selector' => '{{WRAPPER}} .premium-pricing-price-value',
|
922 |
$this->add_group_control(
|
923 |
Group_Control_Typography::get_type(),
|
924 |
[
|
|
|
925 |
'name' => 'separator_typo',
|
926 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
927 |
'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
|
973 |
$this->add_group_control(
|
974 |
Group_Control_Typography::get_type(),
|
975 |
[
|
|
|
976 |
'name' => 'duration_typo',
|
977 |
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
|
978 |
'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
|
1840 |
<span class="premium-pricing-price-currency">
|
1841 |
<?php echo $settings['premium_pricing_table_price_currency']; ?>
|
1842 |
</span>
|
1843 |
+
<strike class="premium-pricing-slashed-price-value">
|
1844 |
+
<?php echo $settings['premium_pricing_table_slashed_price_value']; ?>
|
1845 |
+
</strike>
|
1846 |
<span class="premium-pricing-price-value">
|
1847 |
<?php echo $settings['premium_pricing_table_price_value']; ?>
|
1848 |
</span>
|