Carousel, Slider, Gallery by WP Carousel – Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce - Version 2.3.2

Version Description

Oct 14, 2021 = * New: Responsive breakpoints added.

Download this release

Release Info

Developer shapedplugin
Plugin Icon 128x128 Carousel, Slider, Gallery by WP Carousel – Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

admin/views/option-config.php CHANGED
@@ -101,6 +101,39 @@ SP_WPCF::createSection(
101
  )
102
  );
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  //
105
  // Custom CSS Fields.
106
  //
101
  )
102
  );
103
 
104
+ // Responsive section.
105
+ //
106
+ SP_WPCF::createSection(
107
+ $prefix,
108
+ array(
109
+ 'title' => __( 'Responsive Breakpoints', 'wp-carousel-free' ),
110
+ 'icon' => 'fa fa-tablet',
111
+ 'fields' => array(
112
+ array(
113
+ 'id' => 'wpcp_responsive_screen_setting',
114
+ 'type' => 'column',
115
+ 'title' => __( 'Maximum Screen Width', 'wp-carousel-free' ),
116
+ 'min' => '300',
117
+ 'unit' => true,
118
+ 'units' => array(
119
+ 'px',
120
+ ),
121
+ 'lg_desktop' => false,
122
+ 'desktop_icon' => __( 'Desktop', 'wp-carousel-free' ),
123
+ 'laptop_icon' => __( 'Laptop', 'wp-carousel-free' ),
124
+ 'tablet_icon' => __( 'Tablet', 'wp-carousel-free' ),
125
+ 'mobile_icon' => __( 'Mobile', 'wp-carousel-free' ),
126
+ 'default' => array(
127
+ 'desktop' => '1200',
128
+ 'laptop' => '980',
129
+ 'tablet' => '736',
130
+ 'mobile' => '480',
131
+ ),
132
+ ),
133
+ ),
134
+ )
135
+ );
136
+
137
  //
138
  // Custom CSS Fields.
139
  //
