Version Description
- 2022-07-16 add - Minor PHP error issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Woocommerce Products Slider |
Version | 1.13.36 |
Comparing to | |
See all releases |
Code changes from version 1.13.35 to 1.13.36
includes/3rd-party/dokan-lite/class-metabox-wcps-hook.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
-
if (
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
add_filter('wcps_slider_for_args', 'wcps_slider_for_args_dokan');
|
9 |
-
function wcps_slider_for_args_dokan($args)
|
|
|
10 |
|
11 |
$args['dokan_vendors'] = __('Dokan vendors', 'woocommerce-products-slider');
|
12 |
|
@@ -14,23 +15,24 @@ function wcps_slider_for_args_dokan($args){
|
|
14 |
}
|
15 |
|
16 |
add_filter('wcps_metabox_navs', 'wcps_metabox_navs_dokan');
|
17 |
-
function wcps_metabox_navs_dokan($tabs)
|
|
|
18 |
|
19 |
global $post;
|
20 |
$post_id = $post->ID;
|
21 |
|
22 |
|
23 |
-
$wcps_options = get_post_meta($post_id,'wcps_options', true);
|
24 |
$current_tab = isset($wcps_options['current_tab']) ? $wcps_options['current_tab'] : 'layouts';
|
25 |
$slider_for = !empty($wcps_options['slider_for']) ? $wcps_options['slider_for'] : 'products';
|
26 |
|
27 |
$tabs[] = array(
|
28 |
'id' => 'query_dokan_vendors',
|
29 |
-
'title' => sprintf(__('%s Query dokan vendors','woocommerce-products-slider'),'<i class="fas fa-qrcode"></i>'),
|
30 |
'priority' => 3,
|
31 |
'active' => ($current_tab == 'query_dokan_vendors') ? true : false,
|
32 |
'data_visible' => 'dokan_vendors',
|
33 |
-
'hidden' => ($slider_for == 'products')? true : false || ($slider_for == 'orders')? true : false || ($slider_for == 'categories')? true : false || ($slider_for == 'edd_downloads')? true : false,
|
34 |
);
|
35 |
return $tabs;
|
36 |
}
|
@@ -38,12 +40,13 @@ function wcps_metabox_navs_dokan($tabs){
|
|
38 |
|
39 |
add_action('wcps_metabox_content_query_dokan_vendors', 'wcps_metabox_content_query_dokan_vendors');
|
40 |
|
41 |
-
if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
42 |
-
function wcps_metabox_content_query_dokan_vendors($post_id)
|
|
|
43 |
|
44 |
$settings_tabs_field = new settings_tabs_field();
|
45 |
|
46 |
-
$wcps_options = get_post_meta(
|
47 |
$vendors_query = !empty($wcps_options['dokan_vendors_query']) ? $wcps_options['dokan_vendors_query'] : array();
|
48 |
|
49 |
$posts_per_page = isset($vendors_query['posts_per_page']) ? $vendors_query['posts_per_page'] : 10;
|
@@ -52,7 +55,7 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
52 |
|
53 |
$vendors_ids = isset($vendors_query['vendors_ids']) ? $vendors_query['vendors_ids'] : '';
|
54 |
|
55 |
-
|
56 |
<div class="section">
|
57 |
<div class="section-title">Query Vendors</div>
|
58 |
<p class="description section-description">Setup vendors query settings.</p>
|
@@ -61,14 +64,14 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
61 |
<?php
|
62 |
|
63 |
$args = array(
|
64 |
-
'id'
|
65 |
-
'parent'
|
66 |
-
'title'
|
67 |
-
'details'
|
68 |
-
'type'
|
69 |
-
'value'
|
70 |
-
'default'
|
71 |
-
'placeholder'
|
72 |
);
|
73 |
|
74 |
$settings_tabs_field->generate_field($args);
|
@@ -76,16 +79,16 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
76 |
|
77 |
|
78 |
$args = array(
|
79 |
-
'id'
|
80 |
-
'parent'
|
81 |
-
'title'
|
82 |
-
'details'
|
83 |
-
'type'
|
84 |
-
'value'
|
85 |
-
'default'
|
86 |
-
'args'
|
87 |
-
'DESC'=>__('Descending','woocommerce-products-slider'),
|
88 |
-
'ASC'=>__('Ascending','woocommerce-products-slider'),
|
89 |
),
|
90 |
);
|
91 |
|
@@ -93,18 +96,18 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
93 |
|
94 |
|
95 |
$args = array(
|
96 |
-
'id'
|
97 |
-
'parent'
|
98 |
-
'title'
|
99 |
-
'details'
|
100 |
-
'type'
|
101 |
-
'value'
|
102 |
-
'default'
|
103 |
-
'args'
|
104 |
-
'ID'=>__('ID','woocommerce-products-slider'),
|
105 |
-
'display_name'=>__('display name','woocommerce-products-slider'),
|
106 |
-
'user_login'=>__('user login','woocommerce-products-slider'),
|
107 |
-
'user_nicename'=>__('user nicename','woocommerce-products-slider'),
|
108 |
|
109 |
|
110 |
),
|
@@ -120,14 +123,14 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
120 |
|
121 |
|
122 |
$args = array(
|
123 |
-
'id'
|
124 |
-
'parent'
|
125 |
-
'title'
|
126 |
-
'details'
|
127 |
-
'type'
|
128 |
-
'value'
|
129 |
-
'default'
|
130 |
-
'placeholder'
|
131 |
);
|
132 |
|
133 |
$settings_tabs_field->generate_field($args);
|
@@ -145,7 +148,7 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
145 |
|
146 |
</div>
|
147 |
|
148 |
-
|
149 |
|
150 |
|
151 |
|
@@ -154,4 +157,3 @@ if(!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
|
154 |
|
155 |
}
|
156 |
}
|
157 |
-
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) exit; // if direct access
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
add_filter('wcps_slider_for_args', 'wcps_slider_for_args_dokan');
|
9 |
+
function wcps_slider_for_args_dokan($args)
|
10 |
+
{
|
11 |
|
12 |
$args['dokan_vendors'] = __('Dokan vendors', 'woocommerce-products-slider');
|
13 |
|
15 |
}
|
16 |
|
17 |
add_filter('wcps_metabox_navs', 'wcps_metabox_navs_dokan');
|
18 |
+
function wcps_metabox_navs_dokan($tabs)
|
19 |
+
{
|
20 |
|
21 |
global $post;
|
22 |
$post_id = $post->ID;
|
23 |
|
24 |
|
25 |
+
$wcps_options = get_post_meta($post_id, 'wcps_options', true);
|
26 |
$current_tab = isset($wcps_options['current_tab']) ? $wcps_options['current_tab'] : 'layouts';
|
27 |
$slider_for = !empty($wcps_options['slider_for']) ? $wcps_options['slider_for'] : 'products';
|
28 |
|
29 |
$tabs[] = array(
|
30 |
'id' => 'query_dokan_vendors',
|
31 |
+
'title' => sprintf(__('%s Query dokan vendors', 'woocommerce-products-slider'), '<i class="fas fa-qrcode"></i>'),
|
32 |
'priority' => 3,
|
33 |
'active' => ($current_tab == 'query_dokan_vendors') ? true : false,
|
34 |
'data_visible' => 'dokan_vendors',
|
35 |
+
'hidden' => (($slider_for == 'products') ? true : false) || (($slider_for == 'orders') ? true : false) || (($slider_for == 'categories') ? true : false) || (($slider_for == 'edd_downloads') ? true : false),
|
36 |
);
|
37 |
return $tabs;
|
38 |
}
|
40 |
|
41 |
add_action('wcps_metabox_content_query_dokan_vendors', 'wcps_metabox_content_query_dokan_vendors');
|
42 |
|
43 |
+
if (!function_exists('wcps_metabox_content_query_dokan_vendors')) {
|
44 |
+
function wcps_metabox_content_query_dokan_vendors($post_id)
|
45 |
+
{
|
46 |
|
47 |
$settings_tabs_field = new settings_tabs_field();
|
48 |
|
49 |
+
$wcps_options = get_post_meta($post_id, 'wcps_options', true);
|
50 |
$vendors_query = !empty($wcps_options['dokan_vendors_query']) ? $wcps_options['dokan_vendors_query'] : array();
|
51 |
|
52 |
$posts_per_page = isset($vendors_query['posts_per_page']) ? $vendors_query['posts_per_page'] : 10;
|
55 |
|
56 |
$vendors_ids = isset($vendors_query['vendors_ids']) ? $vendors_query['vendors_ids'] : '';
|
57 |
|
58 |
+
?>
|
59 |
<div class="section">
|
60 |
<div class="section-title">Query Vendors</div>
|
61 |
<p class="description section-description">Setup vendors query settings.</p>
|
64 |
<?php
|
65 |
|
66 |
$args = array(
|
67 |
+
'id' => 'posts_per_page',
|
68 |
+
'parent' => 'wcps_options[dokan_vendors_query]',
|
69 |
+
'title' => __('Max number of vendors', 'woocommerce-products-slider'),
|
70 |
+
'details' => __('Set custom number you want to display maximum number of vendors', 'woocommerce-products-slider'),
|
71 |
+
'type' => 'text',
|
72 |
+
'value' => $posts_per_page,
|
73 |
+
'default' => '10',
|
74 |
+
'placeholder' => '10',
|
75 |
);
|
76 |
|
77 |
$settings_tabs_field->generate_field($args);
|
79 |
|
80 |
|
81 |
$args = array(
|
82 |
+
'id' => 'order',
|
83 |
+
'parent' => 'wcps_options[dokan_vendors_query]',
|
84 |
+
'title' => __('Query order', 'woocommerce-products-slider'),
|
85 |
+
'details' => __('Set query order.', 'woocommerce-products-slider'),
|
86 |
+
'type' => 'select',
|
87 |
+
'value' => $query_order,
|
88 |
+
'default' => 'DESC',
|
89 |
+
'args' => array(
|
90 |
+
'DESC' => __('Descending', 'woocommerce-products-slider'),
|
91 |
+
'ASC' => __('Ascending', 'woocommerce-products-slider'),
|
92 |
),
|
93 |
);
|
94 |
|
96 |
|
97 |
|
98 |
$args = array(
|
99 |
+
'id' => 'orderby',
|
100 |
+
'parent' => 'wcps_options[dokan_vendors_query]',
|
101 |
+
'title' => __('Query orderby', 'woocommerce-products-slider'),
|
102 |
+
'details' => __('Set query orderby.', 'woocommerce-products-slider'),
|
103 |
+
'type' => 'select',
|
104 |
+
'value' => $query_orderby,
|
105 |
+
'default' => 'DESC',
|
106 |
+
'args' => array(
|
107 |
+
'ID' => __('ID', 'woocommerce-products-slider'),
|
108 |
+
'display_name' => __('display name', 'woocommerce-products-slider'),
|
109 |
+
'user_login' => __('user login', 'woocommerce-products-slider'),
|
110 |
+
'user_nicename' => __('user nicename', 'woocommerce-products-slider'),
|
111 |
|
112 |
|
113 |
),
|
123 |
|
124 |
|
125 |
$args = array(
|
126 |
+
'id' => 'vendors_ids',
|
127 |
+
'parent' => 'wcps_options[dokan_vendors_query]',
|
128 |
+
'title' => __('vendor ID\'s', 'woocommerce-products-slider'),
|
129 |
+
'details' => __('You can display vendors by ids.', 'woocommerce-products-slider'),
|
130 |
+
'type' => 'text',
|
131 |
+
'value' => $vendors_ids,
|
132 |
+
'default' => '',
|
133 |
+
'placeholder' => '1,4,2',
|
134 |
);
|
135 |
|
136 |
$settings_tabs_field->generate_field($args);
|
148 |
|
149 |
</div>
|
150 |
|
151 |
+
<?php
|
152 |
|
153 |
|
154 |
|
157 |
|
158 |
}
|
159 |
}
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@
|
|
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: 6.0
|
7 |
-
Stable tag: 1.13.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -142,9 +142,13 @@ then paste this shortcode anywhere in your page to display slider<br />
|
|
142 |
== Changelog ==
|
143 |
|
144 |
|
|
|
|
|
|
|
|
|
145 |
= 1.13.35 =
|
146 |
* 2022-05-16 add - Slider option Slides to scroll issue fixed.
|
147 |
-
|
148 |
= 1.13.34 =
|
149 |
* 2022-05-16 add - Slider option swipe and swipeToSlide added for mobile device.
|
150 |
|
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: 6.0
|
7 |
+
Stable tag: 1.13.36
|
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.36 =
|
146 |
+
* 2022-07-16 add - Minor PHP error issue fixed.
|
147 |
+
|
148 |
+
|
149 |
= 1.13.35 =
|
150 |
* 2022-05-16 add - Slider option Slides to scroll issue fixed.
|
151 |
+
|
152 |
= 1.13.34 =
|
153 |
* 2022-05-16 add - Slider option swipe and swipeToSlide added for mobile device.
|
154 |
|
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.
|
7 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 6.0
|
9 |
Author: PickPlugins
|
@@ -25,7 +25,7 @@ class WoocommerceProductsSlider
|
|
25 |
define('wcps_plugin_url', plugins_url('/', __FILE__));
|
26 |
define('wcps_plugin_dir', plugin_dir_path(__FILE__));
|
27 |
define('wcps_plugin_name', 'PickPlugins Product Slider');
|
28 |
-
define('wcps_plugin_version', '1.13.
|
29 |
define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
|
30 |
//define('wcps_server_url', 'http://localhost/wp/');
|
31 |
|
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.36
|
7 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 6.0
|
9 |
Author: PickPlugins
|
25 |
define('wcps_plugin_url', plugins_url('/', __FILE__));
|
26 |
define('wcps_plugin_dir', plugin_dir_path(__FILE__));
|
27 |
define('wcps_plugin_name', 'PickPlugins Product Slider');
|
28 |
+
define('wcps_plugin_version', '1.13.36');
|
29 |
define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
|
30 |
//define('wcps_server_url', 'http://localhost/wp/');
|
31 |
|