Woocommerce Products Slider - Version 1.13.1

Version Description

  • 2020-03-05 fix - Data import ribbon issue fixed.
    • 2020-03-05 fix - Text domain issue fixed.
    • 2020-03-05 add - Layout element Featured mark, On sale mark padding added
Download this release

Release Info

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

Code changes from version 1.13.0 to 1.13.1

includes/class-admin-notices.php CHANGED
@@ -60,7 +60,7 @@ class class_wcps_notices{
60
?>
61
<div class="update-nag">
62
<?php
63
- echo sprintf(__('<a href="%s">WooCommerce</a> plugin is required to run <b>PickPlugins Product Slider</b>', 'team-pro'), 'https://wordpress.org/plugins/woocommerce/')
64
?>
65
</div>
66
<?php
60
?>
61
<div class="update-nag">
62
<?php
63
+ echo sprintf(__('<a href="%s">WooCommerce</a> plugin is required to run <b>PickPlugins Product Slider</b>', 'woocommerce-products-slider'), 'https://wordpress.org/plugins/woocommerce/')
64
?>
65
</div>
66
<?php
includes/class-metabox-wcps-hook.php CHANGED
@@ -1933,7 +1933,6 @@ if(!function_exists('wcps_metabox_content_buy_pro')) {
1933
1934
$args = array(
1935
'id' => 'get_pro',
1936
- // 'parent' => 'related_post_settings',
1937
'title' => __('Get pro version','woocommerce-products-slider'),
1938
'details' => '',
1939
'type' => 'custom_html',
1933
1934
$args = array(
1935
'id' => 'get_pro',
1936
'title' => __('Get pro version','woocommerce-products-slider'),
1937
'details' => '',
1938
'type' => 'custom_html',
includes/class-metabox-wcps-layout-hook.php CHANGED
@@ -119,6 +119,7 @@ if(!function_exists('wcps_layout_metabox_content_layout_builder')){
119
$layout_elements['add_to_cart'] = array('name' =>__('Add to cart','woocommerce-products-slider'));
120
$layout_elements['rating'] = array('name' =>__('Rating','woocommerce-products-slider'));
121
$layout_elements['product_price'] = array('name' =>__('Price','woocommerce-products-slider'));
122
123
124
119
$layout_elements['add_to_cart'] = array('name' =>__('Add to cart','woocommerce-products-slider'));
120
$layout_elements['rating'] = array('name' =>__('Rating','woocommerce-products-slider'));
121
$layout_elements['product_price'] = array('name' =>__('Price','woocommerce-products-slider'));
122
+ $layout_elements['product_id'] = array('name' =>__('Product ID','woocommerce-products-slider'));
123
124
125
includes/functions-data-upgrade.php CHANGED
@@ -247,8 +247,18 @@ function wcps_cron_upgrade_wcps(){
247
$wcps_options['ribbon']['text'] = '';
248
$wcps_options['ribbon']['background_color'] = '';
249
250
- $ribbon_url = ($wcps_ribbon_name == 'custom') ? $wcps_ribbon_custom : wcps_plugin_url.'assets/front/images/ribbons/'.$wcps_ribbon_name.'.png';
251
$wcps_options['ribbon']['background_img'] = $ribbon_url;
252
$wcps_options['ribbon']['text_color'] = '#ffffff';
253
$wcps_options['ribbon']['width'] = '90px';
254
$wcps_options['ribbon']['height'] = '24px';
247
$wcps_options['ribbon']['text'] = '';
248
$wcps_options['ribbon']['background_color'] = '';
249
250
+ if($wcps_ribbon_name == 'custom'){
251
+ $ribbon_url = $wcps_ribbon_custom;
252
+
253
+ }elseif ($wcps_ribbon_name == 'none'){
254
+ $ribbon_url = '';
255
+ }else{
256
+ $ribbon_url = wcps_plugin_url.'assets/front/images/ribbons/'.$wcps_ribbon_name.'.png';
257
+ }
258
+
259
+
260
$wcps_options['ribbon']['background_img'] = $ribbon_url;
261
+
262
$wcps_options['ribbon']['text_color'] = '#ffffff';
263
$wcps_options['ribbon']['width'] = '90px';
264
$wcps_options['ribbon']['height'] = '24px';
includes/functions-layout-element.php CHANGED
@@ -366,7 +366,8 @@ function wcps_layout_element_on_sale_mark($args){
366
367
$is_on_sale = $product->is_on_sale();
368
369
- if($is_on_sale):
370
?>
371
<div class="on-sale <?php echo $position; ?> <?php echo $element_class; ?>"><?php echo sprintf($wrapper_html, $icon); ?></div>
372
<?php
@@ -639,6 +640,8 @@ function wcps_layout_element_css_on_sale_mark($args){
639
640
$background_color = isset($elementData['background_color']) ? $elementData['background_color'] : '';
641
$text_color = isset($elementData['text_color']) ? $elementData['text_color'] : '';
642
643
644
?>
@@ -650,7 +653,13 @@ function wcps_layout_element_css_on_sale_mark($args){
650
<?php if(!empty($text_color)): ?>
651
color: <?php echo $text_color; ?>;
652
<?php endif; ?>
653
- padding: 5px;
654
}
655
656
</style>
@@ -667,6 +676,8 @@ function wcps_layout_element_css_featured_mark($args){
667
668
$background_color = isset($elementData['background_color']) ? $elementData['background_color'] : '';
669
$text_color = isset($elementData['text_color']) ? $elementData['text_color'] : '';
670
671
672
?>
@@ -675,10 +686,16 @@ function wcps_layout_element_css_featured_mark($args){
675
<?php if(!empty($background_color)): ?>
676
background-color: <?php echo $background_color; ?>;
677
<?php endif; ?>
678
- <?php if(!empty($color)): ?>
679
- color: <?php echo $color; ?>;
680
<?php endif; ?>
681
- padding: 5px;
682
}
683
</style>
684
<?php
366
367
$is_on_sale = $product->is_on_sale();
368
369
+
370
+ if($is_on_sale && ($product->is_type('simple') || $product->is_type('variable'))):
371
?>
372
<div class="on-sale <?php echo $position; ?> <?php echo $element_class; ?>"><?php echo sprintf($wrapper_html, $icon); ?></div>
373
<?php
640
641
$background_color = isset($elementData['background_color']) ? $elementData['background_color'] : '';
642
$text_color = isset($elementData['text_color']) ? $elementData['text_color'] : '';
643
+ $font_size = isset($elementData['font_size']) ? $elementData['font_size'] : '';
644
+ $padding = isset($elementData['padding']) ? $elementData['padding'] : '';
645
646
647
?>
653
<?php if(!empty($text_color)): ?>
654
color: <?php echo $text_color; ?>;
655
<?php endif; ?>
656
+ <?php if(!empty($font_size)): ?>
657
+ font-size: <?php echo $font_size; ?>;
658
+ <?php endif; ?>
659
+ line-height: normal;
660
+ <?php if(!empty($padding)): ?>
661
+ padding: <?php echo $padding; ?>;
662
+ <?php endif; ?>
663
}
664
665
</style>
676
677
$background_color = isset($elementData['background_color']) ? $elementData['background_color'] : '';
678
$text_color = isset($elementData['text_color']) ? $elementData['text_color'] : '';
679
+ $font_size = isset($elementData['font_size']) ? $elementData['font_size'] : '';
680
+ $padding = isset($elementData['padding']) ? $elementData['padding'] : '';
681
682
683
?>
686
<?php if(!empty($background_color)): ?>
687
background-color: <?php echo $background_color; ?>;
688
<?php endif; ?>
689
+ <?php if(!empty($text_color)): ?>
690
+ color: <?php echo $text_color; ?>;
691
+ <?php endif; ?>
692
+ <?php if(!empty($font_size)): ?>
693
+ font-size: <?php echo $font_size; ?>;
694
+ <?php endif; ?>
695
+ line-height: normal;
696
+ <?php if(!empty($padding)): ?>
697
+ padding: <?php echo $padding; ?>;
698
<?php endif; ?>
699
}
700
</style>
701
<?php
includes/functions-layout-hook.php CHANGED
@@ -1102,6 +1102,9 @@ function wcps_layout_elements_option_featured_mark($parameters){
1102
$position = isset($element_data['position']) ? $element_data['position'] : '';
1103
$background_color = isset($element_data['background_color']) ? $element_data['background_color'] : '';
1104
$text_color = isset($element_data['text_color']) ? $element_data['text_color'] : '';
1105
?>
1106
<div class="item">
1107
<div class="element-title header ">
@@ -1191,7 +1194,33 @@ function wcps_layout_elements_option_featured_mark($parameters){
1191
$settings_tabs_field->generate_field($args);
1192
1193
1194
1195
1196
1197
?>
@@ -1218,6 +1247,7 @@ function wcps_layout_elements_option_on_sale_mark($parameters){
1218
$position = isset($element_data['position']) ? $element_data['position'] : '';
1219
$background_color = isset($element_data['background_color']) ? $element_data['background_color'] : '';
1220
$text_color = isset($element_data['text_color']) ? $element_data['text_color'] : '';
1221
1222
?>
1223
<div class="item">
@@ -1305,6 +1335,38 @@ function wcps_layout_elements_option_on_sale_mark($parameters){
1305
1306
$settings_tabs_field->generate_field($args);
1307
1308
?>
1309
1310
</div>
1102
$position = isset($element_data['position']) ? $element_data['position'] : '';
1103
$background_color = isset($element_data['background_color']) ? $element_data['background_color'] : '';
1104
$text_color = isset($element_data['text_color']) ? $element_data['text_color'] : '';
1105
+ $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
1106
+
1107
+
1108
?>
1109
<div class="item">
1110
<div class="element-title header ">
1194
$settings_tabs_field->generate_field($args);
1195
1196
1197
+ $args = array(
1198
+ 'id' => 'font_size',
1199
+ 'css_id' => $element_index.'_font_size',
1200
+ 'parent' => $input_name.'[featured_mark]',
1201
+ 'title' => __('Font size','woocommerce-products-slider'),
1202
+ 'details' => __('Choose text font size.','woocommerce-products-slider'),
1203
+ 'type' => 'text',
1204
+ 'value' => $font_size,
1205
+ 'default' => '',
1206
+ 'placeholder' => '16px',
1207
+ );
1208
1209
+ $settings_tabs_field->generate_field($args);
1210
+
1211
+ $args = array(
1212
+ 'id' => 'padding',
1213
+ 'css_id' => $element_index.'_padding',
1214
+ 'parent' => $input_name.'[featured_mark]',
1215
+ 'title' => __('padding','woocommerce-products-slider'),
1216
+ 'details' => __('Choose padding.','woocommerce-products-slider'),
1217
+ 'type' => 'text',
1218
+ 'value' => $padding,
1219
+ 'default' => '',
1220
+ 'placeholder' => '5px 10px',
1221
+ );
1222
+
1223
+ $settings_tabs_field->generate_field($args);
1224
1225
1226
?>
1247
$position = isset($element_data['position']) ? $element_data['position'] : '';
1248
$background_color = isset($element_data['background_color']) ? $element_data['background_color'] : '';
1249
$text_color = isset($element_data['text_color']) ? $element_data['text_color'] : '';
1250
+ $padding = isset($element_data['padding']) ? $element_data['padding'] : '';
1251
1252
?>
1253
<div class="item">
1335
1336
$settings_tabs_field->generate_field($args);
1337
1338
+
1339
+
1340
+ $args = array(
1341
+ 'id' => 'font_size',
1342
+ 'css_id' => $element_index.'_font_size',
1343
+ 'parent' => $input_name.'[on_sale_mark]',
1344
+ 'title' => __('Font size','woocommerce-products-slider'),
1345
+ 'details' => __('Choose text font size.','woocommerce-products-slider'),
1346
+ 'type' => 'text',
1347
+ 'value' => $font_size,
1348
+ 'default' => '',
1349
+ 'placeholder' => '16px',
1350
+ );
1351
+
1352
+ $settings_tabs_field->generate_field($args);
1353
+
1354
+ $args = array(
1355
+ 'id' => 'padding',
1356
+ 'css_id' => $element_index.'_padding',
1357
+ 'parent' => $input_name.'[on_sale_mark]',
1358
+ 'title' => __('padding','woocommerce-products-slider'),
1359
+ 'details' => __('Choose padding.','woocommerce-products-slider'),
1360
+ 'type' => 'text',
1361
+ 'value' => $padding,
1362
+ 'default' => '',
1363
+ 'placeholder' => '5px 10px',
1364
+ );
1365
+
1366
+ $settings_tabs_field->generate_field($args);
1367
+
1368
+
1369
+
1370
?>
1371
1372
</div>
includes/functions-settings-hook.php CHANGED
@@ -25,12 +25,12 @@ function wcps_settings_content_general(){
25
$args = array(
26
'id' => 'font_aw_version',
27
'parent' => 'wcps_settings',
28
- 'title' => __('Font-awesome version','related-post'),
29
- 'details' => __('Choose font awesome version you want to load.','related-post'),
30
'type' => 'select',
31
'value' => $font_aw_version,
32
'default' => '',
33
- 'args' => array('v_5'=>__('Version 5+','related-post'), 'v_4'=>__('Version 4+','related-post'), 'none'=>__('None','related-post') ),
34
);
35
36
$settings_tabs_field->generate_field($args);
@@ -38,12 +38,12 @@ function wcps_settings_content_general(){
38
$args = array(
39
'id' => 'wcps_preview',
40
'parent' => 'wcps_settings',
41
- 'title' => __('Enable WCPS preview','related-post'),
42
- 'details' => __('You can enable preview WCPS.','related-post'),
43
'type' => 'select',
44
'value' => $wcps_preview,
45
'default' => 'yes',
46
- 'args' => array('yes'=>__('Yes','related-post'), 'no'=>__('No','related-post') ),
47
);
48
49
$settings_tabs_field->generate_field($args);
@@ -618,7 +618,6 @@ if(!function_exists('wcps_settings_content_buy_pro')) {
618
619
$args = array(
620
'id' => 'get_pro',
621
- // 'parent' => 'related_post_settings',
622
'title' => __('Get pro version','woocommerce-products-slider'),
623
'details' => '',
624
'type' => 'custom_html',
25
$args = array(
26
'id' => 'font_aw_version',
27
'parent' => 'wcps_settings',
28
+ 'title' => __('Font-awesome version','woocommerce-products-slider'),
29
+ 'details' => __('Choose font awesome version you want to load.','woocommerce-products-slider'),
30
'type' => 'select',
31
'value' => $font_aw_version,
32
'default' => '',
33
+ 'args' => array('v_5'=>__('Version 5+','woocommerce-products-slider'), 'v_4'=>__('Version 4+','woocommerce-products-slider'), 'none'=>__('None','woocommerce-products-slider') ),
34
);
35
36
$settings_tabs_field->generate_field($args);
38
$args = array(
39
'id' => 'wcps_preview',
40
'parent' => 'wcps_settings',
41
+ 'title' => __('Enable WCPS preview','woocommerce-products-slider'),
42
+ 'details' => __('You can enable preview WCPS.','woocommerce-products-slider'),
43
'type' => 'select',
44
'value' => $wcps_preview,
45
'default' => 'yes',
46
+ 'args' => array('yes'=>__('Yes','woocommerce-products-slider'), 'no'=>__('No','woocommerce-products-slider') ),
47
);
48
49
$settings_tabs_field->generate_field($args);
618
619
$args = array(
620
'id' => 'get_pro',
621
'title' => __('Get pro version','woocommerce-products-slider'),
622
'details' => '',
623
'type' => 'custom_html',
readme.txt CHANGED
@@ -141,6 +141,11 @@ then paste this shortcode anywhere in your page to display slider<br />
141
142
== Changelog ==
143
144
= 1.13.0 =
145
* 2020-03-04 add - Layout builder added.
146
* 2020-03-04 add - Navigation custom icon/text
141
142
== Changelog ==
143
144
+ = 1.13.1 =
145
+ * 2020-03-05 fix - Data import ribbon issue fixed.
146
+ * 2020-03-05 fix - Text domain issue fixed.
147
+ * 2020-03-05 add - Layout element Featured mark, On sale mark padding added
148
+
149
= 1.13.0 =
150
* 2020-03-04 add - Layout builder added.
151
* 2020-03-04 add - Navigation custom icon/text
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.0
7
WC requires at least: 3.0.0
8
WC tested up to: 3.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.0' );
27
28
require_once( wcps_plugin_dir . 'includes/class-post-types.php');
29
require_once( wcps_plugin_dir . 'includes/class-metabox-wcps.php');
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.1
7
WC requires at least: 3.0.0
8
WC tested up to: 3.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.1' );
27
28
require_once( wcps_plugin_dir . 'includes/class-post-types.php');
29
require_once( wcps_plugin_dir . 'includes/class-metabox-wcps.php');