Version Description
- 01/07/2017 add - Slider Auto Play Timeout update issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Woocommerce Products Slider |
Version | 1.12.13 |
Comparing to | |
See all releases |
Code changes from version 1.12.11 to 1.12.13
- includes/meta.php +47 -4
- readme.txt +10 -3
- templates/scripts.php +4 -1
- templates/variables.php +18 -2
- woocommerce-products-slider.php +2 -2
includes/meta.php
CHANGED
@@ -78,9 +78,16 @@ function meta_boxes_wcps_input( $post ) {
|
|
78 |
if(empty($wcps_column_number_mobile)){ $wcps_column_number_mobile = 1; }
|
79 |
|
80 |
$wcps_auto_play = get_post_meta( $post->ID, 'wcps_auto_play', true );
|
81 |
-
if(empty($wcps_auto_play)){ $wcps_auto_play = 'true'; }
|
82 |
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
if(empty($wcps_rewind)){$wcps_rewind = 'true';}
|
85 |
|
86 |
$wcps_loop = get_post_meta( $post->ID, 'wcps_loop', true );
|
@@ -161,6 +168,13 @@ function meta_boxes_wcps_input( $post ) {
|
|
161 |
$wcps_grid_items_hide = get_post_meta( $post->ID, 'wcps_grid_items_hide', true );
|
162 |
|
163 |
$wcps_items_thumb_size = get_post_meta( $post->ID, 'wcps_items_thumb_size', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
$wcps_items_thumb_link_to = get_post_meta( $post->ID, 'wcps_items_thumb_link_to', true );
|
165 |
$wcps_items_thumb_max_hieght = get_post_meta( $post->ID, 'wcps_items_thumb_max_hieght', true );
|
166 |
$wcps_items_thumb_zoom = get_post_meta( $post->ID, 'wcps_items_thumb_zoom', true );
|
@@ -282,6 +296,15 @@ function meta_boxes_wcps_input( $post ) {
|
|
282 |
<option value="false" <?php if(($wcps_auto_play=="false")) echo "selected"; ?> ><?php _e('False',wcps_textdomain);?></option>
|
283 |
</select>
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
<p class="option-info"><?php _e('Slider rewind', wcps_textdomain);?></p>
|
286 |
<select name="wcps_rewind">
|
287 |
<option value="true" <?php if(($wcps_rewind=="true")) echo "selected"; ?> ><?php _e('True', wcps_textdomain);?></option>
|
@@ -1366,8 +1389,26 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
1366 |
{
|
1367 |
$wcps_auto_play = sanitize_text_field( $_POST['wcps_auto_play'] );
|
1368 |
}
|
1369 |
-
|
1370 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1371 |
if(empty($_POST['wcps_rewind'])){
|
1372 |
$wcps_rewind = '';
|
1373 |
}
|
@@ -1586,6 +1627,8 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
1586 |
update_post_meta( $post_id, 'wcps_column_number_tablet', $wcps_column_number_tablet );
|
1587 |
|
1588 |
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
|
|
|
|
|
1589 |
update_post_meta( $post_id, 'wcps_rewind', $wcps_rewind );
|
1590 |
update_post_meta( $post_id, 'wcps_loop', $wcps_loop );
|
1591 |
update_post_meta( $post_id, 'wcps_center', $wcps_center );
|
78 |
if(empty($wcps_column_number_mobile)){ $wcps_column_number_mobile = 1; }
|
79 |
|
80 |
$wcps_auto_play = get_post_meta( $post->ID, 'wcps_auto_play', true );
|
81 |
+
if(empty($wcps_auto_play)){ $wcps_auto_play = 'true'; }
|
82 |
|
83 |
+
$wcps_auto_play_speed = get_post_meta( $post->ID, 'wcps_auto_play_speed', true );
|
84 |
+
if(empty($wcps_auto_play_speed)){ $wcps_auto_play_speed = 500; }
|
85 |
+
|
86 |
+
$wcps_auto_play_timeout = get_post_meta( $post->ID, 'wcps_auto_play_timeout', true );
|
87 |
+
if(empty($wcps_auto_play_timeout)){ $wcps_auto_play_timeout = 500; }
|
88 |
+
|
89 |
+
|
90 |
+
$wcps_rewind = get_post_meta( $post->ID, 'wcps_rewind', true );
|
91 |
if(empty($wcps_rewind)){$wcps_rewind = 'true';}
|
92 |
|
93 |
$wcps_loop = get_post_meta( $post->ID, 'wcps_loop', true );
|
168 |
$wcps_grid_items_hide = get_post_meta( $post->ID, 'wcps_grid_items_hide', true );
|
169 |
|
170 |
$wcps_items_thumb_size = get_post_meta( $post->ID, 'wcps_items_thumb_size', true );
|
171 |
+
|
172 |
+
if(empty($wcps_items_thumb_size)){
|
173 |
+
$wcps_items_thumb_size = 'large';
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
$wcps_items_thumb_link_to = get_post_meta( $post->ID, 'wcps_items_thumb_link_to', true );
|
179 |
$wcps_items_thumb_max_hieght = get_post_meta( $post->ID, 'wcps_items_thumb_max_hieght', true );
|
180 |
$wcps_items_thumb_zoom = get_post_meta( $post->ID, 'wcps_items_thumb_zoom', true );
|
296 |
<option value="false" <?php if(($wcps_auto_play=="false")) echo "selected"; ?> ><?php _e('False',wcps_textdomain);?></option>
|
297 |
</select>
|
298 |
|
299 |
+
|
300 |
+
<p class="option-info"><?php _e('Slider Auto Play Speed',wcps_textdomain);?></p>
|
301 |
+
<input type="text" placeholder="500" id="wcps_auto_play_speed" name="wcps_auto_play_speed" value="<?php echo $wcps_auto_play_speed; ?>" />
|
302 |
+
|
303 |
+
<p class="option-info"><?php _e('Slider Auto Play Timeout',wcps_textdomain);?></p>
|
304 |
+
<input type="text" placeholder="500" id="wcps_auto_play_timeout" name="wcps_auto_play_timeout" value="<?php echo $wcps_auto_play_timeout; ?>" />
|
305 |
+
|
306 |
+
|
307 |
+
|
308 |
<p class="option-info"><?php _e('Slider rewind', wcps_textdomain);?></p>
|
309 |
<select name="wcps_rewind">
|
310 |
<option value="true" <?php if(($wcps_rewind=="true")) echo "selected"; ?> ><?php _e('True', wcps_textdomain);?></option>
|
1389 |
{
|
1390 |
$wcps_auto_play = sanitize_text_field( $_POST['wcps_auto_play'] );
|
1391 |
}
|
1392 |
+
|
1393 |
+
if(empty($_POST['wcps_auto_play_speed']))
|
1394 |
+
{
|
1395 |
+
$wcps_auto_play_speed = 500;
|
1396 |
+
}
|
1397 |
+
else
|
1398 |
+
{
|
1399 |
+
$wcps_auto_play_speed = sanitize_text_field( $_POST['wcps_auto_play_speed'] );
|
1400 |
+
}
|
1401 |
+
|
1402 |
+
|
1403 |
+
if(empty($_POST['wcps_auto_play_timeout']))
|
1404 |
+
{
|
1405 |
+
$wcps_auto_play_timeout = 500;
|
1406 |
+
}
|
1407 |
+
else
|
1408 |
+
{
|
1409 |
+
$wcps_auto_play_timeout = sanitize_text_field( $_POST['wcps_auto_play_timeout'] );
|
1410 |
+
}
|
1411 |
+
|
1412 |
if(empty($_POST['wcps_rewind'])){
|
1413 |
$wcps_rewind = '';
|
1414 |
}
|
1627 |
update_post_meta( $post_id, 'wcps_column_number_tablet', $wcps_column_number_tablet );
|
1628 |
|
1629 |
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
|
1630 |
+
update_post_meta( $post_id, 'wcps_auto_play_speed', $wcps_auto_play_speed );
|
1631 |
+
update_post_meta( $post_id, 'wcps_auto_play_timeout', $wcps_auto_play_timeout );
|
1632 |
update_post_meta( $post_id, 'wcps_rewind', $wcps_rewind );
|
1633 |
update_post_meta( $post_id, 'wcps_loop', $wcps_loop );
|
1634 |
update_post_meta( $post_id, 'wcps_center', $wcps_center );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Woocommerce Products Slider ===
|
2 |
Contributors: pickplugins
|
3 |
Donate link: http://pickplugins.com
|
4 |
Tags: carousel, product, slider, woocommerce, carousel slider, product slider, woocommerce slider, Woocommerce Product slider
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.12.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,13 @@ then paste this shortcode anywhere in your page to display slider<br />
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.12.11 =
|
96 |
* 23/05/2017 add - display tags on slider.
|
97 |
* 23/05/2017 add - display SKU on slider.
|
1 |
+
=== Woocommerce Products Slider ===
|
2 |
Contributors: pickplugins
|
3 |
Donate link: http://pickplugins.com
|
4 |
Tags: carousel, product, slider, woocommerce, carousel slider, product slider, woocommerce slider, Woocommerce Product slider
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.12.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.12.13 =
|
96 |
+
* 01/07/2017 add - Slider Auto Play Timeout update issue fixed.
|
97 |
+
|
98 |
+
= 1.12.12 =
|
99 |
+
* 01/06/2017 add - Auto slide speed added.
|
100 |
+
* 01/06/2017 add - Auto play timeout added.
|
101 |
+
|
102 |
= 1.12.11 =
|
103 |
* 23/05/2017 add - display tags on slider.
|
104 |
* 23/05/2017 add - display SKU on slider.
|
templates/scripts.php
CHANGED
@@ -61,7 +61,10 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
61 |
|
62 |
$html.= 'autoplay: true,';
|
63 |
//$html.= 'autoplayTimeout: 500,';
|
64 |
-
$html.= 'autoplayHoverPause: '.$wcps_stop_on_hover.',';
|
|
|
|
|
|
|
65 |
}
|
66 |
|
67 |
|
61 |
|
62 |
$html.= 'autoplay: true,';
|
63 |
//$html.= 'autoplayTimeout: 500,';
|
64 |
+
$html.= 'autoplayHoverPause: '.$wcps_stop_on_hover.',';
|
65 |
+
$html.= 'autoplaySpeed: '.$wcps_auto_play_speed.',';
|
66 |
+
$html.= 'autoplayTimeout: '.$wcps_auto_play_timeout.',';
|
67 |
+
|
68 |
}
|
69 |
|
70 |
|
templates/variables.php
CHANGED
@@ -60,7 +60,18 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
60 |
$wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
|
61 |
if(empty($wcps_auto_play)){
|
62 |
$wcps_auto_play = 'true';
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
$wcps_rewind = get_post_meta( $post_id, 'wcps_rewind', true );
|
66 |
if(empty($wcps_rewind)){
|
@@ -205,7 +216,12 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
205 |
$wcps_items_price_text_align = get_post_meta( $post_id, 'wcps_items_price_text_align', true );
|
206 |
|
207 |
$wcps_items_thumb_link_to = get_post_meta( $post_id, 'wcps_items_thumb_link_to', true );
|
208 |
-
$wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
|
|
|
|
|
|
|
|
|
|
|
209 |
$wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
|
210 |
$wcps_items_thumb_zoom = get_post_meta( $post_id, 'wcps_items_thumb_zoom', true );
|
211 |
|
60 |
$wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
|
61 |
if(empty($wcps_auto_play)){
|
62 |
$wcps_auto_play = 'true';
|
63 |
+
}
|
64 |
+
|
65 |
+
$wcps_auto_play_speed = get_post_meta( $post_id, 'wcps_auto_play_speed', true );
|
66 |
+
if(empty($wcps_auto_play_speed)){
|
67 |
+
$wcps_auto_play_speed = 500;
|
68 |
+
}
|
69 |
+
|
70 |
+
$wcps_auto_play_timeout = get_post_meta( $post_id, 'wcps_auto_play_timeout', true );
|
71 |
+
if(empty($wcps_auto_play_timeout)){
|
72 |
+
$wcps_auto_play_timeout = 500;
|
73 |
+
}
|
74 |
+
|
75 |
|
76 |
$wcps_rewind = get_post_meta( $post_id, 'wcps_rewind', true );
|
77 |
if(empty($wcps_rewind)){
|
216 |
$wcps_items_price_text_align = get_post_meta( $post_id, 'wcps_items_price_text_align', true );
|
217 |
|
218 |
$wcps_items_thumb_link_to = get_post_meta( $post_id, 'wcps_items_thumb_link_to', true );
|
219 |
+
$wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
|
220 |
+
if(empty($wcps_items_thumb_size)){
|
221 |
+
$wcps_items_thumb_size = 'large';
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
$wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
|
226 |
$wcps_items_thumb_zoom = get_post_meta( $post_id, 'wcps_items_thumb_zoom', true );
|
227 |
|
woocommerce-products-slider.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Woocommerce Products Slider
|
4 |
Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
|
5 |
Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
|
6 |
-
Version: 1.12.
|
7 |
Author: pickplugins
|
8 |
Author URI: http://pickplugins.com
|
9 |
Text Domain: woocommerce-products-slider
|
@@ -27,7 +27,7 @@ class WoocommerceProductsSlider{
|
|
27 |
define('wcps_conatct_url', 'http://pickplugins.com/contact/' );
|
28 |
define('wcps_qa_url', 'http://pickplugins.com/questions/' );
|
29 |
define('wcps_plugin_name', 'Woocommerce Products Slider' );
|
30 |
-
define('wcps_plugin_version', '1.12.
|
31 |
define('wcps_customer_type', 'free' ); // pro & free
|
32 |
define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
|
33 |
define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );
|
3 |
Plugin Name: Woocommerce Products Slider
|
4 |
Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
|
5 |
Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
|
6 |
+
Version: 1.12.13
|
7 |
Author: pickplugins
|
8 |
Author URI: http://pickplugins.com
|
9 |
Text Domain: woocommerce-products-slider
|
27 |
define('wcps_conatct_url', 'http://pickplugins.com/contact/' );
|
28 |
define('wcps_qa_url', 'http://pickplugins.com/questions/' );
|
29 |
define('wcps_plugin_name', 'Woocommerce Products Slider' );
|
30 |
+
define('wcps_plugin_version', '1.12.13' );
|
31 |
define('wcps_customer_type', 'free' ); // pro & free
|
32 |
define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
|
33 |
define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );
|