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

Version Description

Jul 13, 2019 = * Fix: Undefined index error notice.

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

Code changes from version 2.1.2 to 2.1.3

admin/views/metabox-config.php CHANGED
@@ -77,8 +77,8 @@ SP_WPCF::createSection(
77
  array(
78
  'id' => 'wpcp_display_posts_from',
79
  'type' => 'selectf',
80
- 'title' => __( 'Display Posts From', 'wp-carousel-free' ),
81
- 'subtitle' => __( 'Select an option to display the posts.', 'wp-carousel-free' ),
82
  'options' => array(
83
  'latest' => array(
84
  'text' => __( 'Latest', 'wp-carousel-free' ),
@@ -88,7 +88,7 @@ SP_WPCF::createSection(
88
  'pro_only' => true,
89
  ),
90
  'specific_post' => array(
91
- 'text' => __( 'Specific Posts (Pro)', 'wp-carousel-free' ),
92
  'pro_only' => true,
93
  ),
94
  ),
@@ -111,18 +111,18 @@ SP_WPCF::createSection(
111
  array(
112
  'id' => 'wpcp_display_product_from',
113
  'type' => 'selectf',
114
- 'title' => __( 'Display Product From', 'wp-carousel-free' ),
115
- 'subtitle' => __( 'Select an option to display the products.', 'wp-carousel-free' ),
116
  'options' => array(
117
  'latest' => array(
118
- 'text' => __( 'Latest Product', 'wp-carousel-free' ),
119
  ),
120
  'taxonomy' => array(
121
- 'text' => __( 'Product Category (Pro)', 'wp-carousel-free' ),
122
  'pro_only' => true,
123
  ),
124
  'specific_products' => array(
125
- 'text' => __( 'Specific Product (Pro)', 'wp-carousel-free' ),
126
  'pro_only' => true,
127
  ),
128
  ),
@@ -425,14 +425,6 @@ SP_WPCF::createSection(
425
  'type' => 'subheading',
426
  'content' => __( 'Miscellaneous', 'wp-carousel-free' ),
427
  ),
428
-
429
- array(
430
- 'id' => 'wpcp_accessibility',
431
- 'type' => 'switcher',
432
- 'title' => __( 'Tab and Key Navigation', 'wp-carousel-free' ),
433
- 'subtitle' => __( 'Enable/Disable carousel scroll with tab and keyboard.', 'wp-carousel-free' ),
434
- 'default' => true,
435
- ),
436
  array(
437
  'id' => 'slider_swipe',
438
  'type' => 'switcher',
@@ -483,6 +475,10 @@ SP_WPCF::createSection(
483
  'text' => __( 'Left (Pro)', 'wp-carousel-free' ),
484
  'pro_only' => true,
485
  ),
 
 
 
 
486
  'with_overlay' => array(
487
  'text' => __( 'Overlay (Pro)', 'wp-carousel-free' ),
488
  'pro_only' => true,
@@ -570,7 +566,7 @@ SP_WPCF::createSection(
570
  array(
571
  'id' => 'wpcp_post_date_show',
572
  'type' => 'switcher',
573
- 'title' => __( 'Post Date', 'wp-carousel-free' ),
574
  'subtitle' => __( 'Show/Hide post date.', 'wp-carousel-free' ),
575
  'text_on' => __( 'Show', 'wp-carousel-free' ),
576
  'text_off' => __( 'Hide', 'wp-carousel-free' ),
@@ -581,7 +577,7 @@ SP_WPCF::createSection(
581
  array(
582
  'id' => 'wpcp_post_author_show',
583
  'type' => 'switcher',
584
- 'title' => __( 'Post Author', 'wp-carousel-free' ),
585
  'subtitle' => __( 'Show/Hide post author name.', 'wp-carousel-free' ),
586
  'text_on' => __( 'Show', 'wp-carousel-free' ),
587
  'text_off' => __( 'Hide', 'wp-carousel-free' ),
@@ -590,10 +586,10 @@ SP_WPCF::createSection(
590
  'dependency' => array( 'wpcp_carousel_type', '==', 'post-carousel' ),
591
  ),
592
 
593
- // Product Settings.
594
  array(
595
  'type' => 'subheading',
596
- 'content' => __( 'Product Settings', 'wp-carousel-free' ),
597
  'dependency' => array( 'wpcp_carousel_type', '==', 'product-carousel' ),
598
  ),
599
  array(
77
  array(
78
  'id' => 'wpcp_display_posts_from',
79
  'type' => 'selectf',
80
+ 'title' => __( 'Filter Posts', 'wp-carousel-free' ),
81
+ 'subtitle' => __( 'Select an option to filter the posts.', 'wp-carousel-free' ),
82
  'options' => array(
83
  'latest' => array(
84
  'text' => __( 'Latest', 'wp-carousel-free' ),
88
  'pro_only' => true,
89
  ),
90
  'specific_post' => array(
91
+ 'text' => __( 'Specific (Pro)', 'wp-carousel-free' ),
92
  'pro_only' => true,
93
  ),
94
  ),
111
  array(
112
  'id' => 'wpcp_display_product_from',
113
  'type' => 'selectf',
114
+ 'title' => __( 'Filter Products', 'wp-carousel-free' ),
115
+ 'subtitle' => __( 'Select an option to filter the products.', 'wp-carousel-free' ),
116
  'options' => array(
117
  'latest' => array(
118
+ 'text' => __( 'Latest', 'wp-carousel-free' ),
119
  ),
120
  'taxonomy' => array(
121
+ 'text' => __( 'Category (Pro)', 'wp-carousel-free' ),
122
  'pro_only' => true,
123
  ),
124
  'specific_products' => array(
125
+ 'text' => __( 'Specific (Pro)', 'wp-carousel-free' ),
126
  'pro_only' => true,
127
  ),
128
  ),
425
  'type' => 'subheading',
426
  'content' => __( 'Miscellaneous', 'wp-carousel-free' ),
427
  ),
 
 
 
 
 
 
 
 
428
  array(
429
  'id' => 'slider_swipe',
430
  'type' => 'switcher',
475
  'text' => __( 'Left (Pro)', 'wp-carousel-free' ),
476
  'pro_only' => true,
477
  ),
478
+ 'top' => array(
479
+ 'text' => __( 'Top (Pro)', 'wp-carousel-free' ),
480
+ 'pro_only' => true,
481
+ ),
482
  'with_overlay' => array(
483
  'text' => __( 'Overlay (Pro)', 'wp-carousel-free' ),
484
  'pro_only' => true,
566
  array(
567
  'id' => 'wpcp_post_date_show',
568
  'type' => 'switcher',
569
+ 'title' => __( 'Date', 'wp-carousel-free' ),
570
  'subtitle' => __( 'Show/Hide post date.', 'wp-carousel-free' ),
571
  'text_on' => __( 'Show', 'wp-carousel-free' ),
572
  'text_off' => __( 'Hide', 'wp-carousel-free' ),
577
  array(
578
  'id' => 'wpcp_post_author_show',
579
  'type' => 'switcher',
580
+ 'title' => __( 'Author', 'wp-carousel-free' ),
581
  'subtitle' => __( 'Show/Hide post author name.', 'wp-carousel-free' ),
582
  'text_on' => __( 'Show', 'wp-carousel-free' ),
583
  'text_off' => __( 'Hide', 'wp-carousel-free' ),
586
  'dependency' => array( 'wpcp_carousel_type', '==', 'post-carousel' ),
587
  ),
588
 
589
+ // Product.
590
  array(
591
  'type' => 'subheading',
592
+ 'content' => __( 'Product', 'wp-carousel-free' ),
593
  'dependency' => array( 'wpcp_carousel_type', '==', 'product-carousel' ),
594
  ),
595
  array(
admin/views/option-config.php CHANGED
@@ -106,7 +106,7 @@ SP_WPCF::createSection(
106
  'id' => 'wpcp_custom_css',
107
  'type' => 'code_editor',
108
  'title' => __( 'Custom CSS', 'wp-carousel-free' ),
109
- 'subtitle' => __( 'Type your css.', 'wp-carousel-free' ),
110
  'settings' => array(
111
  'mode' => 'css',
112
  'theme' => 'monokai',
106
  'id' => 'wpcp_custom_css',
107
  'type' => 'code_editor',
108
  'title' => __( 'Custom CSS', 'wp-carousel-free' ),
109
+ 'subtitle' => __( 'Write your custom css.', 'wp-carousel-free' ),
110
  'settings' => array(
111
  'mode' => 'css',
112
  'theme' => 'monokai',
admin/views/wpcfree-metabox/classes/metabox.class.php CHANGED
@@ -30,6 +30,7 @@ if( ! class_exists( 'SP_WPCF_Metabox' ) ) {
30
  'async_webfont' => false,
31
  'output_css' => true,
32
  'theme' => 'dark',
 
33
  'defaults' => array(),
34
  );
35
 
30
  'async_webfont' => false,
31
  'output_css' => true,
32
  'theme' => 'dark',
33
+ 'class' => '',
34
  'defaults' => array(),
35
  );
36
 
includes/class-wp-carousel-free-shortcode.php CHANGED
@@ -100,7 +100,6 @@ class WP_Carousel_Free_Shortcode {
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;
@@ -171,7 +170,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": true, "draggable": ' . $draggable . ' }\' ';
175
 
176
  if ( 'image-carousel' === $carousel_type ) {
177
  ob_start();
100
 
101
  // Carousel Settings.
102
  $preloader = isset( $shortcode_data['wpcp_preloader'] ) ? $shortcode_data['wpcp_preloader'] : true;
 
103
  $auto_play = $shortcode_data['wpcp_carousel_auto_play'] ? 'true' : 'false';
104
  $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';
105
  $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;
170
  }
171
 
172
  $carousel_classes .= ' wpcp-standard';
173
+ $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 . ' } } ], "swipe": ' . $swipe . ', "swipeToSlide": true, "draggable": ' . $draggable . ' }\' ';
174
 
175
  if ( 'image-carousel' === $carousel_type ) {
176
  ob_start();
readme.txt CHANGED
@@ -326,6 +326,9 @@ Thank you!
326
 
327
  == Changelog ==
328
 
 
 
 
329
  = 2.1.2 – Jul 02, 2019 =
330
  * Fix: Preloader image lod issue.
331
  * Improved: Admin dashboard.
326
 
327
  == Changelog ==
328
 
329
+ = 2.1.3 – Jul 13, 2019 =
330
+ * Fix: Undefined index error notice.
331
+
332
  = 2.1.2 – Jul 02, 2019 =
333
  * Fix: Preloader image lod issue.
334
  * Improved: Admin dashboard.
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.2
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.2';
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.3
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.3';
123
  $this->define_constants();
124
  $this->includes();
125
  $this->load_dependencies();