admin/views/sp-framework/classes/setup.class.php CHANGED
@@ -69,8 +69,8 @@ if ( ! class_exists( 'SP_WPCF' ) ) {
69
  * @var array
70
  */
71
  public static $args = array(
72
- 'admin_options' => array(),
73
- 'metabox_options' => array(),
74
  );
75
 
76
  // Shortcode instances.
@@ -202,10 +202,13 @@ if ( ! class_exists( 'SP_WPCF' ) ) {
202
  public static function constants() {
203
 
204
  // We need this path-finder code for set URL of framework.
205
- $dirname = str_replace( '//', '/', wp_normalize_path( dirname( dirname( self::$file ) ) ) );
206
- $theme_dir = str_replace( '//', '/', wp_normalize_path( get_parent_theme_file_path() ) );
207
- $plugin_dir = str_replace( '//', '/', wp_normalize_path( WP_PLUGIN_DIR ) );
208
- $plugin_dir = str_replace( '/opt/bitnami', '/bitnami', $plugin_dir );
 
 
 
209
  $located_plugin = ( preg_match( '#' . self::sanitize_dirname( $plugin_dir ) . '#', self::sanitize_dirname( $dirname ) ) ) ? true : false;
210
  $directory = ( $located_plugin ) ? $plugin_dir : $theme_dir;
211
  $directory_uri = ( $located_plugin ) ? WP_PLUGIN_URL : get_parent_theme_file_uri();
69
  * @var array
70
  */
71
  public static $args = array(
72
+ 'admin_options' => array(),
73
+ 'metabox_options' => array(),
74
  );
75
 
76
  // Shortcode instances.
202
  public static function constants() {
203
 
204
  // We need this path-finder code for set URL of framework.
205
+ $dirname = str_replace( '//', '/', wp_normalize_path( dirname( dirname( self::$file ) ) ) );
206
+ $theme_dir = str_replace( '//', '/', wp_normalize_path( get_parent_theme_file_path() ) );
207
+ $plugin_dir = str_replace( '//', '/', wp_normalize_path( WP_PLUGIN_DIR ) );
208
+ $plugin_dir_hook = apply_filters( 'wpcp_plugin_dir_bitnami', true );
209
+ if ( $plugin_dir_hook ) {
210
+ $plugin_dir = str_replace( '/opt/bitnami', '/bitnami', $plugin_dir );
211
+ }
212
  $located_plugin = ( preg_match( '#' . self::sanitize_dirname( $plugin_dir ) . '#', self::sanitize_dirname( $dirname ) ) ) ? true : false;
213
  $directory = ( $located_plugin ) ? $plugin_dir : $theme_dir;
214
  $directory_uri = ( $located_plugin ) ? WP_PLUGIN_URL : get_parent_theme_file_uri();
includes/class-wp-carousel-free-shortcode.php CHANGED
@@ -154,6 +154,13 @@ class WP_Carousel_Free_Shortcode {
154
  break;
155
  }
156
 
 
 
 
 
 
 
 
157
  // Carousel Classes.
158
  $carousel_classes = 'wpcp-carousel-section sp-wpcp-' . $post_id . ' nav-vertical-center';
159
  if ( 'image-carousel' === $carousel_type ) {
@@ -178,7 +185,7 @@ class WP_Carousel_Free_Shortcode {
178
 
179
  $rtl = ( 'ltr' === $carousel_direction ) ? 'true' : 'false';
180
  $carousel_classes .= ' wpcp-standard';
181
- $wpcp_slick_options = 'data-slick=\'{ "accessibility":true, "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 . ' } } ], "rtl":' . $rtl . ', "lazyLoad": "' . $lazy_load_image . '", "swipe": ' . $swipe . ', "draggable": ' . $draggable . ', "swipeToSlide":' . $swipetoslide . ' }\' ';
182
 
183
  if ( 'image-carousel' === $carousel_type ) {
184
  ob_start();
154
  break;
155
  }
156
 
157
+ // Responsive screen sizes.
158
+ $wpcp_screen_sizes = wpcf_get_option( 'wpcp_responsive_screen_setting' );
159
+ $desktop_size = isset( $wpcp_screen_sizes['desktop'] ) ? $wpcp_screen_sizes['desktop'] : '1200';
160
+ $laptop_size = isset( $wpcp_screen_sizes['laptop'] ) ? $wpcp_screen_sizes['laptop'] : '980';
161
+ $tablet_size = isset( $wpcp_screen_sizes['tablet'] ) ? $wpcp_screen_sizes['tablet'] : '736';
162
+ $mobile_size = isset( $wpcp_screen_sizes['mobile'] ) ? $wpcp_screen_sizes['mobile'] : '480';
163
+
164
  // Carousel Classes.
165
  $carousel_classes = 'wpcp-carousel-section sp-wpcp-' . $post_id . ' nav-vertical-center';
166
  if ( 'image-carousel' === $carousel_type ) {
185
 
186
  $rtl = ( 'ltr' === $carousel_direction ) ? 'true' : 'false';
187
  $carousel_classes .= ' wpcp-standard';
188
+ $wpcp_slick_options = 'data-slick=\'{ "accessibility":true, "arrows":' . $arrows . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ', "slidesToShow":' . $column_lg_desktop . ', "responsive":[ { "breakpoint":' . $desktop_size . ', "settings": { "slidesToShow":' . $column_desktop . ' } }, { "breakpoint":' . $laptop_size . ', "settings":{ "slidesToShow":' . $column_sm_desktop . ' } }, { "breakpoint":' . $tablet_size . ', "settings": { "slidesToShow":' . $column_tablet . ' } }, {"breakpoint":' . $mobile_size . ', "settings":{ "slidesToShow":' . $column_mobile . ', "arrows": ' . $arrows_mobile . ', "dots": ' . $dots_mobile . ' } } ], "rtl":' . $rtl . ', "lazyLoad": "' . $lazy_load_image . '", "swipe": ' . $swipe . ', "draggable": ' . $draggable . ', "swipeToSlide":' . $swipetoslide . ' }\' ';
189
 
190
  if ( 'image-carousel' === $carousel_type ) {
191
  ob_start();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shapedplugin.com/donate
4
  Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
5
  Requires at least: 4.5
6
  Tested up to: 5.8.1
7
- Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -327,6 +327,9 @@ Thank you!
327
 
328
  == Changelog ==
329
 
 
 
 
330
  = 2.3.1 – Sep 27, 2021 =
331
  * New: Image Lazy Load option.
332
  * Tested: WooCommerce 5.7.1 compatibility.
4
  Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
5
  Requires at least: 4.5
6
  Tested up to: 5.8.1
7
+ Stable tag: 2.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
327
 
328
  == Changelog ==
329
 
330
+ = 2.3.2 – Oct 14, 2021 =
331
+ * New: Responsive breakpoints added.
332
+
333
  = 2.3.1 – Sep 27, 2021 =
334
  * New: Image Lazy Load option.
335
  * Tested: WooCommerce 5.7.1 compatibility.
wp-carousel-free.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: WordPress Carousel
10
  * Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
11
  * Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
12
- * Version: 2.3.1
13
  * Author: ShapedPlugin
14
  * Author URI: https://shapedplugin.com/
15
  * License: GPL-2.0+
@@ -17,7 +17,7 @@
17
  * Text Domain: wp-carousel-free
18
  * Domain Path: /languages
19
  * WC requires at least: 4.0
20
- * WC tested up to: 5.7.1
21
  */
22
 
23
  // If this file is called directly, abort.
@@ -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.3.1';
123
  $this->define_constants();
124
  $this->includes();
125
  $this->load_dependencies();
9
  * Plugin Name: WordPress Carousel
10
  * Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
11
  * Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
12
+ * Version: 2.3.2
13
  * Author: ShapedPlugin
14
  * Author URI: https://shapedplugin.com/
15
  * License: GPL-2.0+
17
  * Text Domain: wp-carousel-free
18
  * Domain Path: /languages
19
  * WC requires at least: 4.0
20
+ * WC tested up to: 5.8.0
21
  */
22
 
23
  // If this file is called directly, abort.
119
  */
120
  public function setup() {
121
  $this->plugin_name = 'wp-carousel-free';
122
+ $this->version = '2.3.2';
123
  $this->define_constants();
124
  $this->includes();
125
  $this->load_dependencies();