Woocommerce Products Slider - Version 1.13.20

Version Description

  • 2020-08-08 add - item wrapper custom height
Download this release

Release Info

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

Code changes from version 1.13.19 to 1.13.20

includes/class-metabox-wcps-hook.php CHANGED
@@ -146,6 +146,14 @@ if(!function_exists('wcps_metabox_content_style')) {
146
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
147
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
148
 
 
 
 
 
 
 
 
 
149
  $container = isset($wcps_options['container']) ? $wcps_options['container'] : array();
150
  $container_background_img_url = isset($container['background_img_url']) ? $container['background_img_url'] : '';
151
  $container_background_color = isset($container['background_color']) ? $container['background_color'] : '';
@@ -366,6 +374,60 @@ if(!function_exists('wcps_metabox_content_style')) {
366
 
367
 
368
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  ?>
370
 
371
 
@@ -1397,6 +1459,12 @@ if(!function_exists('wcps_metabox_content_slider_options')) {
1397
  $slider_column_medium = isset($slider_option['column_medium']) ? $slider_option['column_medium'] : 2;
1398
  $slider_column_small = isset($slider_option['column_small']) ? $slider_option['column_small'] : 1;
1399
 
 
 
 
 
 
 
1400
 
1401
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
1402
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
@@ -1482,6 +1550,48 @@ if(!function_exists('wcps_metabox_content_slider_options')) {
1482
 
1483
 
1484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1485
 
1486
  $args = array(
1487
  'id' => 'auto_play',
146
  $item_background_color = isset($item_style['background_color']) ? $item_style['background_color'] : '';
147
  $item_text_align = isset($item_style['text_align']) ? $item_style['text_align'] : '';
148
 
149
+ $item_height = isset($wcps_options['item_height']) ? $wcps_options['item_height'] : array();
150
+
151
+ $item_height_large = isset($item_height['large']) ? $item_height['large'] : '';
152
+ $item_height_medium = isset($item_height['medium']) ? $item_height['medium'] : '';
153
+ $item_height_small = isset($item_height['small']) ? $item_height['small'] : '';
154
+
155
+
156
+
157
  $container = isset($wcps_options['container']) ? $wcps_options['container'] : array();
158
  $container_background_img_url = isset($container['background_img_url']) ? $container['background_img_url'] : '';
159
  $container_background_color = isset($container['background_color']) ? $container['background_color'] : '';
374
 
375
 
376
 
377
+
378
+
379
+
380
+
381
+ $args = array(
382
+ 'id' => 'slider',
383
+ 'title' => __('Item height ','woocommerce-products-slider'),
384
+ 'details' => __('Set slider item height.','woocommerce-products-slider'),
385
+ 'type' => 'option_group',
386
+ 'options' => array(
387
+ array(
388
+ 'id' => 'large',
389
+ 'parent' => 'wcps_options[item_height]',
390
+ 'title' => __('In desktop','woocommerce-products-slider'),
391
+ 'details' => __('min-width: 1200px, ex: 180px','woocommerce-products-slider'),
392
+ 'type' => 'text',
393
+ 'value' => $item_height_large,
394
+ 'default' => '',
395
+ 'placeholder' => '180px',
396
+ ),
397
+ array(
398
+ 'id' => 'medium',
399
+ 'parent' => 'wcps_options[item_height]',
400
+ 'title' => __('In tablet & small desktop','woocommerce-products-slider'),
401
+ 'details' => __('min-width: 992px, ex: 150px','woocommerce-products-slider'),
402
+ 'type' => 'text',
403
+ 'value' => $item_height_medium,
404
+ 'default' => '',
405
+ 'placeholder' => '150px',
406
+ ),
407
+ array(
408
+ 'id' => 'small',
409
+ 'parent' => 'wcps_options[item_height]',
410
+ 'title' => __('In mobile','woocommerce-products-slider'),
411
+ 'details' => __('min-width: 576px, ex: 130px','woocommerce-products-slider'),
412
+ 'type' => 'text',
413
+ 'value' => $item_height_small,
414
+ 'default' => '',
415
+ 'placeholder' => '130px',
416
+ ),
417
+ ),
418
+
419
+ );
420
+
421
+ $settings_tabs_field->generate_field($args);
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
  ?>
432
 
433
 
1459
  $slider_column_medium = isset($slider_option['column_medium']) ? $slider_option['column_medium'] : 2;
1460
  $slider_column_small = isset($slider_option['column_small']) ? $slider_option['column_small'] : 1;
1461
 
1462
+ $slider_slideby_large = isset($slider_option['slideby_large']) ? $slider_option['slideby_large'] : 3;
1463
+ $slider_slideby_medium = isset($slider_option['slideby_medium']) ? $slider_option['slideby_medium'] : 2;
1464
+ $slider_slideby_small = isset($slider_option['slideby_small']) ? $slider_option['slideby_small'] : 1;
1465
+
1466
+
1467
+
1468
 
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;
1550
 
1551
 
1552
 
1553
+ $args = array(
1554
+ 'id' => 'slideby',
1555
+ 'title' => __('Slide by ','woocommerce-products-slider'),
1556
+ 'details' => __('Slide by count.','woocommerce-products-slider'),
1557
+ 'type' => 'option_group',
1558
+ 'options' => array(
1559
+ array(
1560
+ 'id' => 'slideby_large',
1561
+ 'parent' => 'wcps_options[slider]',
1562
+ 'title' => __('In desktop','woocommerce-products-slider'),
1563
+ 'details' => __('min-width: 1200px, ex: 3','woocommerce-products-slider'),
1564
+ 'type' => 'text',
1565
+ 'value' => $slider_slideby_large,
1566
+ 'default' => 3,
1567
+ 'placeholder' => '3',
1568
+ ),
1569
+ array(
1570
+ 'id' => 'slideby_medium',
1571
+ 'parent' => 'wcps_options[slider]',
1572
+ 'title' => __('In tablet & small desktop','woocommerce-products-slider'),
1573
+ 'details' => __('min-width: 992px, ex: 2','woocommerce-products-slider'),
1574
+ 'type' => 'text',
1575
+ 'value' => $slider_slideby_medium,
1576
+ 'default' => 2,
1577
+ 'placeholder' => '2',
1578
+ ),
1579
+ array(
1580
+ 'id' => 'slideby_small',
1581
+ 'parent' => 'wcps_options[slider]',
1582
+ 'title' => __('In mobile','woocommerce-products-slider'),
1583
+ 'details' => __('min-width: 576px, ex: 1','woocommerce-products-slider'),
1584
+ 'type' => 'text',
1585
+ 'value' => $slider_slideby_small,
1586
+ 'default' => 1,
1587
+ 'placeholder' => '1',
1588
+ ),
1589
+ ),
1590
+
1591
+ );
1592
+
1593
+ $settings_tabs_field->generate_field($args);
1594
+
1595
 
1596
  $args = array(
1597
  'id' => 'auto_play',
includes/class-update.php CHANGED
@@ -1,9 +1,6 @@
1
  <?php
2
 
3
- /*
4
- * @Author PickPlugins
5
- * Copyright: 2015 PickPlugins
6
- */
7
 
8
  if ( ! defined('ABSPATH')) exit; // if direct access
9
 
1
  <?php
2
 
3
+
 
 
 
4
 
5
  if ( ! defined('ABSPATH')) exit; // if direct access
6
 
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.4
7
- Stable tag: 1.13.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -141,6 +141,9 @@ then paste this shortcode anywhere in your page to display slider<br />
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 1.13.19 =
145
  * 2020-07-19 fix - thumbnail lazy loading issue fixed.
146
 
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.5
7
+ Stable tag: 1.13.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.13.20 =
145
+ * 2020-08-08 add - item wrapper custom height
146
+
147
  = 1.13.19 =
148
  * 2020-07-19 fix - thumbnail lazy loading issue fixed.
149
 
templates/wcps-slider/wcps-slider-hook.php CHANGED
@@ -770,6 +770,13 @@ function wcps_slider_main_scripts( $args){
770
  $container_margin = isset($container['margin']) ? $container['margin'] : '';
771
 
772
  $item_style = isset($wcps_options['item_style']) ? $wcps_options['item_style'] : array();
 
 
 
 
 
 
 
773
 
774
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
775
  $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
@@ -782,6 +789,12 @@ function wcps_slider_main_scripts( $args){
782
  $slider_column_medium = isset($slider_option['column_medium']) ? $slider_option['column_medium'] : 2;
783
  $slider_column_small = isset($slider_option['column_small']) ? $slider_option['column_small'] : 1;
784
 
 
 
 
 
 
 
785
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
786
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
787
 
@@ -846,18 +859,23 @@ function wcps_slider_main_scripts( $args){
846
  responsive:{
847
  0:{
848
  items:<?php echo $slider_column_small; ?>,
849
- nav:<?php echo $slider_navigation; ?>
 
 
850
  },
851
  600:{
852
  items:<?php echo $slider_column_medium; ?>,
853
- nav:<?php echo $slider_navigation; ?>
 
854
  },
855
  900:{
856
  items:<?php echo $slider_column_medium; ?>,
857
- nav:<?php echo $slider_navigation; ?>
 
858
  },
859
  1000:{
860
  items:<?php echo $slider_column_large; ?>,
 
861
  nav:<?php echo $slider_navigation; ?>,
862
  }
863
  },
@@ -873,6 +891,7 @@ function wcps_slider_main_scripts( $args){
873
  nav:<?php echo $slider_navigation; ?>,
874
  navText : ['<?php echo $navigation_text_prev; ?>','<?php echo $navigation_text_next; ?>'],
875
  navSpeed:<?php echo $slider_slide_speed; ?>,
 
876
  dots:<?php echo $slider_pagination; ?>,
877
  dotsSpeed:<?php echo $slider_pagination_speed; ?>,
878
  mouseDrag:<?php echo $slider_mouse_drag; ?>,
@@ -889,9 +908,19 @@ function wcps_slider_main_scripts( $args){
889
 
890
  <style type="text/css">
891
  .wcps-container-<?php echo $wcps_id; ?>{
 
892
  padding: <?php echo $container_padding; ?>;
 
 
893
  margin: <?php echo $container_margin; ?>;
894
- background: <?php echo $container_background_color; ?> url(<?php echo $container_background_img_url; ?>) repeat scroll 0 0;
 
 
 
 
 
 
 
895
  position: relative;
896
  overflow: hidden;
897
  }
@@ -932,11 +961,46 @@ function wcps_slider_main_scripts( $args){
932
  display: none;
933
  }
934
  .wcps-container-<?php echo $wcps_id; ?> .item {
 
935
  padding: <?php echo $item_padding; ?>;
 
 
936
  margin: <?php echo $item_margin; ?>;
 
 
937
  background: <?php echo $item_background_color; ?>;
 
 
938
  text-align: <?php echo $item_text_align; ?>;
 
 
939
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
  #wcps-<?php echo $wcps_id; ?> .wcps-items{
941
  padding-top:45px;
942
  }
@@ -1009,7 +1073,9 @@ function wcps_slider_main_scripts( $args){
1009
  margin: 30px 0 0;
1010
  }
1011
  #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot{
 
1012
  background: <?php echo $dots_background_color; ?>;
 
1013
  border-radius: 20px;
1014
  display: inline-block;
1015
  height: 15px;
@@ -1018,11 +1084,17 @@ function wcps_slider_main_scripts( $args){
1018
  outline: none;
1019
  }
1020
  #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot.active, #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot:hover{
 
1021
  background: <?php echo $dots_active_background_color; ?>;
 
1022
  }
1023
  #wcps-<?php echo $wcps_id; ?> .owl-nav button{
 
1024
  background: <?php echo $navigation_background_color; ?>;
 
 
1025
  color: <?php echo $navigation_color; ?>;
 
1026
  margin: 0 5px;
1027
  outline: none;
1028
  }
770
  $container_margin = isset($container['margin']) ? $container['margin'] : '';
771
 
772
  $item_style = isset($wcps_options['item_style']) ? $wcps_options['item_style'] : array();
773
+ $item_height = isset($wcps_options['item_height']) ? $wcps_options['item_height'] : array();
774
+
775
+ $item_height_large = isset($item_height['large']) ? $item_height['large'] : '';
776
+ $item_height_medium = isset($item_height['medium']) ? $item_height['medium'] : '';
777
+ $item_height_small = isset($item_height['small']) ? $item_height['small'] : '';
778
+
779
+
780
 
781
  $item_padding = isset($item_style['padding']) ? $item_style['padding'] : '';
782
  $item_margin = isset($item_style['margin']) ? $item_style['margin'] : '10px';
789
  $slider_column_medium = isset($slider_option['column_medium']) ? $slider_option['column_medium'] : 2;
790
  $slider_column_small = isset($slider_option['column_small']) ? $slider_option['column_small'] : 1;
791
 
792
+ $slider_slideby_large = isset($slider_option['slideby_large']) ? $slider_option['slideby_large'] : 3;
793
+ $slider_slideby_medium = isset($slider_option['slideby_medium']) ? $slider_option['slideby_medium'] : 2;
794
+ $slider_slideby_small = isset($slider_option['slideby_small']) ? $slider_option['slideby_small'] : 1;
795
+
796
+
797
+
798
  $slider_slide_speed = isset($slider_option['slide_speed']) ? $slider_option['slide_speed'] : 1000;
799
  $slider_pagination_speed = isset($slider_option['pagination_speed']) ? $slider_option['pagination_speed'] : 1200;
800
 
859
  responsive:{
860
  0:{
861
  items:<?php echo $slider_column_small; ?>,
862
+ slideBy:<?php echo $slider_slideby_small; ?>,
863
+ nav:<?php echo $slider_navigation; ?>,
864
+
865
  },
866
  600:{
867
  items:<?php echo $slider_column_medium; ?>,
868
+ slideBy:<?php echo $slider_slideby_medium; ?>,
869
+ nav:<?php echo $slider_navigation; ?>,
870
  },
871
  900:{
872
  items:<?php echo $slider_column_medium; ?>,
873
+ slideBy:<?php echo $slider_slideby_medium; ?>,
874
+ nav:<?php echo $slider_navigation; ?>,
875
  },
876
  1000:{
877
  items:<?php echo $slider_column_large; ?>,
878
+ slideBy:<?php echo $slider_slideby_large; ?>,
879
  nav:<?php echo $slider_navigation; ?>,
880
  }
881
  },
891
  nav:<?php echo $slider_navigation; ?>,
892
  navText : ['<?php echo $navigation_text_prev; ?>','<?php echo $navigation_text_next; ?>'],
893
  navSpeed:<?php echo $slider_slide_speed; ?>,
894
+ slideBy:<?php echo $slider_slideby_large; ?>,
895
  dots:<?php echo $slider_pagination; ?>,
896
  dotsSpeed:<?php echo $slider_pagination_speed; ?>,
897
  mouseDrag:<?php echo $slider_mouse_drag; ?>,
908
 
909
  <style type="text/css">
910
  .wcps-container-<?php echo $wcps_id; ?>{
911
+ <?php if(!empty($container_padding)): ?>
912
  padding: <?php echo $container_padding; ?>;
913
+ <?php endif; ?>
914
+ <?php if(!empty($container_margin)): ?>
915
  margin: <?php echo $container_margin; ?>;
916
+ <?php endif; ?>
917
+ <?php if(!empty($container_background_color)): ?>
918
+ background-color: <?php echo $container_background_color; ?>;
919
+ <?php endif; ?>
920
+ <?php if(!empty($container_background_img_url)): ?>
921
+ background-image: url(<?php echo $container_background_img_url; ?>) repeat scroll 0 0;
922
+ <?php endif; ?>
923
+
924
  position: relative;
925
  overflow: hidden;
926
  }
961
  display: none;
962
  }
963
  .wcps-container-<?php echo $wcps_id; ?> .item {
964
+ <?php if(!empty($item_padding)): ?>
965
  padding: <?php echo $item_padding; ?>;
966
+ <?php endif; ?>
967
+ <?php if(!empty($item_margin)): ?>
968
  margin: <?php echo $item_margin; ?>;
969
+ <?php endif; ?>
970
+ <?php if(!empty($item_background_color)): ?>
971
  background: <?php echo $item_background_color; ?>;
972
+ <?php endif; ?>
973
+ <?php if(!empty($item_text_align)): ?>
974
  text-align: <?php echo $item_text_align; ?>;
975
+ <?php endif; ?>
976
+
977
  }
978
+ @media only screen and ( min-width: 0px ) and ( max-width: 767px ) {
979
+ .wcps-container-<?php echo $wcps_id; ?> .item {
980
+ <?php if(!empty($item_height_small)): ?>
981
+ height: <?php echo $item_height_small; ?>;
982
+ <?php endif; ?>
983
+ }
984
+ }
985
+ @media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {
986
+ .wcps-container-<?php echo $wcps_id; ?> .item {
987
+ <?php if(!empty($item_height_medium)): ?>
988
+ height: <?php echo $item_height_medium; ?>;
989
+ <?php endif; ?>
990
+
991
+ }
992
+ }
993
+ @media only screen and (min-width: 1024px ){
994
+ .wcps-container-<?php echo $wcps_id; ?> .item {
995
+ <?php if(!empty($item_height_large)): ?>
996
+ height: <?php echo $item_height_large; ?>;
997
+ <?php endif; ?>
998
+
999
+ }
1000
+ }
1001
+
1002
+
1003
+
1004
  #wcps-<?php echo $wcps_id; ?> .wcps-items{
1005
  padding-top:45px;
1006
  }
1073
  margin: 30px 0 0;
1074
  }
1075
  #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot{
1076
+ <?php if(!empty($dots_background_color)): ?>
1077
  background: <?php echo $dots_background_color; ?>;
1078
+ <?php endif; ?>
1079
  border-radius: 20px;
1080
  display: inline-block;
1081
  height: 15px;
1084
  outline: none;
1085
  }
1086
  #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot.active, #wcps-<?php echo $wcps_id; ?> .owl-dots .owl-dot:hover{
1087
+ <?php if(!empty($dots_active_background_color)): ?>
1088
  background: <?php echo $dots_active_background_color; ?>;
1089
+ <?php endif; ?>
1090
  }
1091
  #wcps-<?php echo $wcps_id; ?> .owl-nav button{
1092
+ <?php if(!empty($navigation_background_color)): ?>
1093
  background: <?php echo $navigation_background_color; ?>;
1094
+ <?php endif; ?>
1095
+ <?php if(!empty($navigation_color)): ?>
1096
  color: <?php echo $navigation_color; ?>;
1097
+ <?php endif; ?>
1098
  margin: 0 5px;
1099
  outline: none;
1100
  }
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.19
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.2
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.19' );
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.20
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.2
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.20' );
27
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
28
  //define('wcps_server_url', 'http://localhost/wp/');
29