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

Version Description

Oct 15, 2020 = * Fix: Section title issue. * Fix: Dynamic CSS issue.

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.1.13
Comparing to
See all releases

Code changes from version 2.1.12 to 2.1.13

includes/class-wp-carousel-free-shortcode.php CHANGED
@@ -79,6 +79,9 @@ class WP_Carousel_Free_Shortcode
79
 
80
  $shortcode_data = get_post_meta($post_id, 'sp_wpcp_shortcode_options', true);
81
 
 
 
 
82
  // Image Carousel.
83
  $image_orderby = isset($shortcode_data['wpcp_image_order_by']) ? $shortcode_data['wpcp_image_order_by'] : '';
84
  $show_slide_image = isset($shortcode_data['show_image']) ? $shortcode_data['show_image'] : '';
@@ -176,7 +179,6 @@ class WP_Carousel_Free_Shortcode
176
 
177
  if ('image-carousel' === $carousel_type ) {
178
  ob_start();
179
- echo $the_wpcf_dynamic_css;
180
  include WPCAROUSELF_PATH . '/public/templates/image-carousel.php';
181
  $html = ob_get_contents();
182
  ob_end_clean();
@@ -185,7 +187,6 @@ class WP_Carousel_Free_Shortcode
185
  }
186
  if ('post-carousel' === $carousel_type ) {
187
  ob_start();
188
- echo $the_wpcf_dynamic_css;
189
  include WPCAROUSELF_PATH . '/public/templates/post-carousel.php';
190
  $html = ob_get_contents();
191
  ob_end_clean();
@@ -194,7 +195,6 @@ class WP_Carousel_Free_Shortcode
194
  }
