Version Description
- May 25, 2019 =
- New: Swipe to Slide option.
- Fix: Border backward compatibility issue.
- Fix: AutoPlay Speed backward compatibility issue.
- Fix: Pagination Speed backward compatibility issue.
Download this release
Release Info
Developer | shapedplugin |
Plugin | Carousel, Slider, Gallery by WP Carousel – Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- includes/class-wp-carousel-free-shortcode.php +10 -10
- public/dynamic-style.php +8 -8
- readme.txt +6 -0
- wp-carousel-free.php +2 -2
includes/class-wp-carousel-free-shortcode.php
CHANGED
@@ -88,24 +88,24 @@ class WP_Carousel_Free_Shortcode {
|
|
88 |
// Carousel Column.
|
89 |
$column_number = isset( $shortcode_data['wpcp_number_of_columns'] ) ? $shortcode_data['wpcp_number_of_columns'] : '';
|
90 |
$old_column_lg_desktop = isset( $column_number['column1'] ) ? $column_number['column1'] : '5';
|
91 |
-
$column_lg_desktop = isset( $column_number['lg_desktop'] ) ? $column_number['lg_desktop'] : $old_column_lg_desktop;
|
92 |
$old_column_desktop = isset( $column_number['column2'] ) ? $column_number['column2'] : '4';
|
93 |
-
$column_desktop = isset( $column_number['desktop'] ) ? $column_number['desktop'] : $old_column_desktop;
|
94 |
$old_column_sm_desktop = isset( $column_number['column3'] ) ? $column_number['column3'] : '3';
|
95 |
-
$column_sm_desktop = isset( $column_number['laptop'] ) ? $column_number['laptop'] : $old_column_sm_desktop;
|
96 |
$old_column_tablet = isset( $column_number['column4'] ) ? $column_number['column4'] : '2';
|
97 |
-
$column_tablet = isset( $column_number['tablet'] ) ? $column_number['tablet'] : $old_column_tablet;
|
98 |
$old_column_mobile = isset( $column_number['column5'] ) ? $column_number['column5'] : '1';
|
99 |
-
$column_mobile = isset( $column_number['mobile'] ) ? $column_number['mobile'] : $old_column_mobile;
|
100 |
|
101 |
// Carousel Settings.
|
102 |
$preloader = isset( $shortcode_data['wpcp_preloader'] ) ? $shortcode_data['wpcp_preloader'] : true;
|
103 |
$accessibility = $shortcode_data['wpcp_accessibility'] ? 'true' : 'false';
|
104 |
$auto_play = $shortcode_data['wpcp_carousel_auto_play'] ? 'true' : 'false';
|
105 |
-
$old_autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed'] ) ? $shortcode_data['carousel_auto_play_speed'] : '3000';
|
106 |
-
$autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed']['all'] ) ? $shortcode_data['carousel_auto_play_speed']['all'] : $old_autoplay_speed;
|
107 |
-
$old_speed = isset( $shortcode_data['standard_carousel_scroll_speed'] ) ? $shortcode_data['standard_carousel_scroll_speed'] : '600';
|
108 |
-
$speed = isset( $shortcode_data['standard_carousel_scroll_speed']['all'] ) ? $shortcode_data['standard_carousel_scroll_speed']['all'] : $old_speed;
|
109 |
$infinite = $shortcode_data['carousel_infinite'] ? 'true' : 'false';
|
110 |
$pause_on_hover = $shortcode_data['carousel_pause_on_hover'] ? 'true' : 'false';
|
111 |
$draggable = $shortcode_data['slider_draggable'] ? 'true' : 'false';
|
@@ -171,7 +171,7 @@ class WP_Carousel_Free_Shortcode {
|
|
171 |
}
|
172 |
|
173 |
$carousel_classes .= ' wpcp-standard';
|
174 |
-
$wpcp_slick_options = 'data-slick=\'{ "accessibility":' . $accessibility . ', "arrows":' . $arrows . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ', "slidesToShow":' . $column_lg_desktop . ', "responsive":[ { "breakpoint":1200, "settings": { "slidesToShow":' . $column_desktop . ' } }, { "breakpoint":980, "settings":{ "slidesToShow":' . $column_sm_desktop . ' } }, { "breakpoint":736, "settings": { "slidesToShow":' . $column_tablet . ' } }, {"breakpoint":480, "settings":{ "slidesToShow":' . $column_mobile . ', "arrows": ' . $arrows_mobile . ', "dots": ' . $dots_mobile . ' } } ], "swipe": ' . $swipe . ', "swipeToSlide":
|
175 |
|
176 |
if ( 'image-carousel' === $carousel_type ) {
|
177 |
ob_start();
|
88 |
// Carousel Column.
|
89 |
$column_number = isset( $shortcode_data['wpcp_number_of_columns'] ) ? $shortcode_data['wpcp_number_of_columns'] : '';
|
90 |
$old_column_lg_desktop = isset( $column_number['column1'] ) ? $column_number['column1'] : '5';
|
91 |
+
$column_lg_desktop = isset( $column_number['lg_desktop'] ) && ! empty( $column_number['lg_desktop'] ) ? $column_number['lg_desktop'] : $old_column_lg_desktop;
|
92 |
$old_column_desktop = isset( $column_number['column2'] ) ? $column_number['column2'] : '4';
|
93 |
+
$column_desktop = isset( $column_number['desktop'] ) && ! empty( $column_number['desktop'] ) ? $column_number['desktop'] : $old_column_desktop;
|
94 |
$old_column_sm_desktop = isset( $column_number['column3'] ) ? $column_number['column3'] : '3';
|
95 |
+
$column_sm_desktop = isset( $column_number['laptop'] ) && ! empty( $column_number['laptop'] ) ? $column_number['laptop'] : $old_column_sm_desktop;
|
96 |
$old_column_tablet = isset( $column_number['column4'] ) ? $column_number['column4'] : '2';
|
97 |
+
$column_tablet = isset( $column_number['tablet'] ) && ! empty( $column_number['tablet'] ) ? $column_number['tablet'] : $old_column_tablet;
|
98 |
$old_column_mobile = isset( $column_number['column5'] ) ? $column_number['column5'] : '1';
|
99 |
+
$column_mobile = isset( $column_number['mobile'] ) && ! empty( $column_number['mobile'] ) ? $column_number['mobile'] : $old_column_mobile;
|
100 |
|
101 |
// Carousel Settings.
|
102 |
$preloader = isset( $shortcode_data['wpcp_preloader'] ) ? $shortcode_data['wpcp_preloader'] : true;
|
103 |
$accessibility = $shortcode_data['wpcp_accessibility'] ? 'true' : 'false';
|
104 |
$auto_play = $shortcode_data['wpcp_carousel_auto_play'] ? 'true' : 'false';
|
105 |
+
$old_autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed'] ) && is_numeric( $shortcode_data['carousel_auto_play_speed'] ) ? $shortcode_data['carousel_auto_play_speed'] : '3000';
|
106 |
+
$autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed']['all'] ) && ! empty( $shortcode_data['carousel_auto_play_speed']['all'] ) ? $shortcode_data['carousel_auto_play_speed']['all'] : $old_autoplay_speed;
|
107 |
+
$old_speed = isset( $shortcode_data['standard_carousel_scroll_speed'] ) && is_numeric( $shortcode_data['standard_carousel_scroll_speed'] ) ? $shortcode_data['standard_carousel_scroll_speed'] : '600';
|
108 |
+
$speed = isset( $shortcode_data['standard_carousel_scroll_speed']['all'] ) && ! empty( $shortcode_data['standard_carousel_scroll_speed']['all'] ) ? $shortcode_data['standard_carousel_scroll_speed']['all'] : $old_speed;
|
109 |
$infinite = $shortcode_data['carousel_infinite'] ? 'true' : 'false';
|
110 |
$pause_on_hover = $shortcode_data['carousel_pause_on_hover'] ? 'true' : 'false';
|
111 |
$draggable = $shortcode_data['slider_draggable'] ? 'true' : 'false';
|
171 |
}
|
172 |
|
173 |
$carousel_classes .= ' wpcp-standard';
|
174 |
+
$wpcp_slick_options = 'data-slick=\'{ "accessibility":' . $accessibility . ', "arrows":' . $arrows . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ', "slidesToShow":' . $column_lg_desktop . ', "responsive":[ { "breakpoint":1200, "settings": { "slidesToShow":' . $column_desktop . ' } }, { "breakpoint":980, "settings":{ "slidesToShow":' . $column_sm_desktop . ' } }, { "breakpoint":736, "settings": { "slidesToShow":' . $column_tablet . ' } }, {"breakpoint":480, "settings":{ "slidesToShow":' . $column_mobile . ', "arrows": ' . $arrows_mobile . ', "dots": ' . $dots_mobile . ' } } ], "swipe": ' . $swipe . ', "swipeToSlide": true, "draggable": ' . $draggable . ' }\' ';
|
175 |
|
176 |
if ( 'image-carousel' === $carousel_type ) {
|
177 |
ob_start();
|
public/dynamic-style.php
CHANGED
@@ -11,20 +11,20 @@ $section_title_dynamic_css = '';
|
|
11 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
12 |
|
13 |
if ( $section_title ) {
|
14 |
-
$old_section_title_margin = isset( $shortcode_data['section_title_margin_bottom'] ) ? $shortcode_data['section_title_margin_bottom'] : '30';
|
15 |
-
$section_title_margin = isset( $shortcode_data['section_title_margin_bottom']['all'] ) ? $shortcode_data['section_title_margin_bottom']['all'] : $old_section_title_margin;
|
16 |
$section_title_dynamic_css .= '
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
}
|
21 |
|
22 |
$slide_border = isset( $shortcode_data['wpcp_slide_border'] ) ? $shortcode_data['wpcp_slide_border'] : '';
|
23 |
-
$old_slide_border_width = isset( $slide_border['width'] ) ? $slide_border['width'] : '1';
|
24 |
-
$slide_border_width = isset( $shortcode_data['wpcp_slide_border']['all'] ) ? $shortcode_data['wpcp_slide_border']['all'] : $old_slide_border_width;
|
25 |
|
26 |
// Product Image Border.
|
27 |
-
$image_border_width = isset( $shortcode_data['wpcp_product_image_border']['all'] ) ? $shortcode_data['wpcp_product_image_border']['all'] : $old_slide_border_width;
|
28 |
$image_border_style = isset( $shortcode_data['wpcp_product_image_border']['style'] ) ? $shortcode_data['wpcp_product_image_border']['style'] : '1';
|
29 |
$image_border_color = isset( $shortcode_data['wpcp_product_image_border']['color'] ) ? $shortcode_data['wpcp_product_image_border']['color'] : '#ddd';
|
30 |
|
11 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
12 |
|
13 |
if ( $section_title ) {
|
14 |
+
$old_section_title_margin = isset( $shortcode_data['section_title_margin_bottom'] ) && is_numeric( $shortcode_data['section_title_margin_bottom'] ) ? $shortcode_data['section_title_margin_bottom'] : '30';
|
15 |
+
$section_title_margin = isset( $shortcode_data['section_title_margin_bottom']['all'] ) && ( $shortcode_data['section_title_margin_bottom']['all'] >= 0 ) ? $shortcode_data['section_title_margin_bottom']['all'] : $old_section_title_margin;
|
16 |
$section_title_dynamic_css .= '
|
17 |
+
.wpcp-wrapper-' . $post_id . ' .sp-wpcpro-section-title {
|
18 |
+
margin-bottom: ' . $section_title_margin . 'px;
|
19 |
+
}';
|
20 |
}
|
21 |
|
22 |
$slide_border = isset( $shortcode_data['wpcp_slide_border'] ) ? $shortcode_data['wpcp_slide_border'] : '';
|
23 |
+
$old_slide_border_width = isset( $slide_border['width'] ) && ! empty( $slide_border['width'] ) ? $slide_border['width'] : '1';
|
24 |
+
$slide_border_width = isset( $shortcode_data['wpcp_slide_border']['all'] ) && ! empty( $shortcode_data['wpcp_slide_border']['all'] ) ? $shortcode_data['wpcp_slide_border']['all'] : $old_slide_border_width;
|
25 |
|
26 |
// Product Image Border.
|
27 |
+
$image_border_width = isset( $shortcode_data['wpcp_product_image_border']['all'] ) && ! empty( $shortcode_data['wpcp_product_image_border']['all'] ) ? $shortcode_data['wpcp_product_image_border']['all'] : $old_slide_border_width;
|
28 |
$image_border_style = isset( $shortcode_data['wpcp_product_image_border']['style'] ) ? $shortcode_data['wpcp_product_image_border']['style'] : '1';
|
29 |
$image_border_color = isset( $shortcode_data['wpcp_product_image_border']['color'] ) ? $shortcode_data['wpcp_product_image_border']['color'] : '#ddd';
|
30 |
|
readme.txt
CHANGED
@@ -326,6 +326,12 @@ Thank you!
|
|
326 |
|
327 |
== Changelog ==
|
328 |
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
= 2.1.0 - May 25, 2019 =
|
330 |
* New: Carousel preloader added.
|
331 |
* New: Data remove option on uninstall plugin.
|
326 |
|
327 |
== Changelog ==
|
328 |
|
329 |
+
= 2.1.1 - May 25, 2019 =
|
330 |
+
* New: Swipe to Slide option.
|
331 |
+
* Fix: Border backward compatibility issue.
|
332 |
+
* Fix: AutoPlay Speed backward compatibility issue.
|
333 |
+
* Fix: Pagination Speed backward compatibility issue.
|
334 |
+
|
335 |
= 2.1.0 - May 25, 2019 =
|
336 |
* New: Carousel preloader added.
|
337 |
* New: Data remove option on uninstall plugin.
|
wp-carousel-free.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: WordPress Carousel
|
11 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/
|
12 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
13 |
-
* Version: 2.1.
|
14 |
* Author: ShapedPlugin
|
15 |
* Author URI: https://shapedplugin.com/
|
16 |
* License: GPL-2.0+
|
@@ -119,7 +119,7 @@ class SP_WP_Carousel_Free {
|
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
-
$this->version = '2.1.
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
10 |
* Plugin Name: WordPress Carousel
|
11 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/
|
12 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
13 |
+
* Version: 2.1.1
|
14 |
* Author: ShapedPlugin
|
15 |
* Author URI: https://shapedplugin.com/
|
16 |
* License: GPL-2.0+
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
+
$this->version = '2.1.1';
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|