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
-
98
- ) );
99
-
100
-
101
- }
102
-
103
- elseif(($wcps_content_source=="older"))
104
- {
105
-
106
- $wp_query = new WP_Query(
107
- array (
108
- 'post_type' => 'product',
109
- 'orderby' => 'date',
110
- 'order' => 'ASC',
111
- 'posts_per_page' => $wcps_total_items,
112
-
113
- ) );
114
-
115
- }
116
-
117
- elseif(($wcps_content_source=="featured"))
118
- {
119
-
120
- $wp_query = new WP_Query(
121
- array (
122
- 'post_type' => 'product',
123
- 'meta_query' => array(
124
- array(
125
- 'key' => '_featured',
126
- 'value' => 'yes',
127
- )),
128
- 'posts_per_page' => $wcps_total_items,
129
-
130
- ) );
131
-
132
- }
133
-
134
-
135
- elseif(($wcps_content_source=="year"))
136
- {
137
-
138
- $wp_query = new WP_Query(
139
- array (
140
- 'post_type' => 'product',
141
- 'year' => $wcps_content_year,
142
- 'posts_per_page' => $wcps_total_items,
143
- ) );
144
-
145
- }
146
-
147
- elseif(($wcps_content_source=="month"))
148
- {
149
-
150
- $wp_query = new WP_Query(
151
- array (
152
- 'post_type' => 'product',
153
- 'year' => $wcps_content_month_year,
154
- 'monthnum' => $wcps_content_month,
155
- 'posts_per_page' => $wcps_total_items,
156
-
157
- ) );
158
-
159
- }
160
-
161
- elseif($wcps_content_source="taxonomy")
162
- {
163
- $wp_query = new WP_Query(
164
- array (
165
- 'post_type' => 'product',
166
- 'posts_per_page' => $wcps_total_items,
167
-
168
- 'tax_query' => array(
169
- array(
170
- 'taxonomy' => $wcps_taxonomy,
171
- 'field' => 'id',
172
- 'terms' => $wcps_taxonomy_category,
173
- )
174
- )
175
-
176
- ) );
177
- }
178
-
179
-
180
-
181
- elseif(($wcps_content_source=="product_id"))
182
- {
183
-
184
- $wp_query = new WP_Query(
185
- array (
186
- 'post__in' => $wcps_product_ids,
187
- 'post_type' => 'product',
188
-
189
-
190
- ) );
191
-
192
-
193
- }
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- if ( $wp_query->have_posts() ) :
206
-
207
- while ( $wp_query->have_posts() ) : $wp_query->the_post();
208
-
209
- global $product;
210
-
211
-
212
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
213
-
214
- $wcps_thumb_url = $wcps_thumb['0'];
215
-
216
- $price = $product->get_price_html();
217
-
218
- $wcps_body.= '
219
- <div class="wcps-items" >
220
-
221
- <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
222
- <div class="items-info">
223
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
224
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
225
- <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
226
- </div>
227
- </div>';
228
-
229
- endwhile;
230
-
231
- wp_reset_query();
232
- endif;
233
-
234
-
235
-
236
- $wcps_body .= '</div></div>';
237
-
238
- $wcps_body .='<script>
239
- jQuery(document).ready(function($)
240
- {
241
- $("#wcps-'.$post_id.'").owlCarousel({
242
-
243
- items : '.$wcps_column_number.', //10 items above 1000px browser width
244
- itemsDesktop : [1000,5], //5 items between 1000px and 901px
245
- itemsDesktopSmall : [900,3], // betweem 900px and 601px
246
- itemsTablet: [600,2], //2 items between 600 and 0
247
- itemsMobile : false,
248
- navigationText : ["",""],
249
- ';
250
-
251
-
252
- if($wcps_auto_play=="true")
253
- {
254
-
255
- $wcps_body .='autoPlay: '.$wcps_auto_play.',';
256
-
257
- }
258
-
259
- if($wcps_stop_on_hover=="true")
260
- {
261
-
262
- $wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
263
-
264
- }
265
-
266
- if($wcps_slider_navigation=="true")
267
- {
268
-
269
- $wcps_body .='navigation: '.$wcps_slider_navigation.',';
270
-
271
- }
272
-
273
- if(!empty($wcps_slider_pagination))
274
- {
275
-
276
- $wcps_body .='pagination: '.$wcps_slider_pagination.',';
277
-
278
- }
279
- else
280
- {
281
- $wcps_body .='pagination: false,';
282
- }
283
-
284
-
285
- if(!empty($wcps_slider_pagination_count))
286
- {
287
-
288
- $wcps_body .='paginationNumbers: true,';
289
-
290
- }
291
- else
292
- {
293
- $wcps_body .='paginationNumbers: false,';
294
- }
295
-
296
-
297
-
298
- if(!empty($wcps_slide_speed))
299
- {
300
-
301
- $wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
302
-
303
- }
304
-
305
-
306
- if(!empty($wcps_pagination_slide_speed))
307
- {
308
-
309
- $wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
310
-
311
- }
312
-
313
-
314
- if(!empty($wcps_slider_touch_drag))
315
- {
316
-
317
- $wcps_body .='touchDrag : true,';
318
-
319
- }
320
- else
321
- {
322
- $wcps_body .='touchDrag: false,';
323
- }
324
-
325
-
326
-
327
- if(!empty($wcps_slider_mouse_drag ))
328
- {
329
-
330
- $wcps_body .='mouseDrag : true,';
331
-
332
- }
333
- else
334
- {
335
- $wcps_body .='mouseDrag : false,';
336
- }
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
- $wcps_body .='});
346
-
347
- });</script>';
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
- return $wcps_body;
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/anti-ruger/style.css DELETED
@@ -1,210 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
-
7
- .wcps-container .wcps-anti-ruger div.wcps-items {
8
- background: none repeat scroll 0 0 rgb(255, 255, 255);
9
- box-shadow: 0 0 4px -3px rgb(0, 0, 0);
10
- margin: 0 10px;
11
- position: relative;
12
- }
13
-
14
-
15
-
16
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-thumb {
17
- margin-bottom: 10px;
18
- overflow: hidden;
19
- text-align: center;
20
- }
21
-
22
-
23
-
24
-
25
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-thumb img {
26
- border-radius: 0;
27
- box-shadow: none;
28
- }
29
-
30
-
31
- .wcps-container .wcps-anti-ruger div.wcps-items div.items-info {
32
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
33
- bottom: 0;
34
- display: block;
35
- left: 0;
36
-
37
- position: absolute;
38
- transform: translateY(-500px);
39
- transition: all 0.8s ease 0s;
40
- width: 100%;
41
- }
42
-
43
- .wcps-container .wcps-anti-ruger div.wcps-items:hover div.items-info{
44
-
45
- transform: translateY(0px);
46
- }
47
-
48
-
49
-
50
-
51
-
52
-
53
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-title {
54
- font-size: 14px;
55
- line-height: 14px;
56
- padding: 10px 0;
57
- text-align: center;
58
- }
59
-
60
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart {
61
- text-align: center;
62
- }
63
-
64
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart p {
65
- border: medium none !important;
66
- }
67
-
68
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart span.amount {
69
- font-size: 15px;
70
- line-height: 15px;
71
- }
72
-
73
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart del{
74
-
75
- }
76
-
77
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart del span.amount{
78
-
79
- }
80
-
81
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart ins {
82
-
83
- }
84
-
85
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart ins span.amount{
86
-
87
- }
88
-
89
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart span.amount{
90
-
91
- }
92
-
93
-
94
-
95
-
96
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart .amount,
97
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart del,
98
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart ins{
99
- display:none; }
100
-
101
-
102
-
103
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart a.add_to_cart_button {
104
- background: none repeat scroll 0 0 rgb(13, 225, 133);
105
- border: medium none;
106
- border-radius: 0;
107
- box-shadow: none;
108
- font-size: 12px;
109
- line-height: 12px;
110
- margin-top: 15px;
111
- padding: 10px 15px;
112
- text-shadow: none;
113
- }
114
-
115
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart a.added_to_cart {
116
- background: none repeat scroll 0 0 rgb(13, 225, 133);
117
- border: medium none;
118
- border-radius: 0;
119
- box-shadow: none;
120
- color: rgb(68, 68, 68);
121
- font-size: 12px;
122
- line-height: 12px;
123
- margin-top: 15px;
124
- padding: 10px 15px;
125
- text-decoration: none;
126
- text-shadow: none;
127
- }
128
-
129
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-cart a.added {
130
- display: none;
131
- }
132
-
133
-
134
-
135
-
136
-
137
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-price {
138
- text-align: center;
139
- }
140
-
141
-
142
- .wcps-container .wcps-anti-ruger div.wcps-items div.wcps-items-price span.amount {
143
- background: #ddd;
144
- border: 1px solid #fff;
145
- padding: 4px 10px;
146
- }
147
-
148
-
149
- .wcps-container .wcps-anti-ruger .owl-buttons{}
150
- .wcps-container .wcps-anti-ruger .owl-controls .owl-buttons .owl-prev {
151
- background-image: url("images/arrow-prev.png");
152
- border: 1px solid rgb(221, 221, 221);
153
- border-radius: 0;
154
- color: rgb(0, 0, 0);
155
- padding: 0;
156
- width: 30px;
157
- height: 20px;
158
- }
159
-
160
-
161
-
162
- .wcps-container .wcps-anti-ruger .owl-controls .owl-buttons .owl-next {
163
- background-image: url("images/arrow-next.png");
164
- border: 1px solid rgb(221, 221, 221);
165
- border-radius: 0;
166
- color: rgb(0, 0, 0);
167
- padding: 0;
168
- width: 30px;
169
- height: 20px;
170
- }
171
-
172
-
173
-
174
- .wcps-container .wcps-anti-ruger .owl-controls .owl-buttons div.owl-prev:hover{
175
- background-image: url("images/arrow-prev.png") ;
176
- background-color:#d5d5d5 !important; }
177
-
178
-
179
- .wcps-container .wcps-anti-ruger .owl-controls .owl-buttons div.owl-next:hover{
180
- background-image: url("images/arrow-next.png");
181
- background-color:#d5d5d5 !important; }
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/flat/images/star.png DELETED
Binary file
themes/flat/index.php CHANGED
@@ -3,13 +3,18 @@
3
  function wcps_body_flat($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 );
@@ -18,10 +23,7 @@ function wcps_body_flat($post_id)
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
 
@@ -33,22 +35,14 @@ function wcps_body_flat($post_id)
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
 
37
  $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
38
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
39
-
40
-
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
 
@@ -60,17 +54,15 @@ function wcps_body_flat($post_id)
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
  </style>';
 
 
74
  $wcps_body .= '
75
  <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
76
  <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>
@@ -89,6 +81,7 @@ function wcps_body_flat($post_id)
89
  $wp_query = new WP_Query(
90
  array (
91
  'post_type' => 'product',
 
92
  'orderby' => 'date',
93
  'order' => 'DESC',
94
  'posts_per_page' => $wcps_total_items,
@@ -98,12 +91,13 @@ function wcps_body_flat($post_id)
98
 
99
  }
100
 
101
- elseif(($wcps_content_source=="older"))
102
  {
103
 
104
  $wp_query = new WP_Query(
105
  array (
106
  'post_type' => 'product',
 
107
  'orderby' => 'date',
108
  'order' => 'ASC',
109
  'posts_per_page' => $wcps_total_items,
@@ -112,12 +106,13 @@ function wcps_body_flat($post_id)
112
 
113
  }
114
 
115
- elseif(($wcps_content_source=="featured"))
116
  {
117
 
118
  $wp_query = new WP_Query(
119
  array (
120
  'post_type' => 'product',
 
121
  'meta_query' => array(
122
  array(
123
  'key' => '_featured',
@@ -127,27 +122,59 @@ function wcps_body_flat($post_id)
127
 
128
  ) );
129
 
130
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
 
133
- elseif(($wcps_content_source=="year"))
134
  {
135
 
136
  $wp_query = new WP_Query(
137
  array (
138
  'post_type' => 'product',
 
139
  'year' => $wcps_content_year,
140
  'posts_per_page' => $wcps_total_items,
141
  ) );
142
 
143
  }
144
 
145
- elseif(($wcps_content_source=="month"))
146
  {
147
 
148
  $wp_query = new WP_Query(
149
  array (
150
  'post_type' => 'product',
 
151
  'year' => $wcps_content_month_year,
152
  'monthnum' => $wcps_content_month,
153
  'posts_per_page' => $wcps_total_items,
@@ -156,11 +183,12 @@ function wcps_body_flat($post_id)
156
 
157
  }
158
 
159
- elseif($wcps_content_source="taxonomy")
160
  {
161
  $wp_query = new WP_Query(
162
  array (
163
- 'post_type' => 'product',
 
164
  'posts_per_page' => $wcps_total_items,
165
 
166
  'tax_query' => array(
@@ -176,13 +204,15 @@ function wcps_body_flat($post_id)
176
 
177
 
178
 
179
- elseif(($wcps_content_source=="product_id"))
180
  {
181
 
182
  $wp_query = new WP_Query(
183
  array (
184
- 'post__in' => $wcps_product_ids,
185
  'post_type' => 'product',
 
 
 
186
 
187
 
188
  ) );
@@ -203,23 +233,46 @@ function wcps_body_flat($post_id)
203
 
204
 
205
 
206
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
207
 
208
  $wcps_thumb_url = $wcps_thumb['0'];
209
 
210
- $price = $product->get_price_html();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
 
212
  $wcps_body.= '<div class="wcps-items" >';
213
-
214
  if($wcps_featured=="yes")
215
  {
216
- $wcps_body.= '<div class="wcps-featured"></div>';
217
  }
218
-
219
- $wcps_body.= '<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
220
- <div class="items-info">
221
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
222
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
223
  <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
224
  </div>
225
  </div>';
@@ -242,7 +295,7 @@ function wcps_body_flat($post_id)
242
  itemsDesktop : [1000,5], //5 items between 1000px and 901px
243
  itemsDesktopSmall : [900,3], // betweem 900px and 601px
244
  itemsTablet: [600,2], //2 items between 600 and 0
245
- itemsMobile : false,
246
  navigationText : ["",""],
247
  ';
248
 
3
  function wcps_body_flat($post_id)
4
  {
5
 
6
+ $wcps_ribbons = array('none'=>'none');
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
+
13
+ $wcps_total_items_price_format = 'full';
14
+
15
  $wcps_column_number = get_post_meta( $post_id, 'wcps_column_number', true );
16
+ $wcps_column_number_mobile = 1;
17
+
18
  $wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
19
  $wcps_stop_on_hover = get_post_meta( $post_id, 'wcps_stop_on_hover', true );
20
  $wcps_slider_navigation = get_post_meta( $post_id, 'wcps_slider_navigation', true );
23
  $wcps_slider_pagination = get_post_meta( $post_id, 'wcps_slider_pagination', true );
24
  $wcps_pagination_slide_speed = get_post_meta( $post_id, 'wcps_pagination_slide_speed', true );
25
  $wcps_slider_pagination_count = get_post_meta( $post_id, 'wcps_slider_pagination_count', true );
26
+
 
 
 
27
  $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
28
  $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
29
 
35
  $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
36
  $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
37
 
38
+ $wcps_product_ids = get_post_meta( $post_id, 'wcps_product_ids', true );
39
 
40
  $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
41
+
 
 
 
 
 
 
 
 
 
42
  $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
43
  $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
44
 
45
+ $wcps_ribbon_name = 'none';
46
 
47
 
48
 
54
  .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
55
  {
56
  background: '.$wcps_cart_bg .';
57
+
58
  }
59
+
60
 
 
 
 
 
 
61
 
62
 
63
  </style>';
64
+
65
+
66
  $wcps_body .= '
67
  <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
68
  <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>
81
  $wp_query = new WP_Query(
82
  array (
83
  'post_type' => 'product',
84
+ 'post_status' => 'publish',
85
  'orderby' => 'date',
86
  'order' => 'DESC',
87
  'posts_per_page' => $wcps_total_items,
91
 
92
  }
93
 
94
+ else if(($wcps_content_source=="older"))
95
  {
96
 
97
  $wp_query = new WP_Query(
98
  array (
99
  'post_type' => 'product',
100
+ 'post_status' => 'publish',
101
  'orderby' => 'date',
102
  'order' => 'ASC',
103
  'posts_per_page' => $wcps_total_items,
106
 
107
  }
108
 
109
+ else if(($wcps_content_source=="featured"))
110
  {
111
 
112
  $wp_query = new WP_Query(
113
  array (
114
  'post_type' => 'product',
115
+ 'post_status' => 'publish',
116
  'meta_query' => array(
117
  array(
118
  'key' => '_featured',
122
 
123
  ) );
124
 
125
+ }
126
+
127
+
128
+ else if(($wcps_content_source=="on_sale"))
129
+ {
130
+
131
+ $wp_query = new WP_Query(
132
+ array (
133
+ 'post_type' => 'product',
134
+ 'post_status' => 'publish',
135
+ 'order' => 'asc',
136
+ 'posts_per_page' => $wcps_total_items,
137
+ 'meta_query' => array(
138
+ array(
139
+ 'key' => '_visibility',
140
+ 'value' => array('catalog', 'visible'),
141
+ 'compare' => 'IN'
142
+ ),
143
+ array(
144
+ 'key' => '_sale_price',
145
+ 'value' => 0,
146
+ 'compare' => '>',
147
+ 'type' => 'NUMERIC'
148
+ )
149
+ ) ));
150
+
151
+ }
152
+
153
+
154
+
155
+
156
 
157
 
158
+ else if(($wcps_content_source=="year"))
159
  {
160
 
161
  $wp_query = new WP_Query(
162
  array (
163
  'post_type' => 'product',
164
+ 'post_status' => 'publish',
165
  'year' => $wcps_content_year,
166
  'posts_per_page' => $wcps_total_items,
167
  ) );
168
 
169
  }
170
 
171
+ else if(($wcps_content_source=="month"))
172
  {
173
 
174
  $wp_query = new WP_Query(
175
  array (
176
  'post_type' => 'product',
177
+ 'post_status' => 'publish',
178
  'year' => $wcps_content_month_year,
179
  'monthnum' => $wcps_content_month,
180
  'posts_per_page' => $wcps_total_items,
183
 
184
  }
185
 
186
+ else if($wcps_content_source=="taxonomy")
187
  {
188
  $wp_query = new WP_Query(
189
  array (
190
+ 'post_type' => 'product',
191
+ 'post_status' => 'publish',
192
  'posts_per_page' => $wcps_total_items,
193
 
194
  'tax_query' => array(
204
 
205
 
206
 
207
+ else if(($wcps_content_source=="product_id"))
208
  {
209
 
210
  $wp_query = new WP_Query(
211
  array (
 
212
  'post_type' => 'product',
213
+ 'post_status' => 'publish',
214
+ 'post__in' => $wcps_product_ids,
215
+ 'posts_per_page' => $wcps_total_items,
216
 
217
 
218
  ) );
233
 
234
 
235
 
236
+ $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
237
 
238
  $wcps_thumb_url = $wcps_thumb['0'];
239
 
240
+
241
+ $currency = get_woocommerce_currency_symbol();
242
+
243
+
244
+ if($wcps_total_items_price_format=='full')
245
+ {
246
+ $price = $product->get_price_html();
247
+ }
248
+ elseif($wcps_total_items_price_format=='sale')
249
+ {
250
+
251
+ $price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
252
+ }
253
+ elseif($wcps_total_items_price_format=='regular')
254
+ {
255
+
256
+ $price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
257
+
258
+ }
259
+ else
260
+ {
261
+ $price = $product->get_price_html();
262
+ }
263
+
264
 
265
  $wcps_body.= '<div class="wcps-items" >';
266
+ $wcps_body.= '<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a>';
267
  if($wcps_featured=="yes")
268
  {
269
+ $wcps_body.= '<div class="wcps-featured">Featured</div>';
270
  }
271
+ $wcps_body.= '</div>';
272
+
273
+ $wcps_body.= '<div class="items-info">
274
+ <div class="wcps-items-title" style="">'.get_the_title().'</div>
275
+ <div class="wcps-items-price" style="">'.$price .'</div>
276
  <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
277
  </div>
278
  </div>';
295
  itemsDesktop : [1000,5], //5 items between 1000px and 901px
296
  itemsDesktopSmall : [900,3], // betweem 900px and 601px
297
  itemsTablet: [600,2], //2 items between 600 and 0
298
+ itemsMobile : [479,'.$wcps_column_number_mobile.'],
299
  navigationText : ["",""],
300
  ';
301
 
themes/flat/style.css CHANGED
@@ -2,29 +2,38 @@
2
  /* CSS Document */
3
 
4
 
5
-
 
 
 
6
 
7
  .wcps-container .wcps-flat div.wcps-items {
 
 
 
8
  margin: 0 10px;
9
  }
10
-
11
- .wcps-container .wcps-flat div.wcps-items div.wcps-featured {
12
- background: url("images/star.png") repeat scroll 0 0 rgba(0, 0, 0, 0);
13
- height: 30px;
 
14
  left: 0;
15
  position: absolute;
16
- top: 0;
17
- width: 30px;
18
  }
19
 
20
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-thumb {
21
  margin-bottom: 10px;
22
  overflow: hidden;
 
23
  text-align: center;
24
  }
25
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-thumb img {
26
  border-radius: 0;
27
  box-shadow: none;
 
28
  }
29
 
30
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-title {
@@ -115,7 +124,12 @@
115
  text-align: center;
116
  }
117
 
118
- .wcps-container .wcps-flat .owl-buttons{}
 
 
 
 
 
119
  .wcps-container .wcps-flat .owl-controls .owl-buttons .owl-prev {
120
  background-image: url("images/arrow-prev.png");
121
  border: 1px solid rgb(221, 221, 221);
@@ -139,6 +153,9 @@
139
  }
140
 
141
 
 
 
 
142
 
143
  .wcps-container .wcps-flat .owl-controls .owl-buttons div.owl-prev:hover{
144
  background-image: url("images/arrow-prev.png") ;
@@ -151,7 +168,9 @@
151
 
152
 
153
 
154
-
 
 
155
 
156
 
157
 
2
  /* CSS Document */
3
 
4
 
5
+ .wcps-container .wcps-flat {
6
+ padding-bottom: 30px;
7
+ padding-top: 60px;
8
+ }
9
 
10
  .wcps-container .wcps-flat div.wcps-items {
11
+ background: none repeat scroll 0 0 rgba(0, 0, 0, 0.1);
12
+ border-bottom: 1px solid;
13
+ border-top: 1px solid;
14
  margin: 0 10px;
15
  }
16
+ .wcps-container .wcps-flat div.wcps-featured {
17
+ background: none repeat scroll 0 0 rgba(255, 186, 1, 0.84);
18
+ color: rgb(91, 91, 91);
19
+ font-size: 12px;
20
+ height: 22px;
21
  left: 0;
22
  position: absolute;
23
+ top: 10px;
24
+ width: 57px;
25
  }
26
 
27
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-thumb {
28
  margin-bottom: 10px;
29
  overflow: hidden;
30
+ position: relative;
31
  text-align: center;
32
  }
33
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-thumb img {
34
  border-radius: 0;
35
  box-shadow: none;
36
+ width: 100%;
37
  }
38
 
39
  .wcps-container .wcps-flat div.wcps-items div.wcps-items-title {
124
  text-align: center;
125
  }
126
 
127
+ .wcps-container .wcps-flat .owl-buttons {
128
+ position: absolute;
129
+ right: 15px;
130
+ top: 15px;
131
+ }
132
+
133
  .wcps-container .wcps-flat .owl-controls .owl-buttons .owl-prev {
134
  background-image: url("images/arrow-prev.png");
135
  border: 1px solid rgb(221, 221, 221);
153
  }
154
 
155
 
156
+ .wcps-container .wcps-flat .owl-controls span.owl-numbers {
157
+ border-radius: 0;
158
+ }
159
 
160
  .wcps-container .wcps-flat .owl-controls .owl-buttons div.owl-prev:hover{
161
  background-image: url("images/arrow-prev.png") ;
168
 
169
 
170
 
171
+ .wcps-container .wcps-flat .owl-controls {
172
+ margin-top: 30px;
173
+ }
174
 
175
 
176
 
themes/rossi/index.php CHANGED
@@ -3,13 +3,18 @@
3
  function wcps_body_rossi($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 );
@@ -17,11 +22,7 @@ function wcps_body_rossi($post_id)
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
-
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
 
@@ -33,20 +34,14 @@ function wcps_body_rossi($post_id)
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
 
37
  $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
38
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
39
-
40
- $wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
41
- $wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
42
-
43
- $wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
44
- $wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
45
-
46
  $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
47
  $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
48
 
49
- $wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
50
 
51
 
52
 
@@ -58,14 +53,10 @@ function wcps_body_rossi($post_id)
58
  .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
59
  {
60
  background: '.$wcps_cart_bg .';
61
- color:'.$wcps_cart_text_color.';
62
  }
63
 
64
- .wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
65
- {
66
- background: '.$wcps_slider_pagination_bg .';
67
- color:'.$wcps_slider_pagination_text_color.';
68
- }
69
 
70
  </style>';
71
 
@@ -88,6 +79,7 @@ function wcps_body_rossi($post_id)
88
  $wp_query = new WP_Query(
89
  array (
90
  'post_type' => 'product',
 
91
  'orderby' => 'date',
92
  'order' => 'DESC',
93
  'posts_per_page' => $wcps_total_items,
@@ -97,12 +89,13 @@ function wcps_body_rossi($post_id)
97
 
98
  }
99
 
100
- elseif(($wcps_content_source=="older"))
101
  {
102
 
103
  $wp_query = new WP_Query(
104
  array (
105
  'post_type' => 'product',
 
106
  'orderby' => 'date',
107
  'order' => 'ASC',
108
  'posts_per_page' => $wcps_total_items,
@@ -111,12 +104,13 @@ function wcps_body_rossi($post_id)
111
 
112
  }
113
 
114
- elseif(($wcps_content_source=="featured"))
115
  {
116
 
117
  $wp_query = new WP_Query(
118
  array (
119
  'post_type' => 'product',
 
120
  'meta_query' => array(
121
  array(
122
  'key' => '_featured',
@@ -126,27 +120,59 @@ function wcps_body_rossi($post_id)
126
 
127
  ) );
128
 
129
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
 
132
- elseif(($wcps_content_source=="year"))
133
  {
134
 
135
  $wp_query = new WP_Query(
136
  array (
137
  'post_type' => 'product',
 
138
  'year' => $wcps_content_year,
139
  'posts_per_page' => $wcps_total_items,
140
  ) );
141
 
142
  }
143
 
144
- elseif(($wcps_content_source=="month"))
145
  {
146
 
147
  $wp_query = new WP_Query(
148
  array (
149
  'post_type' => 'product',
 
150
  'year' => $wcps_content_month_year,
151
  'monthnum' => $wcps_content_month,
152
  'posts_per_page' => $wcps_total_items,
@@ -155,11 +181,12 @@ function wcps_body_rossi($post_id)
155
 
156
  }
157
 
158
- elseif($wcps_content_source="taxonomy")
159
  {
160
  $wp_query = new WP_Query(
161
  array (
162
- 'post_type' => 'product',
 
163
  'posts_per_page' => $wcps_total_items,
164
 
165
  'tax_query' => array(
@@ -175,13 +202,15 @@ function wcps_body_rossi($post_id)
175
 
176
 
177
 
178
- elseif(($wcps_content_source=="product_id"))
179
  {
180
 
181
  $wp_query = new WP_Query(
182
  array (
183
- 'post__in' => $wcps_product_ids,
184
  'post_type' => 'product',
 
 
 
185
 
186
 
187
  ) );
@@ -196,21 +225,50 @@ function wcps_body_rossi($post_id)
196
  while ( $wp_query->have_posts() ) : $wp_query->the_post();
197
 
198
  global $product;
199
-
200
 
201
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
 
 
202
 
203
  $wcps_thumb_url = $wcps_thumb['0'];
204
 
205
- $price = $product->get_price_html();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
 
207
  $wcps_body.= '
208
  <div class="wcps-items" >
209
 
210
- <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
211
- <div class="items-info">
212
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
213
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
 
 
 
 
 
 
 
214
  <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
215
  </div>
216
  </div>';
@@ -233,7 +291,7 @@ function wcps_body_rossi($post_id)
233
  itemsDesktop : [1000,5], //5 items between 1000px and 901px
234
  itemsDesktopSmall : [900,3], // betweem 900px and 601px
235
  itemsTablet: [600,2], //2 items between 600 and 0
236
- itemsMobile : false,
237
  navigationText : ["",""],
238
  ';
239
 
3
  function wcps_body_rossi($post_id)
4
  {
5
 
6
+ $wcps_ribbons = array('none'=>'none');
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
+
13
+ $wcps_total_items_price_format = 'full';
14
+
15
  $wcps_column_number = get_post_meta( $post_id, 'wcps_column_number', true );
16
+ $wcps_column_number_mobile = 1;
17
+
18
  $wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
19
  $wcps_stop_on_hover = get_post_meta( $post_id, 'wcps_stop_on_hover', true );
20
  $wcps_slider_navigation = get_post_meta( $post_id, 'wcps_slider_navigation', true );
22
 
23
  $wcps_slider_pagination = get_post_meta( $post_id, 'wcps_slider_pagination', true );
24
  $wcps_pagination_slide_speed = get_post_meta( $post_id, 'wcps_pagination_slide_speed', true );
25
+
 
 
 
 
26
  $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
27
  $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
28
 
34
  $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
35
  $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
36
 
37
+ $wcps_product_ids = get_post_meta( $post_id, 'wcps_product_ids', true );
38
 
39
  $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
40
+
 
 
 
 
 
 
 
41
  $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
42
  $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
43
 
44
+ $wcps_ribbon_name = 'none';
45
 
46
 
47
 
53
  .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
54
  {
55
  background: '.$wcps_cart_bg .';
 
56
  }
57
 
58
+
59
+
 
 
 
60
 
61
  </style>';
62
 
79
  $wp_query = new WP_Query(
80
  array (
81
  'post_type' => 'product',
82
+ 'post_status' => 'publish',
83
  'orderby' => 'date',
84
  'order' => 'DESC',
85
  'posts_per_page' => $wcps_total_items,
89
 
90
  }
91
 
92
+ else if(($wcps_content_source=="older"))
93
  {
94
 
95
  $wp_query = new WP_Query(
96
  array (
97
  'post_type' => 'product',
98
+ 'post_status' => 'publish',
99
  'orderby' => 'date',
100
  'order' => 'ASC',
101
  'posts_per_page' => $wcps_total_items,
104
 
105
  }
106
 
107
+ else if(($wcps_content_source=="featured"))
108
  {
109
 
110
  $wp_query = new WP_Query(
111
  array (
112
  'post_type' => 'product',
113
+ 'post_status' => 'publish',
114
  'meta_query' => array(
115
  array(
116
  'key' => '_featured',
120
 
121
  ) );
122
 
123
+ }
124
+
125
+
126
+ else if(($wcps_content_source=="on_sale"))
127
+ {
128
+
129
+ $wp_query = new WP_Query(
130
+ array (
131
+ 'post_type' => 'product',
132
+ 'post_status' => 'publish',
133
+ 'order' => 'asc',
134
+ 'posts_per_page' => $wcps_total_items,
135
+ 'meta_query' => array(
136
+ array(
137
+ 'key' => '_visibility',
138
+ 'value' => array('catalog', 'visible'),
139
+ 'compare' => 'IN'
140
+ ),
141
+ array(
142
+ 'key' => '_sale_price',
143
+ 'value' => 0,
144
+ 'compare' => '>',
145
+ 'type' => 'NUMERIC'
146
+ )
147
+ ) ));
148
+
149
+ }
150
+
151
+
152
+
153
+
154
 
155
 
156
+ else if(($wcps_content_source=="year"))
157
  {
158
 
159
  $wp_query = new WP_Query(
160
  array (
161
  'post_type' => 'product',
162
+ 'post_status' => 'publish',
163
  'year' => $wcps_content_year,
164
  'posts_per_page' => $wcps_total_items,
165
  ) );
166
 
167
  }
168
 
169
+ else if(($wcps_content_source=="month"))
170
  {
171
 
172
  $wp_query = new WP_Query(
173
  array (
174
  'post_type' => 'product',
175
+ 'post_status' => 'publish',
176
  'year' => $wcps_content_month_year,
177
  'monthnum' => $wcps_content_month,
178
  'posts_per_page' => $wcps_total_items,
181
 
182
  }
183
 
184
+ else if($wcps_content_source=="taxonomy")
185
  {
186
  $wp_query = new WP_Query(
187
  array (
188
+ 'post_type' => 'product',
189
+ 'post_status' => 'publish',
190
  'posts_per_page' => $wcps_total_items,
191
 
192
  'tax_query' => array(
202
 
203
 
204
 
205
+ else if(($wcps_content_source=="product_id"))
206
  {
207
 
208
  $wp_query = new WP_Query(
209
  array (
 
210
  'post_type' => 'product',
211
+ 'post_status' => 'publish',
212
+ 'post__in' => $wcps_product_ids,
213
+ 'posts_per_page' => $wcps_total_items,
214
 
215
 
216
  ) );
225
  while ( $wp_query->have_posts() ) : $wp_query->the_post();
226
 
227
  global $product;
 
228
 
229
+ $wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
230
+
231
+ $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
232
 
233
  $wcps_thumb_url = $wcps_thumb['0'];
234
 
235
+ $currency = get_woocommerce_currency_symbol();
236
+
237
+
238
+ if($wcps_total_items_price_format=='full')
239
+ {
240
+ $price = $product->get_price_html();
241
+ }
242
+ elseif($wcps_total_items_price_format=='sale')
243
+ {
244
+
245
+ $price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
246
+ }
247
+ elseif($wcps_total_items_price_format=='regular')
248
+ {
249
+
250
+ $price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
251
+
252
+ }
253
+ else
254
+ {
255
+ $price = $product->get_price_html();
256
+ }
257
 
258
  $wcps_body.= '
259
  <div class="wcps-items" >
260
 
261
+ <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a>';
262
+
263
+ if($wcps_featured=="yes")
264
+ {
265
+ $wcps_body.= '<div class="wcps-featured">Featured</div>';
266
+ }
267
+ $wcps_body.= '</div>';
268
+
269
+ $wcps_body.= '<div class="items-info">
270
+ <div class="wcps-items-title" style="">'.get_the_title().'</div>
271
+ <div class="wcps-items-price" style="">'.$price .'</div>
272
  <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
273
  </div>
274
  </div>';
291
  itemsDesktop : [1000,5], //5 items between 1000px and 901px
292
  itemsDesktopSmall : [900,3], // betweem 900px and 601px
293
  itemsTablet: [600,2], //2 items between 600 and 0
294
+ itemsMobile : [479,'.$wcps_column_number_mobile.'],
295
  navigationText : ["",""],
296
  ';
297
 
themes/rossi/style.css CHANGED
@@ -2,26 +2,39 @@
2
  /* CSS Document */
3
 
4
 
5
-
 
 
 
6
 
7
  .wcps-container .wcps-rossi div.wcps-items {
8
  background: none repeat scroll 0 0 rgb(255, 255, 255);
9
  box-shadow: 0 0 4px -3px rgb(0, 0, 0);
10
  margin: 0 10px;
 
11
  }
12
 
13
-
14
-
 
 
 
 
 
 
 
 
15
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-thumb {
16
  margin-bottom: 10px;
17
  overflow: hidden;
 
18
  text-align: center;
19
  }
20
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-thumb img {
21
  border-radius: 0;
22
  box-shadow: none;
 
23
  }
24
-
25
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-title {
26
  font-size: 14px;
27
  line-height: 14px;
@@ -109,8 +122,12 @@
109
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-price {
110
  text-align: center;
111
  }
 
 
 
 
 
112
 
113
- .wcps-container .wcps-rossi .owl-buttons{}
114
  .wcps-container .wcps-rossi .owl-controls .owl-buttons .owl-prev {
115
  background-image: url("images/arrow-prev.png");
116
  border: 1px solid rgb(221, 221, 221);
@@ -144,31 +161,3 @@
144
  background-image: url("images/arrow-next.png");
145
  background-color:#d5d5d5 !important; }
146
 
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
2
  /* CSS Document */
3
 
4
 
5
+ .wcps-container .wcps-rossi {
6
+ padding-bottom: 30px;
7
+ padding-top: 60px;
8
+ }
9
 
10
  .wcps-container .wcps-rossi div.wcps-items {
11
  background: none repeat scroll 0 0 rgb(255, 255, 255);
12
  box-shadow: 0 0 4px -3px rgb(0, 0, 0);
13
  margin: 0 10px;
14
+ padding-bottom: 5px;
15
  }
16
 
17
+ .wcps-container .wcps-rossi div.wcps-featured {
18
+ background: none repeat scroll 0 0 rgba(255, 186, 1, 0.84);
19
+ color: rgb(91, 91, 91);
20
+ font-size: 12px;
21
+ height: 22px;
22
+ left: 0;
23
+ position: absolute;
24
+ top: 10px;
25
+ width: 57px;
26
+ }
27
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-thumb {
28
  margin-bottom: 10px;
29
  overflow: hidden;
30
+ position: relative;
31
  text-align: center;
32
  }
33
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-thumb img {
34
  border-radius: 0;
35
  box-shadow: none;
36
+ width: 100%;
37
  }
 
38
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-title {
39
  font-size: 14px;
40
  line-height: 14px;
122
  .wcps-container .wcps-rossi div.wcps-items div.wcps-items-price {
123
  text-align: center;
124
  }
125
+ .wcps-container .wcps-rossi .owl-buttons {
126
+ position: absolute;
127
+ right: 15px;
128
+ top: 15px;
129
+ }
130
 
 
131
  .wcps-container .wcps-rossi .owl-controls .owl-buttons .owl-prev {
132
  background-image: url("images/arrow-prev.png");
133
  border: 1px solid rgb(221, 221, 221);
161
  background-image: url("images/arrow-next.png");
162
  background-color:#d5d5d5 !important; }
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/ruger/index.php DELETED
@@ -1,363 +0,0 @@
1
- <?php
2
-
3
- function wcps_body_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
-
24
- $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
25
- $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
26
-
27
- $wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
28
- $wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
29
- $wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
30
- $wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
31
-
32
- $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
33
- $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
34
-
35
-
36
- $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
37
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
38
-
39
- $wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
40
- $wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
41
-
42
- $wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
43
- $wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
44
-
45
- $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
46
- $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
47
-
48
- $wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
49
-
50
-
51
-
52
-
53
- $wcps_body = '';
54
-
55
- $wcps_body = '<style type="text/css">
56
-
57
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
58
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
59
- {
60
- background: '.$wcps_cart_bg .';
61
- color:'.$wcps_cart_text_color.';
62
- }
63
-
64
- .wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
65
- {
66
- background: '.$wcps_slider_pagination_bg .';
67
- color:'.$wcps_slider_pagination_text_color.';
68
- }
69
-
70
-
71
-
72
- </style>';
73
-
74
- $wcps_body .= '
75
- <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
76
- <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>
77
-
78
- <div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
79
-
80
- ';
81
-
82
- global $wp_query;
83
-
84
-
85
-
86
- if(($wcps_content_source=="latest"))
87
- {
88
-
89
- $wp_query = new WP_Query(
90
- array (
91
- 'post_type' => 'product',
92
- 'orderby' => 'date',
93
- 'order' => 'DESC',
94
- 'posts_per_page' => $wcps_total_items,
95
-
96
- ) );
97
-
98
-
99
- }
100
-
101
- elseif(($wcps_content_source=="older"))
102
- {
103
-
104
- $wp_query = new WP_Query(
105
- array (
106
- 'post_type' => 'product',
107
- 'orderby' => 'date',
108
- 'order' => 'ASC',
109
- 'posts_per_page' => $wcps_total_items,
110
-
111
- ) );
112
-
113
- }
114
-
115
- elseif(($wcps_content_source=="featured"))
116
- {
117
-
118
- $wp_query = new WP_Query(
119
- array (
120
- 'post_type' => 'product',
121
- 'meta_query' => array(
122
- array(
123
- 'key' => '_featured',
124
- 'value' => 'yes',
125
- )),
126
- 'posts_per_page' => $wcps_total_items,
127
-
128
- ) );
129
-
130
- }
131
-
132
-
133
- elseif(($wcps_content_source=="year"))
134
- {
135
-
136
- $wp_query = new WP_Query(
137
- array (
138
- 'post_type' => 'product',
139
- 'year' => $wcps_content_year,
140
- 'posts_per_page' => $wcps_total_items,
141
- ) );
142
-
143
- }
144
-
145
- elseif(($wcps_content_source=="month"))
146
- {
147
-
148
- $wp_query = new WP_Query(
149
- array (
150
- 'post_type' => 'product',
151
- 'year' => $wcps_content_month_year,
152
- 'monthnum' => $wcps_content_month,
153
- 'posts_per_page' => $wcps_total_items,
154
-
155
- ) );
156
-
157
- }
158
-
159
- elseif($wcps_content_source="taxonomy")
160
- {
161
- $wp_query = new WP_Query(
162
- array (
163
- 'post_type' => 'product',
164
- 'posts_per_page' => $wcps_total_items,
165
-
166
- 'tax_query' => array(
167
- array(
168
- 'taxonomy' => $wcps_taxonomy,
169
- 'field' => 'id',
170
- 'terms' => $wcps_taxonomy_category,
171
- )
172
- )
173
-
174
- ) );
175
- }
176
-
177
-
178
-
179
- elseif(($wcps_content_source=="product_id"))
180
- {
181
-
182
- $wp_query = new WP_Query(
183
- array (
184
- 'post__in' => $wcps_product_ids,
185
- 'post_type' => 'product',
186
-
187
-
188
- ) );
189
-
190
-
191
- }
192
-
193
-
194
-
195
- if ( $wp_query->have_posts() ) :
196
-
197
- while ( $wp_query->have_posts() ) : $wp_query->the_post();
198
-
199
- global $product;
200
-
201
-
202
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
203
-
204
- $wcps_thumb_url = $wcps_thumb['0'];
205
-
206
- $price = $product->get_price_html();
207
-
208
- $wcps_body.= '
209
- <div class="wcps-items" >
210
-
211
- <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
212
- <div class="items-info">
213
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
214
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
215
- <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
216
- </div>
217
- </div>';
218
-
219
- endwhile;
220
-
221
- wp_reset_query();
222
- endif;
223
-
224
-
225
-
226
- $wcps_body .= '</div></div>';
227
-
228
- $wcps_body .='<script>
229
- jQuery(document).ready(function($)
230
- {
231
- $("#wcps-'.$post_id.'").owlCarousel({
232
-
233
- items : '.$wcps_column_number.', //10 items above 1000px browser width
234
- itemsDesktop : [1000,5], //5 items between 1000px and 901px
235
- itemsDesktopSmall : [900,3], // betweem 900px and 601px
236
- itemsTablet: [600,2], //2 items between 600 and 0
237
- itemsMobile : false,
238
- navigationText : ["",""],
239
- ';
240
-
241
-
242
- if($wcps_auto_play=="true")
243
- {
244
-
245
- $wcps_body .='autoPlay: '.$wcps_auto_play.',';
246
-
247
- }
248
-
249
- if($wcps_stop_on_hover=="true")
250
- {
251
-
252
- $wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
253
-
254
- }
255
-
256
- if($wcps_slider_navigation=="true")
257
- {
258
-
259
- $wcps_body .='navigation: '.$wcps_slider_navigation.',';
260
-
261
- }
262
-
263
- if(!empty($wcps_slider_pagination))
264
- {
265
-
266
- $wcps_body .='pagination: '.$wcps_slider_pagination.',';
267
-
268
- }
269
- else
270
- {
271
- $wcps_body .='pagination: false,';
272
- }
273
-
274
-
275
- if(!empty($wcps_slider_pagination_count))
276
- {
277
-
278
- $wcps_body .='paginationNumbers: true,';
279
-
280
- }
281
- else
282
- {
283
- $wcps_body .='paginationNumbers: false,';
284
- }
285
-
286
-
287
-
288
- if(!empty($wcps_slide_speed))
289
- {
290
-
291
- $wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
292
-
293
- }
294
-
295
-
296
- if(!empty($wcps_pagination_slide_speed))
297
- {
298
-
299
- $wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
300
-
301
- }
302
-
303
-
304
- if(!empty($wcps_slider_touch_drag))
305
- {
306
-
307
- $wcps_body .='touchDrag : true,';
308
-
309
- }
310
- else
311
- {
312
- $wcps_body .='touchDrag: false,';
313
- }
314
-
315
-
316
-
317
- if(!empty($wcps_slider_mouse_drag ))
318
- {
319
-
320
- $wcps_body .='mouseDrag : true,';
321
-
322
- }
323
- else
324
- {
325
- $wcps_body .='mouseDrag : false,';
326
- }
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
- $wcps_body .='});
336
-
337
- });</script>';
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
- return $wcps_body;
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/ruger/style.css DELETED
@@ -1,206 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
-
7
- .wcps-container .wcps-ruger div.wcps-items {
8
- background: none repeat scroll 0 0 rgb(255, 255, 255);
9
- box-shadow: 0 0 4px -3px rgb(0, 0, 0);
10
- margin: 0 10px;
11
- position: relative;
12
- }
13
-
14
-
15
-
16
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-thumb {
17
- margin-bottom: 10px;
18
- overflow: hidden;
19
- text-align: center;
20
- }
21
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-thumb img {
22
- border-radius: 0;
23
- box-shadow: none;
24
- }
25
-
26
-
27
- .wcps-container .wcps-ruger div.wcps-items div.items-info {
28
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
29
- bottom: 0;
30
- display: block;
31
- left: 0;
32
-
33
- position: absolute;
34
- transform: translateY(500px);
35
- transition: all 0.8s ease 0s;
36
- width: 100%;
37
- }
38
-
39
- .wcps-container .wcps-ruger div.wcps-items:hover div.items-info{
40
-
41
- transform: translateY(0px);
42
- }
43
-
44
-
45
-
46
-
47
-
48
-
49
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-title {
50
- font-size: 14px;
51
- line-height: 14px;
52
- padding: 10px 0;
53
- text-align: center;
54
- }
55
-
56
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart {
57
- text-align: center;
58
- }
59
-
60
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart p {
61
- border: medium none !important;
62
- }
63
-
64
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart span.amount {
65
- font-size: 15px;
66
- line-height: 15px;
67
- }
68
-
69
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart del{
70
-
71
- }
72
-
73
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart del span.amount{
74
-
75
- }
76
-
77
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart ins {
78
-
79
- }
80
-
81
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart ins span.amount{
82
-
83
- }
84
-
85
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart span.amount{
86
-
87
- }
88
-
89
-
90
-
91
-
92
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart .amount,
93
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart del,
94
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart ins{
95
- display:none; }
96
-
97
-
98
-
99
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart a.add_to_cart_button {
100
- background: none repeat scroll 0 0 rgb(13, 225, 133);
101
- border: medium none;
102
- border-radius: 0;
103
- box-shadow: none;
104
- font-size: 12px;
105
- line-height: 12px;
106
- margin-top: 15px;
107
- padding: 10px 15px;
108
- text-shadow: none;
109
- }
110
-
111
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart a.added_to_cart {
112
- background: none repeat scroll 0 0 rgb(13, 225, 133);
113
- border: medium none;
114
- border-radius: 0;
115
- box-shadow: none;
116
- color: rgb(68, 68, 68);
117
- font-size: 12px;
118
- line-height: 12px;
119
- margin-top: 15px;
120
- padding: 10px 15px;
121
- text-decoration: none;
122
- text-shadow: none;
123
- }
124
-
125
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-cart a.added {
126
- display: none;
127
- }
128
-
129
-
130
-
131
-
132
-
133
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-price {
134
- text-align: center;
135
- }
136
-
137
-
138
- .wcps-container .wcps-ruger div.wcps-items div.wcps-items-price span.amount {
139
- background: #ddd;
140
- border: 1px solid #fff;
141
- padding: 4px 10px;
142
- }
143
-
144
-
145
- .wcps-container .wcps-ruger .owl-buttons{}
146
- .wcps-container .wcps-ruger .owl-controls .owl-buttons .owl-prev {
147
- background-image: url("images/arrow-prev.png");
148
- border: 1px solid rgb(221, 221, 221);
149
- border-radius: 0;
150
- color: rgb(0, 0, 0);
151
- padding: 0;
152
- width: 30px;
153
- height: 20px;
154
- }
155
-
156
-
157
-
158
- .wcps-container .wcps-ruger .owl-controls .owl-buttons .owl-next {
159
- background-image: url("images/arrow-next.png");
160
- border: 1px solid rgb(221, 221, 221);
161
- border-radius: 0;
162
- color: rgb(0, 0, 0);
163
- padding: 0;
164
- width: 30px;
165
- height: 20px;
166
- }
167
-
168
-
169
-
170
- .wcps-container .wcps-ruger .owl-controls .owl-buttons div.owl-prev:hover{
171
- background-image: url("images/arrow-prev.png") ;
172
- background-color:#d5d5d5 !important; }
173
-
174
-
175
- .wcps-container .wcps-ruger .owl-controls .owl-buttons div.owl-next:hover{
176
- background-image: url("images/arrow-next.png");
177
- background-color:#d5d5d5 !important; }
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/saiga/images/arrow-next.png DELETED
Binary file
themes/saiga/images/arrow-prev.png DELETED
Binary file
themes/saiga/index.php DELETED
@@ -1,360 +0,0 @@
1
- <?php
2
-
3
- function wcps_body_saiga($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
-
24
- $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
25
- $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
26
-
27
- $wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
28
- $wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
29
- $wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
30
- $wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
31
-
32
- $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
33
- $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
34
-
35
-
36
- $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
37
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
38
-
39
- $wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
40
- $wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
41
-
42
- $wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
43
- $wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
44
-
45
- $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
46
- $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
47
-
48
- $wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
49
-
50
-
51
-
52
-
53
- $wcps_body = '';
54
- $wcps_body = '<style type="text/css">
55
-
56
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
57
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
58
- {
59
- background: '.$wcps_cart_bg .';
60
- color:'.$wcps_cart_text_color.';
61
- }
62
-
63
- .wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
64
- {
65
- background: '.$wcps_slider_pagination_bg .';
66
- color:'.$wcps_slider_pagination_text_color.';
67
- }
68
-
69
-
70
- </style>';
71
- $wcps_body .= '
72
- <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
73
- <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>
74
-
75
- <div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
76
-
77
- ';
78
-
79
- global $wp_query;
80
-
81
-
82
-
83
- if(($wcps_content_source=="latest"))
84
- {
85
-
86
- $wp_query = new WP_Query(
87
- array (
88
- 'post_type' => 'product',
89
- 'orderby' => 'date',
90
- 'order' => 'DESC',
91
- 'posts_per_page' => $wcps_total_items,
92
-
93
- ) );
94
-
95
-
96
- }
97
-
98
- elseif(($wcps_content_source=="older"))
99
- {
100
-
101
- $wp_query = new WP_Query(
102
- array (
103
- 'post_type' => 'product',
104
- 'orderby' => 'date',
105
- 'order' => 'ASC',
106
- 'posts_per_page' => $wcps_total_items,
107
-
108
- ) );
109
-
110
- }
111
-
112
- elseif(($wcps_content_source=="featured"))
113
- {
114
-
115
- $wp_query = new WP_Query(
116
- array (
117
- 'post_type' => 'product',
118
- 'meta_query' => array(
119
- array(
120
- 'key' => '_featured',
121
- 'value' => 'yes',
122
- )),
123
- 'posts_per_page' => $wcps_total_items,
124
-
125
- ) );
126
-
127
- }
128
-
129
-
130
- elseif(($wcps_content_source=="year"))
131
- {
132
-
133
- $wp_query = new WP_Query(
134
- array (
135
- 'post_type' => 'product',
136
- 'year' => $wcps_content_year,
137
- 'posts_per_page' => $wcps_total_items,
138
- ) );
139
-
140
- }
141
-
142
- elseif(($wcps_content_source=="month"))
143
- {
144
-
145
- $wp_query = new WP_Query(
146
- array (
147
- 'post_type' => 'product',
148
- 'year' => $wcps_content_month_year,
149
- 'monthnum' => $wcps_content_month,
150
- 'posts_per_page' => $wcps_total_items,
151
-
152
- ) );
153
-
154
- }
155
-
156
- elseif($wcps_content_source="taxonomy")
157
- {
158
- $wp_query = new WP_Query(
159
- array (
160
- 'post_type' => 'product',
161
- 'posts_per_page' => $wcps_total_items,
162
-
163
- 'tax_query' => array(
164
- array(
165
- 'taxonomy' => $wcps_taxonomy,
166
- 'field' => 'id',
167
- 'terms' => $wcps_taxonomy_category,
168
- )
169
- )
170
-
171
- ) );
172
- }
173
-
174
-
175
-
176
- elseif(($wcps_content_source=="product_id"))
177
- {
178
-
179
- $wp_query = new WP_Query(
180
- array (
181
- 'post__in' => $wcps_product_ids,
182
- 'post_type' => 'product',
183
-
184
-
185
- ) );
186
-
187
-
188
- }
189
-
190
-
191
-
192
- if ( $wp_query->have_posts() ) :
193
-
194
- while ( $wp_query->have_posts() ) : $wp_query->the_post();
195
-
196
- global $product;
197
-
198
-
199
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
200
-
201
- $wcps_thumb_url = $wcps_thumb['0'];
202
-
203
- $price = $product->get_price_html();
204
-
205
- $wcps_body.= '
206
- <div class="wcps-items" >
207
-
208
- <div class="items-info">
209
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
210
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
211
- <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
212
- </div>
213
- <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
214
- </div>';
215
-
216
- endwhile;
217
-
218
- wp_reset_query();
219
- endif;
220
-
221
-
222
-
223
- $wcps_body .= '</div></div>';
224
-
225
- $wcps_body .='<script>
226
- jQuery(document).ready(function($)
227
- {
228
- $("#wcps-'.$post_id.'").owlCarousel({
229
-
230
- items : '.$wcps_column_number.', //10 items above 1000px browser width
231
- itemsDesktop : [1000,5], //5 items between 1000px and 901px
232
- itemsDesktopSmall : [900,3], // betweem 900px and 601px
233
- itemsTablet: [600,2], //2 items between 600 and 0
234
- itemsMobile : false,
235
- navigationText : ["",""],
236
- ';
237
-
238
-
239
- if($wcps_auto_play=="true")
240
- {
241
-
242
- $wcps_body .='autoPlay: '.$wcps_auto_play.',';
243
-
244
- }
245
-
246
- if($wcps_stop_on_hover=="true")
247
- {
248
-
249
- $wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
250
-
251
- }
252
-
253
- if($wcps_slider_navigation=="true")
254
- {
255
-
256
- $wcps_body .='navigation: '.$wcps_slider_navigation.',';
257
-
258
- }
259
-
260
- if(!empty($wcps_slider_pagination))
261
- {
262
-
263
- $wcps_body .='pagination: '.$wcps_slider_pagination.',';
264
-
265
- }
266
- else
267
- {
268
- $wcps_body .='pagination: false,';
269
- }
270
-
271
-
272
- if(!empty($wcps_slider_pagination_count))
273
- {
274
-
275
- $wcps_body .='paginationNumbers: true,';
276
-
277
- }
278
- else
279
- {
280
- $wcps_body .='paginationNumbers: false,';
281
- }
282
-
283
-
284
-
285
- if(!empty($wcps_slide_speed))
286
- {
287
-
288
- $wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
289
-
290
- }
291
-
292
-
293
- if(!empty($wcps_pagination_slide_speed))
294
- {
295
-
296
- $wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
297
-
298
- }
299
-
300
-
301
- if(!empty($wcps_slider_touch_drag))
302
- {
303
-
304
- $wcps_body .='touchDrag : true,';
305
-
306
- }
307
- else
308
- {
309
- $wcps_body .='touchDrag: false,';
310
- }
311
-
312
-
313
-
314
- if(!empty($wcps_slider_mouse_drag ))
315
- {
316
-
317
- $wcps_body .='mouseDrag : true,';
318
-
319
- }
320
- else
321
- {
322
- $wcps_body .='mouseDrag : false,';
323
- }
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
- $wcps_body .='});
333
-
334
- });</script>';
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
- return $wcps_body;
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/saiga/style.css DELETED
@@ -1,193 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
-
7
- .wcps-container .wcps-saiga div.wcps-items {
8
- background: none repeat scroll 0 0 rgb(255, 255, 255);
9
- box-shadow: 0 0 4px -3px rgb(0, 0, 0);
10
- margin: 0 10px;
11
- }
12
-
13
- .wcps-container .wcps-saiga div.wcps-items div.items-info{}
14
-
15
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-thumb {
16
- overflow: hidden;
17
- text-align: center;
18
- }
19
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-thumb img {
20
- border-radius: 0;
21
- box-shadow: none;
22
- }
23
-
24
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-title {
25
- font-size: 14px;
26
- line-height: 14px;
27
- padding: 20px 0 10px;
28
- text-align: center;
29
- }
30
-
31
-
32
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-price{}
33
-
34
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-price span.amount{}
35
-
36
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart {
37
- text-align: center;
38
- }
39
-
40
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart p {
41
- border: medium none !important;
42
- }
43
-
44
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart span.amount {
45
- font-size: 15px;
46
- line-height: 15px;
47
- }
48
-
49
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart del{
50
-
51
- }
52
-
53
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-price span.amount {
54
- background: none repeat scroll 0 0 #e9e9e9;
55
- border: 1px solid #ddd;
56
- border-radius: 3px;
57
- padding: 3px 10px;
58
- }
59
-
60
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-price span.amount:hover {
61
- border: 1px solid #888;
62
- cursor:pointer;
63
-
64
- }
65
-
66
-
67
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart ins {
68
-
69
- }
70
-
71
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart ins span.amount{
72
-
73
- }
74
-
75
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart span.amount{
76
-
77
- }
78
-
79
-
80
-
81
-
82
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart .amount,
83
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart del,
84
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart ins{
85
- display:none; }
86
-
87
-
88
-
89
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart a.add_to_cart_button {
90
- background: none repeat scroll 0 0 rgb(13, 225, 133);
91
- border: 1px solid rgba(0,0,0,0);
92
- border-radius: 0;
93
- box-shadow: none;
94
- font-size: 12px;
95
- line-height: 12px;
96
- margin-top: 10px;
97
- padding: 10px 15px;
98
- text-shadow: none;
99
- }
100
-
101
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart a.add_to_cart_button:hover{
102
- border: 1px solid #888;
103
- }
104
-
105
-
106
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart a.added_to_cart {
107
- background: none repeat scroll 0 0 rgb(13, 225, 133);
108
- border: medium none;
109
- border-radius: 0;
110
- box-shadow: none;
111
- color: rgb(68, 68, 68);
112
- font-size: 12px;
113
- line-height: 12px;
114
- margin-top: 15px;
115
- padding: 10px 15px;
116
- text-decoration: none;
117
- text-shadow: none;
118
- }
119
-
120
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-cart a.added {
121
- display: none;
122
- }
123
-
124
-
125
-
126
-
127
-
128
- .wcps-container .wcps-saiga div.wcps-items div.wcps-items-price {
129
- text-align: center;
130
- }
131
-
132
- .wcps-container .wcps-saiga .owl-buttons{}
133
- .wcps-container .wcps-saiga .owl-controls .owl-buttons .owl-prev {
134
- background-image: url("images/arrow-prev.png");
135
- border: 1px solid rgb(221, 221, 221);
136
- border-radius: 0;
137
- color: rgb(0, 0, 0);
138
- padding: 0;
139
- width: 30px;
140
- height: 20px;
141
- }
142
-
143
-
144
-
145
- .wcps-container .wcps-saiga .owl-controls .owl-buttons .owl-next {
146
- background-image: url("images/arrow-next.png");
147
- border: 1px solid rgb(221, 221, 221);
148
- border-radius: 0;
149
- color: rgb(0, 0, 0);
150
- padding: 0;
151
- width: 30px;
152
- height: 20px;
153
- }
154
-
155
-
156
-
157
- .wcps-container .wcps-saiga .owl-controls .owl-buttons div.owl-prev:hover{
158
- background-image: url("images/arrow-prev.png") ;
159
- background-color:#d5d5d5 !important; }
160
-
161
-
162
- .wcps-container .wcps-saiga .owl-controls .owl-buttons div.owl-next:hover{
163
- background-image: url("images/arrow-next.png");
164
- background-color:#d5d5d5 !important; }
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/sako/images/arrow-next.png DELETED
Binary file
themes/sako/images/arrow-prev.png DELETED
Binary file
themes/sako/index.php DELETED
@@ -1,359 +0,0 @@
1
- <?php
2
-
3
- function wcps_body_sako($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
-
24
- $wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
25
- $wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
26
-
27
- $wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
28
- $wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
29
- $wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
30
- $wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
31
-
32
- $wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
33
- $wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
34
-
35
-
36
- $wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
37
- $wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
38
-
39
- $wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
40
- $wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
41
-
42
- $wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
43
- $wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
44
-
45
- $wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
46
- $wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
47
-
48
- $wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
49
-
50
-
51
-
52
-
53
- $wcps_body = '';
54
- $wcps_body = '<style type="text/css">
55
-
56
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
57
- .wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
58
- {
59
- background: '.$wcps_cart_bg.';
60
- color:'.$wcps_cart_text_color.';
61
- }
62
-
63
- .wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
64
- {
65
- background: '.$wcps_slider_pagination_bg .';
66
- color:'.$wcps_slider_pagination_text_color.';
67
- }
68
-
69
- </style>';
70
-
71
- $wcps_body .= '
72
- <div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
73
- <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>
74
-
75
- <div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
76
-
77
- ';
78
-
79
- global $wp_query;
80
-
81
-
82
- if(($wcps_content_source=="latest"))
83
- {
84
-
85
- $wp_query = new WP_Query(
86
- array (
87
- 'post_type' => 'product',
88
- 'orderby' => 'date',
89
- 'order' => 'DESC',
90
- 'posts_per_page' => $wcps_total_items,
91
-
92
- ) );
93
-
94
-
95
- }
96
-
97
- elseif(($wcps_content_source=="older"))
98
- {
99
-
100
- $wp_query = new WP_Query(
101
- array (
102
- 'post_type' => 'product',
103
- 'orderby' => 'date',
104
- 'order' => 'ASC',
105
- 'posts_per_page' => $wcps_total_items,
106
-
107
- ) );
108
-
109
- }
110
-
111
- elseif(($wcps_content_source=="featured"))
112
- {
113
-
114
- $wp_query = new WP_Query(
115
- array (
116
- 'post_type' => 'product',
117
- 'meta_query' => array(
118
- array(
119
- 'key' => '_featured',
120
- 'value' => 'yes',
121
- )),
122
- 'posts_per_page' => $wcps_total_items,
123
-
124
- ) );
125
-
126
- }
127
-
128
-
129
- elseif(($wcps_content_source=="year"))
130
- {
131
-
132
- $wp_query = new WP_Query(
133
- array (
134
- 'post_type' => 'product',
135
- 'year' => $wcps_content_year,
136
- 'posts_per_page' => $wcps_total_items,
137
- ) );
138
-
139
- }
140
-
141
- elseif(($wcps_content_source=="month"))
142
- {
143
-
144
- $wp_query = new WP_Query(
145
- array (
146
- 'post_type' => 'product',
147
- 'year' => $wcps_content_month_year,
148
- 'monthnum' => $wcps_content_month,
149
- 'posts_per_page' => $wcps_total_items,
150
-
151
- ) );
152
-
153
- }
154
-
155
- elseif($wcps_content_source="taxonomy")
156
- {
157
- $wp_query = new WP_Query(
158
- array (
159
- 'post_type' => 'product',
160
- 'posts_per_page' => $wcps_total_items,
161
-
162
- 'tax_query' => array(
163
- array(
164
- 'taxonomy' => $wcps_taxonomy,
165
- 'field' => 'id',
166
- 'terms' => $wcps_taxonomy_category,
167
- )
168
- )
169
-
170
- ) );
171
- }
172
-
173
-
174
-
175
- elseif(($wcps_content_source=="product_id"))
176
- {
177
-
178
- $wp_query = new WP_Query(
179
- array (
180
- 'post__in' => $wcps_product_ids,
181
- 'post_type' => 'product',
182
-
183
-
184
- ) );
185
-
186
-
187
- }
188
-
189
-
190
-
191
- if ( $wp_query->have_posts() ) :
192
-
193
- while ( $wp_query->have_posts() ) : $wp_query->the_post();
194
-
195
- global $product;
196
-
197
-
198
- $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $wcps_items_thumb_size );
199
-
200
- $wcps_thumb_url = $wcps_thumb['0'];
201
-
202
- $price = $product->get_price_html();
203
-
204
- $wcps_body.= '
205
- <div class="wcps-items" >
206
-
207
- <div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img src="'.$wcps_thumb_url.'" /></a></div>
208
- <div class="items-info">
209
- <div class="wcps-items-title" style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'">'.get_the_title().'</div>
210
- <div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.$price .'</div>
211
- <div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
212
- </div>
213
- </div>';
214
-
215
- endwhile;
216
-
217
- wp_reset_query();
218
- endif;
219
-
220
-
221
-
222
- $wcps_body .= '</div></div>';
223
-
224
- $wcps_body .='<script>
225
- jQuery(document).ready(function($)
226
- {
227
- $("#wcps-'.$post_id.'").owlCarousel({
228
-
229
- items : '.$wcps_column_number.', //10 items above 1000px browser width
230
- itemsDesktop : [1000,5], //5 items between 1000px and 901px
231
- itemsDesktopSmall : [900,3], // betweem 900px and 601px
232
- itemsTablet: [600,2], //2 items between 600 and 0
233
- itemsMobile : false,
234
- navigationText : ["",""],
235
- ';
236
-
237
-
238
- if($wcps_auto_play=="true")
239
- {
240
-
241
- $wcps_body .='autoPlay: '.$wcps_auto_play.',';
242
-
243
- }
244
-
245
- if($wcps_stop_on_hover=="true")
246
- {
247
-
248
- $wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
249
-
250
- }
251
-
252
- if($wcps_slider_navigation=="true")
253
- {
254
-
255
- $wcps_body .='navigation: '.$wcps_slider_navigation.',';
256
-
257
- }
258
-
259
- if(!empty($wcps_slider_pagination))
260
- {
261
-
262
- $wcps_body .='pagination: '.$wcps_slider_pagination.',';
263
-
264
- }
265
- else
266
- {
267
- $wcps_body .='pagination: false,';
268
- }
269
-
270
-
271
- if(!empty($wcps_slider_pagination_count))
272
- {
273
-
274
- $wcps_body .='paginationNumbers: true,';
275
-
276
- }
277
- else
278
- {
279
- $wcps_body .='paginationNumbers: false,';
280
- }
281
-
282
-
283
-
284
- if(!empty($wcps_slide_speed))
285
- {
286
-
287
- $wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
288
-
289
- }
290
-
291
-
292
- if(!empty($wcps_pagination_slide_speed))
293
- {
294
-
295
- $wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
296
-
297
- }
298
-
299
-
300
- if(!empty($wcps_slider_touch_drag))
301
- {
302
-
303
- $wcps_body .='touchDrag : true,';
304
-
305
- }
306
- else
307
- {
308
- $wcps_body .='touchDrag: false,';
309
- }
310
-
311
-
312
-
313
- if(!empty($wcps_slider_mouse_drag ))
314
- {
315
-
316
- $wcps_body .='mouseDrag : true,';
317
-
318
- }
319
- else
320
- {
321
- $wcps_body .='mouseDrag : false,';
322
- }
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
- $wcps_body .='});
332
-
333
- });</script>';
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
- return $wcps_body;
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/sako/style.css DELETED
@@ -1,206 +0,0 @@
1
- @charset "utf-8";
2
- /* CSS Document */
3
-
4
-
5
-
6
-
7
- .wcps-container .wcps-sako div.wcps-items {
8
- background: none repeat scroll 0 0 rgb(255, 255, 255);
9
- box-shadow: 0 0 4px -3px rgb(0, 0, 0);
10
- margin: 0 10px;
11
- position: relative;
12
- }
13
-
14
-
15
-
16
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-thumb {
17
- margin-bottom: 10px;
18
- overflow: hidden;
19
- text-align: center;
20
- }
21
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-thumb img {
22
- border-radius: 0;
23
- box-shadow: none;
24
- }
25
-
26
-
27
- .wcps-container .wcps-sako div.wcps-items div.items-info {
28
- background:none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
29
- bottom: 0;
30
- display: block;
31
- left: 0;
32
- position: absolute;
33
- width: 100%;
34
- opacity:0;
35
- transition: all 0.7s ease 0s;
36
-
37
-
38
- }
39
-
40
- .wcps-container .wcps-sako div.wcps-items:hover div.items-info{
41
- opacity:1;
42
- }
43
-
44
-
45
-
46
-
47
-
48
-
49
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-title {
50
- font-size: 14px;
51
- line-height: 14px;
52
- padding: 10px 0;
53
- text-align: center;
54
- }
55
-
56
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart {
57
- text-align: center;
58
- }
59
-
60
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart p {
61
- border: medium none !important;
62
- }
63
-
64
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart span.amount {
65
- font-size: 15px;
66
- line-height: 15px;
67
- }
68
-
69
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart del{
70
-
71
- }
72
-
73
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart del span.amount{
74
-
75
- }
76
-
77
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart ins {
78
-
79
- }
80
-
81
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart ins span.amount{
82
-
83
- }
84
-
85
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart span.amount{
86
-
87
- }
88
-
89
-
90
-
91
-
92
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart .amount,
93
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart del,
94
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart ins{
95
- display:none; }
96
-
97
-
98
-
99
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart a.add_to_cart_button {
100
- background: none repeat scroll 0 0 rgb(13, 225, 133);
101
- border: medium none;
102
- border-radius: 0;
103
- box-shadow: none;
104
- font-size: 12px;
105
- line-height: 12px;
106
- margin-top: 15px;
107
- padding: 10px 15px;
108
- text-shadow: none;
109
- }
110
-
111
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart a.added_to_cart {
112
- background: none repeat scroll 0 0 rgb(13, 225, 133);
113
- border: medium none;
114
- border-radius: 0;
115
- box-shadow: none;
116
- color: rgb(68, 68, 68);
117
- font-size: 12px;
118
- line-height: 12px;
119
- margin-top: 15px;
120
- padding: 10px 15px;
121
- text-decoration: none;
122
- text-shadow: none;
123
- }
124
-
125
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-cart a.added {
126
- display: none;
127
- }
128
-
129
-
130
-
131
-
132
-
133
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-price {
134
- text-align: center;
135
- }
136
-
137
-
138
- .wcps-container .wcps-sako div.wcps-items div.wcps-items-price span.amount {
139
- background: #ddd;
140
- border: 1px solid #fff;
141
- padding: 4px 10px;
142
- }
143
-
144
-
145
- .wcps-container .wcps-sako .owl-buttons{}
146
- .wcps-container .wcps-sako .owl-controls .owl-buttons .owl-prev {
147
- background-image: url("images/arrow-prev.png");
148
- border: 1px solid rgb(221, 221, 221);
149
- border-radius: 0;
150
- color: rgb(0, 0, 0);
151
- padding: 0;
152
- width: 30px;
153
- height: 20px;
154
- }
155
-
156
-
157
-
158
- .wcps-container .wcps-sako .owl-controls .owl-buttons .owl-next {
159
- background-image: url("images/arrow-next.png");
160
- border: 1px solid rgb(221, 221, 221);
161
- border-radius: 0;
162
- color: rgb(0, 0, 0);
163
- padding: 0;
164
- width: 30px;
165
- height: 20px;
166
- }
167
-
168
-
169
-
170
- .wcps-container .wcps-sako .owl-controls .owl-buttons div.owl-prev:hover{
171
- background-image: url("images/arrow-prev.png") ;
172
- background-color:#d5d5d5 !important; }
173
-
174
-
175
- .wcps-container .wcps-sako .owl-controls .owl-buttons div.owl-next:hover{
176
- background-image: url("images/arrow-next.png");
177
- background-color:#d5d5d5 !important; }
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wcps-help.php DELETED
@@ -1,114 +0,0 @@
1
- <div class="wrap">
2
- <?php echo "<h2>".__('Woocommerce Products Slider Help')."</h2>";?>
3
- <br />
4
-
5
-
6
-
7
-
8
- <h3>Have any issue ?</h3>
9
-
10
- <p>Feel free to Contact with any issue for this plugin <a href="http://paratheme.com/qa/">http://paratheme.com/qa/</a>
11
- </p>
12
-
13
- <?php
14
-
15
- $wcps_customer_type = get_option('wcps_customer_type');
16
- $wcps_version = get_option('wcps_version');
17
-
18
-
19
- ?>
20
- <?php
21
- if($wcps_customer_type=="free")
22
- {
23
- echo '<p>You are using <strong> '.$wcps_customer_type.' version '.$wcps_version.'</strong> of Woocommerce Products Slider, To get more feature you could try our premium version. </p>';
24
- }
25
- elseif($wcps_customer_type=="pro")
26
- {
27
- echo '<p>Thanks for using <strong> '.$wcps_customer_type.' version '.$wcps_version.'</strong> of wcps </p>';
28
- }
29
-
30
- ?>
31
-
32
-
33
-
34
-
35
- <?php
36
- if($wcps_customer_type=="free")
37
- {
38
- ?>
39
- <br />
40
- <b>Premium Version Features</b><br />
41
-
42
- <ul class="wcps-pro-features">
43
-
44
- <li>Life Time Automatic Update.</li>
45
- <li>Life Time Support via forum.</li>
46
- <li>7 Days Refund.</li>
47
- <li>Unlimited slider anywhere.</li>
48
- <li>Fully responsive and mobile ready.</li>
49
- <li>Query product by Taxonomy and Categories.</li>
50
- <li>Query product by Product id.</li>
51
- <li>Amazing extra 5 themes.</li>
52
- <li>Slider Items Title Color.</li>
53
- <li>Slider Items Price Color.</li>
54
- <li>Slider Custom ribbons.</li>
55
-
56
-
57
- </ul>
58
-
59
- <br /><br />
60
- <h3>Get Premium Vesrion:</h3><br />
61
- <strong style="font-size:20px;">Price: $5(USD)</strong><br />
62
- Plugin Link: <a target="_blank" href="http://paratheme.com/items/woocommerce-product-slider-for-wordpress/">http://paratheme.com/items/woocommerce-product-slider-for-wordpress/</a><br /><br /> <br />
63
-
64
-
65
- </p>
66
-
67
-
68
-
69
- <?php
70
- }
71
-
72
- ?>
73
-
74
- <br />
75
- <h3>Please share this plugin with your friends?</h3>
76
- <table>
77
- <tr>
78
- <td width="100px">
79
- <!-- Place this tag in your head or just before your close body tag. -->
80
- <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
81
-
82
- <!-- Place this tag where you want the +1 button to render. -->
83
- <div class="g-plusone" data-size="medium" data-href="http://wordpress.org/plugins/woocommerce-products-slider/"></div>
84
-
85
- </td>
86
- <td width="100px">
87
- <iframe src="//www.facebook.com/plugins/like.php?href=http://wordpress.org/plugins/woocommerce-products-slider/&amp;width=100&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=21&amp;appId=743541755673761" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
88
-
89
- </td>
90
- <td width="100px">
91
-
92
-
93
-
94
-
95
-
96
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://wordpress.org/plugins/woocommerce-products-slider/" data-text="Timeline Pro – Responsive Timeline for WordPres">Tweet</a>
97
- <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>
98
- </td>
99
-
100
- </tr>
101
-
102
- </table>
103
-
104
-
105
-
106
- </div>
107
- <style type="text/css">
108
- .wcps-pro-features{}
109
-
110
- .wcps-pro-features li {
111
- list-style: disc inside none;
112
- }
113
-
114
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wcps-settings.php CHANGED
@@ -26,6 +26,16 @@
26
  <?php
27
  }
28
  }
 
 
 
 
 
 
 
 
 
 
29
  ?>
30
 
31
 
@@ -34,7 +44,7 @@
34
 
35
  <div class="wrap">
36
 
37
- <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__('wcps Settings')."</h2>";?>
38
  <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
39
  <input type="hidden" name="wcps_hidden" value="Y">
40
  <?php settings_fields( 'wcps_plugin_options' );
@@ -43,216 +53,200 @@
43
  ?>
44
 
45
 
 
 
 
 
 
46
 
47
-
48
- <table class="form-table">
49
-
50
-
51
-
52
-
53
-
54
- <tr valign="top">
55
- <td style="vertical-align:middle;">
56
- <strong>Ribbons</strong><br /><br />
57
- <span style=" color:#22aa5d;font-size: 12px;">You can use your own ribbons icon by inserting ribbon url to text field, image size for ribbons must be same as 90px × 24px</span>
58
- <table>
59
-
60
- <tr>
61
- <td>Best</td>
62
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["best"])) echo wcps_plugin_url."css/ribbons/best.png"; else echo $wcps_ribbons["best"]; ?>" /></td>
63
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[best]" type="text" value="<?php if(empty($wcps_ribbons["best"])) echo wcps_plugin_url."css/ribbons/best.png"; else echo $wcps_ribbons["best"]; ?>" /></td>
64
- </tr>
65
-
66
-
67
-
68
- <tr>
69
- <td>Discount 10%</td>
70
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-10"])) echo wcps_plugin_url."css/ribbons/dis-10.png"; else echo $wcps_ribbons["dis-10"]; ?>" /></td>
71
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-10]" type="text" value="<?php if(empty($wcps_ribbons["dis-10"])) echo wcps_plugin_url."css/ribbons/dis-10.png"; else echo $wcps_ribbons["dis-10"]; ?>" /></td>
72
- </tr>
73
-
74
-
75
-
76
-
77
- <tr>
78
- <td>Discount 20%</td>
79
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-20"])) echo wcps_plugin_url."css/ribbons/dis-20.png"; else echo $wcps_ribbons["dis-20"]; ?>" /></td>
80
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-20]" type="text" value="<?php if(empty($wcps_ribbons["dis-20"])) echo wcps_plugin_url."css/ribbons/dis-20.png"; else echo $wcps_ribbons["dis-20"]; ?>" /></td>
81
- </tr>
82
-
83
-
84
- <tr>
85
- <td>Discount 30%</td>
86
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-30"])) echo wcps_plugin_url."css/ribbons/dis-30.png"; else echo $wcps_ribbons["dis-30"]; ?>" /></td>
87
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-30]" type="text" value="<?php if(empty($wcps_ribbons["dis-30"])) echo wcps_plugin_url."css/ribbons/dis-30.png"; else echo $wcps_ribbons["dis-30"]; ?>" /></td>
88
- </tr>
89
-
90
-
91
- <tr>
92
- <td>Discount 40%</td>
93
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-40"])) echo wcps_plugin_url."css/ribbons/dis-40.png"; else echo $wcps_ribbons["dis-40"]; ?>" /></td>
94
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-40]" type="text" value="<?php if(empty($wcps_ribbons["dis-40"])) echo wcps_plugin_url."css/ribbons/dis-40.png"; else echo $wcps_ribbons["dis-40"]; ?>" /></td>
95
- </tr>
96
-
97
-
98
- <tr>
99
- <td>Discount 50%</td>
100
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-50"])) echo wcps_plugin_url."css/ribbons/dis-50.png"; else echo $wcps_ribbons["dis-50"]; ?>" /></td>
101
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-50]" type="text" value="<?php if(empty($wcps_ribbons["dis-50"])) echo wcps_plugin_url."css/ribbons/dis-50.png"; else echo $wcps_ribbons["dis-50"]; ?>" /></td>
102
- </tr>
103
-
104
-
105
-
106
- <tr>
107
- <td>Discount 60%</td>
108
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-60"])) echo wcps_plugin_url."css/ribbons/dis-60.png"; else echo $wcps_ribbons["dis-60"]; ?>" /></td>
109
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-60]" type="text" value="<?php if(empty($wcps_ribbons["dis-60"])) echo wcps_plugin_url."css/ribbons/dis-60.png"; else echo $wcps_ribbons["dis-60"]; ?>" /></td>
110
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
 
 
 
112
 
 
113
 
114
-
115
- <tr>
116
- <td>Discount 70%</td>
117
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-70"])) echo wcps_plugin_url."css/ribbons/dis-70.png"; else echo $wcps_ribbons["dis-70"]; ?>" /></td>
118
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-70]" type="text" value="<?php if(empty($wcps_ribbons["dis-70"])) echo wcps_plugin_url."css/ribbons/dis-70.png"; else echo $wcps_ribbons["dis-70"]; ?>" /></td>
119
- </tr>
120
-
121
-
122
-
123
-
124
- <tr>
125
- <td>Discount 80%</td>
126
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-80"])) echo wcps_plugin_url."css/ribbons/dis-80.png"; else echo $wcps_ribbons["dis-80"]; ?>" /></td>
127
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-80]" type="text" value="<?php if(empty($wcps_ribbons["dis-80"])) echo wcps_plugin_url."css/ribbons/dis-80.png"; else echo $wcps_ribbons["dis-80"]; ?>" /></td>
128
- </tr>
129
-
130
-
131
-
132
- <tr>
133
- <td>Discount 90%</td>
134
- <td><img title="size - 90px * 24px " src="<?php if(empty($wcps_ribbons["dis-90"])) echo wcps_plugin_url."css/ribbons/dis-90.png"; else echo $wcps_ribbons["dis-90"]; ?>" /></td>
135
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-90]" type="text" value="<?php if(empty($wcps_ribbons["dis-90"])) echo wcps_plugin_url."css/ribbons/dis-90.png"; else echo $wcps_ribbons["dis-90"]; ?>" /></td>
136
- </tr>
137
 
 
138
 
 
 
 
 
 
139
 
140
- <tr>
141
- <td>Discount 100%</td>
142
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["dis-100"])) echo wcps_plugin_url."css/ribbons/dis-100.png"; else echo $wcps_ribbons["dis-100"]; ?>" /></td>
143
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[dis-100]" type="text" value="<?php if(empty($wcps_ribbons["dis-100"])) echo wcps_plugin_url."css/ribbons/dis-100.png"; else echo $wcps_ribbons["dis-100"]; ?>" /></td>
144
- </tr>
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
-
148
-
149
-
150
-
151
-
152
- <tr>
153
- <td>Free</td>
154
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["free"])) echo wcps_plugin_url."css/ribbons/free.png"; else echo $wcps_ribbons["free"]; ?>" /></td>
155
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[free]" type="text" value="<?php if(empty($wcps_ribbons["free"])) echo wcps_plugin_url."css/ribbons/free.png"; else echo $wcps_ribbons["free"]; ?>" /></td>
156
- </tr>
157
-
158
-
159
-
160
- <tr>
161
- <td>Fresh</td>
162
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["fresh"])) echo wcps_plugin_url."css/ribbons/fresh.png"; else echo $wcps_ribbons["fresh"]; ?>" /></td>
163
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[fresh]" type="text" value="<?php if(empty($wcps_ribbons["fresh"])) echo wcps_plugin_url."css/ribbons/fresh.png"; else echo $wcps_ribbons["fresh"]; ?>" /></td>
164
- </tr>
165
-
166
-
167
- <tr>
168
- <td>Gift</td>
169
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["gift"])) echo wcps_plugin_url."css/ribbons/gift.png"; else echo $wcps_ribbons["gift"]; ?>" /></td>
170
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[gift]" type="text" value="<?php if(empty($wcps_ribbons["gift"])) echo wcps_plugin_url."css/ribbons/gift.png"; else echo $wcps_ribbons["gift"]; ?>" /></td>
171
- </tr>
172
-
173
-
174
-
175
- <tr>
176
- <td>Hot</td>
177
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["hot"])) echo wcps_plugin_url."css/ribbons/hot.png"; else echo $wcps_ribbons["hot"]; ?>" /></td>
178
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[hot]" type="text" value="<?php if(empty($wcps_ribbons["hot"])) echo wcps_plugin_url."css/ribbons/hot.png"; else echo $wcps_ribbons["hot"]; ?>" /></td>
179
- </tr>
180
-
181
-
182
-
183
- <tr>
184
- <td>new</td>
185
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["new"])) echo wcps_plugin_url."css/ribbons/new.png"; else echo $wcps_ribbons["new"]; ?>" /></td>
186
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[new]" type="text" value="<?php if(empty($wcps_ribbons["new"])) echo wcps_plugin_url."css/ribbons/new.png"; else echo $wcps_ribbons["new"]; ?>" /></td>
187
- </tr>
188
-
189
-
190
-
191
-
192
- <tr>
193
- <td>Pro</td>
194
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["pro"])) echo wcps_plugin_url."css/ribbons/pro.png"; else echo $wcps_ribbons["pro"]; ?>" /></td>
195
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[pro]" type="text" value="<?php if(empty($wcps_ribbons["pro"])) echo wcps_plugin_url."css/ribbons/pro.png"; else echo $wcps_ribbons["pro"]; ?>" /></td>
196
- </tr>
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- <tr>
206
- <td>sale</td>
207
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["sale"])) echo wcps_plugin_url."css/ribbons/sale.png"; else echo $wcps_ribbons["sale"]; ?>" /></td>
208
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[sale]" type="text" value="<?php if(empty($wcps_ribbons["sale"])) echo wcps_plugin_url."css/ribbons/sale.png"; else echo $wcps_ribbons["sale"]; ?>" /></td>
209
- </tr>
210
-
211
-
212
-
213
- <tr>
214
- <td>save</td>
215
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["save"])) echo wcps_plugin_url."css/ribbons/save.png"; else echo $wcps_ribbons["save"]; ?>" /></td>
216
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[save]" type="text" value="<?php if(empty($wcps_ribbons["save"])) echo wcps_plugin_url."css/ribbons/save.png"; else echo $wcps_ribbons["save"]; ?>" /></td>
217
- </tr>
218
-
219
-
220
- <tr>
221
- <td>Top</td>
222
- <td><img title="size - 90px × 24px " src="<?php if(empty($wcps_ribbons["top"])) echo wcps_plugin_url."css/ribbons/top.png"; else echo $wcps_ribbons["top"]; ?>" /></td>
223
- <td><input class="wcps_ribbons" size="50%" name="wcps_ribbons[top]" type="text" value="<?php if(empty($wcps_ribbons["top"])) echo wcps_plugin_url."css/ribbons/top.png"; else echo $wcps_ribbons["top"]; ?>" /></td>
224
- </tr>
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
 
246
- </table>
247
-
 
248
 
249
 
250
 
251
- </td>
252
- </tr>
253
- </table>
254
-
255
-
256
 
257
 
258
 
26
  <?php
27
  }
28
  }
29
+
30
+
31
+
32
+ $wcps_customer_type = get_option('wcps_customer_type');
33
+ $wcps_version = get_option('wcps_version');
34
+
35
+
36
+
37
+
38
+
39
  ?>
40
 
41
 
44
 
45
  <div class="wrap">
46
 
47
+ <div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(wcps_plugin_name.' Settings')."</h2>";?>
48
  <form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
49
  <input type="hidden" name="wcps_hidden" value="Y">
50
  <?php settings_fields( 'wcps_plugin_options' );
53
  ?>
54
 
55
 
56
+ <div class="para-settings">
57
+ <ul class="tab-nav">
58
+ <li nav="1" class="nav1 active">Options</li>
59
+ <li nav="2" class="nav2">Help & Upgrade</li>
60
+ </ul> <!-- tab-nav end -->
61
 
62
+ <ul class="box">
63
+ <li style="display: block;" class="box1 tab-box active">
64
+ <div class="option-box">
65
+ <p class="option-title">Ribbons</p>
66
+ <p class="option-info">You can use your own ribbons icon by inserting ribbon url to text field, image size for ribbons must be same as 90px × 24px</p>
67
+ <table>
68
+
69
+ <?php
70
+
71
+
72
+
73
+ $wcps_ribbons_des = array(
74
+
75
+
76
+
77
+ 'dis-10'=>'Discount 10%',
78
+ 'dis-20'=>'Discount 20%',
79
+ 'dis-30'=>'Discount 30%',
80
+ 'dis-40'=>'Discount 40%',
81
+ 'dis-50'=>'Discount 50%',
82
+ 'dis-60'=>'Discount 60%',
83
+ 'dis-70'=>'Discount 70%',
84
+ 'dis-80'=>'Discount 80%',
85
+ 'dis-90'=>'Discount 90%',
86
+ 'dis-100'=>'Discount 100%',
87
+ 'free'=>'Free',
88
+ 'fresh'=>'Fresh',
89
+ 'gift'=>'Gift',
90
+ 'hot'=>'Hot',
91
+ 'new'=>'New',
92
+ 'top'=>'Top',
93
+ 'save'=>'Save',
94
+ 'sale'=>'Sale',
95
+ 'pro'=>'Pro',
96
+ 'best'=>'Best',
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ );
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ if(empty($wcps_ribbons))
114
+ {
115
+ $wcps_ribbons = array(
116
+ 'dis-10'=>'dis-10',
117
+ 'dis-20'=>'dis-20',
118
+ 'dis-30'=>'dis-30',
119
+ 'dis-40'=>'dis-40',
120
+ 'dis-50'=>'dis-50',
121
+ 'dis-60'=>'dis-60',
122
+ 'dis-70'=>'dis-70',
123
+ 'dis-80'=>'dis-80',
124
+ 'dis-90'=>'dis-90',
125
+ 'dis-100'=>'dis-100',
126
+ 'free'=>'free',
127
+ 'fresh'=>'fresh',
128
+ 'gift'=>'gift',
129
+ 'hot'=>'hot',
130
+ 'new'=>'new',
131
+ 'top'=>'top',
132
+ 'save'=>'save',
133
+ 'sale'=>'sale',
134
+ 'pro'=>'pro',
135
+ 'best'=>'best',
136
+
137
+ );
138
+
139
+
140
+
141
+
142
+ foreach($wcps_ribbons as $key =>$value)
143
+ {
144
+ echo '<tr>';
145
+ echo '<td width="120">'.$wcps_ribbons_des[$key].'</td>';
146
+ echo '<td width="120"><img src="'.wcps_plugin_url.'css/ribbons/'.$value.'.png" /></td>';
147
+ echo '<td width="320"><input class="wcps_ribbons" name="wcps_ribbons['.$key.']" type="text" value="'.wcps_plugin_url.'css/ribbons/'.$value.'.png"</td>';
148
+ echo '</tr>';
149
+
150
+ }
151
+
152
+
153
+ }
154
+ else
155
+ {
156
+ foreach($wcps_ribbons as $key =>$value)
157
+ {
158
+ echo '<tr>';
159
+ echo '<td width="120">'.$wcps_ribbons_des[$key].'</td>';
160
+ echo '<td width="120"><img src="'.$value.'" /></td>';
161
+ echo '<td width="320"><input size="30" class="wcps_ribbons" name="wcps_ribbons['.$key.']" type="text" value="'.$value.'"</td>';
162
+ echo '</tr>';
163
+
164
+ }
165
+ }
166
+
167
+
168
+
169
+
170
+
171
+
172
+ ?>
173
+
174
+
175
+
176
+
177
+ </table>
178
+ </div>
179
+
180
+ <div class="option-box">
181
+ <p class="option-title"></p>
182
+ <p class="option-info"></p>
183
+
184
+ </div>
185
+
186
+ </li>
187
+ <li style="display: none;" class="box2 tab-box">
188
 
189
+ <div class="option-box">
190
+ <p class="option-title">Need Help ?</p>
191
+ <p class="option-info">Feel free to contact with any issue for this plugin, Ask any question via forum <a href="<?php echo wcps_qa_url; ?>"><?php echo wcps_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong><br />
192
 
193
+ <?php
194
 
195
+ if($wcps_customer_type=="free")
196
+ {
197
+
198
+ echo 'You are using <strong> '.$wcps_customer_type.' version '.$wcps_version.'</strong> of <strong>'.wcps_plugin_name.'</strong>, To get more feature you could try our premium version. ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
+ echo '<br /><a href="'.wcps_pro_url.'">'.wcps_pro_url.'</a>';
201
 
202
+ }
203
+ else
204
+ {
205
+
206
+ echo 'Thanks for using <strong> premium version '.$wcps_version.'</strong> of <strong>'.wcps_plugin_name.'</strong> ';
207
 
 
 
 
 
 
208
 
209
+ }
210
+
211
+ ?>
212
+
213
+
214
+ </p>
215
+
216
+ </div>
217
+ <div class="option-box">
218
+ <p class="option-title">Submit Reviews...</p>
219
+ <p class="option-info">We are working hard to build some awesome plugins for you and spend thousand hour for plugins. we wish your three(3) minute by submitting five star reviews at wordpress.org. if you have any issue please submit at forum.</p>
220
+ <img class="wcps-pro-pricing" src="<?php echo wcps_plugin_url."css/five-star.png";?>" /><br />
221
+ <a target="_blank" href="<?php echo wcps_wp_reviews; ?>">
222
+ <?php echo wcps_wp_reviews; ?>
223
+ </a>
224
+
225
+
226
+
227
+ </div>
228
+ <div class="option-box">
229
+ <p class="option-title">Please Share</p>
230
+ <p class="option-info">If you like this plugin please share with your social share network.</p>
231
+ <?php
232
+
233
+ echo wcps_share_plugin();
234
+ ?>
235
+ </div>
236
+ <div class="option-box">
237
+ <p class="option-title">Video Tutorial</p>
238
+ <p class="option-info">Please watch this video tutorial.</p>
239
+ <iframe width="640" height="480" src="<?php echo wcps_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
240
+ </div>
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
+ </li>
244
+
245
+ </ul>
246
 
247
 
248
 
249
+ </div>
 
 
 
 
250
 
251
 
252
 
woocommerce-products-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Woocommerce Products Slider
4
  Plugin URI: http://paratheme.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
- Version: 1.1
7
  Author: paratheme
8
  Author URI: http://paratheme.com
9
  License: GPLv2 or later
@@ -12,6 +12,15 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
  define('wcps_plugin_url', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
14
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
 
 
 
 
 
 
 
 
 
15
 
16
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-meta.php');
17
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-functions.php');
@@ -21,10 +30,7 @@ require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-functions.php');
21
 
22
  require_once( plugin_dir_path( __FILE__ ) . 'themes/flat/index.php');
23
  require_once( plugin_dir_path( __FILE__ ) . 'themes/rossi/index.php');
24
- require_once( plugin_dir_path( __FILE__ ) . 'themes/saiga/index.php');
25
- require_once( plugin_dir_path( __FILE__ ) . 'themes/sako/index.php');
26
- require_once( plugin_dir_path( __FILE__ ) . 'themes/ruger/index.php');
27
- require_once( plugin_dir_path( __FILE__ ) . 'themes/anti-ruger/index.php');
28
 
29
 
30
  function wcps_init_scripts()
@@ -43,7 +49,10 @@ function wcps_init_scripts()
43
  wp_enqueue_style( 'wp-color-picker' );
44
  wp_enqueue_script( 'wcps_color_picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
45
 
46
-
 
 
 
47
 
48
  // Style for themes
49
  wp_enqueue_style('wcps-style-flat', wcps_plugin_url.'themes/flat/style.css');
@@ -53,12 +62,7 @@ function wcps_init_scripts()
53
  wp_enqueue_style('wcps-style-ruger', wcps_plugin_url.'themes/ruger/style.css');
54
  wp_enqueue_style('wcps-style-anti-ruger', wcps_plugin_url.'themes/anti-ruger/style.css');
55
 
56
-
57
-
58
-
59
  //Style for font
60
-
61
-
62
  wp_register_style( 'Raleway', 'http://fonts.googleapis.com/css?family=Raleway:900');
63
  wp_enqueue_style( 'Raleway' );
64
 
@@ -78,7 +82,7 @@ register_activation_hook(__FILE__, 'wcps_activation');
78
 
79
  function wcps_activation()
80
  {
81
- $wcps_version= "1.1";
82
  update_option('wcps_version', $wcps_version); //update plugin version.
83
 
84
  $wcps_customer_type= "free"; //customer_type "free"
@@ -111,25 +115,10 @@ function wcps_display($atts, $content = null ) {
111
  $wcps_display.= wcps_body_rossi($post_id);
112
  }
113
 
114
- else if($wcps_themes== "saiga")
115
- {
116
- $wcps_display.= wcps_body_saiga($post_id);
117
- }
118
- else if($wcps_themes== "sako")
119
- {
120
- $wcps_display.= wcps_body_sako($post_id);
121
- }
122
-
123
- else if($wcps_themes== "ruger")
124
- {
125
- $wcps_display.= wcps_body_ruger($post_id);
126
- }
127
-
128
- else if($wcps_themes== "anti-ruger")
129
  {
130
- $wcps_display.= wcps_body_anti_ruger($post_id);
131
  }
132
-
133
 
134
  return $wcps_display;
135
 
@@ -142,185 +131,21 @@ add_shortcode('wcps', 'wcps_display');
142
 
143
 
144
 
145
-
146
-
147
-
148
-
149
-
150
  add_action('admin_menu', 'wcps_menu_init');
151
 
152
-
153
-
154
- function wcps_menu_help(){
155
- include('wcps-help.php');
156
- }
157
-
158
-
159
  function wcps_menu_settings(){
160
  include('wcps-settings.php');
161
  }
162
 
163
-
164
-
165
  function wcps_menu_init() {
166
-
167
-
168
  add_submenu_page('edit.php?post_type=wcps', __('Settings','menu-wpt'), __('Settings','menu-wpt'), 'manage_options', 'wcps_menu_settings', 'wcps_menu_settings');
169
 
170
- add_submenu_page('edit.php?post_type=wcps', __('Help & Upgrade','menu-wpt'), __('Help & Upgrade','menu-wpt'), 'manage_options', 'wcps_menu_help', 'wcps_menu_help');
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- }
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
 
 
189
 
190
 
191
 
192
 
193
 
194
 
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- //Only for Pro version
208
-
209
-
210
- $wcps_customer_type = get_option('wcps_customer_type');
211
-
212
- if($wcps_customer_type=="pro")
213
- {
214
-
215
-
216
-
217
-
218
- //Update
219
-
220
-
221
- set_site_transient('update_plugins', null);
222
-
223
- // TEMP: Show which variables are being requested when query plugin API
224
- add_filter('plugins_api_result', 'wcps_notice_result', 10, 3);
225
- function wcps_notice_result($res, $action, $args) {
226
- return $res;
227
- }
228
- // NOTE: All variables and functions will need to be prefixed properly to allow multiple plugins to be updated
229
-
230
-
231
-
232
- $api_url = 'http://pricing-table.com/api/';
233
- $plugin_slug = basename(dirname(__FILE__));
234
-
235
-
236
- // Take over the update check
237
- add_filter('pre_set_site_transient_update_plugins', 'wcps_check_for_plugin_update');
238
-
239
- function wcps_check_for_plugin_update($checked_data) {
240
- global $api_url, $plugin_slug, $wp_version;
241
-
242
- //Comment out these two lines during testing.
243
- if (empty($checked_data->checked))
244
- return $checked_data;
245
-
246
- $args = array(
247
- 'slug' => $plugin_slug,
248
- 'version' => $checked_data->checked[$plugin_slug .'/'.$plugin_slug.'.php'],
249
- );
250
- $request_string = array(
251
- 'body' => array(
252
- 'action' => 'basic_check',
253
- 'request' => serialize($args),
254
- 'api-key' => md5(get_bloginfo('url'))
255
- ),
256
- 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url'),
257
- 'wcps_order_id' => get_option( 'wcps_order_id' ),
258
- 'wcps_order_email' => get_option( 'wcps_order_email' ),
259
-
260
- );
261
-
262
- // Start checking for an update
263
- $raw_response = wp_remote_post($api_url, $request_string);
264
-
265
- if (!is_wp_error($raw_response) && ($raw_response['response']['code'] == 200))
266
- $response = unserialize($raw_response['body']);
267
-
268
- if (is_object($response) && !empty($response)) // Feed the update data into WP updater
269
- $checked_data->response[$plugin_slug .'/'. $plugin_slug .'.php'] = $response;
270
-
271
- update_option('wcps_customer_apikey', $response); //update api.
272
-
273
-
274
-
275
-
276
- return $checked_data;
277
- }
278
-
279
-
280
- // Take over the Plugin info screen
281
- add_filter('plugins_api', 'wcps_plugin_api_call', 10, 3);
282
-
283
- function wcps_plugin_api_call($def, $action, $args) {
284
- global $plugin_slug, $api_url, $wp_version;
285
-
286
- if ($args->slug != $plugin_slug)
287
- return false;
288
-
289
- // Get the current version
290
- $plugin_info = get_site_transient('update_plugins');
291
- $current_version = $plugin_info->checked[$plugin_slug .'/'. $plugin_slug .'.php'];
292
- $args->version = $current_version;
293
-
294
- $request_string = array(
295
- 'body' => array(
296
- 'action' => $action,
297
- 'request' => serialize($args),
298
- 'api-key' => md5(get_bloginfo('url'))
299
- ),
300
- 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
301
- );
302
-
303
- $request = wp_remote_post($api_url, $request_string);
304
-
305
- if (is_wp_error($request)) {
306
- $res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message());
307
- } else {
308
- $res = unserialize($request['body']);
309
-
310
-
311
-
312
-
313
- if ($res === false)
314
- $res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']);
315
- }
316
-
317
- return $res;
318
- }
319
-
320
- }
321
-
322
-
323
-
324
-
325
-
326
  ?>
3
  Plugin Name: Woocommerce Products Slider
4
  Plugin URI: http://paratheme.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
+ Version: 1.2
7
  Author: paratheme
8
  Author URI: http://paratheme.com
9
  License: GPLv2 or later
12
 
13
  define('wcps_plugin_url', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
14
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
15
+ define('wcps_wp_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
16
+ define('wcps_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/woocommerce-products-slider' );
17
+ define('wcps_pro_url','http://paratheme.com/items/woocommerce-product-slider-for-wordpress/' );
18
+ define('wcps_demo_url', 'product-slider.com' );
19
+ define('wcps_conatct_url', 'http://paratheme.com/contact/' );
20
+ define('wcps_qa_url', 'http://paratheme.com/qa/' );
21
+ define('wcps_plugin_name', 'Woocommerce Products Slider' );
22
+ define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
23
+ define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );
24
 
25
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-meta.php');
26
  require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-functions.php');
30
 
31
  require_once( plugin_dir_path( __FILE__ ) . 'themes/flat/index.php');
32
  require_once( plugin_dir_path( __FILE__ ) . 'themes/rossi/index.php');
33
+
 
 
 
34
 
35
 
36
  function wcps_init_scripts()
49
  wp_enqueue_style( 'wp-color-picker' );
50
  wp_enqueue_script( 'wcps_color_picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
51
 
52
+ //ParaAdmin
53
+ wp_enqueue_style('ParaAdmin', wcps_plugin_url.'ParaAdmin/css/ParaAdmin.css');
54
+ //wp_enqueue_style('ParaIcons', wcps_plugin_url.'ParaAdmin/css/ParaIcons.css');
55
+ wp_enqueue_script('ParaAdmin', plugins_url( 'ParaAdmin/js/ParaAdmin.js' , __FILE__ ) , array( 'jquery' ));
56
 
57
  // Style for themes
58
  wp_enqueue_style('wcps-style-flat', wcps_plugin_url.'themes/flat/style.css');
62
  wp_enqueue_style('wcps-style-ruger', wcps_plugin_url.'themes/ruger/style.css');
63
  wp_enqueue_style('wcps-style-anti-ruger', wcps_plugin_url.'themes/anti-ruger/style.css');
64
 
 
 
 
65
  //Style for font
 
 
66
  wp_register_style( 'Raleway', 'http://fonts.googleapis.com/css?family=Raleway:900');
67
  wp_enqueue_style( 'Raleway' );
68
 
82
 
83
  function wcps_activation()
84
  {
85
+ $wcps_version= "1.2";
86
  update_option('wcps_version', $wcps_version); //update plugin version.
87
 
88
  $wcps_customer_type= "free"; //customer_type "free"
115
  $wcps_display.= wcps_body_rossi($post_id);
116
  }
117
 
118
+ else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  {
120
+ $wcps_display.= wcps_body_flat($post_id);
121
  }
 
122
 
123
  return $wcps_display;
124
 
131
 
132
 
133
 
 
 
 
 
 
134
  add_action('admin_menu', 'wcps_menu_init');
135
 
 
 
 
 
 
 
 
136
  function wcps_menu_settings(){
137
  include('wcps-settings.php');
138
  }
139
 
 
 
140
  function wcps_menu_init() {
 
 
141
  add_submenu_page('edit.php?post_type=wcps', __('Settings','menu-wpt'), __('Settings','menu-wpt'), 'manage_options', 'wcps_menu_settings', 'wcps_menu_settings');
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ }
145
 
146
 
147
 
148
 
149
 
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  ?>