Woocommerce Products Slider - Version 1.13.29

Version Description

Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Woocommerce Products Slider
Version 1.13.29
Comparing to
See all releases

Code changes from version 1.13.28 to 1.13.29

includes/class-metabox-wcps-hook.php CHANGED
@@ -1469,6 +1469,7 @@ if(!function_exists('wcps_metabox_content_slider_options')) {
1469
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
1470
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
1471
 
 
1472
 
1473
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
1474
  $auto_play_speed = isset($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1500;
@@ -1592,6 +1593,20 @@ if(!function_exists('wcps_metabox_content_slider_options')) {
1592
 
1593
  $settings_tabs_field->generate_field($args);
1594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1595
 
1596
  $args = array(
1597
  'id' => 'auto_play',
@@ -1628,8 +1643,8 @@ if(!function_exists('wcps_metabox_content_slider_options')) {
1628
  'value' => $auto_play_timeout,
1629
  'default' => 2000,
1630
  'placeholder' => '2000',
1631
- 'is_error' => ($auto_play_speed > $auto_play_timeout)? true : false,
1632
- 'error_details' => __('Value should larger than <b>Auto play speed</b>'),
1633
  );
1634
 
1635
  $settings_tabs_field->generate_field($args);
1469
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
1470
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
1471
 
1472
+ $gutter = isset($slider_option['gutter']) ? $slider_option['gutter'] : 10;
1473
 
1474
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
1475
  $auto_play_speed = isset($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1500;
1593
 
1594
  $settings_tabs_field->generate_field($args);
1595
 
1596
+ $args = array(
1597
+ 'id' => 'gutter',
1598
+ 'parent' => 'wcps_options[slider]',
1599
+ 'title' => __('Item gutter','woocommerce-products-slider'),
1600
+ 'details' => __('Space between slides, ex: 10','woocommerce-products-slider'),
1601
+ 'type' => 'text',
1602
+ 'value' => $gutter,
1603
+ 'default' => 10,
1604
+ 'placeholder' => '10',
1605
+ );
1606
+
1607
+ $settings_tabs_field->generate_field($args);
1608
+
1609
+
1610
 
1611
  $args = array(
1612
  'id' => 'auto_play',
1643
  'value' => $auto_play_timeout,
1644
  'default' => 2000,
1645
  'placeholder' => '2000',
1646
+ //'is_error' => ($auto_play_speed > $auto_play_timeout)? true : false,
1647
+ //'error_details' => __('Value should larger than <b>Auto play speed</b>'),
1648
  );
1649
 
1650
  $settings_tabs_field->generate_field($args);
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Donate link: https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=wordpress.org
4
  Tags: product slider, woocommerce slider, carousel slider, product category slider, woo slider, carousel slider, woocommerce product slider
5
  Requires at least: 3.8
6
- Tested up to: 5.8
7
- Stable tag: 1.13.28
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -142,6 +142,12 @@ then paste this shortcode anywhere in your page to display slider<br />
142
  == Changelog ==
143
 
144
 
 
 
 
 
 
 
145
  = 1.13.28=
146
  * 2022-01-14 fix - Multiple slider conflict issue fixed for navigation
147
 
3
  Donate link: https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=wordpress.org
4
  Tags: product slider, woocommerce slider, carousel slider, product category slider, woo slider, carousel slider, woocommerce product slider
5
  Requires at least: 3.8
6
+ Tested up to: 5.9
7
+ Stable tag: 1.13.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
142
  == Changelog ==
143
 
144
 
145
+ = 1.13.29=
146
+ * 2022-02-07 remove - Remove slides margin.
147
+ * 2022-02-07 add - Add slides gutter.
148
+
149
+
150
+
151
  = 1.13.28=
152
  * 2022-01-14 fix - Multiple slider conflict issue fixed for navigation
153
 
templates/wcps-slider/wcps-slider-hook.php CHANGED
@@ -780,7 +780,7 @@ function wcps_slider_main_scripts_tiny($args)
780
 
781
 
782
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
783
- $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
784
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
785
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
786
 
@@ -798,12 +798,13 @@ function wcps_slider_main_scripts_tiny($args)
798
 
799
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
800
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
 
801
 
802
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
803
  $auto_play_speed = !empty($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1000;
804
  $auto_play_timeout = !empty($slider_option['auto_play_timeout']) ? $slider_option['auto_play_timeout'] : 1200;
805
 
806
- $auto_play_timeout = ($auto_play_speed >= $auto_play_timeout) ? $auto_play_speed + 1000 : $auto_play_timeout;
807
 
808
  $slider_rewind = !empty($slider_option['rewind']) ? $slider_option['rewind'] : 'true';
809
  $slider_loop = !empty($slider_option['loop']) ? $slider_option['loop'] : 'true';
@@ -882,6 +883,8 @@ function wcps_slider_main_scripts_tiny($args)
882
  nav: <?php echo $slider_navigation; ?>,
883
  }
884
  },
 
 
885
  slideBy: <?php echo $slider_slideby_large; ?>,
886
  controls: <?php echo $slider_navigation; ?>,
887
  controlsText: ['<?php echo $navigation_text_prev; ?>', '<?php echo $navigation_text_next; ?>'],
@@ -981,6 +984,7 @@ function wcps_slider_main_scripts($args)
981
 
982
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
983
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
 
984
 
985
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
986
  $auto_play_speed = !empty($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1000;
@@ -1063,6 +1067,9 @@ function wcps_slider_main_scripts($args)
1063
  nav: <?php echo $slider_navigation; ?>,
1064
  }
1065
  },
 
 
 
1066
  autoplay: <?php echo $slider_auto_play; ?>,
1067
  autoplaySpeed: <?php echo $auto_play_speed; ?>,
1068
  autoplayTimeout: <?php echo $auto_play_timeout; ?>,
@@ -1120,7 +1127,7 @@ function wcps_slider_main_style($args)
1120
 
1121
 
1122
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
1123
- $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
1124
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
1125
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
1126
 
@@ -1245,7 +1252,6 @@ function wcps_slider_main_style($args)
1245
 
1246
  .wcps-container-<?php echo $wcps_id; ?> .item {
1247
  <?php if (!empty($item_padding)) : ?>padding: <?php echo $item_padding; ?>;
1248
- <?php endif; ?><?php if (!empty($item_margin)) : ?>margin: <?php echo $item_margin; ?>;
1249
  <?php endif; ?><?php if (!empty($item_background_color)) : ?>background: <?php echo $item_background_color; ?>;
1250
  <?php endif; ?><?php if (!empty($item_text_align)) : ?>text-align: <?php echo $item_text_align; ?>;
1251
  <?php endif; ?>
780
 
781
 
782
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
783
+ // $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
784
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
785
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
786
 
798
 
799
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
800
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
801
+ $gutter = isset($slider_option['gutter']) ? $slider_option['gutter'] : 10;
802
 
803
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
804
  $auto_play_speed = !empty($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1000;
805
  $auto_play_timeout = !empty($slider_option['auto_play_timeout']) ? $slider_option['auto_play_timeout'] : 1200;
806
 
807
+ //$auto_play_timeout = ($auto_play_speed >= $auto_play_timeout) ? $auto_play_speed + 1000 : $auto_play_timeout;
808
 
809
  $slider_rewind = !empty($slider_option['rewind']) ? $slider_option['rewind'] : 'true';
810
  $slider_loop = !empty($slider_option['loop']) ? $slider_option['loop'] : 'true';
883
  nav: <?php echo $slider_navigation; ?>,
884
  }
885
  },
886
+ gutter: <?php echo $gutter; ?>,
887
+
888
  slideBy: <?php echo $slider_slideby_large; ?>,
889
  controls: <?php echo $slider_navigation; ?>,
890
  controlsText: ['<?php echo $navigation_text_prev; ?>', '<?php echo $navigation_text_next; ?>'],
984
 
985
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
986
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
987
+ $gutter = isset($slider_option['gutter']) ? $slider_option['gutter'] : 10;
988
 
989
  $slider_auto_play = isset($slider_option['auto_play']) ? $slider_option['auto_play'] : 'true';
990
  $auto_play_speed = !empty($slider_option['auto_play_speed']) ? $slider_option['auto_play_speed'] : 1000;
1067
  nav: <?php echo $slider_navigation; ?>,
1068
  }
1069
  },
1070
+
1071
+ gutter: <?php echo $gutter; ?>,
1072
+
1073
  autoplay: <?php echo $slider_auto_play; ?>,
1074
  autoplaySpeed: <?php echo $auto_play_speed; ?>,
1075
  autoplayTimeout: <?php echo $auto_play_timeout; ?>,
1127
 
1128
 
1129
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
1130
+ // $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
1131
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
1132
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
1133
 
1252
 
1253
  .wcps-container-<?php echo $wcps_id; ?> .item {
1254
  <?php if (!empty($item_padding)) : ?>padding: <?php echo $item_padding; ?>;
 
1255
  <?php endif; ?><?php if (!empty($item_background_color)) : ?>background: <?php echo $item_background_color; ?>;
1256
  <?php endif; ?><?php if (!empty($item_text_align)) : ?>text-align: <?php echo $item_text_align; ?>;
1257
  <?php endif; ?>
woocommerce-products-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: PickPlugins Product Slider for WooCommerce
4
  Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your WooCommerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
- Version: 1.13.28
7
  WC requires at least: 3.0.0
8
  WC tested up to: 5.9
9
  Author: PickPlugins
@@ -23,7 +23,7 @@ class WoocommerceProductsSlider{
23
  define('wcps_plugin_url', plugins_url('/', __FILE__) );
24
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
25
  define('wcps_plugin_name', 'PickPlugins Product Slider' );
26
- define('wcps_plugin_version', '1.13.28' );
27
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
28
  //define('wcps_server_url', 'http://localhost/wp/');
29
 
3
  Plugin Name: PickPlugins Product Slider for WooCommerce
4
  Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your WooCommerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
+ Version: 1.13.29
7
  WC requires at least: 3.0.0
8
  WC tested up to: 5.9
9
  Author: PickPlugins
23
  define('wcps_plugin_url', plugins_url('/', __FILE__) );
24
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
25
  define('wcps_plugin_name', 'PickPlugins Product Slider' );
26
+ define('wcps_plugin_version', '1.13.29' );
27
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
28
  //define('wcps_server_url', 'http://localhost/wp/');
29