Woocommerce Products Slider - Version 1.2

Version Description

  • 10/12/2015 Remove featured marker update as text.
    • 10/12/2015 Update flat theme.
    • 10/12/2015 Removed some features.
    • 26/08/2014 javascripts conflit fixed.
    • 26/08/2014 query post error fixed.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Woocommerce Products Slider
Version 1.2
Comparing to
See all releases

Code changes from version 1.1 to 1.2

Files changed (42) hide show
  1. ParaAdmin/cross-mark.png +0 -0
  2. ParaAdmin/css/ParaAdmin.css +394 -0
  3. ParaAdmin/css/ParaIcons.css +82 -0
  4. ParaAdmin/css/icons/browser-firefox.png +0 -0
  5. ParaAdmin/css/icons/device-monitor.png +0 -0
  6. ParaAdmin/css/icons/globe.png +0 -0
  7. ParaAdmin/css/icons/keywords.png +0 -0
  8. themes/ruger/images/arrow-prev.png → ParaAdmin/css/icons/map-pin.png +0 -0
  9. themes/anti-ruger/images/arrow-prev.png → ParaAdmin/css/icons/os-apple.png +0 -0
  10. themes/ruger/images/arrow-next.png → ParaAdmin/css/icons/os-windows.png +0 -0
  11. ParaAdmin/css/icons/page.png +0 -0
  12. ParaAdmin/css/icons/share-hub.png +0 -0
  13. ParaAdmin/css/icons/user-crowd.png +0 -0
  14. ParaAdmin/css/icons/user-group.png +0 -0
  15. ParaAdmin/js/ParaAdmin.js +33 -0
  16. themes/anti-ruger/images/arrow-next.png → ParaAdmin/tik-mark.png +0 -0
  17. css/five-star.png +0 -0
  18. css/style.css +0 -46
  19. includes/wcps-functions.php +31 -25
  20. includes/wcps-meta.php +301 -646
  21. js/scripts.js +3 -17
  22. readme.txt +36 -13
  23. themes/anti-ruger/index.php +0 -373
  24. themes/anti-ruger/style.css +0 -210
  25. themes/flat/images/star.png +0 -0
  26. themes/flat/index.php +95 -42
  27. themes/flat/style.css +28 -9
  28. themes/rossi/index.php +97 -39
  29. themes/rossi/style.css +22 -33
  30. themes/ruger/index.php +0 -363
  31. themes/ruger/style.css +0 -206
  32. themes/saiga/images/arrow-next.png +0 -0
  33. themes/saiga/images/arrow-prev.png +0 -0
  34. themes/saiga/index.php +0 -360
  35. themes/saiga/style.css +0 -193
  36. themes/sako/images/arrow-next.png +0 -0
  37. themes/sako/images/arrow-prev.png +0 -0
  38. themes/sako/index.php +0 -359
  39. themes/sako/style.css +0 -206
  40. wcps-help.php +0 -114
  41. wcps-settings.php +192 -198
  42. woocommerce-products-slider.php +19 -194
