Woocommerce Products Slider - Version 1.13.37

Version Description

  • 2022-08-10 fix - Scripts file loading issue fixed.
Download this release

Release Info

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

Code changes from version 1.13.36 to 1.13.37

includes/menu/import-layouts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
- if ( ! defined('ABSPATH')) exit; // if direct access
3
 
4
- if(!current_user_can('manage_options')) return;
5
 
6
  $keyword = isset($_GET['keyword']) ? sanitize_text_field($_GET['keyword']) : '';
7
  $paged = isset($_GET['paged']) ? sanitize_text_field($_GET['paged']) : '';
@@ -12,8 +12,16 @@ $license_key = isset($wcps_settings['license_key']) ? $wcps_settings['license_ke
12
 
13
  $max_num_pages = 0;
14
 
15
- wp_enqueue_script('wcps_js');
16
 
 
 
 
 
 
 
 
 
 
17
 
18
  //var_dump($_SERVER);
19
 
@@ -25,14 +33,13 @@ wp_enqueue_script('wcps_js');
25
 
26
  <div class="wp-filter">
27
  <ul class="filter-links">
28
- <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=latest" class="<?php if($tabs == 'latest') echo 'current'; ?>" aria-current="page"><?php _e('Latest', 'woocommerce-products-slider'); ?></a> </li>
29
- <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=free" class="<?php if($tabs == 'free') echo 'current'; ?>" aria-current="page"><?php _e('Free', 'woocommerce-products-slider'); ?></a> </li>
30
- <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=pro" class="<?php if($tabs == 'pro') echo 'current'; ?>" aria-current="page"><?php _e('Premium', 'woocommerce-products-slider'); ?></a> </li>
31
  </ul>
32
  <form class="block-search-form">
33
  <span class="loading"></span>
34
- <input id="block-keyword" type="search" placeholder="<?php _e('Start typing...', 'wp-block-hub'); ?>"
35
- value="<?php echo esc_html($keyword); ?>">
36
  </form>
37
  </div>
38
 
@@ -55,20 +62,19 @@ wp_enqueue_script('wcps_js');
55
  * Check is there any server error occurred
56
  *
57
  * */
58
- if (is_wp_error($response)){
59
 
60
- ?>
61
  <div class="return-empty">
62
  <ul>
63
  <li><?php echo __("Unexpected Error! The query returned with an error.", 'woocommerce-products-slider'); ?></li>
64
  <li><?php echo __("Make sure your internet connection is up.", 'woocommerce-products-slider'); ?></li>
65
  </ul>
66
  </div>
67
- <?php
68
 
69
 
70
- }
71
- else{
72
 
73
  $response_data = json_decode(wp_remote_retrieve_body($response));
74
  $post_data = isset($response_data->posts) ? $response_data->posts : array();
@@ -84,9 +90,9 @@ wp_enqueue_script('wcps_js');
84
  <div class="block-list-items">
85
  <?php
86
 
87
- if(!empty($post_data)):
88
 
89
- foreach ($post_data as $item_index=>$item):
90
 
91
 
92
  //var_dump($item);
@@ -105,12 +111,12 @@ wp_enqueue_script('wcps_js');
105
  //echo '<pre>'.var_export($is_pro, true).'</pre>';
106
 
107
 
108
- ?>
109
 
110
  <div class="item">
111
  <div class="item-top-area">
112
 
113
- <?php if(!empty($layout_preview_img)):?>
114
  <div class="block-thumb">
115
  <img src="<?php echo $layout_preview_img; ?>">
116
  </div>
@@ -125,19 +131,18 @@ wp_enqueue_script('wcps_js');
125
 
126
  <?php
127
  if ($is_pro == 'yes' && empty($license_key)) {
128
-
129
- }else{
130
- ?>
131
- <span class="button import-layout" post_id="<?php echo $post_id; ?>"><i class="fas fa-download"></i> Import (<?php echo $download_count; ?>)</span>
132
- <?php
133
  }
134
 
135
  ?>
136
 
137
 
138
- <?php if($is_pro == 'yes'): ?>
139
  <span title="Enter license key to import" class="is_pro button"><i class="fas fa-crown"></i> Pro</span>
140
- <?php else: ?>
141
  <span class="is_free button"><i class="far fa-lightbulb"></i> Free</span>
142
  <?php endif; ?>
143
 
@@ -147,10 +152,10 @@ wp_enqueue_script('wcps_js');
147
  </div>
148
  <div class="clear"></div>
149
  </div>
150
- <?php
151
  endforeach;
152
 
153
- else:
154
 
155
  echo 'Server return empty. please try again later.';
156
  endif;
@@ -176,14 +181,15 @@ wp_enqueue_script('wcps_js');
176
  'base' => preg_replace('/\?.*/', '', get_pagenum_link()) . '%_%',
177
  //'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
178
  'format' => '?paged=%#%',
179
- 'current' => max( 1, $paged ),
180
- 'total' => $max_num_pages ,
181
  'prev_text' => '« Previous',
182
  'next_text' => 'Next »',
183
 
184
 
185
 
186
- ));
 
