Woocommerce Products Slider - Version 1.13.16

Version Description

  • 2020-07-05 fix - Layouts editor saving issue fixed.
Download this release

Release Info

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

Code changes from version 1.13.15 to 1.13.16

assets/admin/js/scripts-layouts.js CHANGED
@@ -39,4 +39,50 @@ jQuery(document).ready(function($){
39
 
40
  })
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  });
39
 
40
  })
41
 
42
+
43
+
44
+ $(document).on('mouseover','.block-thumb',function(){
45
+
46
+
47
+
48
+ imgHeight = $(this).children('img').height();
49
+ wrapHeight = $(this).height();
50
+
51
+ if (imgHeight > wrapHeight) {
52
+ var animationOffset = wrapHeight - imgHeight;
53
+ var speed = 2000;
54
+ $(this).children('img').animate({
55
+ "marginTop": animationOffset + "px"
56
+ }, speed);
57
+ }
58
+
59
+
60
+ })
61
+
62
+
63
+ $(document).on('mouseout','.block-thumb',function(){
64
+
65
+
66
+
67
+ imgHeight = $(this).children('img').height();
68
+ wrapHeight = $(this).height();
69
+
70
+ //console.log(wrapHeight);
71
+ //console.log(imgHeight);
72
+
73
+ if (imgHeight > wrapHeight) {
74
+
75
+ animationOffset = 0;
76
+ var speed = 1000;
77
+ $(this).children('img').animate({
78
+ "marginTop": animationOffset + "px"
79
+ }, speed);
80
+
81
+ }
82
+
83
+
84
+ })
85
+
86
+
87
+
88
  });
includes/class-metabox-wcps-layout-hook.php CHANGED
@@ -174,7 +174,7 @@ if(!function_exists('wcps_layout_metabox_content_layout_builder')){
174
  console.log(id);
175
 
176
  tag_options_html = layout_elements_option[tag_id];
177
- var res = tag_options_html.replace("{input_name}", input_name+'['+id+']');
178
 
179
  $(this).parent().parent().children('.elements').append(res);
180
 
174
  console.log(id);
175
 
176
  tag_options_html = layout_elements_option[tag_id];
177
+ var res = tag_options_html.replace(/{input_name}/g, input_name+'['+id+']');
178
 
179
  $(this).parent().parent().children('.elements').append(res);
180
 
includes/class-metabox-wcps.php CHANGED
@@ -130,7 +130,7 @@ class class_wcps_metabox{
130
  'priority' => 3,
131
  'active' => ($current_tab == 'query_product') ? true : false,
132
  'data_visible' => 'products',
133
- 'hidden' => ($slider_for == 'categories')? true : false || ($slider_for == 'orders')? true : false || ($slider_for == 'dokan_vendors')? true : false || ($slider_for == 'edd_downloads')? true : false,
134
  );
135
 
136
  $wcps_settings_tabs[] = array(
@@ -139,7 +139,7 @@ class class_wcps_metabox{
139
  'priority' => 3,
140
  'active' => ($current_tab == 'query_orders') ? true : false,
141
  'data_visible' => 'orders',
142
- 'hidden' => ($slider_for == 'products')? true : false || ($slider_for == 'categories')? true : false || ($slider_for == 'dokan_vendors')? true : false || ($slider_for == 'edd_downloads')? true : false,
143
  );
144
 
145
  $wcps_settings_tabs[] = array(
@@ -148,7 +148,7 @@ class class_wcps_metabox{
148
  'priority' => 3,
149
  'active' => ($current_tab == 'query_categories') ? true : false,
150
  'data_visible' => 'categories',
151
- 'hidden' => ($slider_for == 'products')? true : false || ($slider_for == 'orders')? true : false || ($slider_for == 'dokan_vendors')? true : false || ($slider_for == 'edd_downloads')? true : false,
152
  );
153
 
154
  $wcps_settings_tabs[] = array(
130
  'priority' => 3,
131
  'active' => ($current_tab == 'query_product') ? true : false,
132
  'data_visible' => 'products',
133
+ 'hidden' => (($slider_for == 'categories') ? true : false) || (($slider_for == 'orders') ? true : false) || (($slider_for == 'dokan_vendors') ? true : false) || (($slider_for == 'edd_downloads') ? true : false),
134
  );
135
 
136
  $wcps_settings_tabs[] = array(
139
  'priority' => 3,
140
  'active' => ($current_tab == 'query_orders') ? true : false,
141
  'data_visible' => 'orders',
142
+ 'hidden' => (($slider_for == 'products') ? true : false) || (($slider_for == 'categories') ? true : false) || (($slider_for == 'dokan_vendors') ? true : false) || (($slider_for == 'edd_downloads') ? true : false),
143
  );
144
 
145
  $wcps_settings_tabs[] = array(
148
  'priority' => 3,
149
  'active' => ($current_tab == 'query_categories') ? true : false,
150
  'data_visible' => 'categories',
151
+ 'hidden' => (($slider_for == 'products') ? true : false) || (($slider_for == 'orders') ? true : false) || (($slider_for == 'dokan_vendors') ? true : false) || (($slider_for == 'edd_downloads') ? true : false),
152
  );
153
 
154
  $wcps_settings_tabs[] = array(
includes/functions-layout-api.php CHANGED
@@ -22,10 +22,8 @@ function wcps_ajax_fetch_block_hub_by_id(){
22
  $post_id = isset($_POST['post_id']) ? sanitize_text_field($_POST['post_id']) : 0;
23
 
24
  $wcps_settings = get_option('wcps_settings');
25
-
26
  $license_key = isset($wcps_settings['license_key']) ? $wcps_settings['license_key'] : '';
27
 
28
- $html = '';
29
  $api_params = array(
30
  'wcps_remote_action' => 'layoutSearchByID',
31
  'post_id' => $post_id,
22
  $post_id = isset($_POST['post_id']) ? sanitize_text_field($_POST['post_id']) : 0;
23
 
24
  $wcps_settings = get_option('wcps_settings');
 
25
  $license_key = isset($wcps_settings['license_key']) ? $wcps_settings['license_key'] : '';
26
 
 
27
  $api_params = array(
28
  'wcps_remote_action' => 'layoutSearchByID',
29
  'post_id' => $post_id,
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: 5.4
7
- Stable tag: 1.13.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -141,6 +141,10 @@ then paste this shortcode anywhere in your page to display slider<br />
141
 
142
  == Changelog ==
143
 
 
 
 
 
144
  = 1.13.15 =
145
  * 2020-07-02 fix - navigation text saving issue fixed.
146
 
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.16
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.16 =
145
+ * 2020-07-05 fix - Layouts editor saving issue fixed.
146
+
147
+
148
  = 1.13.15 =
149
  * 2020-07-02 fix - navigation text saving issue fixed.
150
 
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.15
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.15' );
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.16
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.16' );
27
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
28
  //define('wcps_server_url', 'http://localhost/wp/');
29