Version Description
- Tweak: Added
Fade
andZoom
transition effects Premium Carousel widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 3.0.9 |
Comparing to | |
See all releases |
Code changes from version 3.0.8 to 3.0.9
- admin/settings/version-control.php +1 -1
- assets/css/premium-addons.css +10 -0
- assets/js/premium-addons.js +1 -0
- premium-addons-for-elementor.php +3 -3
- readme.txt +5 -1
- widgets/premium-carousel.php +41 -20
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 3.0.
|
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 3.0.8</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/css/premium-addons.css
CHANGED
@@ -933,6 +933,16 @@ ul.slick-dots li {
|
|
933 |
-webkit-animation-name: hvr-ripple-out;
|
934 |
animation-name: hvr-ripple-out;
|
935 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
936 |
/**************** Premium Counter ***************/
|
937 |
/************************************************/
|
938 |
.premium-counter-area {
|
933 |
-webkit-animation-name: hvr-ripple-out;
|
934 |
animation-name: hvr-ripple-out;
|
935 |
}
|
936 |
+
.premium-carousel-wrapper.premium-carousel-scale .slick-slide {
|
937 |
+
-webkit-transform: scale(1.25, 1.25);
|
938 |
+
transform: scale(1.25, 1.25);
|
939 |
+
-webkit-transition: all 0.3s ease-in-out !important;
|
940 |
+
transition: all 0.3s ease-in-out !important;
|
941 |
+
}
|
942 |
+
.premium-carousel-wrapper.premium-carousel-scale div.slick-active {
|
943 |
+
-webkit-transform: scale(1, 1);
|
944 |
+
transform: scale(1, 1);
|
945 |
+
}
|
946 |
/**************** Premium Counter ***************/
|
947 |
/************************************************/
|
948 |
.premium-counter-area {
|
assets/js/premium-addons.js
CHANGED
@@ -368,6 +368,7 @@
|
|
368 |
}
|
369 |
}
|
370 |
],
|
|
|
371 |
infinite: carouselSettings["infinite"],
|
372 |
speed: carouselSettings["speed"],
|
373 |
autoplay: carouselSettings["autoplay"],
|
368 |
}
|
369 |
}
|
370 |
],
|
371 |
+
fade: carouselSettings["fade"],
|
372 |
infinite: carouselSettings["infinite"],
|
373 |
speed: carouselSettings["speed"],
|
374 |
autoplay: carouselSettings["autoplay"],
|
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: 3.0.
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -23,12 +23,12 @@ if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
|
23 |
|
24 |
|
25 |
// Define Constants
|
26 |
-
define('PREMIUM_ADDONS_VERSION', '3.0.
|
27 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
28 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
29 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
30 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
31 |
-
define('PREMIUM_ADDONS_STABLE_VERSION', '3.0.
|
32 |
|
33 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
34 |
/*
|
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: 3.0.9
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
23 |
|
24 |
|
25 |
// Define Constants
|
26 |
+
define('PREMIUM_ADDONS_VERSION', '3.0.9');
|
27 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
28 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
29 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
30 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
31 |
+
define('PREMIUM_ADDONS_STABLE_VERSION', '3.0.8');
|
32 |
|
33 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
34 |
/*
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0.3
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 3.0.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -138,6 +138,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
|
|
141 |
= 3.0.8 =
|
142 |
|
143 |
- Tweak: Added `CSS Filters` option for image in Grid and Person widgets.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0.3
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 3.0.9
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
= 3.0.9 =
|
142 |
+
|
143 |
+
- Tweak: Added `Fade` and `Zoom` transition effects Premium Carousel widget.
|
144 |
+
|
145 |
= 3.0.8 =
|
146 |
|
147 |
- Tweak: Added `CSS Filters` option for image in Grid and Person widgets.
|
widgets/premium-carousel.php
CHANGED
@@ -126,7 +126,7 @@ class Premium_Carousel extends Widget_Base {
|
|
126 |
[
|
127 |
'label' => __( 'Desktop Slides', 'premium-addons-for-elementor' ),
|
128 |
'type' => Controls_Manager::NUMBER,
|
129 |
-
'default' =>
|
130 |
]
|
131 |
);
|
132 |
|
@@ -134,7 +134,7 @@ class Premium_Carousel extends Widget_Base {
|
|
134 |
[
|
135 |
'label' => __( 'Tabs Slides', 'premium-addons-for-elementor' ),
|
136 |
'type' => Controls_Manager::NUMBER,
|
137 |
-
'default' =>
|
138 |
]
|
139 |
);
|
140 |
|
@@ -142,7 +142,7 @@ class Premium_Carousel extends Widget_Base {
|
|
142 |
[
|
143 |
'label' => __( 'Mobile Slides', 'premium-addons-for-elementor' ),
|
144 |
'type' => Controls_Manager::NUMBER,
|
145 |
-
'default' =>
|
146 |
]
|
147 |
);
|
148 |
|
@@ -163,6 +163,24 @@ class Premium_Carousel extends Widget_Base {
|
|
163 |
]
|
164 |
);
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
$this->add_control('premium_carousel_speed',
|
167 |
[
|
168 |
'label' => __( 'Transition Speed', 'premium-addons-for-elementor' ),
|
@@ -211,20 +229,13 @@ class Premium_Carousel extends Widget_Base {
|
|
211 |
|
212 |
$this->end_controls_section();
|
213 |
|
214 |
-
$this->start_controls_section('
|
215 |
[
|
216 |
-
'label' => __( 'Navigation', 'premium-addons-for-elementor' ),
|
217 |
'tab' => Controls_Manager::TAB_STYLE
|
218 |
]
|
219 |
);
|
220 |
|
221 |
-
$this->add_control('premium_carousel_arrow_heading',
|
222 |
-
[
|
223 |
-
'label' => __('Arrows','premium-addons-for-elementor'),
|
224 |
-
'type' => Controls_manager::HEADING
|
225 |
-
]
|
226 |
-
);
|
227 |
-
|
228 |
$this->add_control('premium_carousel_navigation_show',
|
229 |
[
|
230 |
'label' => __( 'Arrows', 'premium-addons-for-elementor' ),
|
@@ -386,7 +397,7 @@ class Premium_Carousel extends Widget_Base {
|
|
386 |
],
|
387 |
]
|
388 |
);
|
389 |
-
|
390 |
$this->add_responsive_control('premium_carousel_arrow_size',
|
391 |
[
|
392 |
'label' => __( 'Size', 'premium-addons-for-elementor' ),
|
@@ -488,13 +499,16 @@ class Premium_Carousel extends Widget_Base {
|
|
488 |
]
|
489 |
]
|
490 |
);
|
491 |
-
|
492 |
-
$this->add_control('premium_carousel_dots_heading',
|
493 |
-
[
|
494 |
-
'label' => __('Dots','premium-addons-for-elementor'),
|
495 |
-
'type' => Controls_manager::HEADING,
|
496 |
-
]);
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
$this->add_control('premium_carousel_dot_navigation_show',
|
499 |
[
|
500 |
'label' => __( 'Dots', 'premium-addons-for-elementor' ),
|
@@ -713,6 +727,8 @@ class Premium_Carousel extends Widget_Base {
|
|
713 |
$responsive = '[{breakpoint: 1025,settings: {slidesToShow: ' . $slides_on_desk . ',slidesToScroll: ' . $slidesToScroll . '}},{breakpoint: 769,settings: {slidesToShow: ' . $slides_on_tabs . ',slidesToScroll: ' . $slides_on_tabs . '}},{breakpoint: 481,settings: {slidesToShow: ' . $slides_on_mob . ',slidesToScroll: ' . $slides_on_mob . '}}]';
|
714 |
|
715 |
$infinite = $settings['premium_carousel_loop'] == 'yes' ? true : false;
|
|
|
|
|
716 |
|
717 |
$speed = !empty( $settings['premium_carousel_speed'] ) ? $settings['premium_carousel_speed'] : '';
|
718 |
|
@@ -874,7 +890,7 @@ class Premium_Carousel extends Widget_Base {
|
|
874 |
$animation = 'class="item-wrapper" data-animation="animated ' . $animation_class .'"';
|
875 |
|
876 |
$dot_anim = $settings['premium_carousel_navigation_effect'] == 'yes' ? 'hvr-ripple-out' : '';
|
877 |
-
|
878 |
$carousel_settings = [
|
879 |
'vertical' => $vertical,
|
880 |
'slidesToScroll'=> $slidesToScroll,
|
@@ -882,6 +898,7 @@ class Premium_Carousel extends Widget_Base {
|
|
882 |
'responsive' => $responsive,
|
883 |
'infinite' => $infinite,
|
884 |
'speed' => $speed,
|
|
|
885 |
'autoplay' => $autoplay,
|
886 |
'autoplaySpeed' => $autoplaySpeed,
|
887 |
'draggable' => $draggable,
|
@@ -921,6 +938,10 @@ class Premium_Carousel extends Widget_Base {
|
|
921 |
$extra_class,
|
922 |
$dir
|
923 |
] );
|
|
|
|
|
|
|
|
|
924 |
|
925 |
$this->add_render_attribute( 'carousel', 'data-settings', wp_json_encode( $carousel_settings ) );
|
926 |
|
126 |
[
|
127 |
'label' => __( 'Desktop Slides', 'premium-addons-for-elementor' ),
|
128 |
'type' => Controls_Manager::NUMBER,
|
129 |
+
'default' => 1
|
130 |
]
|
131 |
);
|
132 |
|
134 |
[
|
135 |
'label' => __( 'Tabs Slides', 'premium-addons-for-elementor' ),
|
136 |
'type' => Controls_Manager::NUMBER,
|
137 |
+
'default' => 1
|
138 |
]
|
139 |
);
|
140 |
|
142 |
[
|
143 |
'label' => __( 'Mobile Slides', 'premium-addons-for-elementor' ),
|
144 |
'type' => Controls_Manager::NUMBER,
|
145 |
+
'default' => 1
|
146 |
]
|
147 |
);
|
148 |
|
163 |
]
|
164 |
);
|
165 |
|
166 |
+
$this->add_control('premium_carousel_fade',
|
167 |
+
[
|
168 |
+
'label' => __( 'Fade', 'premium-addons-for-elementor' ),
|
169 |
+
'type' => Controls_Manager::SWITCHER,
|
170 |
+
'description' => __( 'Enable fade transition between slides', 'premium-addons-for-elementor' ),
|
171 |
+
]
|
172 |
+
);
|
173 |
+
|
174 |
+
$this->add_control('premium_carousel_zoom',
|
175 |
+
[
|
176 |
+
'label' => __( 'Zoom Effect', 'premium-addons-for-elementor' ),
|
177 |
+
'type' => Controls_Manager::SWITCHER,
|
178 |
+
'condition' => [
|
179 |
+
'premium_carousel_fade' => 'yes'
|
180 |
+
]
|
181 |
+
]
|
182 |
+
);
|
183 |
+
|
184 |
$this->add_control('premium_carousel_speed',
|
185 |
[
|
186 |
'label' => __( 'Transition Speed', 'premium-addons-for-elementor' ),
|
229 |
|
230 |
$this->end_controls_section();
|
231 |
|
232 |
+
$this->start_controls_section('premium_carousel_navigation_arrows',
|
233 |
[
|
234 |
+
'label' => __( 'Navigation Arrows', 'premium-addons-for-elementor' ),
|
235 |
'tab' => Controls_Manager::TAB_STYLE
|
236 |
]
|
237 |
);
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
$this->add_control('premium_carousel_navigation_show',
|
240 |
[
|
241 |
'label' => __( 'Arrows', 'premium-addons-for-elementor' ),
|
397 |
],
|
398 |
]
|
399 |
);
|
400 |
+
|
401 |
$this->add_responsive_control('premium_carousel_arrow_size',
|
402 |
[
|
403 |
'label' => __( 'Size', 'premium-addons-for-elementor' ),
|
499 |
]
|
500 |
]
|
501 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
|
503 |
+
$this->end_controls_section();
|
504 |
+
|
505 |
+
$this->start_controls_section('premium_carousel_navigation_dots',
|
506 |
+
[
|
507 |
+
'label' => __( 'Navigation Dots', 'premium-addons-for-elementor' ),
|
508 |
+
'tab' => Controls_Manager::TAB_STYLE
|
509 |
+
]
|
510 |
+
);
|
511 |
+
|
512 |
$this->add_control('premium_carousel_dot_navigation_show',
|
513 |
[
|
514 |
'label' => __( 'Dots', 'premium-addons-for-elementor' ),
|
727 |
$responsive = '[{breakpoint: 1025,settings: {slidesToShow: ' . $slides_on_desk . ',slidesToScroll: ' . $slidesToScroll . '}},{breakpoint: 769,settings: {slidesToShow: ' . $slides_on_tabs . ',slidesToScroll: ' . $slides_on_tabs . '}},{breakpoint: 481,settings: {slidesToShow: ' . $slides_on_mob . ',slidesToScroll: ' . $slides_on_mob . '}}]';
|
728 |
|
729 |
$infinite = $settings['premium_carousel_loop'] == 'yes' ? true : false;
|
730 |
+
|
731 |
+
$fade = $settings['premium_carousel_fade'] == 'yes' ? true : false;
|
732 |
|
733 |
$speed = !empty( $settings['premium_carousel_speed'] ) ? $settings['premium_carousel_speed'] : '';
|
734 |
|
890 |
$animation = 'class="item-wrapper" data-animation="animated ' . $animation_class .'"';
|
891 |
|
892 |
$dot_anim = $settings['premium_carousel_navigation_effect'] == 'yes' ? 'hvr-ripple-out' : '';
|
893 |
+
|
894 |
$carousel_settings = [
|
895 |
'vertical' => $vertical,
|
896 |
'slidesToScroll'=> $slidesToScroll,
|
898 |
'responsive' => $responsive,
|
899 |
'infinite' => $infinite,
|
900 |
'speed' => $speed,
|
901 |
+
'fade' => $fade,
|
902 |
'autoplay' => $autoplay,
|
903 |
'autoplaySpeed' => $autoplaySpeed,
|
904 |
'draggable' => $draggable,
|
938 |
$extra_class,
|
939 |
$dir
|
940 |
] );
|
941 |
+
|
942 |
+
if( $settings['premium_carousel_fade'] == 'yes' && $settings['premium_carousel_zoom'] == 'yes' ) {
|
943 |
+
$this->add_render_attribute( 'carousel', 'class', 'premium-carousel-scale' );
|
944 |
+
}
|
945 |
|
946 |
$this->add_render_attribute( 'carousel', 'data-settings', wp_json_encode( $carousel_settings ) );
|
947 |
|