187
  ?>
188
  </div>
189
 
@@ -196,16 +202,16 @@ wp_enqueue_script('wcps_js');
196
  <script>
197
  jQuery(document).ready(function($) {
198
 
199
- var delay = (function(){
200
  var timer = 0;
201
- return function(callback, ms){
202
- clearTimeout (timer);
203
  timer = setTimeout(callback, ms);
204
  };
205
  })();
206
 
207
 
208
- $(document).on('keyup','#block-keyword',function(){
209
  _this = this;
210
  keyword = $(this).val();
211
 
@@ -214,33 +220,38 @@ wp_enqueue_script('wcps_js');
214
  var url = new URL(url);
215
 
216
 
217
- delay(function(){
218
  $(_this).parent().children('.loading').addClass('button updating-message');
219
 
220
  url.searchParams.append('keyword', keyword);
221
  url.searchParams.delete('paged');
222
  window.location.href = url.href;
223
 
224
- }, 1000 );
225
 
226
 
227
  })
228
  })
229
  </script>
230
 
231
- <style >
232
-
233
- .block-search-form{
234
  float: right;
235
  padding: 10px;
236
  }
237
- .block-search-form input[type="search"]{
 
238
  width: 225px;
239
  padding: 0 10px;
240
  }
241
- .block-list-items{}
242
- .block-list-items a{ text-decoration: none}
243
- .block-list-items .item{
 
 
 
 
 
244
  display: inline-block;
245
  vertical-align: top;
246
  width: 18%;
@@ -250,7 +261,7 @@ wp_enqueue_script('wcps_js');
250
 
251
  @media (max-width: 1199.98px) {
252
 
253
- .block-list-items .item{
254
  width: 46%;
255
 
256
  }
@@ -258,7 +269,7 @@ wp_enqueue_script('wcps_js');
258
 
259
  @media (max-width: 767.98px) {
260
 
261
- .block-list-items .item{
262
  width: 46%;
263
 
264
  }
@@ -266,7 +277,7 @@ wp_enqueue_script('wcps_js');
266
  }
267
 
268
  @media (max-width: 575.98px) {
269
- .block-list-items .item{
270
  width: 95%;
271
 
272
  }
@@ -276,57 +287,66 @@ wp_enqueue_script('wcps_js');
276
 
277
 
278
 
279
- .block-list-items .item-top-area{}
280
- .block-list-items .block-thumb{
 
281
  /* float: left; */
282
  overflow: hidden;
283
  /* margin-right: 15px; */
284
  height: 280px;
285
  border-bottom: 1px solid #ddd;
286
  }
287
- .block-list-items .block-thumb img{
 
288
  width: 100%;
289
  }
290
 
291
- .block-list-items .block-name{
292
  font-weight: 600;
293
  font-size: 18px;
294
  }
295
- .block-list-items .block-content{
 
296
  padding: 15px;
297
  }
298
- .item .actions{
 
299
  margin: 10px;
300
  }
301
 
302
- .item .is_pro{
303
  background: #3f51b5;
304
  color: #fff;
305
  }
306
- .item .is_free{
 
307
  background: #449862;
308
  color: #fff;
309
  }
310
 
311
- .block-save{}
312
- .block-save.saved{
 
313
  color: #00a04f;
314
  }
315
 
316
- .block-save span{
317
  line-height: normal;
318
  display: inline-block;
319
  }
320
 
321
- .block-list-items .demo-wrap{}
322
- .block-list-items .block-action{
 
323
  float: right;
324
  display: inline-block;
325
  padding: 15px;
326
  text-align: right;
327
  }
328
- .plugin-required{}
329
- .plugin-required a{
 
 
330
  text-decoration: none;
331
  }
332
 
@@ -341,47 +361,53 @@ wp_enqueue_script('wcps_js');
341
 
342
 
343
 
344
- .block-list-items .item-bottom-area{
345
  padding: 10px;
346
  background: #f7f7f7;
347
  border-top: 1px solid #ddd;
348
  }
349
- .item-bottom-area .col-left{
 
350
  width: 49%;
351
  display: inline-block;
352
  vertical-align: top;
353
  }
354
- .item-bottom-area .col-right{
 
355
  width: 49%;
356
  display: inline-block;
357
  text-align: right;
358
  }
359
- .item-bottom-area .col-left .star-rate{
 
360
  margin-bottom: 10px;
361
  }
362
- .item-bottom-area .col-left .star-rate .dashicons{
 
363
  color: #ffb900;
364
  }
365
- .item-bottom-area .col-left .download-count{}
366
 
367
- .item-bottom-area .col-right .author-link{
 
 
368
  margin-bottom: 10px;
369
  }
370
 
371
 
372
 
373
- .paginate{
374
  text-align: center;
375
  margin: 40px;
376
  }
377
 
378
- .paginate .page-numbers{
379
  background: #f7f7f7;
380
  padding: 10px 15px;
381
  margin: 5px;
382
  text-decoration: none;
383
  }
384
- .paginate .page-numbers.current{
 
385
  background: #e4e4e4;
386
  }
387
 
@@ -397,19 +423,22 @@ wp_enqueue_script('wcps_js');
397
 
398
  /*wpblockhub-import-container*/
399
 
400
- .wpblockhub-import-container{
401
  position: relative;
402
  }
403
- .wpblockhub-import-btn{}
 
 
404
  .wpblockhub-import-container button {
405
  background: #3f51b5;
406
  color: #fff;
407
  }
408
- .wpblockhub-import-container .item-list-wrap.active{
 
409
  display: block;
410
  }
411
 
412
- .item-list-wrap{
413
  position: absolute;
414
  width: 300px;
415
  background: #fff;
@@ -433,8 +462,9 @@ wp_enqueue_script('wcps_js');
433
  transition: ease all 1s;
434
  }
435
 
436
- .item-list-wrap .item img{}
437
- .item-list-wrap .item:hover img{}
 
438
 
439
  /*.item-list-wrap .item img:before {*/
440
  /* transition: ease all 1s;*/
@@ -464,40 +494,46 @@ wp_enqueue_script('wcps_js');
464
  z-index: 99999;
465
  }
466
 
467
- .item-list-wrap .item:hover .item-import{
468
 
469
  display: block;
470
  }
471
 
472
- .item-list-wrap .item img{
473
  transition: ease all 1s;
474
  }
475
- .item-list-wrap .item:hover img{
 
476
  opacity: 0.3;
477
  }
478
 
479
- .item-list-wrap .item.loading{}
 
480
  .item-list-wrap .item.loading:before {
481
  content: "Loading...";
482
  }
483
- .item-list-wrap .categories{
 
484
  width: 100%;
485
  margin-bottom: 10px;
486
  }
487
- .item-list-wrap .keyword, .item-list-wrap .loading{
 
 
488
  width: 100%;
489
  }
490
 
491
 
492
 
493
- .item-list-wrap .load-more{
494
  width: 100%;
495
  text-align: center;
496
  }
497
 
498
 
499
- .item-list-wrap .plugins-required{}
500
- .item-list-wrap .plugins-required a{
 
501
  text-decoration: none;
502
  }
503
 
@@ -505,12 +541,11 @@ wp_enqueue_script('wcps_js');
505
 
506
  /*Sidebar .wpblockhub-import-wrap*/
507
 
508
- .wpblockhub-import-wrap{}
509
- .wpblockhub-import-header-wrap{
 
510
  padding: 15px;
511
  }
512
 
513
- .wpblockhub-import-header{
514
-
515
- }
516
  </style>
1
  <?php
2
+ if (!defined('ABSPATH')) exit; // if direct access
3
 
4
+ if (!current_user_can('manage_options')) return;
5
 
6
  $keyword = isset($_GET['keyword']) ? sanitize_text_field($_GET['keyword']) : '';
7
  $paged = isset($_GET['paged']) ? sanitize_text_field($_GET['paged']) : '';
12
 
13
  $max_num_pages = 0;
14
 
 
15
 
16
+ wp_enqueue_script('wcps_js', wcps_plugin_url . 'assets/admin/js/scripts-layouts.js', array('jquery'));
17
+ wp_localize_script(
18
+ 'wcps_js',
19
+ 'wcps_ajax',
20
+ array(
21
+ 'wcps_ajaxurl' => admin_url('admin-ajax.php'),
22
+ 'ajax_nonce' => wp_create_nonce('wcps_ajax_nonce'),
23
+ )
24
+ );
25
 
26
  //var_dump($_SERVER);
27
 
33
 
34
  <div class="wp-filter">
35
  <ul class="filter-links">
36
+ <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=latest" class="<?php if ($tabs == 'latest') echo 'current'; ?>" aria-current="page"><?php _e('Latest', 'woocommerce-products-slider'); ?></a> </li>
37
+ <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=free" class="<?php if ($tabs == 'free') echo 'current'; ?>" aria-current="page"><?php _e('Free', 'woocommerce-products-slider'); ?></a> </li>
38
+ <li class=""><a href="<?php echo esc_url_raw($_SERVER['REQUEST_URI']); ?>&tabs=pro" class="<?php if ($tabs == 'pro') echo 'current'; ?>" aria-current="page"><?php _e('Premium', 'woocommerce-products-slider'); ?></a> </li>
39
  </ul>
40
  <form class="block-search-form">
41
  <span class="loading"></span>
42
+ <input id="block-keyword" type="search" placeholder="<?php _e('Start typing...', 'wp-block-hub'); ?>" value="<?php echo esc_html($keyword); ?>">
 
43
  </form>
44
  </div>
45
 
62
  * Check is there any server error occurred
63
  *
64
  * */
65
+ if (is_wp_error($response)) {
66
 
67
+ ?>
68
  <div class="return-empty">
69
  <ul>
70
  <li><?php echo __("Unexpected Error! The query returned with an error.", 'woocommerce-products-slider'); ?></li>
71
  <li><?php echo __("Make sure your internet connection is up.", 'woocommerce-products-slider'); ?></li>
72
  </ul>
73
  </div>
74
+ <?php
75
 
76
 
77
+ } else {
 
78
 
79
  $response_data = json_decode(wp_remote_retrieve_body($response));
80
  $post_data = isset($response_data->posts) ? $response_data->posts : array();
90
  <div class="block-list-items">
91
  <?php
92
 
93
+ if (!empty($post_data)) :
94
 
95
+ foreach ($post_data as $item_index => $item) :
96
 
97
 
98
  //var_dump($item);
111
  //echo '<pre>'.var_export($is_pro, true).'</pre>';
112
 
113
 
114
+ ?>
115
 
116
  <div class="item">
117
  <div class="item-top-area">
118
 
119
+ <?php if (!empty($layout_preview_img)) : ?>
120
  <div class="block-thumb">
121
  <img src="<?php echo $layout_preview_img; ?>">
122
  </div>
131
 
132
  <?php
133
  if ($is_pro == 'yes' && empty($license_key)) {
134
+ } else {
135
+ ?>
136
+ <span class="button import-layout" post_id="<?php echo $post_id; ?>"><i class="fas fa-download"></i> Import (<?php echo $download_count; ?>)</span>
137
+ <?php
 
138
  }
139
 
140
  ?>
141
 
142
 
143
+ <?php if ($is_pro == 'yes') : ?>
144
  <span title="Enter license key to import" class="is_pro button"><i class="fas fa-crown"></i> Pro</span>
145
+ <?php else : ?>
146
  <span class="is_free button"><i class="far fa-lightbulb"></i> Free</span>
147
  <?php endif; ?>
148
 
152
  </div>
153
  <div class="clear"></div>
154
  </div>
155
+ <?php
156
  endforeach;
157
 
158
+ else :
159
 
160
  echo 'Server return empty. please try again later.';
161
  endif;
181
  'base' => preg_replace('/\?.*/', '', get_pagenum_link()) . '%_%',
182
  //'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
183
  'format' => '?paged=%#%',
184
+ 'current' => max(1, $paged),
185
+ 'total' => $max_num_pages,
186
  'prev_text' => '« Previous',
187
  'next_text' => 'Next »',
188
 
189
 
190
 
191
+ )
192
+ );
193
  ?>
194
  </div>
195
 
202
  <script>
203
  jQuery(document).ready(function($) {
204
 
205
+ var delay = (function() {
206
  var timer = 0;
207
+ return function(callback, ms) {
208
+ clearTimeout(timer);
209
  timer = setTimeout(callback, ms);
210
  };
211
  })();
212
 
213
 
214
+ $(document).on('keyup', '#block-keyword', function() {
215
  _this = this;
216
  keyword = $(this).val();
217
 
220
  var url = new URL(url);
221
 
222
 
223
+ delay(function() {
224
  $(_this).parent().children('.loading').addClass('button updating-message');
225
 
226
  url.searchParams.append('keyword', keyword);
227
  url.searchParams.delete('paged');
228
  window.location.href = url.href;
229
 
230
+ }, 1000);
231
 
232
 
233
  })
234
  })
235
  </script>
236
 
237
+ <style>
238
+ .block-search-form {
 
239
  float: right;
240
  padding: 10px;
241
  }
242
+
243
+ .block-search-form input[type="search"] {
244
  width: 225px;
245
  padding: 0 10px;
246
  }
247
+
248
+ .block-list-items {}
249
+
250
+ .block-list-items a {
251
+ text-decoration: none
252
+ }
253
+
254
+ .block-list-items .item {
255
  display: inline-block;
256
  vertical-align: top;
257
  width: 18%;
261
 
262
  @media (max-width: 1199.98px) {
263
 
264
+ .block-list-items .item {
265
  width: 46%;
266
 
267
  }
269
 
270
  @media (max-width: 767.98px) {
271
 
272
+ .block-list-items .item {
273
  width: 46%;
274
 
275
  }
277
  }
278
 
279
  @media (max-width: 575.98px) {
280
+ .block-list-items .item {
281
  width: 95%;
282
 
283
  }
287
 
288
 
289
 
290
+ .block-list-items .item-top-area {}
291
+
292
+ .block-list-items .block-thumb {
293
  /* float: left; */
294
  overflow: hidden;
295
  /* margin-right: 15px; */
296
  height: 280px;
297
  border-bottom: 1px solid #ddd;
298
  }
299
+
300
+ .block-list-items .block-thumb img {
301
  width: 100%;
302
  }
303
 
304
+ .block-list-items .block-name {
305
  font-weight: 600;
306
  font-size: 18px;
307
  }
308
+
309
+ .block-list-items .block-content {
310
  padding: 15px;
311
  }
312
+
313
+ .item .actions {
314
  margin: 10px;
315
  }
316
 
317
+ .item .is_pro {
318
  background: #3f51b5;
319
  color: #fff;
320
  }
321
+
322
+ .item .is_free {
323
  background: #449862;
324
  color: #fff;
325
  }
326
 
327
+ .block-save {}
328
+
329
+ .block-save.saved {
330
  color: #00a04f;
331
  }
332
 
333
+ .block-save span {
334
  line-height: normal;
335
  display: inline-block;
336
  }
337
 
338
+ .block-list-items .demo-wrap {}
339
+
340
+ .block-list-items .block-action {
341
  float: right;
342
  display: inline-block;
343
  padding: 15px;
344
  text-align: right;
345
  }
346
+
347
+ .plugin-required {}
348
+
349
+ .plugin-required a {
350
  text-decoration: none;
351
  }
352
 
361
 
362
 
363
 
364
+ .block-list-items .item-bottom-area {
365
  padding: 10px;
366
  background: #f7f7f7;
367
  border-top: 1px solid #ddd;
368
  }
369
+
370
+ .item-bottom-area .col-left {
371
  width: 49%;
372
  display: inline-block;
373
  vertical-align: top;
374
  }
375
+
376
+ .item-bottom-area .col-right {
377
  width: 49%;
378
  display: inline-block;
379
  text-align: right;
380
  }
381
+
382
+ .item-bottom-area .col-left .star-rate {
383
  margin-bottom: 10px;
384
  }
385
+
386
+ .item-bottom-area .col-left .star-rate .dashicons {
387
  color: #ffb900;
388
  }
 
389
 
390
+ .item-bottom-area .col-left .download-count {}
391
+
392
+ .item-bottom-area .col-right .author-link {
393
  margin-bottom: 10px;
394
  }
395
 
396
 
397
 
398
+ .paginate {
399
  text-align: center;
400
  margin: 40px;
401
  }
402
 
403
+ .paginate .page-numbers {
404
  background: #f7f7f7;
405
  padding: 10px 15px;
406
  margin: 5px;
407
  text-decoration: none;
408
  }
409
+
410
+ .paginate .page-numbers.current {
411
  background: #e4e4e4;
412
  }
413
 
423
 
424
  /*wpblockhub-import-container*/
425
 
426
+ .wpblockhub-import-container {
427
  position: relative;
428
  }
429
+
430
+ .wpblockhub-import-btn {}
431
+
432
  .wpblockhub-import-container button {
433
  background: #3f51b5;
434
  color: #fff;
435
  }
436
+
437
+ .wpblockhub-import-container .item-list-wrap.active {
438
  display: block;
439
  }
440
 
441
+ .item-list-wrap {
442
  position: absolute;
443
  width: 300px;
444
  background: #fff;
462
  transition: ease all 1s;
463
  }
464
 
465
+ .item-list-wrap .item img {}
466
+
467
+ .item-list-wrap .item:hover img {}
468
 
469
  /*.item-list-wrap .item img:before {*/
470
  /* transition: ease all 1s;*/
494
  z-index: 99999;
495
  }
496
 
497
+ .item-list-wrap .item:hover .item-import {
498
 
499
  display: block;
500
  }
501
 
502
+ .item-list-wrap .item img {
503
  transition: ease all 1s;
504
  }
505
+
506
+ .item-list-wrap .item:hover img {
507
  opacity: 0.3;
508
  }
509
 
510
+ .item-list-wrap .item.loading {}
511
+
512
  .item-list-wrap .item.loading:before {
513
  content: "Loading...";
514
  }
515
+
516
+ .item-list-wrap .categories {
517
  width: 100%;
518
  margin-bottom: 10px;
519
  }
520
+
521
+ .item-list-wrap .keyword,
522
+ .item-list-wrap .loading {
523
  width: 100%;
524
  }
525
 
526
 
527
 
528
+ .item-list-wrap .load-more {
529
  width: 100%;
530
  text-align: center;
531
  }
532
 
533
 
534
+ .item-list-wrap .plugins-required {}
535
+
536
+ .item-list-wrap .plugins-required a {
537
  text-decoration: none;
538
  }
539
 
541
 
542
  /*Sidebar .wpblockhub-import-wrap*/
543
 
544
+ .wpblockhub-import-wrap {}
545
+
546
+ .wpblockhub-import-header-wrap {
547
  padding: 15px;
548
  }
549
 
550
+ .wpblockhub-import-header {}
 
 
551
  </style>
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.36
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -141,6 +141,8 @@ then paste this shortcode anywhere in your page to display slider<br />
141
 
142
  == Changelog ==
143
 
 
 
144
 
145
  = 1.13.36 =
146
  * 2022-07-16 add - Minor PHP error issue fixed.
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.37
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.37 =
145
+ * 2022-08-10 fix - Scripts file loading issue fixed.
146
 
147
  = 1.13.36 =
148
  * 2022-07-16 add - Minor PHP error issue fixed.
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.36
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.36');
29
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
30
  //define('wcps_server_url', 'http://localhost/wp/');
31
 
@@ -153,15 +153,8 @@ class WoocommerceProductsSlider
153
  public function _admin_scripts()
154
  {
155
 
156
- wp_enqueue_script('wcps_js', plugins_url('assets/admin/js/scripts-layouts.js', __FILE__), array('jquery'));
157
- wp_localize_script(
158
- 'wcps_js',
159
- 'wcps_ajax',
160
- array(
161
- 'wcps_ajaxurl' => admin_url('admin-ajax.php'),
162
- 'ajax_nonce' => wp_create_nonce('wcps_ajax_nonce'),
163
- )
164
- );
165
 
166
  wp_register_style('font-awesome-4', wcps_plugin_url . 'assets/global/css/font-awesome-4.css');
167
  wp_register_style('font-awesome-5', wcps_plugin_url . 'assets/global/css/font-awesome-5.css');
@@ -171,10 +164,12 @@ class WoocommerceProductsSlider
171
  //wp_register_script('wcps-layouts-api', wcps_plugin_url.'assets/admin/js/scripts-layouts.js' , array( 'jquery' ));
172
  wp_register_script('jquery.lazy', wcps_plugin_url . 'assets/admin/js/jquery.lazy.js', array('jquery'));
173
 
 
174
 
175
 
176
- $settings_tabs_field = new settings_tabs_field();
177
- $settings_tabs_field->admin_scripts();
 
178
  }
179
  }
180
 
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.37
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.37');
29
  define('wcps_server_url', 'https://www.pickplugins.com/demo/woocommerce-products-slider/');
30
  //define('wcps_server_url', 'http://localhost/wp/');
31
 
153
  public function _admin_scripts()
154
  {
155
 
156
+ $screen = get_current_screen();
157
+
 
 
 
 
 
 
 
158
 
159
  wp_register_style('font-awesome-4', wcps_plugin_url . 'assets/global/css/font-awesome-4.css');
160
  wp_register_style('font-awesome-5', wcps_plugin_url . 'assets/global/css/font-awesome-5.css');
164
  //wp_register_script('wcps-layouts-api', wcps_plugin_url.'assets/admin/js/scripts-layouts.js' , array( 'jquery' ));
165
  wp_register_script('jquery.lazy', wcps_plugin_url . 'assets/admin/js/jquery.lazy.js', array('jquery'));
166
 
167
+ if ($screen->id == 'wcps_page_settings') {
168
 
169
 
170
+ $settings_tabs_field = new settings_tabs_field();
171
+ $settings_tabs_field->admin_scripts();
172
+ }
173
  }
174
  }
175