ParaAdmin/cross-mark.png ADDED
Binary file
ParaAdmin/css/ParaAdmin.css ADDED
@@ -0,0 +1,394 @@
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+
5
+ /*Admin CSS*/
6
+
7
+ .para-settings {
8
+ margin: 20px 0;
9
+ }
10
+
11
+ .para-settings .option-box {
12
+ border-left: 3px solid rgb(255, 255, 255);
13
+ margin: 10px 0;
14
+ padding: 10px;
15
+ }
16
+
17
+
18
+ .para-settings .option-box:hover {
19
+ background: #e6e6e6;
20
+ border-left: 3px solid #11b063;
21
+ }
22
+
23
+
24
+ .para-settings .option-box .option-title {
25
+ font-size: 16px;
26
+ font-weight: bold;
27
+ }
28
+
29
+ .para-settings .option-box .option-info {
30
+ color: rgb(73, 147, 14);
31
+ font-size: 13px;
32
+ font-weight: normal;
33
+ margin: 10px 0;
34
+ }
35
+
36
+ .para-settings ul.tab-nav {
37
+ clear: both;
38
+ margin: 0;
39
+ padding: 0;
40
+ }
41
+
42
+ .para-settings ul.tab-nav li {
43
+ background: none repeat scroll 0 0 rgb(230, 230, 230);
44
+ border-left: 1px solid rgb(199, 199, 199);
45
+ cursor: pointer;
46
+ display: inline-block;
47
+ float: left;
48
+ margin: 0;
49
+ padding: 8px 15px;
50
+ }
51
+
52
+ .para-settings ul.tab-nav li.active{
53
+ background:#d8d6d6;
54
+ border-top:2px solid #11b063;
55
+ padding-top:6px;
56
+ font-weight: bold;
57
+ }
58
+ .para-settings ul.box {
59
+ clear: both;
60
+ margin: 0;
61
+ padding: 0;
62
+ }
63
+
64
+ .para-settings ul.box li.tab-box {
65
+ border: 1px solid rgb(153, 153, 153);
66
+ display: none;
67
+ margin: 0;
68
+ width: 100%;
69
+ }
70
+
71
+
72
+
73
+
74
+ .para-settings .new_user_profile_social {
75
+ margin: 15px 5px;
76
+ }
77
+
78
+
79
+
80
+ .para-settings ul.voting-bg-img-list{}
81
+
82
+ .para-settings ul.voting-bg-img-list li {
83
+ display: inline-block;
84
+ margin: 5px;
85
+ }
86
+ .para-settings ul.voting-bg-img-list li.bg-selected {}
87
+
88
+ .para-settings ul.voting-bg-img-list li img{border: 2px solid #ffffff;}
89
+
90
+ .para-settings ul.voting-bg-img-list li.bg-selected img{
91
+ border: 2px solid #ff5a11;
92
+ }
93
+
94
+
95
+ .para-settings h2 {
96
+ font-size: 20px;
97
+ font-weight: bold;
98
+ margin: 25px 0;
99
+ }
100
+
101
+ .para-settings .pricing-table{
102
+
103
+ }
104
+
105
+ .para-settings .pricing-table .column {
106
+ border-bottom: 1px solid #ff9601;
107
+ border-left: 1px solid #ff9601;
108
+ border-top: 1px solid #ff9601;
109
+ display: inline-block;
110
+ float: left;
111
+ text-align: center;
112
+ vertical-align: top;
113
+ width: 48%;
114
+ }
115
+
116
+ .para-settings .pricing-table .column:last-child {
117
+ border-right: 1px solid #ff9601;
118
+ }
119
+
120
+ .para-settings .paln {
121
+
122
+ border-bottom: 1px solid rgb(255, 150, 1);
123
+ display: block;
124
+ font-size: 20px;
125
+ font-weight: bold;
126
+ line-height: 30px;
127
+ padding: 10px 0;
128
+ }
129
+ .para-settings .cell {
130
+ border-bottom: 1px solid rgb(255, 150, 1);
131
+ display: block;
132
+ line-height: 20px;
133
+ padding: 7px 0;
134
+ }
135
+
136
+ .para-settings .hidden-mob {
137
+
138
+ display: none;
139
+
140
+ }
141
+
142
+
143
+
144
+ .para-settings .green {
145
+ background: url("tik-mark.png") no-repeat scroll 0 3px rgba(0, 0, 0, 0);
146
+ display: inline-block;
147
+ padding-left: 25px;
148
+ line-height: 20px;
149
+
150
+ }
151
+
152
+ .para-settings .red {
153
+ background: url("cross-mark.png") no-repeat scroll 0 3px rgba(0, 0, 0, 0);
154
+ display: inline-block;
155
+ padding-left: 25px;
156
+ line-height: 20px;
157
+
158
+ }
159
+
160
+ .para-settings .price {
161
+ font-size: 18px;
162
+ font-weight: bold;
163
+ padding: 25px 0;
164
+ border-bottom: 1px solid rgb(255, 150, 1);
165
+ }
166
+
167
+
168
+ .para-settings .buy-now {
169
+ background: none repeat scroll 0 0 rgb(221, 221, 221);
170
+ border-bottom: 2px solid rgb(157, 157, 157);
171
+ border-radius: 12px;
172
+ padding: 2px 12px;
173
+ text-decoration: none;
174
+ }
175
+
176
+ .para-settings .buy-now:hover {
177
+
178
+ border-bottom: 2px solid #706f6f;
179
+
180
+ }
181
+
182
+
183
+
184
+ .para-settings .data-table {
185
+ border: 1px solid rgb(199, 199, 199);
186
+ border-collapse: collapse;
187
+ }
188
+
189
+ .para-settings .data-table tr {
190
+ border-bottom: 1px solid rgb(199, 199, 199);
191
+ }
192
+
193
+
194
+ .para-settings .data-table th {
195
+ border-bottom: 2px solid rgb(253, 197, 28);
196
+ border-collapse: collapse;
197
+ padding: 10px 20px 10px 8px;
198
+ }
199
+
200
+
201
+ .para-settings .data-table td {
202
+ border-bottom: 1px solid rgb(199, 199, 199);
203
+ border-collapse: collapse;
204
+ padding: 10px 20px 10px 8px;
205
+ }
206
+
207
+ .para-settings .button {
208
+ margin: 20px 0;
209
+ }
210
+
211
+ .para-settings .success {
212
+ background: none repeat scroll 0 0 rgb(105, 221, 157);
213
+ padding: 5px 10px;
214
+ display:none;
215
+ }
216
+ .para-settings .para-form-table {
217
+
218
+ border-collapse: collapse;
219
+ }
220
+
221
+ .para-settings .para-form-table tr {
222
+
223
+ }
224
+
225
+
226
+ .para-settings .para-form-table th {
227
+ border-collapse: collapse;
228
+ padding: 10px 20px 10px 8px;
229
+ text-align: left;
230
+ vertical-align: top;
231
+ width: 200px;
232
+ }
233
+
234
+ .para-settings .para-form-table td {
235
+
236
+ border-collapse: collapse;
237
+ padding: 10px 20px 10px 8px;
238
+ }
239
+
240
+ .para-settings pre {
241
+
242
+ }
243
+
244
+
245
+
246
+ /*para-dashboard*/
247
+
248
+ .para-dashboard {
249
+ background: none repeat scroll 0 0 rgb(91, 116, 145);
250
+ padding: 10px;
251
+ }
252
+
253
+ .para-dashboard .dash-box {
254
+ background: none repeat scroll 0 0 rgb(93, 126, 163);
255
+ border: 1px solid rgb(122, 170, 223);
256
+ display: inline-block;
257
+ height: auto;
258
+ margin-bottom: 30px;
259
+ margin-right: 10px;
260
+ margin-top: 0;
261
+ overflow: hidden;
262
+ padding-bottom: 30px;
263
+ vertical-align: top;
264
+ width: 350px;
265
+ }
266
+
267
+ .para-dashboard .dash-box-title {
268
+ background: none repeat scroll 0 0 rgb(100, 140, 186);
269
+ color: rgb(255, 255, 255);
270
+ font-size: 16px;
271
+ font-weight: bold;
272
+ line-height: 30px;
273
+ padding: 0 10px;
274
+ }
275
+
276
+ .para-dashboard .dash-box-title .fa {
277
+ padding-right: 10px;
278
+ }
279
+
280
+ .para-dashboard .dash-box-info {
281
+ color: rgb(238, 238, 238);
282
+ font-size: 12px;
283
+ padding: 10px;
284
+ }
285
+
286
+ .para-dashboard .dash-box .total-online {
287
+ color: rgb(255, 255, 255);
288
+ font-size: 40px;
289
+ padding: 30px 10px 10px;
290
+ text-align: center;
291
+ }
292
+
293
+ .para-dashboard .dash-box .total-session {
294
+ color: rgb(255, 255, 255);
295
+ font-size: 40px;
296
+ padding: 30px 10px 10px;
297
+ text-align: center;
298
+ }
299
+
300
+
301
+
302
+
303
+ .para-dashboard .dash-box .para-data-table {
304
+ border: 1px solid rgb(221, 221, 221);
305
+ border-collapse: collapse;
306
+ color: rgb(255, 255, 255);
307
+ text-align: left;
308
+ }
309
+
310
+ .para-dashboard .dash-box .para-data-table th {
311
+ padding: 7px;
312
+ }
313
+ .para-dashboard .dash-box tr {
314
+ border-bottom: 1px solid rgb(221, 221, 221);
315
+ }
316
+ .para-dashboard .dash-box .para-data-table td {
317
+ padding: 5px;
318
+ }
319
+
320
+ .para-dashboard .dash-box .para-data-table a {
321
+ color: rgb(255, 255, 255);
322
+ text-decoration: none;
323
+ }
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ @media all and (max-width: 799px) {
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ .para-settings ul.tab-nav li {
353
+ display: block;
354
+ float: none;
355
+
356
+ }
357
+
358
+ .para-settings ul.tab-nav li.active{
359
+ font-weight: bold;
360
+ }
361
+
362
+
363
+
364
+
365
+
366
+ .para-settings .pricing-table .column {
367
+ display:block;
368
+ float:none;
369
+ width:100%;
370
+ border-right: 1px solid #ff9601;
371
+ margin: 50px 0;
372
+
373
+ }
374
+
375
+
376
+
377
+
378
+
379
+
380
+ }
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
ParaAdmin/css/ParaIcons.css ADDED
@@ -0,0 +1,82 @@
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+
5
+ /*Admin CSS*/
6
+
7
+ .para-icons {
8
+ padding-left: 25px;
9
+
10
+ }
11
+
12
+ .para-icons.globe {
13
+ background: url("icons/globe.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
14
+
15
+ }
16
+
17
+ .para-icons.os-windows {
18
+ background: url("icons/os-windows.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
19
+
20
+ }
21
+
22
+
23
+ .para-icons.device-monitor {
24
+ background: url("icons/device-monitor.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
25
+
26
+ }
27
+
28
+ .para-icons.browser-firefox {
29
+ background: url("icons/browser-firefox.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
30
+
31
+ }
32
+
33
+
34
+ .para-icons.keywords {
35
+ background: url("icons/keywords.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
36
+
37
+ }
38
+
39
+ .para-icons.map-pin {
40
+ background: url("icons/map-pin.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
41
+
42
+ }
43
+
44
+
45
+
46
+ .para-icons.share-hub {
47
+ background: url("icons/share-hub.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
48
+
49
+ }
50
+
51
+ .para-icons.page {
52
+ background: url("icons/page.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
53
+
54
+ }
55
+
56
+ .para-icons.user-group {
57
+ background: url("icons/user-group.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
58
+
59
+ }
60
+
61
+ .para-icons.user-crowd {
62
+ background: url("icons/user-crowd.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
63
+
64
+ }
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
ParaAdmin/css/icons/browser-firefox.png ADDED
Binary file
ParaAdmin/css/icons/device-monitor.png ADDED
Binary file
ParaAdmin/css/icons/globe.png ADDED
Binary file
ParaAdmin/css/icons/keywords.png ADDED
Binary file
themes/ruger/images/arrow-prev.png → ParaAdmin/css/icons/map-pin.png RENAMED
Binary file
themes/anti-ruger/images/arrow-prev.png → ParaAdmin/css/icons/os-apple.png RENAMED
Binary file
themes/ruger/images/arrow-next.png → ParaAdmin/css/icons/os-windows.png RENAMED
Binary file
ParaAdmin/css/icons/page.png ADDED
Binary file
ParaAdmin/css/icons/share-hub.png ADDED
Binary file
ParaAdmin/css/icons/user-crowd.png ADDED
Binary file
ParaAdmin/css/icons/user-group.png ADDED
Binary file
ParaAdmin/js/ParaAdmin.js ADDED
@@ -0,0 +1,33 @@
1
+
2
+ jQuery(document).ready(function($)
3
+ {
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ $(document).on('click', '.tab-nav li', function()
13
+ {
14
+ $(".active").removeClass("active");
15
+ $(this).addClass("active");
16
+
17
+ var nav = $(this).attr("nav");
18
+
19
+ $(".box li.tab-box").css("display","none");
20
+ $(".box"+nav).css("display","block");
21
+
22
+ })
23
+
24
+
25
+
26
+ });
27
+
28
+
29
+
30
+
31
+
32
+
33
+
themes/anti-ruger/images/arrow-next.png → ParaAdmin/tik-mark.png RENAMED
Binary file
css/five-star.png ADDED
Binary file
css/style.css CHANGED
@@ -20,51 +20,6 @@
20
21
22
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
- #wcps_metabox ul.tab-nav {
32
- clear: both;
33
- margin: 0;
34
- padding: 0;
35
- }
36
-
37
- #wcps_metabox ul.tab-nav li {
38
- background: #e6e6e6;
39
- cursor: pointer;
40
- display: inline-block;
41
- float: left;
42
- margin: 0;
43
- padding: 8px 15px;
44
- }
45
-
46
- #wcps_metabox ul.tab-nav li.active{
47
- background:#d8d6d6;
48
- border-top:2px solid #11b063;
49
- padding-top:6px;
50
- }
51
- #wcps_metabox ul.box {
52
- clear: both;
53
- margin: 0;
54
- padding: 0;
55
- }
56
-
57
- #wcps_metabox ul.box li.tab-box {
58
- border: 1px solid rgb(153, 153, 153);
59
- display: none;
60
- margin: 0;
61
- padding: 20px 0 10px 10px;
62
- width: 100%;
63
- }
64
-
65
-
66
-
67
-
68
#wcps_metabox .wcps_loading_taxonomy_category {
69
background: url("loading.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
70
height: 11px;
@@ -128,7 +83,6 @@
128
.wcps-container {
129
margin: 50px 0;
130
overflow: hidden;
131
- padding: 40px 0;
132
position: relative;
133
}
134
20
21
22
23
#wcps_metabox .wcps_loading_taxonomy_category {
24
background: url("loading.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
25
height: 11px;
83
.wcps-container {
84
margin: 50px 0;
85
overflow: hidden;
86
position: relative;
87
}
88
includes/wcps-functions.php CHANGED
@@ -2,30 +2,6 @@
2
3
4
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
function wcps_get_all_product_ids($postid)
30
{
31
@@ -242,5 +218,35 @@ function wcps_dark_color($input_color)
242
243
244
245
-
246
2
3
4
5
function wcps_get_all_product_ids($postid)
6
{
7
218
219
220
221
+
222
+
223
+ function wcps_share_plugin()
224
+ {
225
+
226
+ ?>
227
+ <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwordpress.org%2Fplugins%2Fwoocommerce-products-slider%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=652982311485932" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
228
+
229
+ <br />
230
+ <!-- Place this tag in your head or just before your close body tag. -->
231
+ <script src="https://apis.google.com/js/platform.js" async defer></script>
232
+
233
+ <!-- Place this tag where you want the +1 button to render. -->
234
+ <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300" data-href="<?php echo wcps_share_url; ?>"></div>
235
+
236
+ <br />
237
+ <br />
238
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo wcps_share_url; ?>" data-text="<?php echo wcps_plugin_name; ?>" data-via="ParaTheme" data-hashtags="WordPress">Tweet</a>
239
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
240
+
241
+
242
+
243
+ <?php
244
+
245
+
246
+
247
+
248
+
249
+ }
250
+
251
+
252
includes/wcps-meta.php CHANGED
@@ -66,7 +66,10 @@ function meta_boxes_wcps_input( $post ) {
66
$wcps_bg_img = get_post_meta( $post->ID, 'wcps_bg_img', true );
67
$wcps_themes = get_post_meta( $post->ID, 'wcps_themes', true );
68
$wcps_total_items = get_post_meta( $post->ID, 'wcps_total_items', true );
69
- $wcps_column_number = get_post_meta( $post->ID, 'wcps_column_number', true );
70
$wcps_auto_play = get_post_meta( $post->ID, 'wcps_auto_play', true );
71
$wcps_stop_on_hover = get_post_meta( $post->ID, 'wcps_stop_on_hover', true );
72
$wcps_slider_navigation = get_post_meta( $post->ID, 'wcps_slider_navigation', true );
@@ -76,8 +79,6 @@ function meta_boxes_wcps_input( $post ) {
76
$wcps_pagination_slide_speed = get_post_meta( $post->ID, 'wcps_pagination_slide_speed', true );
77
$wcps_slider_pagination_count = get_post_meta( $post->ID, 'wcps_slider_pagination_count', true );
78
79
- $wcps_slider_pagination_bg = get_post_meta( $post->ID, 'wcps_slider_pagination_bg', true );
80
- $wcps_slider_pagination_text_color = get_post_meta( $post->ID, 'wcps_slider_pagination_text_color', true );
81
82
$wcps_slider_touch_drag = get_post_meta( $post->ID, 'wcps_slider_touch_drag', true );
83
$wcps_slider_mouse_drag = get_post_meta( $post->ID, 'wcps_slider_mouse_drag', true );
@@ -95,48 +96,16 @@ function meta_boxes_wcps_input( $post ) {
95
96
97
$wcps_cart_bg = get_post_meta( $post->ID, 'wcps_cart_bg', true );
98
- $wcps_cart_text_color = get_post_meta( $post->ID, 'wcps_cart_text_color', true );
99
-
100
- $wcps_items_title_color = get_post_meta( $post->ID, 'wcps_items_title_color', true );
101
- $wcps_items_title_font_size = get_post_meta( $post->ID, 'wcps_items_title_font_size', true );
102
-
103
- $wcps_items_price_color = get_post_meta( $post->ID, 'wcps_items_price_color', true );
104
- $wcps_items_price_font_size = get_post_meta( $post->ID, 'wcps_items_price_font_size', true );
105
-
106
$wcps_items_thumb_size = get_post_meta( $post->ID, 'wcps_items_thumb_size', true );
107
$wcps_items_thumb_max_hieght = get_post_meta( $post->ID, 'wcps_items_thumb_max_hieght', true );
108
109
- $wcps_ribbon_name = get_post_meta( $post->ID, 'wcps_ribbon_name', true );
110
-
111
112
113
114
-
115
-
116
-
117
118
119
120
-
121
- $wcps_customer_type = get_option('wcps_customer_type');
122
-
123
- if($wcps_customer_type=="free")
124
- {
125
- echo '<script>
126
- jQuery(document).ready(function()
127
- {
128
- jQuery(".wcps_taxonomy_category, .wcps_product_ids, #wcps_items_price_color, #wcps_items_title_color, .wcps_themes_saiga, .wcps_themes_sako, .wcps_themes_ruger, .wcps_themes_ruger, #wcps_content_source_taxonomy, #wcps_content_source_product_id").attr("title","Only For Premium Version")
129
- jQuery(".wcps_taxonomy_category, .wcps_product_ids, #wcps_items_price_color, #wcps_items_title_color, .wcps_themes_saiga, .wcps_themes_sako, .wcps_themes_ruger, .wcps_themes_ruger, #wcps_content_source_taxonomy, #wcps_content_source_product_id").attr("disabled","disabled")
130
-
131
- })
132
- </script>';
133
-
134
- }
135
- elseif($wcps_customer_type=="pro")
136
- {
137
- //premium customer support.
138
- }
139
-
140
?>
141
142
@@ -151,85 +120,45 @@ function meta_boxes_wcps_input( $post ) {
151
152
153
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <table class="form-table">
162
-
163
-
164
-
165
-
166
-
167
- <tr valign="top">
168
- <td >
169
-
170
- <strong>Shortcode</strong><br />
171
- <span style=" color:#22aa5d;font-size: 12px;">Copy this shortcode and paste on page or post where you want to display slider. <br />Use PHP code to your themes file to display slider.</span>
172
-
173
- <br /> <br />
174
- <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[wcps <?php echo ' id="'.$post->ID.'"';?> ]</textarea>
175
<br /><br />
176
PHP Code:<br />
177
<textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[wcps id='; echo "'".$post->ID."' ]"; echo '"); ?>'; ?></textarea>
178
-
179
- <br />
180
181
- </td>
182
- </tr>
183
184
-
185
-
186
-
187
-
188
-
189
- <tr valign="top">
190
-
191
- <td style="vertical-align:middle;">
192
-
193
- <ul class="tab-nav">
194
- <li nav="1" class="nav1 active">Slider Options</li>
195
- <li nav="2" class="nav2">Slider Style</li>
196
- <li nav="3" class="nav3">Slider Content</li>
197
198
- </ul>
199
-
200
-
201
- <ul class="box">
202
<li style="display: block;" class="box1 tab-box active">
203
-
204
-
205
- <table>
206
- <tr valign="top">
207
- <td style="vertical-align:middle;">
208
- <strong>Slider Total Items</strong><br /><br />
209
-
210
- <input type="text" size="5" name="wcps_total_items" value="<?php if(!empty($wcps_total_items))echo $wcps_total_items; else echo 15; ?>" />
211
-
212
- </td>
213
- </tr>
214
-
215
-
216
-
217
- <tr valign="top">
218
- <td style="vertical-align:middle;">
219
- <strong>Slider Column Number</strong><br /><br />
220
-
221
- <input type="text" size="5" name="wcps_column_number" value="<?php if(!empty($wcps_column_number))echo $wcps_column_number; else echo 5; ?>" />
222
-
223
- </td>
224
- </tr>
225
226
227
228
- <tr valign="top">
229
- <td style="vertical-align:middle;">
230
- <strong>Slider Auto Play</strong><br /><br />
231
-
232
- <input type="checkbox" id="wcps_auto_play" name="wcps_auto_play" value="true" <?php if(($wcps_auto_play=="true")) echo "checked"; else echo ""; ?> />
233
<?php if(($wcps_auto_play=="true")) { ?>
234
<label for="wcps_auto_play" >Active</label>
235
<?php }
@@ -240,18 +169,12 @@ function meta_boxes_wcps_input( $post ) {
240
<label for="wcps_auto_play" >Inactive</label>
241
<?php
242
}
243
- ?>
244
-
245
- </td>
246
- </tr>
247
-
248
-
249
-
250
- <tr valign="top">
251
- <td style="vertical-align:middle;">
252
- <strong>Slider Stop on Hover</strong><br /><br />
253
-
254
- <input type="checkbox" id="wcps_stop_on_hover" name="wcps_stop_on_hover" value="true" <?php if(($wcps_stop_on_hover=="true")) echo "checked"; else echo ""; ?> />
255
<?php if(($wcps_stop_on_hover=="true")) { ?>
256
<label for="wcps_stop_on_hover" >Active</label>
257
<?php }
@@ -262,19 +185,12 @@ function meta_boxes_wcps_input( $post ) {
262
<label for="wcps_stop_on_hover" >Inactive</label>
263
<?php
264
}
265
- ?>
266
-
267
- </td>
268
- </tr>
269
-
270
-
271
-
272
-
273
- <tr valign="top">
274
- <td style="vertical-align:middle;">
275
- <strong>Slider Navigation at Top</strong><br /><br />
276
-
277
- <input type="checkbox" id="wcps_slider_navigation" name="wcps_slider_navigation" value="true" <?php if(($wcps_slider_navigation=="true")) echo "checked"; else echo ""; ?> />
278
<?php if(($wcps_slider_navigation=="true")) { ?>
279
<label for="wcps_slider_navigation" >Active</label>
280
<?php }
@@ -285,23 +201,13 @@ function meta_boxes_wcps_input( $post ) {
285
<label for="wcps_slider_navigation" >Inactive</label>
286
<?php
287
}
288
- ?>
289
-
290
- </td>
291
- </tr>
292
-
293
-
294
-
295
296
-
297
-
298
-
299
-
300
- <tr valign="top">
301
- <td style="vertical-align:middle;">
302
- <strong>Slider Pagination at Bottom</strong><br /><br />
303
-
304
- <input type="checkbox" id="wcps_slider_pagination" name="wcps_slider_pagination" value="true" <?php if(($wcps_slider_pagination=="true")) echo "checked"; else echo ""; ?> />
305
<?php if(($wcps_slider_pagination=="true")) { ?>
306
<label for="wcps_slider_pagination" >Active</label>
307
<?php }
@@ -312,17 +218,12 @@ function meta_boxes_wcps_input( $post ) {
312
<label for="wcps_slider_pagination" >Inactive</label>
313
<?php
314
}
315
- ?>
316
-
317
- </td>
318
- </tr>
319
-
320
-
321
- <tr valign="top">
322
- <td style="vertical-align:middle;">
323
- <strong>Pagination Number Counting</strong><br /><br />
324
-
325
- <input type="checkbox" id="wcps_slider_pagination_count" name="wcps_slider_pagination_count" value="true" <?php if(($wcps_slider_pagination_count=="true")) echo "checked"; else echo ""; ?> />
326
<?php if(($wcps_slider_pagination_count=="true")) { ?>
327
<label for="wcps_slider_pagination_count" >Active</label>
328
<?php }
@@ -333,48 +234,23 @@ function meta_boxes_wcps_input( $post ) {
333
<label for="wcps_slider_pagination_count" >Inactive</label>
334
<?php
335
}
336
- ?>
337
-
338
- </td>
339
- </tr>
340
-
341
-
342
-
343
-
344
-
345
- <tr valign="top">
346
- <td style="vertical-align:middle;">
347
- <strong>Slide Speed</strong><br /><br />
348
-
349
- <input type="text" id="wcps_slide_speed" name="wcps_slide_speed" value="<?php if(!empty($wcps_slide_speed)) echo $wcps_slide_speed; else echo "1000"; ?>" />
350
-
351
- </td>
352
- </tr>
353
-
354
-
355
-
356
- <tr valign="top">
357
- <td style="vertical-align:middle;">
358
- <strong>Pagination Slide Speed</strong><br /><br />
359
-
360
- <input type="text" id="wcps_pagination_slide_speed" name="wcps_pagination_slide_speed" value="<?php if(!empty($wcps_pagination_slide_speed)) echo $wcps_pagination_slide_speed; else echo "1000"; ?>" />
361
-
362
- </td>
363
- </tr>
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- <tr valign="top">
374
- <td style="vertical-align:middle;">
375
- <strong>Slider Touch Drag Enabled</strong><br /><br />
376
-
377
- <input type="checkbox" id="wcps_slider_touch_drag" name="wcps_slider_touch_drag" value="true" <?php if(($wcps_slider_touch_drag=="true")) echo "checked"; else echo ""; ?> />
378
<?php if(($wcps_slider_touch_drag=="true")) { ?>
379
<label for="wcps_slider_touch_drag" >Active</label>
380
<?php }
@@ -385,18 +261,12 @@ function meta_boxes_wcps_input( $post ) {
385
<label for="wcps_slider_touch_drag" >Inactive</label>
386
<?php
387
}
388
- ?>
389
-
390
- </td>
391
- </tr>
392
-
393
-
394
-
395
- <tr valign="top">
396
- <td style="vertical-align:middle;">
397
- <strong>Slider Mouse Drag Enabled</strong><br /><br />
398
-
399
- <input type="checkbox" id="wcps_slider_mouse_drag" name="wcps_slider_mouse_drag" value="true" <?php if(($wcps_slider_mouse_drag=="true")) echo "checked"; else echo ""; ?> />
400
<?php if(($wcps_slider_mouse_drag=="true")) { ?>
401
<label for="wcps_slider_mouse_drag" >Active</label>
402
<?php }
@@ -407,165 +277,62 @@ function meta_boxes_wcps_input( $post ) {
407
<label for="wcps_slider_mouse_drag" >Inactive</label>
408
<?php
409
}
410
- ?>
411
-
412
- </td>
413
- </tr>
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
- </table>
424
-
425
-
426
-
427
-
428
-
429
</li>
430
- <li class="box2 tab-box">
431
-
432
- <table>
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
- <tr valign="top">
444
- <td style="vertical-align:middle;">
445
- <strong>Themes</strong><br /><br />
446
- <select name="wcps_themes" >
447
<option class="wcps_themes_flat" value="flat" <?php if($wcps_themes=="flat")echo "selected"; ?>>Flat</option>
448
<option class="wcps_themes_rossi" value="rossi" <?php if($wcps_themes=="rossi")echo "selected"; ?>>Rossi</option>
449
- <option class="wcps_themes_saiga" value="saiga" <?php if($wcps_themes=="saiga")echo "selected"; ?>>Saiga</option>
450
- <option class="wcps_themes_sako" value="sako" <?php if($wcps_themes=="sako")echo "selected"; ?>>Sako</option>
451
- <option class="wcps_themes_ruger" value="ruger" <?php if($wcps_themes=="ruger")echo "selected"; ?>>Ruger</option>
452
- <option class="wcps_themes_ruger" value="anti-ruger" <?php if($wcps_themes=="anti-ruger")echo "selected"; ?>>Anti Ruger</option>
453
- </select>
454
- </td>
455
- </tr>
456
-
457
-
458
-
459
- <tr valign="top">
460
- <td style="vertical-align:middle;">
461
- <strong>Slider Ribbon</strong><br /><br />
462
- <?php
463
-
464
- echo '<select name="wcps_ribbon_name" >';
465
-
466
- if(empty($wcps_ribbon_name))
467
- {
468
- $wcps_ribbon_name = "";
469
- }
470
- echo '<option value="none" '.(($wcps_ribbon_name=="none" ) ? "selected" : "").' >None</option>';
471
- echo '<option value="free" '.(($wcps_ribbon_name=="free" ) ? "selected" : "").' >Free</option>';
472
- echo '<option value="save" '.(($wcps_ribbon_name=="save" ) ? "selected" : "").' >Save</option>';
473
- echo '<option value="hot" '.(($wcps_ribbon_name=="hot" ) ? "selected" : "").' >Hot</option>';
474
- echo '<option value="pro" '.(($wcps_ribbon_name=="pro" ) ? "selected" : "").' >Pro</option>';
475
- echo '<option value="best" '.(($wcps_ribbon_name=="best" ) ? "selected" : "").' >Best</option>';
476
- echo '<option value="gift" '.(($wcps_ribbon_name=="gift" ) ? "selected" : "").' >Gift</option>';
477
- echo '<option value="sale" '.(($wcps_ribbon_name=="sale" ) ? "selected" : "").' >Sale</option>';
478
- echo '<option value="new" '.(($wcps_ribbon_name=="new" ) ? "selected" : "").' >New</option>';
479
- echo '<option value="top" '.(($wcps_ribbon_name=="top" ) ? "selected" : "").' >Top</option>';
480
- echo '<option value="fresh" '.(($wcps_ribbon_name=="fresh" ) ? "selected" : "").' >Fresh</option>';
481
-
482
- echo '<option value="dis-10" '.(($wcps_ribbon_name=="dis-10" ) ? "selected" : "").' >-10%</option>';
483
- echo '<option value="dis-20" '.(($wcps_ribbon_name=="dis-20" ) ? "selected" : "").' >-20%</option>';
484
- echo '<option value="dis-30" '.(($wcps_ribbon_name=="dis-30" ) ? "selected" : "").' >-30%</option>';
485
- echo '<option value="dis-40" '.(($wcps_ribbon_name=="dis-40" ) ? "selected" : "").' >-40%</option>';
486
-
487
- echo '<option value="dis-50" '.(($wcps_ribbon_name=="dis-50" ) ? "selected" : "").' >-50%</option>';
488
-
489
- echo '<option value="dis-60" '.(($wcps_ribbon_name=="dis-60" ) ? "selected" : "").' >-60%</option>';
490
-
491
- echo '<option value="dis-70" '.(($wcps_ribbon_name=="dis-70" ) ? "selected" : "").' >-70%</option>';
492
-
493
- echo '<option value="dis-80" '.(($wcps_ribbon_name=="dis-80" ) ? "selected" : "").' >-80%</option>';
494
-
495
- echo '<option value="dis-90" '.(($wcps_ribbon_name=="dis-90" ) ? "selected" : "").' >-90%</option>';
496
-
497
- echo '<option value="dis-100" '.(($wcps_ribbon_name=="dis-100" ) ? "selected" : "").' >-100%</option>';
498
-
499
-
500
- echo '</select><br />';
501
-
502
-
503
-
504
- ?>
505
- </td>
506
- </tr>
507
-
508
-
509
-
510
-
511
- <tr valign="top">
512
- <td style="vertical-align:middle;">
513
- <strong>Slider Thumbnail Size</strong><br /><br />
514
- <select name="wcps_items_thumb_size" >
515
<option value="thumbnail" <?php if($wcps_items_thumb_size=="thumbnail")echo "selected"; ?>>Thumbnail</option>
516
<option value="medium" <?php if($wcps_items_thumb_size=="medium")echo "selected"; ?>>medium</option>
517
<option value="large" <?php if($wcps_items_thumb_size=="large")echo "selected"; ?>>large</option>
518
<option value="full" <?php if($wcps_items_thumb_size=="full")echo "selected"; ?>>full</option>
519
520
- </select>
521
- </td>
522
- </tr>
523
-
524
-
525
-
526
- <tr valign="top">
527
- <td style="vertical-align:middle;">
528
- <strong>Slider thumb max hieght(px)</strong><br /><br />
529
- <input type="text" name="wcps_items_thumb_max_hieght" placeholder="14px" id="wcps_items_thumb_max_hieght" value="<?php if(!empty($wcps_items_thumb_max_hieght)) echo $wcps_items_thumb_max_hieght; else echo "200px"; ?>" />
530
- </td>
531
- </tr>
532
-
533
-
534
-
535
-
536
-
537
-
538
- <script>
539
- jQuery(document).ready(function(jQuery)
540
- {
541
- jQuery(".wcps_bg_img_list li").click(function()
542
- {
543
- jQuery('.wcps_bg_img_list li.bg-selected').removeClass('bg-selected');
544
- jQuery(this).addClass('bg-selected');
545
-
546
- var wcps_bg_img = jQuery(this).attr('data-url');
547
-
548
- jQuery('#wcps_bg_img').val(wcps_bg_img);
549
-
550
- })
551
-
552
-
553
- })
554
-
555
- </script>
556
-
557
-
558
-
559
-
560
-
561
-
562
- <tr valign="top">
563
-
564
- <td style="vertical-align:middle;">
565
566
- <strong>Background Image</strong><br /><br />
567
568
-
569
<?php
570
571
@@ -617,258 +384,60 @@ function meta_boxes_wcps_input( $post ) {
617
618
619
?>
620
- </td>
621
- </tr>
622
-
623
-
624
- <tr valign="top">
625
- <td style="vertical-align:middle;">
626
- <strong>Add to cart Background Color</strong><br /><br />
627
- <input type="text" name="wcps_cart_bg" id="wcps_cart_bg" value="<?php if(!empty($wcps_cart_bg)) echo $wcps_cart_bg; else echo "#0fcd95"; ?>" />
628
- </td>
629
- </tr>
630
-
631
- <tr valign="top">
632
- <td style="vertical-align:middle;">
633
- <strong>Add to cart Text Color</strong><br /><br />
634
- <input type="text" name="wcps_cart_text_color" id="wcps_cart_text_color" value="<?php if(!empty($wcps_cart_text_color)) echo $wcps_cart_text_color; else echo "#fff"; ?>" />
635
- </td>
636
- </tr>
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
- <tr valign="top">
646
- <td style="vertical-align:middle;">
647
- <strong>Items Title Color</strong><br /><br />
648
- <input type="text" name="wcps_items_title_color" id="wcps_items_title_color" value="<?php if(!empty($wcps_items_title_color)) echo $wcps_items_title_color; else echo "#0fcd95"; ?>" />
649
- </td>
650
- </tr>
651
-
652
-
653
- <tr valign="top">
654
- <td style="vertical-align:middle;">
655
- <strong>Items Title Font Size</strong><br /><br />
656
- <input type="text" name="wcps_items_title_font_size" placeholder="14px" id="wcps_items_title_font_size" value="<?php if(!empty($wcps_items_title_font_size)) echo $wcps_items_title_font_size; else echo "14px"; ?>" />
657
- </td>
658
- </tr>
659
-
660
-
661
-
662
-
663
-
664
-
665
- <tr valign="top">
666
- <td style="vertical-align:middle;">
667
- <strong>Items Price Color</strong><br /><br />
668
- <input type="text" name="wcps_items_price_color" id="wcps_items_price_color" value="<?php if(!empty($wcps_items_price_color)) echo $wcps_items_price_color; else echo "#0fcd95"; ?>" />
669
- </td>
670
- </tr>
671
-
672
-
673
- <tr valign="top">
674
- <td style="vertical-align:middle;">
675
- <strong>Items price Font Size</strong><br /><br />
676
- <input type="text" name="wcps_items_price_font_size" placeholder="14px" id="wcps_items_price_font_size" value="<?php if(!empty($wcps_items_price_font_size)) echo $wcps_items_price_font_size; else echo "14px"; ?>" />
677
- </td>
678
- </tr>
679
-
680
-
681
-
682
-
683
- <tr valign="top">
684
- <td style="vertical-align:middle;">
685
- <strong>Pagination Background Color</strong><br /><br />
686
- <input type="text" name="wcps_slider_pagination_bg" id="wcps_slider_pagination_bg" value="<?php if(!empty($wcps_slider_pagination_bg)) echo $wcps_slider_pagination_bg; else echo "#1eb286"; ?>" />
687
- </td>
688
- </tr>
689
-
690
-
691
- <tr valign="top">
692
- <td style="vertical-align:middle;">
693
- <strong>Pagination Text Color</strong><br /><br />
694
- <input type="text" name="wcps_slider_pagination_text_color" id="wcps_slider_pagination_text_color" value="<?php if(!empty($wcps_slider_pagination_text_color)) echo $wcps_slider_pagination_text_color; else echo "#fff"; ?>" />
695
- </td>
696
- </tr>
697
-
698
-
699
-
700
-
701
-
702
-
703
- </table>
704
-
705
-
706
- </li>
707
-
708
-
709
- <li class="box3 tab-box">
710
-
711
-
712
- <script>
713
-
714
- </script>
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
- <ul class="content_source_area" >
725
-
726
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_latest" type="radio" value="latest" <?php if($wcps_content_source=="latest") echo "checked";?> /> <label for="wcps_content_source_latest">Display from Latest Published</label>
727
- <div class="wcps_content_source_latest content-source-box">Slider items will query from latest published product.</div>
728
- </li>
729
-
730
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_older" type="radio" value="older" <?php if($wcps_content_source=="older") echo "checked";?> /> <label for="wcps_content_source_older">Display from Older Published</label>
731
- <div class="wcps_content_source_older content-source-box">Slider items will query from older published product.</div>
732
- </li>
733
-
734
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_featured" type="radio" value="featured" <?php if($wcps_content_source=="featured") echo "checked";?> /> <label for="wcps_content_source_featured">Display from Featured Items</label>
735
-
736
- <div class="wcps_content_source_featured content-source-box">Slider items will query from featured marked product.</div>
737
- </li>
738
-
739
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_year" type="radio" value="year" <?php if($wcps_content_source=="year") echo "checked";?> /> <label for="wcps_content_source_year">Display from Only Year</label>
740
-
741
- <div class="wcps_content_source_year content-source-box">Slider items will query from a year.
742
- <input type="text" size="7" class="wcps_content_year" name="wcps_content_year" value="<?php if(!empty($wcps_content_year)) echo $wcps_content_year;?>" placeholder="2014" />
743
- </div>
744
- </li>
745
-
746
-
747
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_month" type="radio" value="month" <?php if($wcps_content_source=="month") echo "checked";?> /> <label for="wcps_content_source_month">Display from Month</label>
748
-
749
- <div class="wcps_content_source_month content-source-box">Slider items will query from Month of a year. <br />
750
- <input type="text" size="7" class="wcps_content_month_year" name="wcps_content_month_year" value="<?php if(!empty($wcps_content_month_year)) echo $wcps_content_month_year;?>" placeholder="2014" />
751
- <input type="text" size="7" class="wcps_content_month" name="wcps_content_month" value="<?php if(!empty($wcps_content_month)) echo $wcps_content_month;?>" placeholder="06" />
752
- </div>
753
- </li>
754
-
755
-
756
-
757
-
758
-
759
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_taxonomy" type="radio" value="taxonomy" <?php if($wcps_content_source=="taxonomy") echo "checked";?> /> <label for="wcps_content_source_taxonomy">Display from Product Taxonomy & Categories</label>
760
-
761
- <div class="wcps_content_source_taxonomy content-source-box" >
762
-
763
-
764
- <table style="width:100%;" >
765
-
766
- <tr style="overflow:scroll; vertical-align:top;">
767
- <td style="overflow:scroll; vertical-align:top; padding:0; width:45%;">
768
-
769
-
770
-
771
- <?php
772
- $wcps_taxonomies = get_object_taxonomies( 'product' );
773
- foreach ($wcps_taxonomies as $taxonomy ) {
774
- ?>
775
-
776
-
777
- <label ><input type="radio" class="wcps_taxonomy" name="wcps_taxonomy" value="<?php echo $taxonomy; ?>" <?php if($wcps_taxonomy==$taxonomy) echo "checked";?> /><?php echo $taxonomy; ?></label><br />
778
-
779
- <?php
780
- }
781
- ?>
782
-
783
- </td>
784
- <td style=" height:auto;vertical-align:top; padding:0; width:45%;">
785
- <span class="wcps_loading_taxonomy_category" ></span>
786
- <div class="wcps_taxonomy_category">
787
-
788
- <?php
789
- if(!empty($wcps_taxonomy))
790
- {
791
- wcps_get_taxonomy_category($post->ID);
792
- }
793
- else
794
- {
795
-
796
- }
797
-
798
- ?>
799
-
800
-
801
- </div>
802
-
803
- </td>
804
- </tr>
805
-
806
-
807
- </table>
808
-
809
-
810
-
811
-
812
-
813
-
814
- </div>
815
- </li>
816
- <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_product_id" type="radio" value="product_id" <?php if($wcps_content_source=="product_id") echo "checked";?> /> <label for="wcps_content_source_product_id">Display by Product id</label>
817
-
818
- <div class="wcps_content_source_product_id content-source-box" >
819
-
820
- <table style="width:100%;" >
821
-
822
-
823
- <tr style="overflow:scroll; vertical-align:top;">
824
- <td colspan="2" style="overflow:scroll; vertical-align:top; padding:0; width:45%;">
825
-
826
- <div class="" style="max-height:300px; overflow-y:scroll; overflow-x:hidden;max-width:100%;" >
827
- <?php
828
-
829
- wcps_get_all_product_ids($post->ID);
830
-
831
832
- ?>
833
-
834
- </div>
835
-
836
-
837
838
- </td>
839
- </tr>
840
841
842
843
-
844
- </table>
845
-
846
-
847
- </div>
848
- </li>
849
- </ul>
850
-
851
-
852
-
853
</li>
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
</ul>
862
-
863
-
864
-
865
- </td>
866
- </tr>
867
-
868
- </table>
869
-
870
-
871
-
872
873
874
@@ -882,6 +451,8 @@ foreach ($wcps_taxonomies as $taxonomy ) {
882
883
884
885
<?php
886
887
@@ -921,48 +492,142 @@ function meta_boxes_wcps_save( $post_id ) {
921
// Sanitize user input.
922
$wcps_bg_img = sanitize_text_field( $_POST['wcps_bg_img'] );
923
$wcps_themes = sanitize_text_field( $_POST['wcps_themes'] );
924
- $wcps_total_items = sanitize_text_field( $_POST['wcps_total_items'] );
925
$wcps_column_number = sanitize_text_field( $_POST['wcps_column_number'] );
926
- $wcps_auto_play = sanitize_text_field( $_POST['wcps_auto_play'] );
927
- $wcps_stop_on_hover = sanitize_text_field( $_POST['wcps_stop_on_hover'] );
928
- $wcps_slider_navigation = sanitize_text_field( $_POST['wcps_slider_navigation'] );
929
$wcps_slide_speed = sanitize_text_field( $_POST['wcps_slide_speed'] );
930
931
- $wcps_slider_pagination = sanitize_text_field( $_POST['wcps_slider_pagination'] );
932
$wcps_pagination_slide_speed = sanitize_text_field( $_POST['wcps_pagination_slide_speed'] );
933
- $wcps_slider_pagination_count = sanitize_text_field( $_POST['wcps_slider_pagination_count'] );
934
935
- $wcps_slider_pagination_bg = sanitize_text_field( $_POST['wcps_slider_pagination_bg'] );
936
- $wcps_slider_pagination_text_color = sanitize_text_field( $_POST['wcps_slider_pagination_text_color'] );
937
938
- $wcps_slider_touch_drag = sanitize_text_field( $_POST['wcps_slider_touch_drag'] );
939
- $wcps_slider_mouse_drag = sanitize_text_field( $_POST['wcps_slider_mouse_drag'] );
940
941
$wcps_content_source = sanitize_text_field( $_POST['wcps_content_source'] );
942
$wcps_content_year = sanitize_text_field( $_POST['wcps_content_year'] );
943
$wcps_content_month = sanitize_text_field( $_POST['wcps_content_month'] );
944
$wcps_content_month_year = sanitize_text_field( $_POST['wcps_content_month_year'] );
945
946
- $wcps_taxonomy = sanitize_text_field( $_POST['wcps_taxonomy'] );
947
- $wcps_taxonomy_category = stripslashes_deep( $_POST['wcps_taxonomy_category'] );
948
949
- $wcps_product_ids = stripslashes_deep( $_POST['wcps_product_ids'] );
950
951
952
- $wcps_cart_bg = stripslashes_deep( $_POST['wcps_cart_bg'] );
953
- $wcps_cart_text_color = stripslashes_deep( $_POST['wcps_cart_text_color'] );
954
-
955
956
- $wcps_items_title_color = stripslashes_deep( $_POST['wcps_items_title_color'] );
957
- $wcps_items_title_font_size = stripslashes_deep( $_POST['wcps_items_title_font_size'] );
958
959
- $wcps_items_price_color = stripslashes_deep( $_POST['wcps_items_price_color'] );
960
- $wcps_items_price_font_size = stripslashes_deep( $_POST['wcps_items_price_font_size'] );
961
962
- $wcps_items_thumb_size = stripslashes_deep( $_POST['wcps_items_thumb_size'] );
963
- $wcps_items_thumb_max_hieght = stripslashes_deep( $_POST['wcps_items_thumb_max_hieght'] );
964
965
- $wcps_ribbon_name = stripslashes_deep( $_POST['wcps_ribbon_name'] );
966
967
968
@@ -970,8 +635,11 @@ function meta_boxes_wcps_save( $post_id ) {
970
// Update the meta field in the database.
971
update_post_meta( $post_id, 'wcps_bg_img', $wcps_bg_img );
972
update_post_meta( $post_id, 'wcps_themes', $wcps_themes );
973
- update_post_meta( $post_id, 'wcps_total_items', $wcps_total_items );
974
- update_post_meta( $post_id, 'wcps_column_number', $wcps_column_number );
975
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
976
update_post_meta( $post_id, 'wcps_stop_on_hover', $wcps_stop_on_hover );
977
update_post_meta( $post_id, 'wcps_slider_navigation', $wcps_slider_navigation );
@@ -980,10 +648,7 @@ function meta_boxes_wcps_save( $post_id ) {
980
update_post_meta( $post_id, 'wcps_slider_pagination', $wcps_slider_pagination );
981
update_post_meta( $post_id, 'wcps_pagination_slide_speed', $wcps_pagination_slide_speed );
982
update_post_meta( $post_id, 'wcps_slider_pagination_count', $wcps_slider_pagination_count );
983
-
984
- update_post_meta( $post_id, 'wcps_slider_pagination_bg', $wcps_slider_pagination_bg );
985
- update_post_meta( $post_id, 'wcps_slider_pagination_text_color', $wcps_slider_pagination_text_color );
986
-
987
update_post_meta( $post_id, 'wcps_slider_touch_drag', $wcps_slider_touch_drag );
988
update_post_meta( $post_id, 'wcps_slider_mouse_drag', $wcps_slider_mouse_drag );
989
@@ -996,22 +661,12 @@ function meta_boxes_wcps_save( $post_id ) {
996
update_post_meta( $post_id, 'wcps_taxonomy_category', $wcps_taxonomy_category );
997
998
update_post_meta( $post_id, 'wcps_product_ids', $wcps_product_ids );
999
-
1000
-
1001
update_post_meta( $post_id, 'wcps_cart_bg', $wcps_cart_bg );
1002
- update_post_meta( $post_id, 'wcps_cart_text_color', $wcps_cart_text_color );
1003
-
1004
-
1005
- update_post_meta( $post_id, 'wcps_items_title_color', $wcps_items_title_color );
1006
- update_post_meta( $post_id, 'wcps_items_title_font_size', $wcps_items_title_font_size );
1007
-
1008
- update_post_meta( $post_id, 'wcps_items_price_color', $wcps_items_price_color );
1009
- update_post_meta( $post_id, 'wcps_items_price_font_size', $wcps_items_price_font_size );
1010
-
1011
update_post_meta( $post_id, 'wcps_items_thumb_size', $wcps_items_thumb_size );
1012
update_post_meta( $post_id, 'wcps_items_thumb_max_hieght', $wcps_items_thumb_max_hieght );
1013
1014
- update_post_meta( $post_id, 'wcps_ribbon_name', $wcps_ribbon_name );
1015
1016
1017
}
66
$wcps_bg_img = get_post_meta( $post->ID, 'wcps_bg_img', true );
67
$wcps_themes = get_post_meta( $post->ID, 'wcps_themes', true );
68
$wcps_total_items = get_post_meta( $post->ID, 'wcps_total_items', true );
69
+
70
+ $wcps_column_number = get_post_meta( $post->ID, 'wcps_column_number', true );
71
+
72
+
73
$wcps_auto_play = get_post_meta( $post->ID, 'wcps_auto_play', true );
74
$wcps_stop_on_hover = get_post_meta( $post->ID, 'wcps_stop_on_hover', true );
75
$wcps_slider_navigation = get_post_meta( $post->ID, 'wcps_slider_navigation', true );
79
$wcps_pagination_slide_speed = get_post_meta( $post->ID, 'wcps_pagination_slide_speed', true );
80
$wcps_slider_pagination_count = get_post_meta( $post->ID, 'wcps_slider_pagination_count', true );
81
82
83
$wcps_slider_touch_drag = get_post_meta( $post->ID, 'wcps_slider_touch_drag', true );
84
$wcps_slider_mouse_drag = get_post_meta( $post->ID, 'wcps_slider_mouse_drag', true );
96
97
98
$wcps_cart_bg = get_post_meta( $post->ID, 'wcps_cart_bg', true );
99
+
100
$wcps_items_thumb_size = get_post_meta( $post->ID, 'wcps_items_thumb_size', true );
101
$wcps_items_thumb_max_hieght = get_post_meta( $post->ID, 'wcps_items_thumb_max_hieght', true );
102
103
104
105
106
107
108
109
?>
110
111
120
121
122
123
+ <div class="para-settings">
124
+ <div class="option-box">
125
+ <p class="option-title">Shortcode</p>
126
+ <p class="option-info">Copy this shortcode and paste on page or post where you want to display slider. <br />Use PHP code to your themes file to display slider.</p>
127
+ <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[wcps <?php echo ' id="'.$post->ID.'"';?> ]</textarea>
128
<br /><br />
129
PHP Code:<br />
130
<textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[wcps id='; echo "'".$post->ID."' ]"; echo '"); ?>'; ?></textarea>
131
+ </div>
132
133
134
+ <ul class="tab-nav">
135
+ <li nav="1" class="nav1 active">Options</li>
136
+ <li nav="2" class="nav2">Style</li>
137
+ <li nav="3" class="nav3">Content</li>
138
+ </ul> <!-- tab-nav end -->
139
140
+ <ul class="box">
141
<li style="display: block;" class="box1 tab-box active">
142
+ <div class="option-box">
143
+ <p class="option-title">Slider Total Items</p>
144
+ <p class="option-info"></p>
145
+ <input type="text" size="5" name="wcps_total_items" value="<?php if(!empty($wcps_total_items))echo $wcps_total_items; else echo 15; ?>" />
146
+ </div>
147
148
+ <div class="option-box">
149
+ <p class="option-title">Slider Column Number</p>
150
+ <p class="option-info"></p>
151
+ In Destop: <br />
152
+ <input type="text" size="5" name="wcps_column_number" value="<?php if(!empty($wcps_column_number))echo $wcps_column_number; else echo 5; ?>" />
153
+
154
+ </div>
155
156
+
157
158
+ <div class="option-box">
159
+ <p class="option-title">Slider Auto Play</p>
160
+ <p class="option-info"></p>
161
+ <input type="checkbox" id="wcps_auto_play" name="wcps_auto_play" value="true" <?php if(($wcps_auto_play=="true")) echo "checked"; else echo ""; ?> />
162
<?php if(($wcps_auto_play=="true")) { ?>
163
<label for="wcps_auto_play" >Active</label>
164
<?php }
169
<label for="wcps_auto_play" >Inactive</label>
170
<?php
171
}
172
+ ?>
173
+ </div>
174
+ <div class="option-box">
175
+ <p class="option-title">Slider Stop on Hover</p>
176
+ <p class="option-info"></p>
177
+ <input type="checkbox" id="wcps_stop_on_hover" name="wcps_stop_on_hover" value="true" <?php if(($wcps_stop_on_hover=="true")) echo "checked"; else echo ""; ?> />
178
<?php if(($wcps_stop_on_hover=="true")) { ?>
179
<label for="wcps_stop_on_hover" >Active</label>
180
<?php }
185
<label for="wcps_stop_on_hover" >Inactive</label>
186
<?php
187
}
188
+ ?>
189
+ </div>
190
+ <div class="option-box">
191
+ <p class="option-title">Slider Navigation at Top</p>
192
+ <p class="option-info"></p>
193
+ <input type="checkbox" id="wcps_slider_navigation" name="wcps_slider_navigation" value="true" <?php if(($wcps_slider_navigation=="true")) echo "checked"; else echo ""; ?> />
194
<?php if(($wcps_slider_navigation=="true")) { ?>
195
<label for="wcps_slider_navigation" >Active</label>
196
<?php }
201
<label for="wcps_slider_navigation" >Inactive</label>
202
<?php
203
}
204
+ ?>
205
+ </div>
206
207
+ <div class="option-box">
208
+ <p class="option-title">Slider Pagination at Bottom</p>
209
+ <p class="option-info"></p>
210
+ <input type="checkbox" id="wcps_slider_pagination" name="wcps_slider_pagination" value="true" <?php if(($wcps_slider_pagination=="true")) echo "checked"; else echo ""; ?> />
211
<?php if(($wcps_slider_pagination=="true")) { ?>
212
<label for="wcps_slider_pagination" >Active</label>
213
<?php }
218
<label for="wcps_slider_pagination" >Inactive</label>
219
<?php
220
}
221
+ ?>
222
+ </div>
223
+ <div class="option-box">
224
+ <p class="option-title">Pagination Number Counting</p>
225
+ <p class="option-info"></p>
226
+ <input type="checkbox" id="wcps_slider_pagination_count" name="wcps_slider_pagination_count" value="true" <?php if(($wcps_slider_pagination_count=="true")) echo "checked"; else echo ""; ?> />
227
<?php if(($wcps_slider_pagination_count=="true")) { ?>
228
<label for="wcps_slider_pagination_count" >Active</label>
229
<?php }
234
<label for="wcps_slider_pagination_count" >Inactive</label>
235
<?php
236
}
237
+ ?>
238
+ </div>
239
+ <div class="option-box">
240
+ <p class="option-title">Slide Speed</p>
241
+ <p class="option-info"></p>
242
+ <input type="text" id="wcps_slide_speed" name="wcps_slide_speed" value="<?php if(!empty($wcps_slide_speed)) echo $wcps_slide_speed; else echo "1000"; ?>" />
243
+ </div>
244
+ <div class="option-box">
245
+ <p class="option-title">Pagination Slide Speed</p>
246
+ <p class="option-info"></p>
247
+ <input type="text" id="wcps_pagination_slide_speed" name="wcps_pagination_slide_speed" value="<?php if(!empty($wcps_pagination_slide_speed)) echo $wcps_pagination_slide_speed; else echo "1000"; ?>" />
248
+ </div>
249
+
250
+ <div class="option-box">
251
+ <p class="option-title">Slider Touch Drag Enabled</p>
252
+ <p class="option-info"></p>
253
+ <input type="checkbox" id="wcps_slider_touch_drag" name="wcps_slider_touch_drag" value="true" <?php if(($wcps_slider_touch_drag=="true")) echo "checked"; else echo ""; ?> />
254
<?php if(($wcps_slider_touch_drag=="true")) { ?>
255
<label for="wcps_slider_touch_drag" >Active</label>
256
<?php }
261
<label for="wcps_slider_touch_drag" >Inactive</label>
262
<?php
263
}
264
+ ?>
265
+ </div>
266
+ <div class="option-box">
267
+ <p class="option-title">Slider Mouse Drag Enabled</p>
268
+ <p class="option-info"></p>
269
+ <input type="checkbox" id="wcps_slider_mouse_drag" name="wcps_slider_mouse_drag" value="true" <?php if(($wcps_slider_mouse_drag=="true")) echo "checked"; else echo ""; ?> />
270
<?php if(($wcps_slider_mouse_drag=="true")) { ?>
271
<label for="wcps_slider_mouse_drag" >Active</label>
272
<?php }
277
<label for="wcps_slider_mouse_drag" >Inactive</label>
278
<?php
279
}
280
+ ?>
281
+ </div>
282
+
283
</li>
284
+ <li style="display: none;" class="box2 tab-box ">
285
+ <div class="option-box">
286
+ <p class="option-title">Themes</p>
287
+ <p class="option-info"></p>
288
+ <select name="wcps_themes" >
289
<option class="wcps_themes_flat" value="flat" <?php if($wcps_themes=="flat")echo "selected"; ?>>Flat</option>
290
<option class="wcps_themes_rossi" value="rossi" <?php if($wcps_themes=="rossi")echo "selected"; ?>>Rossi</option>
291
+
292
+ </select>
293
+ </div>
294
+
295
+
296
+ <div class="option-box">
297
+ <p class="option-title">Slider Thumbnail Size</p>
298
+ <p class="option-info"></p>
299
+ <select name="wcps_items_thumb_size" >
300
<option value="thumbnail" <?php if($wcps_items_thumb_size=="thumbnail")echo "selected"; ?>>Thumbnail</option>
301
<option value="medium" <?php if($wcps_items_thumb_size=="medium")echo "selected"; ?>>medium</option>
302
<option value="large" <?php if($wcps_items_thumb_size=="large")echo "selected"; ?>>large</option>
303
<option value="full" <?php if($wcps_items_thumb_size=="full")echo "selected"; ?>>full</option>
304
305
+ </select>
306
+ </div>
307
+
308
+ <div class="option-box">
309
+ <p class="option-title">Slider thumb max hieght(px)</p>
310
+ <p class="option-info"></p>
311
+ <input type="text" name="wcps_items_thumb_max_hieght" placeholder="14px" id="wcps_items_thumb_max_hieght" value="<?php if(!empty($wcps_items_thumb_max_hieght)) echo $wcps_items_thumb_max_hieght; else echo "200px"; ?>" />
312
+ </div>
313
+
314
+ <div class="option-box">
315
+ <p class="option-title">Background Image</p>
316
+ <p class="option-info"></p>
317
+ <script>
318
+ jQuery(document).ready(function(jQuery)
319
+ {
320
+ jQuery(".wcps_bg_img_list li").click(function()
321
+ {
322
+ jQuery('.wcps_bg_img_list li.bg-selected').removeClass('bg-selected');
323
+ jQuery(this).addClass('bg-selected');
324
+
325
+ var wcps_bg_img = jQuery(this).attr('data-url');
326
327
+ jQuery('#wcps_bg_img').val(wcps_bg_img);
328
+
329
+ })
330
+
331
+
332
+ })
333
+
334
+ </script>
335
336
<?php
337
338
384
385
386
?>
387
388
+
389
+
390
+ </div>
391
392
+ <div class="option-box">
393
+ <p class="option-title">Add to cart Background Color</p>
394
+ <p class="option-info"></p>
395
+ <input type="text" name="wcps_cart_bg" id="wcps_cart_bg" value="<?php if(!empty($wcps_cart_bg)) echo $wcps_cart_bg; else echo "#0fcd95"; ?>" />
396
+ </div>
397
398
+ </li>
399
+ <li style="display: none;" class="box3 tab-box ">
400
+ <div class="option-box">
401
+ <p class="option-title">Filter Slider Content.</p>
402
+ <p class="option-info"></p>
403
+ <ul class="content_source_area" >
404
+ <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_latest" type="radio" value="latest" <?php if($wcps_content_source=="latest") echo "checked";?> /> <label for="wcps_content_source_latest">Display from Latest Published</label>
405
+ <div class="wcps_content_source_latest content-source-box">Slider items will query from latest published product.</div>
406
+ </li>
407
+
408
+ <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_older" type="radio" value="older" <?php if($wcps_content_source=="older") echo "checked";?> /> <label for="wcps_content_source_older">Display from Older Published</label>
409
+ <div class="wcps_content_source_older content-source-box">Slider items will query from older published product.</div>
410
+ </li>
411
+
412
+ <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_featured" type="radio" value="featured" <?php if($wcps_content_source=="featured") echo "checked";?> /> <label for="wcps_content_source_featured">Display from Featured Product</label>
413
+
414
+ <div class="wcps_content_source_featured content-source-box">Slider items will query from featured marked product.</div>
415
+ </li>
416
417
+
418
+
419
+ <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_year" type="radio" value="year" <?php if($wcps_content_source=="year") echo "checked";?> /> <label for="wcps_content_source_year">Display from Only Year</label>
420
+
421
+ <div class="wcps_content_source_year content-source-box">Slider items will query from a year.
422
+ <input type="text" size="7" class="wcps_content_year" name="wcps_content_year" value="<?php if(!empty($wcps_content_year)) echo $wcps_content_year;?>" placeholder="2014" />
423
+ </div>
424
+ </li>
425
+
426
+
427
+ <li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_month" type="radio" value="month" <?php if($wcps_content_source=="month") echo "checked";?> /> <label for="wcps_content_source_month">Display from Month</label>
428
+
429
+ <div class="wcps_content_source_month content-source-box">Slider items will query from Month of a year. <br />
430
+ <input type="text" size="7" class="wcps_content_month_year" name="wcps_content_month_year" value="<?php if(!empty($wcps_content_month_year)) echo $wcps_content_month_year;?>" placeholder="2014" />
431
+ <input type="text" size="7" class="wcps_content_month" name="wcps_content_month" value="<?php if(!empty($wcps_content_month)) echo $wcps_content_month;?>" placeholder="06" />
432
+ </div>
433
+ </li>
434
+
435
+
436
+ </ul>
437
+ </div>
438
439
</li>
440
</ul>
441
442
443
451
452
453
454
+
455
+ </div>
456
<?php
457
458
492
// Sanitize user input.
493
$wcps_bg_img = sanitize_text_field( $_POST['wcps_bg_img'] );
494
$wcps_themes = sanitize_text_field( $_POST['wcps_themes'] );
495
+ $wcps_total_items = sanitize_text_field( $_POST['wcps_total_items'] );
496
+
497
$wcps_column_number = sanitize_text_field( $_POST['wcps_column_number'] );
498
+
499
+
500
+ if(empty($_POST['wcps_auto_play']))
501
+ {
502
+ $wcps_auto_play = '';
503
+ }
504
+ else
505
+ {
506
+ $wcps_auto_play = sanitize_text_field( $_POST['wcps_auto_play'] );
507
+ }
508
+
509
+
510
+ if(empty($_POST['wcps_stop_on_hover']))
511
+ {
512
+ $wcps_stop_on_hover = '';
513
+ }
514
+ else
515
+ {
516
+ $wcps_stop_on_hover = sanitize_text_field( $_POST['wcps_stop_on_hover'] );
517
+ }
518
+
519
+
520
+ if(empty($_POST['wcps_slider_navigation']))
521
+ {
522
+ $wcps_slider_navigation = '';
523
+ }
524
+ else
525
+ {
526
+ $wcps_slider_navigation = sanitize_text_field( $_POST['wcps_slider_navigation'] );
527
+ }
528
+
529
+
530
+
531
$wcps_slide_speed = sanitize_text_field( $_POST['wcps_slide_speed'] );
532
533
+
534
+ if(empty($_POST['wcps_slider_pagination']))
535
+ {
536
+ $wcps_slider_pagination = '';
537
+ }
538
+ else
539
+ {
540
+ $wcps_slider_pagination = sanitize_text_field( $_POST['wcps_slider_pagination'] );
541
+ }
542
+
543
+
544
+
545
$wcps_pagination_slide_speed = sanitize_text_field( $_POST['wcps_pagination_slide_speed'] );
546
547
548
+ if(empty($_POST['wcps_slider_pagination_count']))
549
+ {
550
+ $wcps_slider_pagination_count = '';
551
+ }
552
+ else
553
+ {
554
+ $wcps_slider_pagination_count = sanitize_text_field( $_POST['wcps_slider_pagination_count'] );
555
+ }
556
+
557
+
558
+
559
+
560
+
561
+ if(empty($_POST['wcps_slider_touch_drag']))
562
+ {
563
+ $wcps_slider_touch_drag = '';
564
+ }
565
+ else
566
+ {
567
+ $wcps_slider_touch_drag = sanitize_text_field( $_POST['wcps_slider_touch_drag'] );
568
+ }
569
+
570
+ if(empty($_POST['wcps_slider_mouse_drag']))
571
+ {
572
+ $wcps_slider_mouse_drag = '';
573
+ }
574
+ else
575
+ {
576
+ $wcps_slider_mouse_drag = sanitize_text_field( $_POST['wcps_slider_mouse_drag'] );
577
+ }
578
+
579
+
580
581
$wcps_content_source = sanitize_text_field( $_POST['wcps_content_source'] );
582
$wcps_content_year = sanitize_text_field( $_POST['wcps_content_year'] );
583
$wcps_content_month = sanitize_text_field( $_POST['wcps_content_month'] );
584
$wcps_content_month_year = sanitize_text_field( $_POST['wcps_content_month_year'] );
585
586
587
588
589
590
+ if(empty($_POST['wcps_taxonomy']))
591
+ {
592
+ $wcps_taxonomy = '';
593
+ }
594
+ else
595
+ {
596
+ $wcps_taxonomy = sanitize_text_field( $_POST['wcps_taxonomy'] );
597
+ }
598
+
599
+
600
+ if(empty($_POST['wcps_taxonomy_category']))
601
+ {
602
+ $wcps_taxonomy_category = '';
603
+ }
604
+ else
605
+ {
606
+ $wcps_taxonomy_category = stripslashes_deep( $_POST['wcps_taxonomy_category'] );
607
+ }
608
+
609
+
610
611
612
613
+ if(empty($_POST['wcps_product_ids']))
614
+ {
615
+ $wcps_product_ids = '';
616
+ }
617
+ else
618
+ {
619
+ $wcps_product_ids = stripslashes_deep( $_POST['wcps_product_ids'] );
620
+ }
621
+
622
+
623
+
624
+
625
+
626
+ $wcps_cart_bg = sanitize_text_field( $_POST['wcps_cart_bg'] );
627
+
628
+ $wcps_items_thumb_size = sanitize_text_field( $_POST['wcps_items_thumb_size'] );
629
+ $wcps_items_thumb_max_hieght = sanitize_text_field( $_POST['wcps_items_thumb_max_hieght'] );
630
+
631
632
633
635
// Update the meta field in the database.
636
update_post_meta( $post_id, 'wcps_bg_img', $wcps_bg_img );
637
update_post_meta( $post_id, 'wcps_themes', $wcps_themes );
638
+ update_post_meta( $post_id, 'wcps_total_items', $wcps_total_items );
639
+
640
+ update_post_meta( $post_id, 'wcps_column_number', $wcps_column_number );
641
+
642
+
643
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
644
update_post_meta( $post_id, 'wcps_stop_on_hover', $wcps_stop_on_hover );
645
update_post_meta( $post_id, 'wcps_slider_navigation', $wcps_slider_navigation );
648
update_post_meta( $post_id, 'wcps_slider_pagination', $wcps_slider_pagination );
649
update_post_meta( $post_id, 'wcps_pagination_slide_speed', $wcps_pagination_slide_speed );
650
update_post_meta( $post_id, 'wcps_slider_pagination_count', $wcps_slider_pagination_count );
651
+
652
update_post_meta( $post_id, 'wcps_slider_touch_drag', $wcps_slider_touch_drag );
653
update_post_meta( $post_id, 'wcps_slider_mouse_drag', $wcps_slider_mouse_drag );
654
661
update_post_meta( $post_id, 'wcps_taxonomy_category', $wcps_taxonomy_category );
662
663
update_post_meta( $post_id, 'wcps_product_ids', $wcps_product_ids );
664
+
665
update_post_meta( $post_id, 'wcps_cart_bg', $wcps_cart_bg );
666
+
667
update_post_meta( $post_id, 'wcps_items_thumb_size', $wcps_items_thumb_size );
668
update_post_meta( $post_id, 'wcps_items_thumb_max_hieght', $wcps_items_thumb_max_hieght );
669
670
671
672
}
js/scripts.js CHANGED
@@ -2,12 +2,12 @@
2
jQuery(document).ready(function($)
3
{
4
5
- $(".add_to_cart_button").wrap("<div class='cart-area' ></div>");
6
7
8
9
10
- $(document).on('click', '.tab-nav li', function()
11
{
12
$(".active").removeClass("active");
13
$(this).addClass("active");
@@ -34,21 +34,7 @@ jQuery(document).ready(function($)
34
35
36
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
53
54
2
jQuery(document).ready(function($)
3
{
4
5
+ $(".wcps-items .add_to_cart_button").wrap("<div class='cart-area' ></div>");
6
7
8
9
10
+ $(document).on('click', '#wcps_metabox .tab-nav li', function()
11
{
12
$(".active").removeClass("active");
13
$(this).addClass("active");
34
35
36
37
+
38
39
40
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
=== Woocommerce Products Slider ===
2
Contributors: paratheme
3
Donate link: http://paratheme.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: 3.9.1
7
- Stable tag: 1.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -27,22 +27,37 @@ A premium quality carousel slider to slide your woo-commerce product. easy to us
27
28
* Fully responsive and mobile ready.
29
* Unlimited slider anywhere.
30
- * Query post from latest post, Older Published, Featured Items, by Only Year, by Month of a year, Taxonomy & Categories, Product id.
31
* Two different Theme.
32
* Custom number of slider items to query.
33
* Custom number of Slider Column Number.
34
* Slider Items Thumbnail images Size selection.
35
* Featured product marker.
36
- * Ribbons for slider.
37
- * Background Image for slider area.
38
* Add to cart Background Color.
39
- * Add to cart Text Color.
40
- * Items Title Color
41
- * Items Title Font Size
42
- * Items Price Color
43
- * Items price Font Size
44
- * Slider Pagination Background Color
45
- * Slider Pagination Text Color
46
47
<br />
48
<strong>Video Tutorial Here.</strong>
@@ -77,6 +92,14 @@ then paste this shortcode anywhere in your page to display slider<br />
77
78
== Changelog ==
79
80
= 1.1 =
81
* 24/08/2014 Update plugin description.
82
* 24/08/2014 Update Live Demo.
1
=== Woocommerce Products Slider ===
2
Contributors: paratheme
3
Donate link: http://paratheme.com
4
+ Tags: carousel, product, slider, woocommerce, carousel slider, product slider, woocommerce slider, Woocommerce Product slider, featured product slider
5
Requires at least: 3.8
6
+ Tested up to: 4.1
7
+ Stable tag: 1.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
27
28
* Fully responsive and mobile ready.
29
* Unlimited slider anywhere.
30
+ * Query post from latest post, Older Published, Featured Items, by Only Year, by Month of a year.
31
* Two different Theme.
32
* Custom number of slider items to query.
33
* Custom number of Slider Column Number.
34
* Slider Items Thumbnail images Size selection.
35
+ * Slider Items Thumbnail custom height.
36
* Featured product marker.
37
+ * Custom background Image for slider area.
38
* Add to cart Background Color.
39
+
40
+
41
+ <strong>Premium Features</strong><br />
42
+
43
+ * Extra four themes.
44
+ * Slider column number for mobile device.
45
+ * Slider ribbons.
46
+ * Slider custom ribbons.
47
+ * Silder items title color.
48
+ * Silder items title font size.
49
+ * Silder items price font color .
50
+ * Silder items price font size.
51
+ * Pagination background color
52
+ * Pagination Text Color.
53
+
54
+ <strong><i>Query products</i></strong><br />
55
+
56
+ * from On Sale Product
57
+ * from Product Taxonomy & Categories
58
+ * by Product id's
59
+
60
+
61
62
<br />
63
<strong>Video Tutorial Here.</strong>
92
93
== Changelog ==
94
95
+
96
+ = 1.2 =
97
+ * 10/12/2015 Remove featured marker update as text.
98
+ * 10/12/2015 Update flat theme.
99
+ * 10/12/2015 Removed some features.
100
+ * 26/08/2014 javascripts conflit fixed.
101
+ * 26/08/2014 query post error fixed.
102
+
103
= 1.1 =
104
* 24/08/2014 Update plugin description.
105
* 24/08/2014 Update Live Demo.
themes/anti-ruger/index.php DELETED
@@ -1,373 +0,0 @@
1
- <?php
2
-
3
- function wcps_body_anti_ruger($post_id)
4
- {
5
-
6
- $wcps_ribbons = get_option( 'wcps_ribbons' );
7
-
8
-
9
- $wcps_bg_img = get_post_meta( $post_id, 'wcps_bg_img', true );
10
- $wcps_themes = get_post_meta( $post_id, 'wcps_themes', true );
11
- $wcps_total_items = get_post_meta( $post_id, 'wcps_total_items', true );
12
- $wcps_column_number = get_post_meta( $post_id, 'wcps_column_number', true );
13
- $wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
14
- $wcps_stop_on_hover = get_post_meta( $post_id, 'wcps_stop_on_hover', true );
15
- $wcps_slider_navigation = get_post_meta( $post_id, 'wcps_slider_navigation', true );
16
- $wcps_slide_speed = get_post_meta( $post_id, 'wcps_slide_speed', true );
17
-
18
- $wcps_slider_pagination = get_post_meta( $post_id, 'wcps_slider_pagination', true );
19
- $wcps_pagination_slide_speed = get_post_meta( $post_id, 'wcps_pagination_slide_speed', true );
20
- $wcps_slider_pagination_count = get_post_meta( $post_id, 'wcps_slider_pagination_count', true );
21
-
22
- $wcps_slider_pagination_bg = get_post_meta( $post_id, 'wcps_slider_pagination_bg', true );
23
- $wcps_slider_pagination_text_color = get_post_meta( $post_id, 'wcps_slider_pagination_text_color', true );
24
-
25
- $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
26
- $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
27
-
28
- $wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
29
- $wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
30
- $wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
31
- $wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
32
-
33
- $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
34
- $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
35
-
36
- $wcps_product_ids = get_post_meta( $post_id, 'wcps_product_ids', true );
37
-
38
-
39
- $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
40
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
41
-
42
- $wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
43
- $wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
44
-
45
- $wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
46
- $wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
47
-
48
- $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
49
- $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
50
-
51
- $wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
52
-
53
-
54
-
55
-
56
- $wcps_body = '';
57
- $wcps_body = '<style type="text/css">
58
-
59
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
60
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
61
- {
62
- background: '.$wcps_cart_bg .';
63
- color:'.$wcps_cart_text_color.';
64
- }
65
-
66
- .wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
67
- {
68
- background: '.$wcps_slider_pagination_bg .';
69
- color:'.$wcps_slider_pagination_text_color.';
70
- }
71
-
72
-
73
-
74
- </style>';
75
- $wcps_body .= '
76
- <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
77
- <div class="wcps-ribbon wcps-ribbon-'.$wcps_ribbon_name.'" style="background:url('.$wcps_ribbons[$wcps_ribbon_name].') no-repeat scroll 0 0 rgba(0, 0, 0, 0);)"></div>
78
-
79
- <div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
80
-
81
- ';
82
-
83
- global $wp_query;
84
-
85
-
86
-
87
-
88
- if(($wcps_content_source=="latest"))
89
- {
90
-
91
- $wp_query = new WP_Query(
92
- array (
93
- 'post_type' => 'product',
94
- 'orderby' => 'date',
95
- 'order' => 'DESC',
96
- 'posts_per_page' => $wcps_total_items,
97
-