195
  if ('product-carousel' === $carousel_type ) {
196
  ob_start();
197
- echo $the_wpcf_dynamic_css;
198
  include WPCAROUSELF_PATH . '/public/templates/product-carousel.php';
199
  $html = ob_get_contents();
200
  ob_end_clean();
79
 
80
  $shortcode_data = get_post_meta($post_id, 'sp_wpcp_shortcode_options', true);
81
 
82
+ // General Settings.
83
+ $section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
84
+
85
  // Image Carousel.
86
  $image_orderby = isset($shortcode_data['wpcp_image_order_by']) ? $shortcode_data['wpcp_image_order_by'] : '';
87
  $show_slide_image = isset($shortcode_data['show_image']) ? $shortcode_data['show_image'] : '';
179
 
180
  if ('image-carousel' === $carousel_type ) {
181
  ob_start();
 
182
  include WPCAROUSELF_PATH . '/public/templates/image-carousel.php';
183
  $html = ob_get_contents();
184
  ob_end_clean();
187
  }
188
  if ('post-carousel' === $carousel_type ) {
189
  ob_start();
 
190
  include WPCAROUSELF_PATH . '/public/templates/post-carousel.php';
191
  $html = ob_get_contents();
192
  ob_end_clean();
195
  }
196
  if ('product-carousel' === $carousel_type ) {
197
  ob_start();
 
198
  include WPCAROUSELF_PATH . '/public/templates/product-carousel.php';
199
  $html = ob_get_contents();
200
  ob_end_clean();
public/class-wp-carousel-free-public.php CHANGED
@@ -68,9 +68,8 @@ class WP_Carousel_Free_Public {
68
  );
69
 
70
  $carousel_ids = $wpc_posts->posts;
71
- $the_wpcf_dynamic_css = '';
72
 
73
- foreach ( $carousel_ids as $carousel_id ) {
74
  include WPCAROUSELF_PATH . '/public/dynamic-style.php';
75
  }
76
  wp_add_inline_style( $this->plugin_name, $the_wpcf_dynamic_css );
68
  );
69
 
70
  $carousel_ids = $wpc_posts->posts;
 
71
 
72
+ foreach ( $carousel_ids as $post_id ) {
73
  include WPCAROUSELF_PATH . '/public/dynamic-style.php';
74
  }
75
  wp_add_inline_style( $this->plugin_name, $the_wpcf_dynamic_css );
public/css/wp-carousel-free-public.min.css CHANGED
File without changes
public/dynamic-style.php CHANGED
@@ -8,7 +8,12 @@
8
  */
9
 
10
  $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'] ) && is_numeric( $shortcode_data['section_title_margin_bottom'] ) ? $shortcode_data['section_title_margin_bottom'] : '30';
@@ -22,8 +27,8 @@ if ( $section_title ) {
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
- $slide_border_style = isset( $slide_border['style'] ) ? $slide_border['style'] : 'none';
26
- $slide_border_color = isset( $slide_border['color'] ) ? $slide_border['color'] : '';
27
 
28
  // Product Image Border.
29
  $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;
@@ -79,10 +84,10 @@ if ( 'hide' !== $wpcp_dots ) {
79
  ';
80
  }
81
 
82
-
83
  /**
84
  * The Dynamic Style CSS.
85
  */
 
86
  $the_wpcf_dynamic_css .= $wpcp_product_css;
87
  $the_wpcf_dynamic_css .= $section_title_dynamic_css;
88
  $the_wpcf_dynamic_css .= $nav_dynamic_style;
8
  */
9
 
10
  $section_title_dynamic_css = '';
11
+ $upload_data = get_post_meta( $post_id, 'sp_wpcp_upload_options', true );
12
+ $shortcode_data = get_post_meta( $post_id, 'sp_wpcp_shortcode_options', true );
13
  $section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
14
+ $carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
15
+ $wpcp_arrows = isset( $shortcode_data['wpcp_navigation'] ) ? $shortcode_data['wpcp_navigation'] : 'show';
16
+ $wpcp_dots = isset( $shortcode_data['wpcp_pagination'] ) ? $shortcode_data['wpcp_pagination'] : '';
17
 
18
  if ( $section_title ) {
19
  $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';
27
  $slide_border = isset( $shortcode_data['wpcp_slide_border'] ) ? $shortcode_data['wpcp_slide_border'] : '';
28
  $old_slide_border_width = isset( $slide_border['width'] ) && ! empty( $slide_border['width'] ) ? $slide_border['width'] : '1';
29
  $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;
30
+ $slide_border_style = isset( $slide_border['style'] ) ? $slide_border['style'] : 'none';
31
+ $slide_border_color = isset( $slide_border['color'] ) ? $slide_border['color'] : '';
32
 
33
  // Product Image Border.
34
  $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;
84
  ';
85
  }
86
 
 
87
  /**
88
  * The Dynamic Style CSS.
89
  */
90
+ $the_wpcf_dynamic_css = '';
91
  $the_wpcf_dynamic_css .= $wpcp_product_css;
92
  $the_wpcf_dynamic_css .= $section_title_dynamic_css;
93
  $the_wpcf_dynamic_css .= $nav_dynamic_style;
readme.txt CHANGED
@@ -326,6 +326,10 @@ Thank you!
326
 
327
  == Changelog ==
328
 
 
 
 
 
329
  = 2.1.12 – Oct 10, 2020 =
330
  * New: Swipe to slide option.
331
  * Improved: Load dynamic CSS on header.
326
 
327
  == Changelog ==
328
 
329
+ = 2.1.13 – Oct 15, 2020 =
330
+ * Fix: Section title issue.
331
+ * Fix: Dynamic CSS issue.
332
+
333
  = 2.1.12 – Oct 10, 2020 =
334
  * New: Swipe to slide option.
335
  * Improved: Load dynamic CSS on header.
wp-carousel-free.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: WordPress Carousel
10
  * Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/
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.1.12
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: 3.0
20
- * WC tested up to: 4.5.2
21
  */
22
 
23
  // If this file is called directly, abort.
@@ -134,7 +134,7 @@ class SP_WP_Carousel_Free
134
  public function setup()
135
  {
136
  $this->plugin_name = 'wp-carousel-free';
137
- $this->version = '2.1.12';
138
  $this->define_constants();
139
  $this->includes();
140
  $this->load_dependencies();
9
  * Plugin Name: WordPress Carousel
10
  * Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/
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.1.13
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: 3.0
20
+ * WC tested up to: 4.6.0
21
  */
22
 
23
  // If this file is called directly, abort.
134
  public function setup()
135
  {
136
  $this->plugin_name = 'wp-carousel-free';
137
+ $this->version = '2.1.13';
138
  $this->define_constants();
139
  $this->includes();
140
  $this->load_dependencies();