Version Description
- 17/10/2015 fix - ssl issue fixed.
Download this release
Release Info
Developer | paratheme |
Plugin | Woocommerce Products Slider |
Version | 1.8 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.8
- ParaAdmin/ParaAdminClass.php +245 -0
- ParaAdmin/css/ParaAdmin.css +26 -233
- ParaAdmin/css/ParaDashboard.css +83 -0
- ParaAdmin/css/icons/dark/browser-firefox.png +0 -0
- ParaAdmin/css/icons/dark/device-monitor.png +0 -0
- ParaAdmin/css/icons/dark/globe.png +0 -0
- ParaAdmin/css/icons/dark/keywords.png +0 -0
- ParaAdmin/css/icons/dark/map-pin.png +0 -0
- ParaAdmin/css/icons/dark/os-apple.png +0 -0
- ParaAdmin/css/icons/dark/os-windows.png +0 -0
- ParaAdmin/css/icons/dark/page.png +0 -0
- ParaAdmin/css/icons/dark/share-hub.png +0 -0
- ParaAdmin/css/icons/dark/user-crowd.png +0 -0
- ParaAdmin/css/icons/dark/user-group.png +0 -0
- ParaAdmin/js/ParaAdmin.js +29 -1
- admin/css/loading.gif +0 -0
- admin/css/style.css +82 -0
- admin/js/scripts.js +102 -0
- {themes/flat → css}/images/arrow-next.png +0 -0
- {themes/flat → css}/images/arrow-prev.png +0 -0
- css/images/featured.png +0 -0
- css/images/sale-icon.png +0 -0
- css/images/sale.png +0 -0
- css/no-thumb.png +0 -0
- css/style.css +223 -77
- css/tags.png +0 -0
- includes/class-functions.php +92 -0
- includes/class-settings.php +36 -0
- includes/class-shortcodes.php +51 -0
- includes/menu/settings.php +145 -0
- includes/wcps-functions.php +93 -17
- includes/wcps-meta.php +706 -104
- js/scripts.js +0 -61
- readme.txt +14 -2
- templates/custom-css.php +62 -0
- templates/query.php +237 -0
- templates/scripts.php +152 -0
- templates/variables.php +101 -0
- templates/wcps-cart.php +12 -0
- templates/wcps-category.php +24 -0
- templates/wcps-excerpt.php +17 -0
- templates/wcps-featured.php +23 -0
- templates/wcps-price.php +12 -0
- templates/wcps-rating.php +26 -0
- templates/wcps-ribbon.php +20 -0
- templates/wcps-sale.php +20 -0
- templates/wcps-thumb.php +11 -0
- templates/wcps-title.php +12 -0
- themes/flat/index.php +0 -448
- themes/flat/style.css +0 -199
- themes/rossi/index.php +0 -448
- themes/rossi/style.css +0 -164
- themes/{rossi → theme1}/images/arrow-next.png +0 -0
- themes/{rossi → theme1}/images/arrow-prev.png +0 -0
- themes/theme1/images/tags.png +0 -0
- themes/theme1/index-old.php +147 -0
- themes/theme1/index.php +100 -0
- themes/theme1/style.css +166 -0
- themes/theme6/images/arrow-next.png +0 -0
- themes/theme6/images/arrow-prev.png +0 -0
- themes/theme6/images/tags.png +0 -0
- themes/theme6/index - Copy.php +182 -0
- themes/theme6/index.php +142 -0
- themes/theme6/style.css +225 -0
- wcps-settings.php +0 -253
- woocommerce-products-slider.php +74 -114
ParaAdmin/ParaAdminClass.php
ADDED
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// ParaAdmin Class
|
4 |
+
|
5 |
+
class paraAdmin
|
6 |
+
{
|
7 |
+
var $options = array();
|
8 |
+
|
9 |
+
|
10 |
+
function option_output($options_all, $options_tabs)
|
11 |
+
{
|
12 |
+
$html = '';
|
13 |
+
$html .= '<div class="para-settings">';
|
14 |
+
|
15 |
+
$html .= '<ul class="tab-nav">';
|
16 |
+
|
17 |
+
$i=1;
|
18 |
+
foreach($options_tabs as $id => $tabs)
|
19 |
+
{
|
20 |
+
if($i==1)
|
21 |
+
{
|
22 |
+
$active = 'active';
|
23 |
+
}
|
24 |
+
else
|
25 |
+
{
|
26 |
+
$active = '';
|
27 |
+
}
|
28 |
+
|
29 |
+
$html.= '<li nav="'.$i.'" class="tab'.$i.' '.$active.' ">'.$tabs.'</li>';
|
30 |
+
|
31 |
+
$i++;
|
32 |
+
}
|
33 |
+
$html .= '</ul>';
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
$html .= '<ul class="box">';
|
38 |
+
|
39 |
+
$j = 1;
|
40 |
+
foreach($options_tabs as $id => $tabs)
|
41 |
+
{
|
42 |
+
if($j==1)
|
43 |
+
{
|
44 |
+
$active = 'active';
|
45 |
+
$display = 'block';
|
46 |
+
}
|
47 |
+
else
|
48 |
+
{
|
49 |
+
$active = '';
|
50 |
+
$display = 'none';
|
51 |
+
}
|
52 |
+
$html.= '<li style="display: '.$display.';" class="box'.$j.' tab-box '.$active.'">';
|
53 |
+
foreach($options_all[$id] as $id => $options)
|
54 |
+
{
|
55 |
+
foreach($options as $option)
|
56 |
+
|
57 |
+
$css_class = $options['css_class'];
|
58 |
+
$title = $options['title'];
|
59 |
+
$option_details = $options['option_details'];
|
60 |
+
$input_type = $options['input_type'];
|
61 |
+
$input_values = $options['input_values'];
|
62 |
+
|
63 |
+
$html.= '<div class="option-box">';
|
64 |
+
|
65 |
+
$html.= '<p class="option-title">'.$title.'</p>';
|
66 |
+
$html.= '<p class="option-info">'.$option_details.'</p>';
|
67 |
+
|
68 |
+
$html.= $this->input_type($input_type, $input_values, $id, $css_class);
|
69 |
+
|
70 |
+
$html.= '</div>';
|
71 |
+
|
72 |
+
}
|
73 |
+
$html.= '</li>';
|
74 |
+
|
75 |
+
$j++;
|
76 |
+
}
|
77 |
+
$html .= '</ul>';
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
$html .= '</div>';
|
87 |
+
|
88 |
+
|
89 |
+
return $html;
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
|
94 |
+
function input_type($input_type, $input_values, $id, $css_class)
|
95 |
+
{
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
$html ='';
|
100 |
+
if($input_type == 'text')
|
101 |
+
{
|
102 |
+
|
103 |
+
$option_id_value = get_option( $id );
|
104 |
+
if(empty($option_id_value))
|
105 |
+
{
|
106 |
+
$option_id_value = '';
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
+
$html.= '<input name="'.$id.'" type="text" value="'.$option_id_value.'" id="'.$id.'" class="'.$css_class.'" />';
|
112 |
+
}
|
113 |
+
|
114 |
+
elseif($input_type == 'textarea')
|
115 |
+
{
|
116 |
+
|
117 |
+
$option_id_value = get_option( $id );
|
118 |
+
|
119 |
+
if(!empty($option_id_value))
|
120 |
+
{
|
121 |
+
$value = $option_id_value;
|
122 |
+
}
|
123 |
+
else
|
124 |
+
{
|
125 |
+
$value = $input_values;
|
126 |
+
}
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
$html.= '<textarea name="'.$id.'" type="text" id="'.$id.'" class="'.$css_class.'" >'.$value.'</textarea>';
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
elseif($input_type == 'checkbox')
|
138 |
+
{
|
139 |
+
|
140 |
+
foreach($input_values as $key => $value)
|
141 |
+
{
|
142 |
+
|
143 |
+
|
144 |
+
|
145 |
+
$option_key_value = get_option( $key );
|
146 |
+
if(empty($option_key_value))
|
147 |
+
{
|
148 |
+
$option_key_value = '';
|
149 |
+
$checked = '';
|
150 |
+
}
|
151 |
+
else
|
152 |
+
{
|
153 |
+
$checked = 'checked';
|
154 |
+
}
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
$html.= '<label>';
|
159 |
+
|
160 |
+
$html.= '<input name="'.$key.'" type="checkbox" '.$checked.' value="1" id="'.$key.'" class="'.$css_class.'" /> '.$value;
|
161 |
+
$html.= '</label><br />';
|
162 |
+
}
|
163 |
+
|
164 |
+
|
165 |
+
}
|
166 |
+
|
167 |
+
elseif($input_type == 'select')
|
168 |
+
{
|
169 |
+
|
170 |
+
|
171 |
+
$html.= '<select name="'.$id.'" id="'.$id.'" class="'.$css_class.'">';
|
172 |
+
foreach($input_values as $key => $value)
|
173 |
+
{
|
174 |
+
|
175 |
+
|
176 |
+
$option_id_value = get_option( $id );
|
177 |
+
if($option_id_value == $key )
|
178 |
+
{
|
179 |
+
$selected = 'selected';
|
180 |
+
|
181 |
+
}
|
182 |
+
else
|
183 |
+
{
|
184 |
+
$selected = '';
|
185 |
+
}
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
$html.= '<option '.$selected.' value="'.$key.'" >'.$value.'</option>';
|
190 |
+
}
|
191 |
+
$html.= '</select>';
|
192 |
+
|
193 |
+
}
|
194 |
+
|
195 |
+
|
196 |
+
elseif($input_type == 'radio')
|
197 |
+
{
|
198 |
+
|
199 |
+
foreach($input_values as $key => $value)
|
200 |
+
{
|
201 |
+
$html.= '<label>';
|
202 |
+
|
203 |
+
$option_id_value = get_option( $id );
|
204 |
+
if($option_id_value == $key )
|
205 |
+
{
|
206 |
+
$checked = 'checked';
|
207 |
+
|
208 |
+
}
|
209 |
+
else
|
210 |
+
{
|
211 |
+
$checked = '';
|
212 |
+
}
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
$html.= '<input '.$checked.' class="'.$css_class.'" id="'.$key.'" type="radio" name="'.$id.'" value="'.$key.'" >'.$value.'</option> ';
|
218 |
+
$html.= '</label><br />';
|
219 |
+
}
|
220 |
+
|
221 |
+
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
return $html;
|
231 |
+
}
|
232 |
+
|
233 |
+
|
234 |
+
|
235 |
+
|
236 |
+
|
237 |
+
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
+
|
242 |
+
|
243 |
+
}
|
244 |
+
|
245 |
+
|
ParaAdmin/css/ParaAdmin.css
CHANGED
@@ -9,15 +9,13 @@
|
|
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 |
-
|
20 |
-
border-left: 3px solid #11b063;
|
21 |
}
|
22 |
|
23 |
|
@@ -27,7 +25,7 @@
|
|
27 |
}
|
28 |
|
29 |
.para-settings .option-box .option-info {
|
30 |
-
color: rgb(
|
31 |
font-size: 13px;
|
32 |
font-weight: normal;
|
33 |
margin: 10px 0;
|
@@ -98,256 +96,51 @@
|
|
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 |
-
|
202 |
-
border-bottom: 1px solid rgb(
|
203 |
-
|
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 |
-
|
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 |
-
|
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-
|
|
|
294 |
color: rgb(255, 255, 255);
|
295 |
-
|
296 |
-
|
|
|
|
|
297 |
text-align: center;
|
298 |
}
|
299 |
|
300 |
|
301 |
|
302 |
|
303 |
-
.para-
|
304 |
-
|
305 |
-
|
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-
|
317 |
-
|
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;
|
9 |
}
|
10 |
|
11 |
.para-settings .option-box {
|
|
|
12 |
margin: 10px 0;
|
13 |
padding: 10px;
|
14 |
}
|
15 |
|
16 |
|
17 |
.para-settings .option-box:hover {
|
18 |
+
|
|
|
19 |
}
|
20 |
|
21 |
|
25 |
}
|
26 |
|
27 |
.para-settings .option-box .option-info {
|
28 |
+
color: rgb(153, 153, 153);
|
29 |
font-size: 13px;
|
30 |
font-weight: normal;
|
31 |
margin: 10px 0;
|
96 |
margin: 25px 0;
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
+
.para-settings .expandable {
|
101 |
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
|
104 |
+
.para-settings .expandable .items {
|
105 |
+
background: none repeat scroll 0 0 rgb(255, 255, 255);
|
106 |
+
border-bottom: 1px solid rgb(153, 153, 153);
|
107 |
+
margin: 2px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
+
.para-settings .expandable .items.ui-sortable-helper {
|
110 |
+
border: 1px dashed rgb(153, 153, 153);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
+
.para-settings .expandable .header {
|
113 |
+
background: none repeat scroll 0 0 rgb(255, 255, 255);
|
114 |
+
padding: 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
|
117 |
+
.para-settings .expandable .header .remove {
|
118 |
+
background: rgb(242, 79, 47) none repeat scroll 0 0;
|
119 |
color: rgb(255, 255, 255);
|
120 |
+
cursor: pointer;
|
121 |
+
display: inline-block;
|
122 |
+
float: right;
|
123 |
+
padding: 0 7px;
|
124 |
text-align: center;
|
125 |
}
|
126 |
|
127 |
|
128 |
|
129 |
|
130 |
+
.para-settings .expandable .active .options {
|
131 |
+
|
132 |
+
display: block;
|
|
|
|
|
|
|
133 |
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
+
.para-settings .expandable .options {
|
136 |
+
background: none repeat scroll 0 0 rgb(240, 240, 240);
|
137 |
+
display: none;
|
138 |
+
padding: 10px;
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
@media all and (max-width: 799px) {
|
143 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
.para-settings ul.tab-nav li {
|
146 |
display: block;
|
ParaAdmin/css/ParaDashboard.css
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
/*para-dashboard*/
|
7 |
+
|
8 |
+
.para-dashboard {
|
9 |
+
background: none repeat scroll 0 0 rgb(91, 116, 145);
|
10 |
+
padding: 10px;
|
11 |
+
}
|
12 |
+
|
13 |
+
.para-dashboard .dash-box {
|
14 |
+
background: none repeat scroll 0 0 rgb(93, 126, 163);
|
15 |
+
border: 1px solid rgb(122, 170, 223);
|
16 |
+
display: inline-block;
|
17 |
+
height: auto;
|
18 |
+
margin-bottom: 30px;
|
19 |
+
margin-right: 10px;
|
20 |
+
margin-top: 0;
|
21 |
+
overflow: hidden;
|
22 |
+
padding-bottom: 30px;
|
23 |
+
vertical-align: top;
|
24 |
+
width: 350px;
|
25 |
+
}
|
26 |
+
|
27 |
+
.para-dashboard .dash-box-title {
|
28 |
+
background: none repeat scroll 0 0 rgb(100, 140, 186);
|
29 |
+
color: rgb(255, 255, 255);
|
30 |
+
font-size: 16px;
|
31 |
+
font-weight: bold;
|
32 |
+
line-height: 30px;
|
33 |
+
padding: 0 10px;
|
34 |
+
}
|
35 |
+
|
36 |
+
.para-dashboard .dash-box-title .fa {
|
37 |
+
padding-right: 10px;
|
38 |
+
}
|
39 |
+
|
40 |
+
.para-dashboard .dash-box-info {
|
41 |
+
color: rgb(238, 238, 238);
|
42 |
+
font-size: 12px;
|
43 |
+
padding: 10px;
|
44 |
+
}
|
45 |
+
|
46 |
+
.para-dashboard .dash-box .total-online {
|
47 |
+
color: rgb(255, 255, 255);
|
48 |
+
font-size: 40px;
|
49 |
+
padding: 30px 10px 10px;
|
50 |
+
text-align: center;
|
51 |
+
}
|
52 |
+
|
53 |
+
.para-dashboard .dash-box .total-session {
|
54 |
+
color: rgb(255, 255, 255);
|
55 |
+
font-size: 40px;
|
56 |
+
padding: 30px 10px 10px;
|
57 |
+
text-align: center;
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
.para-dashboard .dash-box .para-data-table {
|
64 |
+
border: 1px solid rgb(221, 221, 221);
|
65 |
+
border-collapse: collapse;
|
66 |
+
color: rgb(255, 255, 255);
|
67 |
+
text-align: left;
|
68 |
+
}
|
69 |
+
|
70 |
+
.para-dashboard .dash-box .para-data-table th {
|
71 |
+
padding: 7px;
|
72 |
+
}
|
73 |
+
.para-dashboard .dash-box tr {
|
74 |
+
border-bottom: 1px solid rgb(221, 221, 221);
|
75 |
+
}
|
76 |
+
.para-dashboard .dash-box .para-data-table td {
|
77 |
+
padding: 5px;
|
78 |
+
}
|
79 |
+
|
80 |
+
.para-dashboard .dash-box .para-data-table a {
|
81 |
+
color: rgb(255, 255, 255);
|
82 |
+
text-decoration: none;
|
83 |
+
}
|
ParaAdmin/css/icons/dark/browser-firefox.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/device-monitor.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/globe.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/keywords.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/map-pin.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/os-apple.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/os-windows.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/page.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/share-hub.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/user-crowd.png
ADDED
Binary file
|
ParaAdmin/css/icons/dark/user-group.png
ADDED
Binary file
|
ParaAdmin/js/ParaAdmin.js
CHANGED
@@ -3,7 +3,35 @@ jQuery(document).ready(function($)
|
|
3 |
{
|
4 |
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
|
9 |
|
3 |
{
|
4 |
|
5 |
|
6 |
+
$(document).on('click', '.expandable .header', function()
|
7 |
+
{
|
8 |
+
if($(this).parent().hasClass('active'))
|
9 |
+
{
|
10 |
+
$(this).parent().removeClass('active');
|
11 |
+
}
|
12 |
+
else
|
13 |
+
{
|
14 |
+
$(this).parent().addClass('active');
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
})
|
19 |
+
|
20 |
+
|
21 |
+
$(document).on('click', '.expandable .header .remove', function()
|
22 |
+
{
|
23 |
+
if(confirm('Do you really want to remove ?')){
|
24 |
+
|
25 |
+
$(this).parent().parent().remove();
|
26 |
+
}
|
27 |
+
|
28 |
+
})
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
|
36 |
|
37 |
|
admin/css/loading.gif
ADDED
Binary file
|
admin/css/style.css
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
|
5 |
+
/*Admin CSS*/
|
6 |
+
|
7 |
+
#wcps_metabox ul.wcps_bg_img_list{}
|
8 |
+
|
9 |
+
#wcps_metabox ul.wcps_bg_img_list li {
|
10 |
+
display: inline-block;
|
11 |
+
margin: 5px;
|
12 |
+
}
|
13 |
+
#wcps_metabox ul.wcps_bg_img_list li.bg-selected {}
|
14 |
+
|
15 |
+
#wcps_metabox ul.wcps_bg_img_list li img{border: 2px solid #ffffff;}
|
16 |
+
|
17 |
+
#wcps_metabox ul.wcps_bg_img_list li.bg-selected img{
|
18 |
+
border: 2px solid #ff5a11;
|
19 |
+
}
|
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;
|
26 |
+
margin-bottom: 20px;
|
27 |
+
width: 30px;
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
#wcps_metabox div..wcps_taxonomy_category{}
|
32 |
+
|
33 |
+
|
34 |
+
#wcps_metabox ul.content_source_area {
|
35 |
+
margin-left: 15px;
|
36 |
+
}
|
37 |
+
|
38 |
+
#wcps_metabox ul.content_source_area li{}
|
39 |
+
|
40 |
+
|
41 |
+
#wcps_metabox ul.content_source_area .content-source-box {
|
42 |
+
display: none;
|
43 |
+
}
|
44 |
+
|
45 |
+
#wcps_metabox ul.content_source_area li div.active {
|
46 |
+
background: none repeat scroll 0 0 #e6e6e6;
|
47 |
+
border-left: 3px solid #11b063;
|
48 |
+
display: block;
|
49 |
+
margin: 10px 10px 0 20px;
|
50 |
+
padding: 10px 0 10px 5px;
|
51 |
+
}
|
52 |
+
|
53 |
+
#wcps_metabox .tab-box td {
|
54 |
+
border-left: 3px solid #fff;
|
55 |
+
}
|
56 |
+
|
57 |
+
#wcps_metabox .tab-box td:hover {
|
58 |
+
background: #e6e6e6;
|
59 |
+
border-left: 3px solid #11b063;
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
#wcps_metabox .tab-box > table {
|
64 |
+
width: 100%;
|
65 |
+
}
|
66 |
+
|
67 |
+
#wcps_metabox .wcps_ribbons {
|
68 |
+
width: 100%;
|
69 |
+
}
|
70 |
+
|
71 |
+
|
72 |
+
.form-table .wcps_ribbons {
|
73 |
+
}
|
74 |
+
|
75 |
+
#wcps_metabox #wcps_ribbon_custom {
|
76 |
+
display: none;
|
77 |
+
}
|
78 |
+
|
79 |
+
|
80 |
+
#wcps_metabox .wcps_grid_items_hide {
|
81 |
+
float: right;
|
82 |
+
}
|
admin/js/scripts.js
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
jQuery(document).ready(function($)
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
$(document).on('click','.wcps_grid_items_reset',function(){
|
8 |
+
|
9 |
+
if(confirm('Do you really want to reset ?')){
|
10 |
+
wcps_id = jQuery(this).attr('wcps_id');
|
11 |
+
|
12 |
+
//alert(wcps_id);
|
13 |
+
|
14 |
+
|
15 |
+
jQuery.ajax(
|
16 |
+
{
|
17 |
+
type: 'POST',
|
18 |
+
context:this,
|
19 |
+
url: wcps_ajax.wcps_ajaxurl,
|
20 |
+
data: {"action": "wcps_grid_items_reset","wcps_id":wcps_id},
|
21 |
+
success: function(data)
|
22 |
+
{
|
23 |
+
jQuery(this).html(data);
|
24 |
+
window.location.reload();
|
25 |
+
}
|
26 |
+
});
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
})
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
$(document).on('change', '#wcps_ribbon_name', function()
|
37 |
+
{
|
38 |
+
value = $(this).val();
|
39 |
+
|
40 |
+
if(value=='custom'){
|
41 |
+
|
42 |
+
$('#wcps_ribbon_custom').css('display','block');
|
43 |
+
}
|
44 |
+
else{
|
45 |
+
$('#wcps_ribbon_custom').css('display','none');
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
})
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
$(document).on('click', '.wcps_content_source', function()
|
58 |
+
{
|
59 |
+
var source = $(this).val();
|
60 |
+
var source_id = $(this).attr("id");
|
61 |
+
|
62 |
+
$(".content-source-box.active").removeClass("active");
|
63 |
+
$(".content-source-box."+source_id).addClass("active");
|
64 |
+
|
65 |
+
})
|
66 |
+
|
67 |
+
|
68 |
+
jQuery(".wcps_taxonomy").click(function()
|
69 |
+
{
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
var taxonomy = jQuery(this).val();
|
74 |
+
|
75 |
+
jQuery(".wcps_loading_taxonomy_category").css('display','block');
|
76 |
+
|
77 |
+
jQuery.ajax(
|
78 |
+
{
|
79 |
+
type: 'POST',
|
80 |
+
url: wcps_ajax.wcps_ajaxurl,
|
81 |
+
data: {"action": "wcps_get_taxonomy_category","taxonomy":taxonomy},
|
82 |
+
success: function(data)
|
83 |
+
{
|
84 |
+
jQuery(".wcps_taxonomy_category").html(data);
|
85 |
+
jQuery(".wcps_loading_taxonomy_category").fadeOut('slow');
|
86 |
+
}
|
87 |
+
});
|
88 |
+
|
89 |
+
|
90 |
+
})
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
});
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
{themes/flat → css}/images/arrow-next.png
RENAMED
File without changes
|
{themes/flat → css}/images/arrow-prev.png
RENAMED
File without changes
|
css/images/featured.png
ADDED
Binary file
|
css/images/sale-icon.png
ADDED
Binary file
|
css/images/sale.png
ADDED
Binary file
|
css/no-thumb.png
CHANGED
Binary file
|
css/style.css
CHANGED
@@ -2,85 +2,10 @@
|
|
2 |
/* CSS Document */
|
3 |
|
4 |
|
5 |
-
/*Admin CSS*/
|
6 |
-
|
7 |
-
#wcps_metabox ul.wcps_bg_img_list{}
|
8 |
-
|
9 |
-
#wcps_metabox ul.wcps_bg_img_list li {
|
10 |
-
display: inline-block;
|
11 |
-
margin: 5px;
|
12 |
-
}
|
13 |
-
#wcps_metabox ul.wcps_bg_img_list li.bg-selected {}
|
14 |
-
|
15 |
-
#wcps_metabox ul.wcps_bg_img_list li img{border: 2px solid #ffffff;}
|
16 |
-
|
17 |
-
#wcps_metabox ul.wcps_bg_img_list li.bg-selected img{
|
18 |
-
border: 2px solid #ff5a11;
|
19 |
-
}
|
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;
|
26 |
-
margin-bottom: 20px;
|
27 |
-
width: 30px;
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
-
#wcps_metabox div..wcps_taxonomy_category{}
|
32 |
-
|
33 |
-
|
34 |
-
#wcps_metabox ul.content_source_area {
|
35 |
-
margin-left: 15px;
|
36 |
-
}
|
37 |
-
|
38 |
-
#wcps_metabox ul.content_source_area li{}
|
39 |
-
|
40 |
-
|
41 |
-
#wcps_metabox ul.content_source_area .content-source-box {
|
42 |
-
display: none;
|
43 |
-
}
|
44 |
-
|
45 |
-
#wcps_metabox ul.content_source_area li div.active {
|
46 |
-
background: none repeat scroll 0 0 #e6e6e6;
|
47 |
-
border-left: 3px solid #11b063;
|
48 |
-
display: block;
|
49 |
-
margin: 10px 10px 0 20px;
|
50 |
-
padding: 10px 0 10px 5px;
|
51 |
-
}
|
52 |
-
|
53 |
-
#wcps_metabox .tab-box td {
|
54 |
-
border-left: 3px solid #fff;
|
55 |
-
}
|
56 |
-
|
57 |
-
#wcps_metabox .tab-box td:hover {
|
58 |
-
background: #e6e6e6;
|
59 |
-
border-left: 3px solid #11b063;
|
60 |
-
}
|
61 |
-
|
62 |
-
|
63 |
-
#wcps_metabox .tab-box > table {
|
64 |
-
width: 100%;
|
65 |
-
}
|
66 |
-
|
67 |
-
#wcps_metabox .wcps_ribbons {
|
68 |
-
width: 100%;
|
69 |
-
}
|
70 |
-
|
71 |
-
|
72 |
-
.form-table .wcps_ribbons {
|
73 |
-
}
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
/*CSS front page*/
|
82 |
|
83 |
.wcps-container {
|
|
|
84 |
margin: 50px 0;
|
85 |
overflow: hidden;
|
86 |
position: relative;
|
@@ -163,4 +88,225 @@ background:url("ribbons/dis-90.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
|
163 |
}
|
164 |
.wcps-container div.wcps-ribbon.wcps-ribbon-dis-100{
|
165 |
background:url("ribbons/dis-100.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
166 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/* CSS Document */
|
3 |
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
/*CSS front page*/
|
6 |
|
7 |
.wcps-container {
|
8 |
+
background:none repeat scroll 0 0 rgb(241, 241, 241);
|
9 |
margin: 50px 0;
|
10 |
overflow: hidden;
|
11 |
position: relative;
|
88 |
}
|
89 |
.wcps-container div.wcps-ribbon.wcps-ribbon-dis-100{
|
90 |
background:url("ribbons/dis-100.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
91 |
+
}
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
+
/* Navigation CSS middle */
|
99 |
+
|
100 |
+
.wcps-container .owl-buttons.middle {
|
101 |
+
left: 0;
|
102 |
+
position: absolute;
|
103 |
+
top: 40%;
|
104 |
+
width: 100%;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
.wcps-container .owl-controls .owl-buttons.middle .owl-prev {
|
109 |
+
background: url("images/arrow-prev.png") no-repeat scroll 10px 14px rgba(0, 0, 0, 0);
|
110 |
+
border: 1px solid rgb(221, 221, 221);
|
111 |
+
border-radius: 50%;
|
112 |
+
color: rgb(0, 0, 0);
|
113 |
+
height: 50px;
|
114 |
+
left: -100px;
|
115 |
+
padding: 0;
|
116 |
+
position: absolute;
|
117 |
+
top: 0;
|
118 |
+
|
119 |
+
width: 50px;
|
120 |
+
transition: all 0.6s ease 0s;
|
121 |
+
}
|
122 |
+
|
123 |
+
.wcps-container .owl-controls .owl-buttons.middle .owl-next {
|
124 |
+
background: url("images/arrow-next.png") no-repeat scroll 10px 14px rgba(0, 0, 0, 0);
|
125 |
+
border: 1px solid rgb(221, 221, 221);
|
126 |
+
border-radius: 50%;
|
127 |
+
color: rgb(0, 0, 0);
|
128 |
+
height: 50px;
|
129 |
+
padding: 0;
|
130 |
+
position: absolute;
|
131 |
+
right: -100px;
|
132 |
+
top: 0;
|
133 |
+
|
134 |
+
width: 50px;
|
135 |
+
transition: all 0.6s ease 0s;
|
136 |
+
}
|
137 |
+
|
138 |
+
|
139 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle .owl-prev,
|
140 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle .owl-next {
|
141 |
+
box-shadow: 0 0 8px 0 rgb(102, 102, 102);
|
142 |
+
}
|
143 |
+
|
144 |
+
|
145 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle .owl-prev {
|
146 |
+
left: 30px;
|
147 |
+
}
|
148 |
+
|
149 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle .owl-next {
|
150 |
+
right: 30px;
|
151 |
+
}
|
152 |
+
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
/*#####################################*/
|
157 |
+
|
158 |
+
|
159 |
+
|
160 |
+
.wcps-container .owl-buttons.middle-fixed {
|
161 |
+
left: 0;
|
162 |
+
position: absolute;
|
163 |
+
top: 40%;
|
164 |
+
width: 100%;
|
165 |
+
}
|
166 |
+
|
167 |
+
|
168 |
+
.wcps-container .owl-controls .owl-buttons.middle-fixed .owl-prev {
|
169 |
+
background: url("images/arrow-prev.png") no-repeat scroll 10px 14px rgba(0, 0, 0, 0);
|
170 |
+
border: 1px solid rgb(221, 221, 221);
|
171 |
+
border-radius: 50%;
|
172 |
+
color: rgb(0, 0, 0);
|
173 |
+
height: 50px;
|
174 |
+
left: -50px;
|
175 |
+
padding: 0;
|
176 |
+
position: absolute;
|
177 |
+
top: 0;
|
178 |
+
|
179 |
+
width: 50px;
|
180 |
+
transition: all 0.6s ease 0s;
|
181 |
+
}
|
182 |
+
|
183 |
+
.wcps-container .owl-controls .owl-buttons.middle-fixed .owl-next {
|
184 |
+
background: url("images/arrow-next.png") no-repeat scroll 10px 14px rgba(0, 0, 0, 0);
|
185 |
+
border: 1px solid rgb(221, 221, 221);
|
186 |
+
border-radius: 50%;
|
187 |
+
color: rgb(0, 0, 0);
|
188 |
+
height: 50px;
|
189 |
+
padding: 0;
|
190 |
+
position: absolute;
|
191 |
+
right: -50px;
|
192 |
+
top: 0;
|
193 |
+
|
194 |
+
width: 50px;
|
195 |
+
transition: all 0.6s ease 0s;
|
196 |
+
}
|
197 |
+
|
198 |
+
|
199 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle-fixed .owl-prev,
|
200 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle-fixed .owl-next {
|
201 |
+
box-shadow: 0 0 8px 0 rgb(102, 102, 102);
|
202 |
+
}
|
203 |
+
|
204 |
+
|
205 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle-fixed .owl-prev {
|
206 |
+
left: -50px;
|
207 |
+
}
|
208 |
+
|
209 |
+
.wcps-container:hover .owl-controls .owl-buttons.middle-fixed .owl-next {
|
210 |
+
right: -50px;
|
211 |
+
}
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
/* Navigation CSS topright*/
|
233 |
+
.wcps-container .owl-buttons.topright {
|
234 |
+
position: absolute;
|
235 |
+
right: 15px;
|
236 |
+
top: 15px;
|
237 |
+
}
|
238 |
+
|
239 |
+
.wcps-container .owl-controls .owl-buttons.topright .owl-prev {
|
240 |
+
background: url("images/arrow-prev.png") repeat scroll 0 0 rgb(255, 255, 255);
|
241 |
+
border: 1px solid rgb(221, 221, 221);
|
242 |
+
border-radius: 0;
|
243 |
+
color: rgb(0, 0, 0);
|
244 |
+
height: 20px;
|
245 |
+
padding: 0;
|
246 |
+
opacity: 1;
|
247 |
+
width: 30px;
|
248 |
+
}
|
249 |
+
|
250 |
+
|
251 |
+
|
252 |
+
.wcps-container .owl-controls .owl-buttons.topright .owl-next {
|
253 |
+
background: url("images/arrow-next.png") repeat scroll 0 0 rgb(255, 255, 255);
|
254 |
+
border: 1px solid rgb(221, 221, 221);
|
255 |
+
border-radius: 0;
|
256 |
+
color: rgb(0, 0, 0);
|
257 |
+
padding: 0;
|
258 |
+
width: 30px;
|
259 |
+
opacity: 1;
|
260 |
+
height: 20px;
|
261 |
+
}
|
262 |
+
|
263 |
+
|
264 |
+
|
265 |
+
.wcps-container .owl-controls .owl-buttons.topright div.owl-prev:hover{
|
266 |
+
background-image: url("images/arrow-prev.png") ;
|
267 |
+
background-color:#d5d5d5 !important; }
|
268 |
+
|
269 |
+
|
270 |
+
.wcps-container .owl-controls .owl-buttons.topright div.owl-next:hover{
|
271 |
+
background-image: url("images/arrow-next.png");
|
272 |
+
background-color:#d5d5d5 !important; }
|
273 |
+
|
274 |
+
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
|
279 |
+
|
280 |
+
.wcps-container div.wcps-featured {
|
281 |
+
background: url("images/featured.png") no-repeat scroll 0 0 rgba(0, 0, 0,0);
|
282 |
+
color: rgb(255, 255, 255);
|
283 |
+
font-size: 12px;
|
284 |
+
height: 32px;
|
285 |
+
left: 10px;
|
286 |
+
padding: 0;
|
287 |
+
position: absolute;
|
288 |
+
top: 10px;
|
289 |
+
width: 26px;
|
290 |
+
}
|
291 |
+
|
292 |
+
|
293 |
+
.wcps-container div.wcps-sale {
|
294 |
+
background: url("images/sale.png") no-repeat scroll 0 center rgb(241, 241, 241);
|
295 |
+
box-shadow: 0 1px 6px -3px rgb(153, 153, 153);
|
296 |
+
color: rgb(255, 255, 255);
|
297 |
+
font-size: 12px;
|
298 |
+
height: 30px;
|
299 |
+
padding: 0;
|
300 |
+
position: absolute;
|
301 |
+
right: -30px;
|
302 |
+
top: 0;
|
303 |
+
transform: rotate(45deg);
|
304 |
+
width: 90px;
|
305 |
+
}
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
|
css/tags.png
ADDED
Binary file
|
includes/class-functions.php
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
class class_wcps_functions {
|
11 |
+
|
12 |
+
|
13 |
+
public function __construct(){
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
public function wcps_themes($themes = array())
|
19 |
+
{
|
20 |
+
|
21 |
+
$themes = array(
|
22 |
+
'theme1'=>'Theme 1',
|
23 |
+
'theme6'=>'Theme 6',
|
24 |
+
|
25 |
+
);
|
26 |
+
|
27 |
+
foreach(apply_filters( 'wcps_themes', $themes ) as $theme_key=> $theme_name)
|
28 |
+
{
|
29 |
+
$theme_list[$theme_key] = $theme_name;
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
return $theme_list;
|
34 |
+
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
+
public function wcps_themes_dir($themes_dir = array())
|
39 |
+
{
|
40 |
+
$main_dir = wcps_plugin_dir.'themes/';
|
41 |
+
$themes_dir = $this->wcps_themes();
|
42 |
+
|
43 |
+
foreach($themes_dir as $theme_key=> $theme_dir)
|
44 |
+
{
|
45 |
+
$theme_list_dir[$theme_key] = $main_dir.$theme_key;
|
46 |
+
}
|
47 |
+
|
48 |
+
return $theme_list_dir;
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
public function wcps_themes_url($themes_url = array())
|
54 |
+
{
|
55 |
+
$main_url = wcps_plugin_url.'themes/';
|
56 |
+
$themes_url = $this->wcps_themes();
|
57 |
+
|
58 |
+
foreach($themes_url as $theme_key=> $theme_url)
|
59 |
+
{
|
60 |
+
$theme_list_url[$theme_key] = $main_url.$theme_key;
|
61 |
+
}
|
62 |
+
|
63 |
+
return $theme_list_url;
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
public function wcps_grid_items($grid_items = array()){
|
71 |
+
|
72 |
+
$grid_items = array(
|
73 |
+
'thumb'=>'Thumbnail',
|
74 |
+
'title'=>'Title',
|
75 |
+
'excerpt'=>'Excerpt',
|
76 |
+
'category'=>'Category',
|
77 |
+
'price'=>'Price',
|
78 |
+
'cart'=>'Cart',
|
79 |
+
'sale'=>'Sale',
|
80 |
+
//'featured'=>'Featured',
|
81 |
+
);
|
82 |
+
return $grid_items;
|
83 |
+
}
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
}
|
includes/class-settings.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
class class_wcps_settings{
|
11 |
+
|
12 |
+
public function __construct(){
|
13 |
+
|
14 |
+
add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 );
|
15 |
+
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
public function admin_menu() {
|
20 |
+
|
21 |
+
add_submenu_page('edit.php?post_type=wcps', __('Settings','wcps'), __('Settings','wcps'), 'manage_options', 'wcps_menu_settings', array( $this, 'settings_page' ));
|
22 |
+
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
public function settings_page(){
|
27 |
+
|
28 |
+
include( 'menu/settings.php' );
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
new class_wcps_settings();
|
includes/class-shortcodes.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
class class_wcps_shortcodes{
|
11 |
+
|
12 |
+
|
13 |
+
public function __construct(){
|
14 |
+
|
15 |
+
add_shortcode( 'wcps', array( $this, 'wcps_display' ) );
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
+
public function wcps_display($atts, $content = null ) {
|
20 |
+
$atts = shortcode_atts(
|
21 |
+
array(
|
22 |
+
'id' => "",
|
23 |
+
|
24 |
+
), $atts);
|
25 |
+
|
26 |
+
$html = '';
|
27 |
+
$post_id = $atts['id'];
|
28 |
+
|
29 |
+
$wcps_themes = get_post_meta( $post_id, 'wcps_themes', true );
|
30 |
+
|
31 |
+
$class_wcps_functions = new class_wcps_functions();
|
32 |
+
$wcps_themes_dir = $class_wcps_functions->wcps_themes_dir();
|
33 |
+
$wcps_themes_url = $class_wcps_functions->wcps_themes_url();
|
34 |
+
|
35 |
+
//var_dump($wcps_themes_url);
|
36 |
+
|
37 |
+
|
38 |
+
$html.= '<link type="text/css" media="all" rel="stylesheet" href="'.$wcps_themes_url[$wcps_themes].'/style.css" >';
|
39 |
+
|
40 |
+
include $wcps_themes_dir[$wcps_themes].'/index.php';
|
41 |
+
|
42 |
+
return $html;
|
43 |
+
|
44 |
+
|
45 |
+
}
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
new class_wcps_shortcodes();
|
includes/menu/settings.php
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
if(empty($_POST['wcps_hidden']))
|
13 |
+
{
|
14 |
+
|
15 |
+
$wcps_ribbons = get_option( 'wcps_ribbons' );
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
}
|
20 |
+
else
|
21 |
+
{
|
22 |
+
|
23 |
+
|
24 |
+
if($_POST['wcps_hidden'] == 'Y') {
|
25 |
+
//Form data sent
|
26 |
+
|
27 |
+
|
28 |
+
$wcps_ribbons = stripslashes_deep($_POST['wcps_ribbons']);
|
29 |
+
update_option('wcps_ribbons', $wcps_ribbons);
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
?>
|
36 |
+
<div class="updated"><p><strong><?php _e('Changes Saved.' ); ?></strong></p></div>
|
37 |
+
|
38 |
+
<?php
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
?>
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
<div class="wrap">
|
55 |
+
|
56 |
+
<div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__(wcps_plugin_name.' Settings')."</h2>";?>
|
57 |
+
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
58 |
+
<input type="hidden" name="wcps_hidden" value="Y">
|
59 |
+
<?php settings_fields( 'wcps_plugin_options' );
|
60 |
+
do_settings_sections( 'wcps_plugin_options' );
|
61 |
+
|
62 |
+
?>
|
63 |
+
|
64 |
+
|
65 |
+
<div class="para-settings">
|
66 |
+
<ul class="tab-nav">
|
67 |
+
<li nav="2" class="nav2 active">Help</li>
|
68 |
+
</ul> <!-- tab-nav end -->
|
69 |
+
|
70 |
+
<ul class="box">
|
71 |
+
|
72 |
+
<li style="display: block;" class="box2 tab-box active">
|
73 |
+
|
74 |
+
<div class="option-box">
|
75 |
+
<p class="option-title">Need Help ?</p>
|
76 |
+
<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 />
|
77 |
+
|
78 |
+
<?php
|
79 |
+
|
80 |
+
if(wcps_customer_type=="free")
|
81 |
+
{
|
82 |
+
|
83 |
+
echo 'You are using <strong> '.wcps_customer_type.' version '.wcps_plugin_version.'</strong> of <strong>'.wcps_plugin_name.'</strong>, To get more feature you could try our premium version. ';
|
84 |
+
|
85 |
+
echo '<br /><a href="'.wcps_pro_url.'">'.wcps_pro_url.'</a>';
|
86 |
+
|
87 |
+
}
|
88 |
+
else
|
89 |
+
{
|
90 |
+
|
91 |
+
echo 'Thanks for using <strong> premium version '.wcps_plugin_version.'</strong> of <strong>'.wcps_plugin_name.'</strong> ';
|
92 |
+
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
?>
|
97 |
+
|
98 |
+
|
99 |
+
</p>
|
100 |
+
|
101 |
+
</div>
|
102 |
+
<div class="option-box">
|
103 |
+
<p class="option-title">Submit Reviews...</p>
|
104 |
+
<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>
|
105 |
+
<img class="wcps-pro-pricing" src="<?php echo wcps_plugin_url."css/five-star.png";?>" /><br />
|
106 |
+
<a target="_blank" href="<?php echo wcps_wp_reviews; ?>">
|
107 |
+
<?php echo wcps_wp_reviews; ?>
|
108 |
+
</a>
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
</div>
|
113 |
+
<div class="option-box">
|
114 |
+
<p class="option-title">Please Share</p>
|
115 |
+
<p class="option-info">If you like this plugin please share with your social share network.</p>
|
116 |
+
<?php
|
117 |
+
|
118 |
+
echo wcps_share_plugin();
|
119 |
+
?>
|
120 |
+
</div>
|
121 |
+
<div class="option-box">
|
122 |
+
<p class="option-title">Video Tutorial</p>
|
123 |
+
<p class="option-info">Please watch this video tutorial.</p>
|
124 |
+
<iframe width="640" height="480" src="<?php echo wcps_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
|
128 |
+
</li>
|
129 |
+
|
130 |
+
</ul>
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
</div>
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
<p class="submit">
|
140 |
+
<input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes' ) ?>" />
|
141 |
+
</p>
|
142 |
+
</form>
|
143 |
+
|
144 |
+
|
145 |
+
</div>
|
includes/wcps-functions.php
CHANGED
@@ -1,12 +1,56 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
function wcps_get_all_product_ids($postid)
|
6 |
{
|
7 |
|
8 |
$wcps_product_ids = get_post_meta( $postid, 'wcps_product_ids', true );
|
9 |
-
|
10 |
|
11 |
|
12 |
$return_string = '';
|
@@ -59,7 +103,7 @@ function wcps_get_taxonomy_category($postid)
|
|
59 |
$wcps_taxonomy = get_post_meta( $postid, 'wcps_taxonomy', true );
|
60 |
if(empty($wcps_taxonomy))
|
61 |
{
|
62 |
-
$wcps_taxonomy= "";
|
63 |
}
|
64 |
$wcps_taxonomy_category = get_post_meta( $postid, 'wcps_taxonomy_category', true );
|
65 |
|
@@ -141,22 +185,53 @@ add_action('wp_ajax_nopriv_wcps_get_taxonomy_category', 'wcps_get_taxonomy_categ
|
|
141 |
|
142 |
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
|
161 |
|
162 |
|
@@ -249,4 +324,5 @@ function wcps_dark_color($input_color)
|
|
249 |
}
|
250 |
|
251 |
|
|
|
252 |
|
1 |
<?php
|
2 |
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
/*
|
11 |
+
|
12 |
+
function wcps_grid_items($grid_items){
|
13 |
+
|
14 |
+
$grid_items_extra = array(
|
15 |
+
'thumb1'=>'Thumbnail 1',
|
16 |
+
'title1'=>'Title 1',
|
17 |
+
);
|
18 |
+
|
19 |
+
$grid_items = array_merge($grid_items,$grid_items_extra);
|
20 |
+
|
21 |
+
return $grid_items;
|
22 |
+
}
|
23 |
+
|
24 |
+
add_filter('wcps_grid_items', 'wcps_grid_items');
|
25 |
+
|
26 |
+
*/
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
function wcps_grid_items_reset(){
|
31 |
+
$wcps_id = (int)$_POST['wcps_id'];
|
32 |
+
|
33 |
+
if(delete_post_meta($wcps_id, 'wcps_grid_items')){
|
34 |
+
echo 'Reset done!';
|
35 |
+
}
|
36 |
+
else{
|
37 |
+
echo 'Reset failed!';
|
38 |
+
}
|
39 |
+
|
40 |
+
die();
|
41 |
+
|
42 |
+
}
|
43 |
+
|
44 |
+
add_action('wp_ajax_wcps_grid_items_reset', 'wcps_grid_items_reset');
|
45 |
+
add_action('wp_ajax_nopriv_wcps_grid_items_reset', 'wcps_grid_items_reset');
|
46 |
+
|
47 |
|
48 |
|
49 |
function wcps_get_all_product_ids($postid)
|
50 |
{
|
51 |
|
52 |
$wcps_product_ids = get_post_meta( $postid, 'wcps_product_ids', true );
|
53 |
+
$wcps_query_orderby = get_post_meta( $postid, 'wcps_query_orderby', true );
|
54 |
|
55 |
|
56 |
$return_string = '';
|
103 |
$wcps_taxonomy = get_post_meta( $postid, 'wcps_taxonomy', true );
|
104 |
if(empty($wcps_taxonomy))
|
105 |
{
|
106 |
+
$wcps_taxonomy= "product_cat";
|
107 |
}
|
108 |
$wcps_taxonomy_category = get_post_meta( $postid, 'wcps_taxonomy_category', true );
|
109 |
|
185 |
|
186 |
|
187 |
|
188 |
+
function wcps_get_product_categories($postid)
|
189 |
+
{
|
190 |
+
|
191 |
+
$taxonomy= "product_cat";
|
192 |
+
$wcps_taxonomy_category = get_post_meta( $postid, 'wcps_slide_categories', true );
|
193 |
+
$args=array(
|
194 |
+
'orderby' => 'name',
|
195 |
+
'order' => 'ASC',
|
196 |
+
'taxonomy' => $taxonomy,
|
197 |
+
);
|
198 |
+
|
199 |
+
$categories = get_categories($args);
|
200 |
+
|
201 |
+
|
202 |
+
if(empty($categories))
|
203 |
+
{
|
204 |
+
echo "No categories found!";
|
205 |
+
$categories = array();
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
$html = '';
|
210 |
+
$html .= '<ul style="margin: 0;">';
|
211 |
+
|
212 |
+
foreach($categories as $category){
|
213 |
+
|
214 |
+
if(array_search($category->cat_ID, $wcps_taxonomy_category))
|
215 |
+
{
|
216 |
+
$html .= '<li class='.$category->cat_ID.'><label ><input checked type="checkbox" name="wcps_slide_categories['.$category->cat_ID.']" value ="'.$category->cat_ID.'" />'.$category->cat_name.'</label ></li>';
|
217 |
+
}
|
218 |
+
|
219 |
+
else
|
220 |
+
{
|
221 |
+
$html .= '<li class='.$category->cat_ID.'><label ><input type="checkbox" name="wcps_slide_categories['.$category->cat_ID.']" value ="'.$category->cat_ID.'" />'.$category->cat_name.'</label ></li>';
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
|
226 |
+
|
227 |
+
}
|
228 |
+
|
229 |
+
$html .= '</ul>';
|
230 |
+
|
231 |
+
echo $html;
|
232 |
+
|
233 |
+
|
234 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
|
237 |
|
324 |
}
|
325 |
|
326 |
|
327 |
+
|
328 |
|
includes/wcps-meta.php
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
function wcps_posttype_register() {
|
5 |
|
@@ -67,18 +73,25 @@ function meta_boxes_wcps_input( $post ) {
|
|
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 );
|
|
|
76 |
$wcps_slider_navigation_speed = get_post_meta( $post->ID, 'wcps_slider_navigation_speed', true );
|
77 |
-
|
78 |
$wcps_slider_pagination = get_post_meta( $post->ID, 'wcps_slider_pagination', 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 );
|
@@ -93,22 +106,63 @@ function meta_boxes_wcps_input( $post ) {
|
|
93 |
|
94 |
$wcps_product_ids = get_post_meta( $post->ID, 'wcps_product_ids', true );
|
95 |
|
|
|
|
|
|
|
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 |
-
$wcps_items_empty_thumb = get_post_meta( $post->ID, 'wcps_items_empty_thumb', true );
|
|
|
|
|
104 |
|
|
|
|
|
105 |
|
106 |
-
$
|
107 |
|
108 |
|
109 |
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
|
|
112 |
?>
|
113 |
|
114 |
|
@@ -138,6 +192,7 @@ function meta_boxes_wcps_input( $post ) {
|
|
138 |
<li nav="1" class="nav1 active">Options</li>
|
139 |
<li nav="2" class="nav2">Style</li>
|
140 |
<li nav="3" class="nav3">Content</li>
|
|
|
141 |
</ul> <!-- tab-nav end -->
|
142 |
|
143 |
<ul class="box">
|
@@ -151,13 +206,27 @@ function meta_boxes_wcps_input( $post ) {
|
|
151 |
<div class="option-box">
|
152 |
<p class="option-title">Slider Column Number</p>
|
153 |
<p class="option-info"></p>
|
154 |
-
In Destop: <br />
|
155 |
-
<input type="text"
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
</div>
|
158 |
|
|
|
159 |
|
160 |
|
|
|
|
|
|
|
|
|
161 |
<div class="option-box">
|
162 |
<p class="option-title">Slider Auto Play</p>
|
163 |
<p class="option-info"></p>
|
@@ -205,7 +274,28 @@ function meta_boxes_wcps_input( $post ) {
|
|
205 |
<?php
|
206 |
}
|
207 |
?>
|
208 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
<div class="option-box">
|
211 |
<p class="option-title">Slider Pagination at Bottom</p>
|
@@ -248,7 +338,7 @@ function meta_boxes_wcps_input( $post ) {
|
|
248 |
<p class="option-title">Pagination Slide Speed</p>
|
249 |
<p class="option-info"></p>
|
250 |
<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"; ?>" />
|
251 |
-
</div>
|
252 |
|
253 |
<div class="option-box">
|
254 |
<p class="option-title">Slider Touch Drag Enabled</p>
|
@@ -288,12 +378,31 @@ function meta_boxes_wcps_input( $post ) {
|
|
288 |
<div class="option-box">
|
289 |
<p class="option-title">Themes</p>
|
290 |
<p class="option-info"></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
<select name="wcps_themes" >
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
</div>
|
|
|
297 |
|
298 |
|
299 |
<div class="option-box">
|
@@ -301,13 +410,14 @@ function meta_boxes_wcps_input( $post ) {
|
|
301 |
<p class="option-info"></p>
|
302 |
<?php
|
303 |
|
304 |
-
echo '<select name="wcps_ribbon_name" >';
|
305 |
|
306 |
if(empty($wcps_ribbon_name))
|
307 |
{
|
308 |
$wcps_ribbon_name = "";
|
309 |
}
|
310 |
echo '<option value="none" '.(($wcps_ribbon_name=="none" ) ? "selected" : "").' >None</option>';
|
|
|
311 |
echo '<option value="free" '.(($wcps_ribbon_name=="free" ) ? "selected" : "").' >Free</option>';
|
312 |
echo '<option value="save" '.(($wcps_ribbon_name=="save" ) ? "selected" : "").' >Save</option>';
|
313 |
echo '<option value="hot" '.(($wcps_ribbon_name=="hot" ) ? "selected" : "").' >Hot</option>';
|
@@ -341,27 +451,30 @@ function meta_boxes_wcps_input( $post ) {
|
|
341 |
|
342 |
|
343 |
|
344 |
-
?>
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
358 |
</div>
|
359 |
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
<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"; ?>" />
|
364 |
-
</div>
|
365 |
|
366 |
<div class="option-box">
|
367 |
<p class="option-title">Background Image</p>
|
@@ -435,27 +548,70 @@ function meta_boxes_wcps_input( $post ) {
|
|
435 |
|
436 |
|
437 |
|
438 |
-
|
439 |
|
440 |
|
441 |
|
442 |
</div>
|
443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
<div class="option-box">
|
445 |
-
<p class="option-title">
|
446 |
<p class="option-info"></p>
|
447 |
-
<input type="text" name="
|
448 |
-
</div>
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
</li>
|
451 |
<li style="display: none;" class="box3 tab-box ">
|
452 |
|
453 |
<div class="option-box">
|
454 |
<p class="option-title">Empty Thumbnail</p>
|
455 |
<p class="option-info"></p>
|
456 |
-
<input type="text" name="wcps_items_empty_thumb" id="wcps_items_empty_thumb" value="<?php if(!empty($wcps_items_empty_thumb)) echo $wcps_items_empty_thumb; ?>" /><br />
|
457 |
<input id="wcps_items_empty_thumb_upload" class="wcps_items_empty_thumb_upload button" type="button" value="Upload Image" />
|
458 |
-
<br />
|
459 |
|
460 |
|
461 |
<?php
|
@@ -518,33 +674,65 @@ function meta_boxes_wcps_input( $post ) {
|
|
518 |
</script>
|
519 |
</div>
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
<div class="option-box">
|
522 |
<p class="option-title">Filter Slider Content.</p>
|
523 |
<p class="option-info"></p>
|
524 |
<ul class="content_source_area" >
|
525 |
-
<li><input class="wcps_content_source" name="wcps_content_source" id="
|
526 |
-
<div class="
|
527 |
-
</li>
|
528 |
-
|
529 |
-
<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>
|
530 |
-
<div class="wcps_content_source_older content-source-box">Slider items will query from older published product.</div>
|
531 |
-
</li>
|
532 |
|
533 |
<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>
|
534 |
|
535 |
<div class="wcps_content_source_featured content-source-box">Slider items will query from featured marked product.</div>
|
536 |
</li>
|
537 |
-
|
538 |
-
|
539 |
|
|
|
|
|
|
|
540 |
<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>
|
541 |
|
542 |
<div class="wcps_content_source_year content-source-box">Slider items will query from a year.
|
543 |
<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" />
|
544 |
</div>
|
545 |
</li>
|
546 |
-
|
547 |
-
|
548 |
<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>
|
549 |
|
550 |
<div class="wcps_content_source_month content-source-box">Slider items will query from Month of a year. <br />
|
@@ -553,27 +741,393 @@ function meta_boxes_wcps_input( $post ) {
|
|
553 |
</div>
|
554 |
</li>
|
555 |
|
556 |
-
|
557 |
</ul>
|
558 |
-
</div>
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
|
566 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
570 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
572 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
|
576 |
-
|
|
|
|
|
|
|
|
|
577 |
<?php
|
578 |
|
579 |
|
@@ -614,9 +1168,12 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
614 |
$wcps_bg_img = sanitize_text_field( $_POST['wcps_bg_img'] );
|
615 |
$wcps_themes = sanitize_text_field( $_POST['wcps_themes'] );
|
616 |
$wcps_total_items = sanitize_text_field( $_POST['wcps_total_items'] );
|
617 |
-
|
|
|
|
|
618 |
$wcps_column_number = sanitize_text_field( $_POST['wcps_column_number'] );
|
619 |
-
|
|
|
620 |
|
621 |
if(empty($_POST['wcps_auto_play']))
|
622 |
{
|
@@ -647,6 +1204,7 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
647 |
$wcps_slider_navigation = sanitize_text_field( $_POST['wcps_slider_navigation'] );
|
648 |
}
|
649 |
|
|
|
650 |
|
651 |
|
652 |
$wcps_slide_speed = sanitize_text_field( $_POST['wcps_slide_speed'] );
|
@@ -677,6 +1235,8 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
677 |
|
678 |
|
679 |
|
|
|
|
|
680 |
|
681 |
|
682 |
if(empty($_POST['wcps_slider_touch_drag']))
|
@@ -727,10 +1287,7 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
727 |
$wcps_taxonomy_category = stripslashes_deep( $_POST['wcps_taxonomy_category'] );
|
728 |
}
|
729 |
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
if(empty($_POST['wcps_product_ids']))
|
735 |
{
|
736 |
$wcps_product_ids = '';
|
@@ -741,35 +1298,74 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
741 |
}
|
742 |
|
743 |
|
744 |
-
|
745 |
|
746 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
$wcps_cart_bg = sanitize_text_field( $_POST['wcps_cart_bg'] );
|
748 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
$wcps_items_thumb_size = sanitize_text_field( $_POST['wcps_items_thumb_size'] );
|
750 |
$wcps_items_thumb_max_hieght = sanitize_text_field( $_POST['wcps_items_thumb_max_hieght'] );
|
751 |
-
|
752 |
-
$wcps_items_empty_thumb = sanitize_text_field( $_POST['wcps_items_empty_thumb'] );
|
753 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
|
755 |
|
756 |
// Update the meta field in the database.
|
757 |
update_post_meta( $post_id, 'wcps_bg_img', $wcps_bg_img );
|
758 |
update_post_meta( $post_id, 'wcps_themes', $wcps_themes );
|
759 |
update_post_meta( $post_id, 'wcps_total_items', $wcps_total_items );
|
760 |
-
|
761 |
-
update_post_meta( $post_id, 'wcps_column_number', $wcps_column_number );
|
762 |
|
|
|
|
|
|
|
|
|
|
|
763 |
|
764 |
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
|
765 |
update_post_meta( $post_id, 'wcps_stop_on_hover', $wcps_stop_on_hover );
|
766 |
update_post_meta( $post_id, 'wcps_slider_navigation', $wcps_slider_navigation );
|
|
|
767 |
update_post_meta( $post_id, 'wcps_slide_speed', $wcps_slide_speed );
|
768 |
|
769 |
update_post_meta( $post_id, 'wcps_slider_pagination', $wcps_slider_pagination );
|
770 |
update_post_meta( $post_id, 'wcps_pagination_slide_speed', $wcps_pagination_slide_speed );
|
771 |
update_post_meta( $post_id, 'wcps_slider_pagination_count', $wcps_slider_pagination_count );
|
772 |
-
|
|
|
|
|
|
|
773 |
update_post_meta( $post_id, 'wcps_slider_touch_drag', $wcps_slider_touch_drag );
|
774 |
update_post_meta( $post_id, 'wcps_slider_mouse_drag', $wcps_slider_mouse_drag );
|
775 |
|
@@ -780,44 +1376,50 @@ function meta_boxes_wcps_save( $post_id ) {
|
|
780 |
|
781 |
update_post_meta( $post_id, 'wcps_taxonomy', $wcps_taxonomy );
|
782 |
update_post_meta( $post_id, 'wcps_taxonomy_category', $wcps_taxonomy_category );
|
783 |
-
|
784 |
update_post_meta( $post_id, 'wcps_product_ids', $wcps_product_ids );
|
785 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
update_post_meta( $post_id, 'wcps_cart_bg', $wcps_cart_bg );
|
787 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
update_post_meta( $post_id, 'wcps_items_thumb_size', $wcps_items_thumb_size );
|
789 |
update_post_meta( $post_id, 'wcps_items_thumb_max_hieght', $wcps_items_thumb_max_hieght );
|
790 |
|
791 |
-
update_post_meta( $post_id, 'wcps_items_empty_thumb', $wcps_items_empty_thumb );
|
|
|
|
|
792 |
|
793 |
update_post_meta( $post_id, 'wcps_ribbon_name', $wcps_ribbon_name );
|
|
|
|
|
|
|
|
|
794 |
|
795 |
}
|
796 |
add_action( 'save_post', 'meta_boxes_wcps_save' );
|
797 |
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
?>
|
1 |
<?php
|
2 |
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
|
10 |
function wcps_posttype_register() {
|
11 |
|
73 |
$wcps_themes = get_post_meta( $post->ID, 'wcps_themes', true );
|
74 |
$wcps_total_items = get_post_meta( $post->ID, 'wcps_total_items', true );
|
75 |
|
76 |
+
$wcps_total_items_price_format = get_post_meta( $post->ID, 'wcps_total_items_price_format', true );
|
77 |
+
|
78 |
$wcps_column_number = get_post_meta( $post->ID, 'wcps_column_number', true );
|
79 |
+
$wcps_column_number_mobile = get_post_meta( $post->ID, 'wcps_column_number_mobile', true );
|
80 |
+
$wcps_column_number_tablet = get_post_meta( $post->ID, 'wcps_column_number_tablet', true );
|
81 |
|
82 |
$wcps_auto_play = get_post_meta( $post->ID, 'wcps_auto_play', true );
|
83 |
$wcps_stop_on_hover = get_post_meta( $post->ID, 'wcps_stop_on_hover', true );
|
84 |
+
|
85 |
$wcps_slider_navigation = get_post_meta( $post->ID, 'wcps_slider_navigation', true );
|
86 |
+
$wcps_slider_navigation_position = get_post_meta( $post->ID, 'wcps_slider_navigation_position', true );
|
87 |
$wcps_slider_navigation_speed = get_post_meta( $post->ID, 'wcps_slider_navigation_speed', true );
|
88 |
+
|
89 |
$wcps_slider_pagination = get_post_meta( $post->ID, 'wcps_slider_pagination', true );
|
90 |
$wcps_pagination_slide_speed = get_post_meta( $post->ID, 'wcps_pagination_slide_speed', true );
|
91 |
$wcps_slider_pagination_count = get_post_meta( $post->ID, 'wcps_slider_pagination_count', true );
|
92 |
|
93 |
+
$wcps_slider_pagination_bg = get_post_meta( $post->ID, 'wcps_slider_pagination_bg', true );
|
94 |
+
$wcps_slider_pagination_text_color = get_post_meta( $post->ID, 'wcps_slider_pagination_text_color', true );
|
95 |
|
96 |
$wcps_slider_touch_drag = get_post_meta( $post->ID, 'wcps_slider_touch_drag', true );
|
97 |
$wcps_slider_mouse_drag = get_post_meta( $post->ID, 'wcps_slider_mouse_drag', true );
|
106 |
|
107 |
$wcps_product_ids = get_post_meta( $post->ID, 'wcps_product_ids', true );
|
108 |
|
109 |
+
$wcps_cat_display = get_post_meta( $post->ID, 'wcps_cat_display', true );
|
110 |
+
$wcps_featured_display = get_post_meta( $post->ID, 'wcps_featured_display', true );
|
111 |
+
$wcps_featured_icon_url = get_post_meta( $post->ID, 'wcps_featured_icon_url', true );
|
112 |
|
113 |
+
$wcps_sale_display = get_post_meta( $post->ID, 'wcps_sale_display', true );
|
114 |
+
$wcps_sale_icon_url = get_post_meta( $post->ID, 'wcps_sale_icon_url', true );
|
115 |
|
116 |
+
$wcps_cart_style = get_post_meta( $post->ID, 'wcps_cart_style', true );
|
117 |
+
$wcps_cart_display = get_post_meta( $post->ID, 'wcps_cart_display', true );
|
118 |
+
$wcps_ratings_display = get_post_meta( $post->ID, 'wcps_ratings_display', true );
|
119 |
$wcps_cart_bg = get_post_meta( $post->ID, 'wcps_cart_bg', true );
|
120 |
+
$wcps_cart_text_color = get_post_meta( $post->ID, 'wcps_cart_text_color', true );
|
121 |
+
|
122 |
+
$wcps_grid_items = get_post_meta( $post->ID, 'wcps_grid_items', true );
|
123 |
+
$wcps_grid_items_hide = get_post_meta( $post->ID, 'wcps_grid_items_hide', true );
|
124 |
+
|
125 |
+
$wcps_items_title_display = get_post_meta( $post->ID, 'wcps_items_title_display', true );
|
126 |
+
$wcps_items_title_color = get_post_meta( $post->ID, 'wcps_items_title_color', true );
|
127 |
+
$wcps_items_title_font_size = get_post_meta( $post->ID, 'wcps_items_title_font_size', true );
|
128 |
+
|
129 |
+
$wcps_items_excerpt_count = get_post_meta( $post->ID, 'wcps_items_excerpt_count', true );
|
130 |
+
$wcps_items_excerpt_read_more = get_post_meta( $post->ID, 'wcps_items_excerpt_read_more', true );
|
131 |
+
|
132 |
+
$wcps_items_price_display = get_post_meta( $post->ID, 'wcps_items_price_display', true );
|
133 |
+
$wcps_items_price_color = get_post_meta( $post->ID, 'wcps_items_price_color', true );
|
134 |
+
$wcps_items_price_font_size = get_post_meta( $post->ID, 'wcps_items_price_font_size', true );
|
135 |
+
|
136 |
+
$wcps_items_thumb_link_to = get_post_meta( $post->ID, 'wcps_items_thumb_link_to', true );
|
137 |
$wcps_items_thumb_size = get_post_meta( $post->ID, 'wcps_items_thumb_size', true );
|
138 |
$wcps_items_thumb_max_hieght = get_post_meta( $post->ID, 'wcps_items_thumb_max_hieght', true );
|
139 |
|
140 |
+
$wcps_items_empty_thumb = get_post_meta( $post->ID, 'wcps_items_empty_thumb', true );
|
141 |
+
$wcps_query_order = get_post_meta( $post->ID, 'wcps_query_order', true );
|
142 |
+
$wcps_query_orderby = get_post_meta( $post->ID, 'wcps_query_orderby', true );
|
143 |
|
144 |
+
$wcps_ribbon_name = get_post_meta( $post->ID, 'wcps_ribbon_name', true );
|
145 |
+
$wcps_ribbon_custom = get_post_meta( $post->ID, 'wcps_ribbon_custom', true );
|
146 |
|
147 |
+
$wcps_items_custom_css = get_post_meta( $post->ID, 'wcps_items_custom_css', true );
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
+
|
153 |
+
|
154 |
+
if(empty($wcps_content_source))
|
155 |
+
{
|
156 |
+
$wcps_content_source = 'recent';
|
157 |
+
}
|
158 |
+
|
159 |
+
|
160 |
+
$class_wcps_functions = new class_wcps_functions();
|
161 |
+
|
162 |
+
$wcps_themes_list = $class_wcps_functions->wcps_themes();
|
163 |
+
|
164 |
|
165 |
+
$wcps_id = $post->ID;
|
166 |
?>
|
167 |
|
168 |
|
192 |
<li nav="1" class="nav1 active">Options</li>
|
193 |
<li nav="2" class="nav2">Style</li>
|
194 |
<li nav="3" class="nav3">Content</li>
|
195 |
+
<li nav="4" class="nav4">Custom CSS</li>
|
196 |
</ul> <!-- tab-nav end -->
|
197 |
|
198 |
<ul class="box">
|
206 |
<div class="option-box">
|
207 |
<p class="option-title">Slider Column Number</p>
|
208 |
<p class="option-info"></p>
|
209 |
+
In Destop: (min:1000px and max)<br />
|
210 |
+
<input type="text" placeholder="4" name="wcps_column_number" value="<?php if(!empty($wcps_column_number))echo $wcps_column_number; else echo 4; ?>" />
|
211 |
+
<br /><br />
|
212 |
+
In Tablet & Small Desktop: (900px max width) <br />
|
213 |
+
<input type="text" placeholder="2" name="wcps_column_number_tablet" value="<?php if(!empty($wcps_column_number_tablet)) echo $wcps_column_number_tablet; else echo 2; ?>" />
|
214 |
+
|
215 |
+
<br /><br />
|
216 |
+
In Mobile: (479px max width) <br />
|
217 |
+
<input type="text" placeholder="1" name="wcps_column_number_mobile" value="<?php if(!empty($wcps_column_number_mobile)) echo $wcps_column_number_mobile; else echo 1; ?>" />
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
</div>
|
222 |
|
223 |
+
|
224 |
|
225 |
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
<div class="option-box">
|
231 |
<p class="option-title">Slider Auto Play</p>
|
232 |
<p class="option-info"></p>
|
274 |
<?php
|
275 |
}
|
276 |
?>
|
277 |
+
</div>
|
278 |
+
|
279 |
+
<div class="option-box">
|
280 |
+
<p class="option-title">Slider Navigation Position</p>
|
281 |
+
<p class="option-info"></p>
|
282 |
+
<select name="wcps_slider_navigation_position">
|
283 |
+
<option value="topright" <?php if(($wcps_slider_navigation_position=="topright")) echo "selected"; ?> >Top Right</option>
|
284 |
+
<option value="middle" <?php if(($wcps_slider_navigation_position=="middle")) echo "selected"; ?> >Middle</option>
|
285 |
+
<option value="middle-fixed" <?php if(($wcps_slider_navigation_position=="middle-fixed")) echo "selected"; ?> >Middle fixed</option>
|
286 |
+
|
287 |
+
</select>
|
288 |
+
</div>
|
289 |
+
|
290 |
+
|
291 |
+
|
292 |
+
|
293 |
+
|
294 |
+
|
295 |
+
|
296 |
+
|
297 |
+
|
298 |
+
|
299 |
|
300 |
<div class="option-box">
|
301 |
<p class="option-title">Slider Pagination at Bottom</p>
|
338 |
<p class="option-title">Pagination Slide Speed</p>
|
339 |
<p class="option-info"></p>
|
340 |
<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"; ?>" />
|
341 |
+
</div>
|
342 |
|
343 |
<div class="option-box">
|
344 |
<p class="option-title">Slider Touch Drag Enabled</p>
|
378 |
<div class="option-box">
|
379 |
<p class="option-title">Themes</p>
|
380 |
<p class="option-info"></p>
|
381 |
+
|
382 |
+
|
383 |
+
|
384 |
+
|
385 |
+
|
386 |
+
|
387 |
+
|
388 |
<select name="wcps_themes" >
|
389 |
+
<?php
|
390 |
+
|
391 |
+
|
392 |
+
foreach($wcps_themes_list as $theme_key => $theme_name)
|
393 |
+
{
|
394 |
+
echo '<option value="'.$theme_key.'"';
|
395 |
+
if($wcps_themes == $theme_key) echo "selected";
|
396 |
+
echo '>'.$theme_name.'</option>';
|
397 |
+
|
398 |
+
|
399 |
+
}
|
400 |
+
?>
|
401 |
+
</select>
|
402 |
+
|
403 |
+
|
404 |
</div>
|
405 |
+
|
406 |
|
407 |
|
408 |
<div class="option-box">
|
410 |
<p class="option-info"></p>
|
411 |
<?php
|
412 |
|
413 |
+
echo '<select id="wcps_ribbon_name" name="wcps_ribbon_name" >';
|
414 |
|
415 |
if(empty($wcps_ribbon_name))
|
416 |
{
|
417 |
$wcps_ribbon_name = "";
|
418 |
}
|
419 |
echo '<option value="none" '.(($wcps_ribbon_name=="none" ) ? "selected" : "").' >None</option>';
|
420 |
+
echo '<option value="custom" '.(($wcps_ribbon_name=="custom" ) ? "selected" : "").' >Custom</option>';
|
421 |
echo '<option value="free" '.(($wcps_ribbon_name=="free" ) ? "selected" : "").' >Free</option>';
|
422 |
echo '<option value="save" '.(($wcps_ribbon_name=="save" ) ? "selected" : "").' >Save</option>';
|
423 |
echo '<option value="hot" '.(($wcps_ribbon_name=="hot" ) ? "selected" : "").' >Hot</option>';
|
451 |
|
452 |
|
453 |
|
454 |
+
?>
|
455 |
+
|
456 |
+
<input style="width:100%;" type="text" id="wcps_ribbon_custom" name="wcps_ribbon_custom" placeholder="Custom url for ribbons." id="wcps_ribbon_custom" value="<?php if(!empty($wcps_ribbon_custom)) echo $wcps_ribbon_custom; else echo ""; ?>" />
|
457 |
+
|
458 |
+
<?php
|
459 |
+
|
460 |
+
if($wcps_ribbon_name=='custom'){
|
461 |
+
echo '<style type="text/css">';
|
462 |
+
echo '#wcps_metabox #wcps_ribbon_custom{display:block }';
|
463 |
+
echo '</style>';
|
464 |
+
}
|
465 |
+
|
466 |
|
467 |
+
|
468 |
+
|
469 |
+
?>
|
470 |
+
|
471 |
+
|
472 |
+
|
473 |
</div>
|
474 |
|
475 |
+
|
476 |
+
|
477 |
+
|
|
|
|
|
478 |
|
479 |
<div class="option-box">
|
480 |
<p class="option-title">Background Image</p>
|
548 |
|
549 |
|
550 |
|
551 |
+
?>
|
552 |
|
553 |
|
554 |
|
555 |
</div>
|
556 |
|
557 |
+
|
558 |
+
|
559 |
+
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
|
564 |
+
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
|
571 |
+
|
572 |
+
|
573 |
+
|
574 |
+
|
575 |
+
|
576 |
+
|
577 |
+
|
578 |
+
|
579 |
+
|
580 |
+
|
581 |
+
|
582 |
+
|
583 |
<div class="option-box">
|
584 |
+
<p class="option-title">Pagination Background Color</p>
|
585 |
<p class="option-info"></p>
|
586 |
+
<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"; ?>" />
|
587 |
+
</div>
|
588 |
+
|
589 |
+
<div class="option-box">
|
590 |
+
<p class="option-title">Pagination Text Color</p>
|
591 |
+
<p class="option-info"></p>
|
592 |
+
<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"; ?>" />
|
593 |
+
</div>
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
|
598 |
+
|
599 |
+
|
600 |
+
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
|
606 |
</li>
|
607 |
<li style="display: none;" class="box3 tab-box ">
|
608 |
|
609 |
<div class="option-box">
|
610 |
<p class="option-title">Empty Thumbnail</p>
|
611 |
<p class="option-info"></p>
|
612 |
+
<input style="width:100%;" type="text" name="wcps_items_empty_thumb" id="wcps_items_empty_thumb" value="<?php if(!empty($wcps_items_empty_thumb)) echo $wcps_items_empty_thumb; ?>" /><br /><br />
|
613 |
<input id="wcps_items_empty_thumb_upload" class="wcps_items_empty_thumb_upload button" type="button" value="Upload Image" />
|
614 |
+
<br /><br />
|
615 |
|
616 |
|
617 |
<?php
|
674 |
</script>
|
675 |
</div>
|
676 |
|
677 |
+
|
678 |
+
|
679 |
+
<div class="option-box">
|
680 |
+
<p class="option-title"><?php _e('Query order','wcps'); ?></p>
|
681 |
+
<p class="option-info"></p>
|
682 |
+
<select name="wcps_query_order" >
|
683 |
+
<option value="ASC" <?php if($wcps_query_order=="ASC") echo "selected"; ?>>ASC</option>
|
684 |
+
<option value="DESC" <?php if($wcps_query_order=="DESC") echo "selected"; ?>>DESC</option>
|
685 |
+
|
686 |
+
</select>
|
687 |
+
</div>
|
688 |
+
|
689 |
+
<div class="option-box">
|
690 |
+
<p class="option-title"><?php _e('Query orderBy','wcps'); ?></p>
|
691 |
+
<p class="option-info"></p>
|
692 |
+
<select name="wcps_query_orderby" >
|
693 |
+
<option value="none" <?php if($wcps_query_orderby=="none") echo "selected"; ?>>None</option>
|
694 |
+
<option value="ID" <?php if($wcps_query_orderby=="ID") echo "selected"; ?>>ID</option>
|
695 |
+
<option value="date" <?php if($wcps_query_orderby=="date") echo "selected"; ?>>Date</option>
|
696 |
+
<option value="rand" <?php if($wcps_query_orderby=="rand") echo "selected"; ?>>Rand</option>
|
697 |
+
<option value="comment_count" <?php if($wcps_query_orderby=="comment_count") echo "selected"; ?>>Comment Count</option>
|
698 |
+
<option value="author" <?php if($wcps_query_orderby=="author") echo "selected"; ?>>Author</option>
|
699 |
+
<option value="title" <?php if($wcps_query_orderby=="title") echo "selected"; ?>>Title</option>
|
700 |
+
<option value="name" <?php if($wcps_query_orderby=="name") echo "selected"; ?>>Name</option>
|
701 |
+
<option value="type" <?php if($wcps_query_orderby=="type") echo "selected"; ?>>Type</option>
|
702 |
+
|
703 |
+
|
704 |
+
</select>
|
705 |
+
</div>
|
706 |
+
|
707 |
+
|
708 |
+
|
709 |
+
|
710 |
+
|
711 |
+
|
712 |
+
|
713 |
<div class="option-box">
|
714 |
<p class="option-title">Filter Slider Content.</p>
|
715 |
<p class="option-info"></p>
|
716 |
<ul class="content_source_area" >
|
717 |
+
<li><input class="wcps_content_source" name="wcps_content_source" id="wcps_content_source_recent" type="radio" value="recent" <?php if($wcps_content_source=="recent") echo "checked";?> /> <label for="wcps_content_source_recent">Display from Recent Published</label>
|
718 |
+
<div class="wcps_content_source_recent content-source-box">Slider items will query from recent published product.</div>
|
719 |
+
</li>
|
|
|
|
|
|
|
|
|
720 |
|
721 |
<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>
|
722 |
|
723 |
<div class="wcps_content_source_featured content-source-box">Slider items will query from featured marked product.</div>
|
724 |
</li>
|
|
|
|
|
725 |
|
726 |
+
|
727 |
+
|
728 |
+
|
729 |
<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>
|
730 |
|
731 |
<div class="wcps_content_source_year content-source-box">Slider items will query from a year.
|
732 |
<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" />
|
733 |
</div>
|
734 |
</li>
|
735 |
+
|
|
|
736 |
<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>
|
737 |
|
738 |
<div class="wcps_content_source_month content-source-box">Slider items will query from Month of a year. <br />
|
741 |
</div>
|
742 |
</li>
|
743 |
|
|
|
744 |
</ul>
|
745 |
+
</div>
|
746 |
+
|
747 |
+
|
748 |
+
|
749 |
+
|
750 |
+
|
|
|
751 |
|
752 |
|
753 |
+
<div class="option-box">
|
754 |
+
<p class="option-title"><?php _e('Product Items sort.','wcps'); ?></p>
|
755 |
+
<p class="option-info"></p>
|
756 |
+
<div class="button wcps_grid_items_reset" wcps_id="<?php echo $wcps_id; ?>">Reset</div>
|
757 |
+
<?php
|
758 |
+
$class_wcps_functions = new class_wcps_functions();
|
759 |
+
if(empty($wcps_grid_items)){
|
760 |
+
$wcps_grid_items = $class_wcps_functions->wcps_grid_items();
|
761 |
+
}
|
762 |
+
|
763 |
+
$wcps_grid_items = apply_filters('wcps_grid_items',$wcps_grid_items);
|
764 |
+
|
765 |
+
|
766 |
+
//var_dump($wcps_grid_items);
|
767 |
+
|
768 |
+
?>
|
769 |
+
|
770 |
+
<div class="expandable">
|
771 |
+
<?php
|
772 |
+
|
773 |
+
|
774 |
+
foreach($wcps_grid_items as $item_key=>$item_name){
|
775 |
+
echo '<div class="items">';
|
776 |
+
echo '<div class="header">'.$item_name;
|
777 |
+
echo '<input type="hidden" name="wcps_grid_items['.$item_key.']" value="'.$item_name.'" />';
|
778 |
+
|
779 |
+
if(!empty($wcps_grid_items_hide[$item_key])){
|
780 |
+
|
781 |
+
$checked = 'checked';
|
782 |
+
}
|
783 |
+
else{
|
784 |
+
$checked = '';
|
785 |
+
}
|
786 |
+
|
787 |
+
echo '<input '.$checked.' title="Hide on front-end" type="checkbox" class="wcps_grid_items_hide" name="wcps_grid_items_hide['.$item_key.']" value="1" />';
|
788 |
+
//echo '<span class="remove">X</span>';
|
789 |
+
echo '</div>'; // .header
|
790 |
+
|
791 |
+
|
792 |
+
echo '<div class="options">';
|
793 |
+
|
794 |
+
if($item_key == 'thumb'){
|
795 |
+
|
796 |
+
?>
|
797 |
+
<div class="option-box">
|
798 |
+
<p class="option-title">Slider Thumbnail Size</p>
|
799 |
+
<p class="option-info"></p>
|
800 |
+
<select name="wcps_items_thumb_size" >
|
801 |
+
<option value="thumbnail" <?php if($wcps_items_thumb_size=="thumbnail")echo "selected"; ?>>Thumbnail</option>
|
802 |
+
<option value="medium" <?php if($wcps_items_thumb_size=="medium")echo "selected"; ?>>medium</option>
|
803 |
+
<option value="large" <?php if($wcps_items_thumb_size=="large")echo "selected"; ?>>large</option>
|
804 |
+
<option value="full" <?php if($wcps_items_thumb_size=="full")echo "selected"; ?>>full</option>
|
805 |
+
</select>
|
806 |
+
</div>
|
807 |
+
|
808 |
+
|
809 |
+
<div class="option-box">
|
810 |
+
<p class="option-title">Items thumbnail link's to</p>
|
811 |
+
<p class="option-info"></p>
|
812 |
+
<select name="wcps_items_thumb_link_to" >
|
813 |
+
<option value="product" <?php if($wcps_items_thumb_link_to=="product")echo "selected"; ?>>Product</option>
|
814 |
+
|
815 |
+
</select>
|
816 |
+
</div>
|
817 |
+
|
818 |
+
|
819 |
+
|
820 |
+
|
821 |
+
<div class="option-box">
|
822 |
+
<p class="option-title">Slider thumb max hieght(px)</p>
|
823 |
+
<p class="option-info"></p>
|
824 |
+
<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 "1000px"; ?>" />
|
825 |
+
</div>
|
826 |
+
|
827 |
+
|
828 |
+
|
829 |
+
|
830 |
+
<?php
|
831 |
|
832 |
+
}
|
833 |
+
elseif($item_key == 'cart'){
|
834 |
+
|
835 |
+
?>
|
836 |
+
<div class="option-box">
|
837 |
+
<p class="option-title">Items Add to cart button Style</p>
|
838 |
+
<p class="option-info">You can hide items Add to cart button on slider.</p>
|
839 |
+
<select name="wcps_cart_style" >
|
840 |
+
<option value="default" <?php if($wcps_cart_style=="default")echo "selected"; ?>>default</option>
|
841 |
+
<option value="custom" <?php if($wcps_cart_style=="custom")echo "selected"; ?>>custom</option>
|
842 |
+
</select>
|
843 |
+
</div>
|
844 |
+
|
845 |
+
|
846 |
+
|
847 |
+
<div class="option-box">
|
848 |
+
<p class="option-title">Items Add to cart button Display</p>
|
849 |
+
<p class="option-info">You can hide items Add to cart button on slider.</p>
|
850 |
+
<select name="wcps_cart_display" >
|
851 |
+
<option value="yes" <?php if($wcps_cart_display=="yes")echo "selected"; ?>>Yes</option>
|
852 |
+
<option value="no" <?php if($wcps_cart_display=="no")echo "selected"; ?>>No</option>
|
853 |
+
</select>
|
854 |
+
</div>
|
855 |
+
<?php
|
856 |
+
|
857 |
+
|
858 |
+
}
|
859 |
+
elseif($item_key == 'sale'){
|
860 |
+
|
861 |
+
?>
|
862 |
+
<div class="option-box">
|
863 |
+
<p class="option-title">Items Sale marker display</p>
|
864 |
+
<p class="option-info">You can hide items featured marker on slider.</p>
|
865 |
+
<select name="wcps_sale_display" >
|
866 |
+
<option value="yes" <?php if($wcps_sale_display=="yes")echo "selected"; ?>>Yes</option>
|
867 |
+
<option value="no" <?php if($wcps_sale_display=="no")echo "selected"; ?>>No</option>
|
868 |
+
</select>
|
869 |
+
</div>
|
870 |
+
|
871 |
+
<div class="option-box">
|
872 |
+
<p class="option-title">Sale marker icon url</p>
|
873 |
+
<p class="option-info"></p>
|
874 |
+
<input type="text" name="wcps_sale_icon_url" placeholder="" id="wcps_sale_icon_url" value="<?php if(!empty($wcps_sale_icon_url)) echo $wcps_sale_icon_url; else echo ""; ?>" />
|
875 |
+
</div>
|
876 |
+
|
877 |
+
|
878 |
+
|
879 |
+
<?php
|
880 |
+
|
881 |
+
|
882 |
+
}
|
883 |
|
884 |
+
elseif($item_key == 'cart'){
|
885 |
+
|
886 |
+
?>
|
887 |
+
<div class="option-box">
|
888 |
+
<p class="option-title">Add to cart Background Color</p>
|
889 |
+
<p class="option-info"></p>
|
890 |
+
<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"; ?>" />
|
891 |
+
</div>
|
892 |
+
|
893 |
+
<div class="option-box">
|
894 |
+
<p class="option-title">Add to cart Text Color</p>
|
895 |
+
<p class="option-info"></p>
|
896 |
+
<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"; ?>" />
|
897 |
+
</div>
|
898 |
+
<?php
|
899 |
+
|
900 |
+
}
|
901 |
+
|
902 |
+
elseif($item_key == 'title'){
|
903 |
+
|
904 |
+
?>
|
905 |
+
<div class="option-box">
|
906 |
+
<p class="option-title">Items Title Display</p>
|
907 |
+
<p class="option-info">You can hide items title on slider.</p>
|
908 |
+
|
909 |
+
<select name="wcps_items_title_display" >
|
910 |
+
<option value="yes" <?php if($wcps_items_title_display=="yes")echo "selected"; ?>>Yes</option>
|
911 |
+
<option value="no" <?php if($wcps_items_title_display=="no")echo "selected"; ?>>No</option>
|
912 |
+
</select>
|
913 |
+
|
914 |
+
</div>
|
915 |
+
|
916 |
+
|
917 |
+
<div class="option-box">
|
918 |
+
<p class="option-title">Items Title Color</p>
|
919 |
+
<p class="option-info"></p>
|
920 |
+
<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"; ?>" />
|
921 |
+
</div>
|
922 |
+
<div class="option-box">
|
923 |
+
<p class="option-title">Items Title Font Size</p>
|
924 |
+
<p class="option-info"></p>
|
925 |
+
<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"; ?>" />
|
926 |
+
</div>
|
927 |
+
<?php
|
928 |
+
|
929 |
+
}
|
930 |
+
|
931 |
+
elseif($item_key == 'featured'){
|
932 |
+
?>
|
933 |
+
<div class="option-box">
|
934 |
+
<p class="option-title">Items featured marker display</p>
|
935 |
+
<p class="option-info">You can hide items featured marker on slider.</p>
|
936 |
+
<select name="wcps_featured_display" >
|
937 |
+
<option value="yes" <?php if($wcps_featured_display=="yes")echo "selected"; ?>>Yes</option>
|
938 |
+
<option value="no" <?php if($wcps_featured_display=="no")echo "selected"; ?>>No</option>
|
939 |
+
</select>
|
940 |
+
</div>
|
941 |
+
|
942 |
+
<div class="option-box">
|
943 |
+
<p class="option-title">Featured marker icon</p>
|
944 |
+
<p class="option-info"></p>
|
945 |
+
<input type="text" name="wcps_featured_icon_url" placeholder="" id="wcps_featured_icon_url" value="<?php if(!empty($wcps_featured_icon_url)) echo $wcps_featured_icon_url; else echo ""; ?>" />
|
946 |
+
</div>
|
947 |
+
|
948 |
+
|
949 |
+
<?php
|
950 |
+
}
|
951 |
+
elseif($item_key == 'price'){
|
952 |
+
?>
|
953 |
|
954 |
+
|
955 |
+
<div class="option-box">
|
956 |
+
<p class="option-title">Items Price Display</p>
|
957 |
+
<p class="option-info">You can hide items price on slider.</p>
|
958 |
+
|
959 |
+
<select name="wcps_items_price_display" >
|
960 |
+
<option value="yes" <?php if($wcps_items_price_display=="yes")echo "selected"; ?>>Yes</option>
|
961 |
+
<option value="no" <?php if($wcps_items_price_display=="no")echo "selected"; ?>>No</option>
|
962 |
+
</select>
|
963 |
+
|
964 |
+
</div>
|
965 |
+
|
966 |
+
<div class="option-box">
|
967 |
+
<p class="option-title">Price format on slider</p>
|
968 |
+
<p class="option-info"></p>
|
969 |
+
<select name="wcps_total_items_price_format">
|
970 |
+
<option value="full" <?php if(($wcps_total_items_price_format=="full")) echo "selected"; ?> >Full Format</option>
|
971 |
+
<option value="sale" <?php if(($wcps_total_items_price_format=="sale")) echo "selected"; ?> >Sale price</option>
|
972 |
+
<option value="regular" <?php if(($wcps_total_items_price_format=="regular")) echo "selected"; ?> >Regular price</option>
|
973 |
+
</select>
|
974 |
+
|
975 |
+
</div>
|
976 |
+
|
977 |
+
|
978 |
+
|
979 |
+
|
980 |
+
<div class="option-box">
|
981 |
+
<p class="option-title">Items Price Color</p>
|
982 |
+
<p class="option-info"></p>
|
983 |
+
<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"; ?>" />
|
984 |
+
</div>
|
985 |
+
|
986 |
+
<div class="option-box">
|
987 |
+
<p class="option-title">Items price Font Size</p>
|
988 |
+
<p class="option-info"></p>
|
989 |
+
<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"; ?>" />
|
990 |
+
</div>
|
991 |
+
<?php
|
992 |
+
|
993 |
+
|
994 |
+
}
|
995 |
+
|
996 |
+
elseif($item_key == 'rating'){
|
997 |
+
|
998 |
+
?>
|
999 |
+
<div class="option-box">
|
1000 |
+
<p class="option-title">Star Rating Display</p>
|
1001 |
+
<p class="option-info">You can hide star ratings on slider.</p>
|
1002 |
+
<select name="wcps_ratings_display" >
|
1003 |
+
<option value="yes" <?php if($wcps_ratings_display=="yes")echo "selected"; ?>>Yes</option>
|
1004 |
+
<option value="no" <?php if($wcps_ratings_display=="no")echo "selected"; ?>>No</option>
|
1005 |
+
</select>
|
1006 |
+
</div>
|
1007 |
+
<?php
|
1008 |
+
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
|
1012 |
+
elseif($item_key == 'excerpt'){
|
1013 |
+
|
1014 |
+
?>
|
1015 |
+
<div class="option-box">
|
1016 |
+
<p class="option-title">Excerpt word count</p>
|
1017 |
+
<p class="option-info"></p>
|
1018 |
+
<input type="text" name="wcps_items_excerpt_count" placeholder="30" id="wcps_items_excerpt_count" value="<?php if(!empty($wcps_items_excerpt_count)) echo $wcps_items_excerpt_count; else echo "30"; ?>" />
|
1019 |
+
</div>
|
1020 |
+
|
1021 |
+
<div class="option-box">
|
1022 |
+
<p class="option-title">Excerpt read more text</p>
|
1023 |
+
<p class="option-info"></p>
|
1024 |
+
<input type="text" name="wcps_items_excerpt_read_more" placeholder="View product." id="wcps_items_excerpt_read_more" value="<?php if(!empty($wcps_items_excerpt_read_more)) echo $wcps_items_excerpt_read_more; else echo "View product."; ?>" />
|
1025 |
+
</div>
|
1026 |
+
|
1027 |
+
|
1028 |
+
<?php
|
1029 |
+
|
1030 |
+
}
|
1031 |
+
|
1032 |
+
|
1033 |
+
|
1034 |
+
|
1035 |
+
|
1036 |
+
|
1037 |
+
elseif($item_key=='category'){
|
1038 |
+
?>
|
1039 |
+
<div class="option-box">
|
1040 |
+
<p class="option-title">Items category display</p>
|
1041 |
+
<p class="option-info">You can hide items category on slider.</p>
|
1042 |
+
<select name="wcps_cat_display" >
|
1043 |
+
<option value="yes" <?php if($wcps_cat_display=="yes")echo "selected"; ?>>Yes</option>
|
1044 |
+
<option value="no" <?php if($wcps_cat_display=="no")echo "selected"; ?>>No</option>
|
1045 |
+
</select>
|
1046 |
+
</div>
|
1047 |
+
|
1048 |
+
<?php
|
1049 |
+
|
1050 |
+
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
|
1054 |
+
|
1055 |
+
|
1056 |
+
|
1057 |
|
1058 |
+
|
1059 |
+
echo '</div>'; // .options
|
1060 |
+
|
1061 |
+
|
1062 |
+
|
1063 |
+
echo '</div>'; // .items
|
1064 |
+
|
1065 |
+
}
|
1066 |
+
?>
|
1067 |
|
1068 |
+
</div> <!-- .expandable -->
|
1069 |
+
|
1070 |
+
|
1071 |
+
|
1072 |
+
</div>
|
1073 |
+
|
1074 |
+
<script>
|
1075 |
+
jQuery(document).ready(function($)
|
1076 |
+
{
|
1077 |
+
$(function() {
|
1078 |
+
$( ".expandable" ).sortable();
|
1079 |
+
//$( ".items" ).disableSelection();
|
1080 |
+
});
|
1081 |
+
|
1082 |
+
})
|
1083 |
|
1084 |
+
</script>
|
1085 |
+
|
1086 |
+
|
1087 |
+
</li>
|
1088 |
+
|
1089 |
+
|
1090 |
+
<li style="display: none;" class="box4 tab-box">
|
1091 |
+
<div class="option-box">
|
1092 |
+
<p class="option-title"><?php _e('Custom CSS for this slider.','wcps'); ?></p>
|
1093 |
+
<p class="option-info">Do not use <style></style> tag, you can use bellow prefix to your css, sometime you need use "!important" to overrid.
|
1094 |
+
<br/>
|
1095 |
+
<b>#wcps-<?php
|
1096 |
+
|
1097 |
+
|
1098 |
+
echo $wcps_id ; ?></b>
|
1099 |
+
</p>
|
1100 |
+
<?php
|
1101 |
+
|
1102 |
+
$empty_css_sample = '.wcps-container #wcps-'.$wcps_id.'{}\n.wcps-container #wcps-'.$wcps_id.' .wcps-items{}\n.wcps-container #wcps-'.$wcps_id.' .wcps-items-thumb{}\n.wcps-container #wcps-'.$wcps_id.' .items-info{}';
|
1103 |
+
|
1104 |
+
|
1105 |
+
?>
|
1106 |
|
1107 |
+
<textarea style="width:80%; min-height:150px" name="wcps_items_custom_css"><?php if(!empty($wcps_items_custom_css)) echo htmlentities($wcps_items_custom_css); else echo str_replace('\n', PHP_EOL, $empty_css_sample); ?></textarea>
|
1108 |
+
|
1109 |
+
</div>
|
1110 |
+
|
1111 |
+
|
1112 |
+
</li>
|
1113 |
+
|
1114 |
+
|
1115 |
+
|
1116 |
+
</ul>
|
1117 |
+
|
1118 |
+
</div>
|
1119 |
+
|
1120 |
+
|
1121 |
+
|
1122 |
+
|
1123 |
+
|
1124 |
|
1125 |
|
1126 |
+
|
1127 |
+
|
1128 |
+
|
1129 |
+
|
1130 |
+
|
1131 |
<?php
|
1132 |
|
1133 |
|
1168 |
$wcps_bg_img = sanitize_text_field( $_POST['wcps_bg_img'] );
|
1169 |
$wcps_themes = sanitize_text_field( $_POST['wcps_themes'] );
|
1170 |
$wcps_total_items = sanitize_text_field( $_POST['wcps_total_items'] );
|
1171 |
+
|
1172 |
+
$wcps_total_items_price_format = sanitize_text_field( $_POST['wcps_total_items_price_format'] );
|
1173 |
+
|
1174 |
$wcps_column_number = sanitize_text_field( $_POST['wcps_column_number'] );
|
1175 |
+
$wcps_column_number_mobile = sanitize_text_field( $_POST['wcps_column_number_mobile'] );
|
1176 |
+
$wcps_column_number_tablet = sanitize_text_field( $_POST['wcps_column_number_tablet'] );
|
1177 |
|
1178 |
if(empty($_POST['wcps_auto_play']))
|
1179 |
{
|
1204 |
$wcps_slider_navigation = sanitize_text_field( $_POST['wcps_slider_navigation'] );
|
1205 |
}
|
1206 |
|
1207 |
+
$wcps_slider_navigation_position = sanitize_text_field( $_POST['wcps_slider_navigation_position'] );
|
1208 |
|
1209 |
|
1210 |
$wcps_slide_speed = sanitize_text_field( $_POST['wcps_slide_speed'] );
|
1235 |
|
1236 |
|
1237 |
|
1238 |
+
$wcps_slider_pagination_bg = sanitize_text_field( $_POST['wcps_slider_pagination_bg'] );
|
1239 |
+
$wcps_slider_pagination_text_color = sanitize_text_field( $_POST['wcps_slider_pagination_text_color'] );
|
1240 |
|
1241 |
|
1242 |
if(empty($_POST['wcps_slider_touch_drag']))
|
1287 |
$wcps_taxonomy_category = stripslashes_deep( $_POST['wcps_taxonomy_category'] );
|
1288 |
}
|
1289 |
|
1290 |
+
|
|
|
|
|
|
|
1291 |
if(empty($_POST['wcps_product_ids']))
|
1292 |
{
|
1293 |
$wcps_product_ids = '';
|
1298 |
}
|
1299 |
|
1300 |
|
|
|
1301 |
|
1302 |
|
1303 |
+
|
1304 |
+
$wcps_cat_display = sanitize_text_field( $_POST['wcps_cat_display'] );
|
1305 |
+
$wcps_featured_display = sanitize_text_field( $_POST['wcps_featured_display'] );
|
1306 |
+
$wcps_featured_icon_url = sanitize_text_field( $_POST['wcps_featured_icon_url'] );
|
1307 |
+
|
1308 |
+
$wcps_sale_display = sanitize_text_field( $_POST['wcps_sale_display'] );
|
1309 |
+
$wcps_sale_icon_url = sanitize_text_field( $_POST['wcps_sale_icon_url'] );
|
1310 |
+
|
1311 |
+
$wcps_cart_style = sanitize_text_field( $_POST['wcps_cart_style'] );
|
1312 |
+
$wcps_cart_display = sanitize_text_field( $_POST['wcps_cart_display'] );
|
1313 |
+
$wcps_ratings_display = sanitize_text_field( $_POST['wcps_ratings_display'] );
|
1314 |
$wcps_cart_bg = sanitize_text_field( $_POST['wcps_cart_bg'] );
|
1315 |
+
$wcps_cart_text_color = sanitize_text_field( $_POST['wcps_cart_text_color'] );
|
1316 |
+
|
1317 |
+
$wcps_grid_items = stripslashes_deep( $_POST['wcps_grid_items'] );
|
1318 |
+
$wcps_grid_items_hide = stripslashes_deep( $_POST['wcps_grid_items_hide'] );
|
1319 |
+
|
1320 |
+
$wcps_items_title_display = sanitize_text_field( $_POST['wcps_items_title_display'] );
|
1321 |
+
$wcps_items_title_color = sanitize_text_field( $_POST['wcps_items_title_color'] );
|
1322 |
+
$wcps_items_title_font_size = sanitize_text_field( $_POST['wcps_items_title_font_size'] );
|
1323 |
+
|
1324 |
+
$wcps_items_excerpt_count = sanitize_text_field( $_POST['wcps_items_excerpt_count'] );
|
1325 |
+
$wcps_items_excerpt_read_more = sanitize_text_field( $_POST['wcps_items_excerpt_read_more'] );
|
1326 |
+
|
1327 |
+
$wcps_items_price_display = sanitize_text_field( $_POST['wcps_items_price_display'] );
|
1328 |
+
$wcps_items_price_color = sanitize_text_field( $_POST['wcps_items_price_color'] );
|
1329 |
+
$wcps_items_price_font_size = sanitize_text_field( $_POST['wcps_items_price_font_size'] );
|
1330 |
+
|
1331 |
+
$wcps_items_thumb_link_to = sanitize_text_field( $_POST['wcps_items_thumb_link_to'] );
|
1332 |
$wcps_items_thumb_size = sanitize_text_field( $_POST['wcps_items_thumb_size'] );
|
1333 |
$wcps_items_thumb_max_hieght = sanitize_text_field( $_POST['wcps_items_thumb_max_hieght'] );
|
1334 |
+
|
1335 |
+
$wcps_items_empty_thumb = sanitize_text_field( $_POST['wcps_items_empty_thumb'] );
|
1336 |
+
$wcps_query_order = sanitize_text_field( $_POST['wcps_query_order'] );
|
1337 |
+
$wcps_query_orderby = sanitize_text_field( $_POST['wcps_query_orderby'] );
|
1338 |
+
|
1339 |
+
$wcps_ribbon_name = sanitize_text_field( $_POST['wcps_ribbon_name'] );
|
1340 |
+
$wcps_ribbon_custom = sanitize_text_field( $_POST['wcps_ribbon_custom'] );
|
1341 |
+
|
1342 |
+
$wcps_items_custom_css = sanitize_text_field( $_POST['wcps_items_custom_css'] );
|
1343 |
|
1344 |
|
1345 |
// Update the meta field in the database.
|
1346 |
update_post_meta( $post_id, 'wcps_bg_img', $wcps_bg_img );
|
1347 |
update_post_meta( $post_id, 'wcps_themes', $wcps_themes );
|
1348 |
update_post_meta( $post_id, 'wcps_total_items', $wcps_total_items );
|
|
|
|
|
1349 |
|
1350 |
+
update_post_meta( $post_id, 'wcps_total_items_price_format', $wcps_total_items_price_format );
|
1351 |
+
|
1352 |
+
update_post_meta( $post_id, 'wcps_column_number', $wcps_column_number );
|
1353 |
+
update_post_meta( $post_id, 'wcps_column_number_mobile', $wcps_column_number_mobile );
|
1354 |
+
update_post_meta( $post_id, 'wcps_column_number_tablet', $wcps_column_number_tablet );
|
1355 |
|
1356 |
update_post_meta( $post_id, 'wcps_auto_play', $wcps_auto_play );
|
1357 |
update_post_meta( $post_id, 'wcps_stop_on_hover', $wcps_stop_on_hover );
|
1358 |
update_post_meta( $post_id, 'wcps_slider_navigation', $wcps_slider_navigation );
|
1359 |
+
update_post_meta( $post_id, 'wcps_slider_navigation_position', $wcps_slider_navigation_position );
|
1360 |
update_post_meta( $post_id, 'wcps_slide_speed', $wcps_slide_speed );
|
1361 |
|
1362 |
update_post_meta( $post_id, 'wcps_slider_pagination', $wcps_slider_pagination );
|
1363 |
update_post_meta( $post_id, 'wcps_pagination_slide_speed', $wcps_pagination_slide_speed );
|
1364 |
update_post_meta( $post_id, 'wcps_slider_pagination_count', $wcps_slider_pagination_count );
|
1365 |
+
|
1366 |
+
update_post_meta( $post_id, 'wcps_slider_pagination_bg', $wcps_slider_pagination_bg );
|
1367 |
+
update_post_meta( $post_id, 'wcps_slider_pagination_text_color', $wcps_slider_pagination_text_color );
|
1368 |
+
|
1369 |
update_post_meta( $post_id, 'wcps_slider_touch_drag', $wcps_slider_touch_drag );
|
1370 |
update_post_meta( $post_id, 'wcps_slider_mouse_drag', $wcps_slider_mouse_drag );
|
1371 |
|
1376 |
|
1377 |
update_post_meta( $post_id, 'wcps_taxonomy', $wcps_taxonomy );
|
1378 |
update_post_meta( $post_id, 'wcps_taxonomy_category', $wcps_taxonomy_category );
|
1379 |
+
|
1380 |
update_post_meta( $post_id, 'wcps_product_ids', $wcps_product_ids );
|
1381 |
+
|
1382 |
+
update_post_meta( $post_id, 'wcps_cat_display', $wcps_cat_display );
|
1383 |
+
update_post_meta( $post_id, 'wcps_featured_display', $wcps_featured_display );
|
1384 |
+
update_post_meta( $post_id, 'wcps_featured_icon_url', $wcps_featured_icon_url );
|
1385 |
+
|
1386 |
+
update_post_meta( $post_id, 'wcps_sale_display', $wcps_sale_display );
|
1387 |
+
update_post_meta( $post_id, 'wcps_sale_icon_url', $wcps_sale_icon_url );
|
1388 |
+
|
1389 |
+
update_post_meta( $post_id, 'wcps_cart_style', $wcps_cart_style );
|
1390 |
+
update_post_meta( $post_id, 'wcps_cart_display', $wcps_cart_display );
|
1391 |
+
update_post_meta( $post_id, 'wcps_ratings_display', $wcps_ratings_display );
|
1392 |
update_post_meta( $post_id, 'wcps_cart_bg', $wcps_cart_bg );
|
1393 |
+
update_post_meta( $post_id, 'wcps_cart_text_color', $wcps_cart_text_color );
|
1394 |
+
|
1395 |
+
update_post_meta( $post_id, 'wcps_grid_items', $wcps_grid_items );
|
1396 |
+
update_post_meta( $post_id, 'wcps_grid_items_hide', $wcps_grid_items_hide );
|
1397 |
+
|
1398 |
+
update_post_meta( $post_id, 'wcps_items_title_display', $wcps_items_title_display );
|
1399 |
+
update_post_meta( $post_id, 'wcps_items_title_color', $wcps_items_title_color );
|
1400 |
+
update_post_meta( $post_id, 'wcps_items_title_font_size', $wcps_items_title_font_size );
|
1401 |
+
|
1402 |
+
update_post_meta( $post_id, 'wcps_items_excerpt_count', $wcps_items_excerpt_count );
|
1403 |
+
update_post_meta( $post_id, 'wcps_items_excerpt_read_more', $wcps_items_excerpt_read_more );
|
1404 |
+
|
1405 |
+
update_post_meta( $post_id, 'wcps_items_price_display', $wcps_items_price_display );
|
1406 |
+
update_post_meta( $post_id, 'wcps_items_price_color', $wcps_items_price_color );
|
1407 |
+
update_post_meta( $post_id, 'wcps_items_price_font_size', $wcps_items_price_font_size );
|
1408 |
+
|
1409 |
+
update_post_meta( $post_id, 'wcps_items_thumb_link_to', $wcps_items_thumb_link_to );
|
1410 |
update_post_meta( $post_id, 'wcps_items_thumb_size', $wcps_items_thumb_size );
|
1411 |
update_post_meta( $post_id, 'wcps_items_thumb_max_hieght', $wcps_items_thumb_max_hieght );
|
1412 |
|
1413 |
+
update_post_meta( $post_id, 'wcps_items_empty_thumb', $wcps_items_empty_thumb );
|
1414 |
+
update_post_meta( $post_id, 'wcps_query_order', $wcps_query_order );
|
1415 |
+
update_post_meta( $post_id, 'wcps_query_orderby', $wcps_query_orderby );
|
1416 |
|
1417 |
update_post_meta( $post_id, 'wcps_ribbon_name', $wcps_ribbon_name );
|
1418 |
+
update_post_meta( $post_id, 'wcps_ribbon_custom', $wcps_ribbon_custom );
|
1419 |
+
|
1420 |
+
update_post_meta( $post_id, 'wcps_items_custom_css', $wcps_items_custom_css );
|
1421 |
+
|
1422 |
|
1423 |
}
|
1424 |
add_action( 'save_post', 'meta_boxes_wcps_save' );
|
1425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/scripts.js
CHANGED
@@ -3,69 +3,8 @@ 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");
|
14 |
-
|
15 |
-
var nav = $(this).attr("nav");
|
16 |
-
|
17 |
-
$(".box li.tab-box").css("display","none");
|
18 |
-
$(".box"+nav).css("display","block");
|
19 |
-
|
20 |
-
})
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
$(document).on('click', '.wcps_content_source', function()
|
26 |
-
{
|
27 |
-
var source = $(this).val();
|
28 |
-
var source_id = $(this).attr("id");
|
29 |
-
|
30 |
-
$(".content-source-box.active").removeClass("active");
|
31 |
-
$(".content-source-box."+source_id).addClass("active");
|
32 |
-
|
33 |
-
})
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
jQuery(".wcps_taxonomy").click(function()
|
43 |
-
{
|
44 |
-
|
45 |
|
46 |
|
47 |
-
var taxonomy = jQuery(this).val();
|
48 |
-
|
49 |
-
jQuery(".wcps_loading_taxonomy_category").css('display','block');
|
50 |
-
|
51 |
-
jQuery.ajax(
|
52 |
-
{
|
53 |
-
type: 'POST',
|
54 |
-
url: wcps_ajax.wcps_ajaxurl,
|
55 |
-
data: {"action": "wcps_get_taxonomy_category","taxonomy":taxonomy},
|
56 |
-
success: function(data)
|
57 |
-
{
|
58 |
-
jQuery(".wcps_taxonomy_category").html(data);
|
59 |
-
jQuery(".wcps_loading_taxonomy_category").fadeOut('slow');
|
60 |
-
}
|
61 |
-
});
|
62 |
-
|
63 |
-
|
64 |
-
})
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
});
|
70 |
|
71 |
|
3 |
{
|
4 |
|
5 |
$(".wcps-items .add_to_cart_button").wrap("<div class='cart-area' ></div>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
});
|
9 |
|
10 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Donate link: http://paratheme.com
|
4 |
Tags: product slider,carousel, product, slider, woocommerce, carousel slider, woocommerce slider, Woocommerce Product slider, featured product slider, sale product slider
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,18 @@ then paste this shortcode anywhere in your page to display slider<br />
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.5 =
|
96 |
* 09/05/2015 add - added ribbons.
|
97 |
|
3 |
Donate link: http://paratheme.com
|
4 |
Tags: product slider,carousel, product, slider, woocommerce, carousel slider, woocommerce slider, Woocommerce Product slider, featured product slider, sale product slider
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.8 =
|
96 |
+
* 17/10/2015 fix - ssl issue fixed.
|
97 |
+
|
98 |
+
= 1.7 =
|
99 |
+
* 30/09/2015 add - admin notice license issue fixed.
|
100 |
+
|
101 |
+
= 1.6 =
|
102 |
+
* 30/09/2015 add - Slider Column Number for mobile and tablet & small desktop.
|
103 |
+
* 30/09/2015 add - Slider Navigation Position.
|
104 |
+
* 30/09/2015 add - custom Slider Ribbon.
|
105 |
+
* 30/09/2015 add - Product items sorting.
|
106 |
+
|
107 |
= 1.5 =
|
108 |
* 09/05/2015 add - added ribbons.
|
109 |
|
templates/custom-css.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
if(!empty($wcps_items_custom_css)){
|
11 |
+
|
12 |
+
$html.= '<style type="text/css">'.$wcps_items_custom_css.'</style>';
|
13 |
+
}
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
$html.= '<style type="text/css">';
|
24 |
+
|
25 |
+
|
26 |
+
if($wcps_slider_navigation_position == 'middle-fixed'){
|
27 |
+
$html.= '.wcps-container {padding: 0 50px;}';
|
28 |
+
}
|
29 |
+
|
30 |
+
if(!empty($wcps_items_thumb_max_hieght)){
|
31 |
+
|
32 |
+
$html.= '.wcps-container #wcps-'.$post_id.' .wcps-items-thumb {max-height:'.$wcps_items_thumb_max_hieght.';}';
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
$html.= '</style>';
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
$html.= '<style type="text/css">
|
45 |
+
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart.custom a.add_to_cart_button,
|
46 |
+
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart.custom a.added_to_cart
|
47 |
+
{
|
48 |
+
background: '.$wcps_cart_bg .';
|
49 |
+
color:'.$wcps_cart_text_color.';
|
50 |
+
}
|
51 |
+
|
52 |
+
.wcps-container #wcps-'.$post_id.' div.owl-pagination span.owl-numbers
|
53 |
+
{
|
54 |
+
background: '.$wcps_slider_pagination_bg .';
|
55 |
+
color:'.$wcps_slider_pagination_text_color.';
|
56 |
+
}
|
57 |
+
|
58 |
+
.wcps-container #wcps-'.$post_id.' .owl-controls .owl-page span
|
59 |
+
{
|
60 |
+
background: '.$wcps_slider_pagination_bg .';
|
61 |
+
}
|
62 |
+
</style>';
|
templates/query.php
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
global $wp_query;
|
11 |
+
|
12 |
+
if(($wcps_content_source=="recent"))
|
13 |
+
{
|
14 |
+
|
15 |
+
$wp_query = new WP_Query(
|
16 |
+
array (
|
17 |
+
'post_type' => 'product',
|
18 |
+
'post_status' => 'publish',
|
19 |
+
'orderby' => $wcps_query_orderby,
|
20 |
+
'order' => $wcps_query_order,
|
21 |
+
'posts_per_page' => $wcps_total_items,
|
22 |
+
|
23 |
+
) );
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
|
28 |
+
else if(($wcps_content_source=="featured"))
|
29 |
+
{
|
30 |
+
|
31 |
+
$wp_query = new WP_Query(
|
32 |
+
array (
|
33 |
+
'post_type' => 'product',
|
34 |
+
'post_status' => 'publish',
|
35 |
+
'orderby' => $wcps_query_orderby,
|
36 |
+
'order' => $wcps_query_order,
|
37 |
+
'meta_query' => array(
|
38 |
+
array(
|
39 |
+
'key' => '_featured',
|
40 |
+
'value' => 'yes',
|
41 |
+
)),
|
42 |
+
'posts_per_page' => $wcps_total_items,
|
43 |
+
|
44 |
+
) );
|
45 |
+
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
else if(($wcps_content_source=="on_sale"))
|
50 |
+
{
|
51 |
+
|
52 |
+
$wp_query = new WP_Query(
|
53 |
+
array (
|
54 |
+
'post_type' => 'product',
|
55 |
+
'post_status' => 'publish',
|
56 |
+
'orderby' => $wcps_query_orderby,
|
57 |
+
'order' => $wcps_query_order,
|
58 |
+
'posts_per_page' => $wcps_total_items,
|
59 |
+
'meta_query' => array(
|
60 |
+
array(
|
61 |
+
'key' => '_visibility',
|
62 |
+
'value' => array('catalog', 'visible'),
|
63 |
+
'compare' => 'IN'
|
64 |
+
),
|
65 |
+
array(
|
66 |
+
'key' => '_sale_price',
|
67 |
+
'value' => 0,
|
68 |
+
'compare' => '>',
|
69 |
+
'type' => 'NUMERIC'
|
70 |
+
)
|
71 |
+
) ));
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
else if(($wcps_content_source=="best_selling"))
|
77 |
+
{
|
78 |
+
|
79 |
+
$wp_query = new WP_Query(
|
80 |
+
array (
|
81 |
+
'post_type' => 'product',
|
82 |
+
'post_status' => 'publish',
|
83 |
+
'orderby' => 'meta_value',
|
84 |
+
'order' => $wcps_query_order,
|
85 |
+
'posts_per_page' => $wcps_total_items,
|
86 |
+
'meta_key' => 'total_sales',
|
87 |
+
'meta_query' => array(
|
88 |
+
array(
|
89 |
+
'key' => '_visibility',
|
90 |
+
'value' => array('catalog', 'visible'),
|
91 |
+
'compare' => 'IN'
|
92 |
+
),
|
93 |
+
array(
|
94 |
+
'key' => 'total_sales',
|
95 |
+
'value' => 0,
|
96 |
+
'compare' => '>',
|
97 |
+
'type' => 'NUMERIC'
|
98 |
+
),
|
99 |
+
)
|
100 |
+
) );
|
101 |
+
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
else if(($wcps_content_source=="top_rated"))
|
106 |
+
{
|
107 |
+
|
108 |
+
add_filter( 'posts_clauses', 'woocommerce_order_by_rating_post_clauses' );
|
109 |
+
$wp_query = new WP_Query(
|
110 |
+
array (
|
111 |
+
'post_type' => 'product',
|
112 |
+
'post_status' => 'publish',
|
113 |
+
'posts_per_page' => $wcps_total_items,
|
114 |
+
'orderby' => $wcps_query_orderby,
|
115 |
+
'order' => $wcps_query_order,
|
116 |
+
'meta_query' => array(
|
117 |
+
array(
|
118 |
+
'key' => '_visibility',
|
119 |
+
'value' => array('catalog', 'visible'),
|
120 |
+
'compare' => 'IN'
|
121 |
+
),
|
122 |
+
|
123 |
+
)
|
124 |
+
) );
|
125 |
+
remove_filter( 'posts_clauses', 'woocommerce_order_by_rating_post_clauses');
|
126 |
+
|
127 |
+
}
|
128 |
+
|
129 |
+
|
130 |
+
else if(($wcps_content_source=="year"))
|
131 |
+
{
|
132 |
+
|
133 |
+
$wp_query = new WP_Query(
|
134 |
+
array (
|
135 |
+
'post_type' => 'product',
|
136 |
+
'post_status' => 'publish',
|
137 |
+
'year' => $wcps_content_year,
|
138 |
+
'orderby' => $wcps_query_orderby,
|
139 |
+
'order' => $wcps_query_order,
|
140 |
+
'posts_per_page' => $wcps_total_items,
|
141 |
+
) );
|
142 |
+
|
143 |
+
}
|
144 |
+
|
145 |
+
else if(($wcps_content_source=="month"))
|
146 |
+
{
|
147 |
+
|
148 |
+
$wp_query = new WP_Query(
|
149 |
+
array (
|
150 |
+
'post_type' => 'product',
|
151 |
+
'post_status' => 'publish',
|
152 |
+
'year' => $wcps_content_month_year,
|
153 |
+
'monthnum' => $wcps_content_month,
|
154 |
+
'orderby' => $wcps_query_orderby,
|
155 |
+
'order' => $wcps_query_order,
|
156 |
+
'posts_per_page' => $wcps_total_items,
|
157 |
+
|
158 |
+
) );
|
159 |
+
|
160 |
+
}
|
161 |
+
|
162 |
+
else if($wcps_content_source=="taxonomy")
|
163 |
+
{
|
164 |
+
$wp_query = new WP_Query(
|
165 |
+
array (
|
166 |
+
'post_type' => 'product',
|
167 |
+
'post_status' => 'publish',
|
168 |
+
'orderby' => $wcps_query_orderby,
|
169 |
+
'order' => $wcps_query_order,
|
170 |
+
'posts_per_page' => $wcps_total_items,
|
171 |
+
'tax_query' => array(
|
172 |
+
array(
|
173 |
+
'taxonomy' => $wcps_taxonomy,
|
174 |
+
'field' => 'id',
|
175 |
+
'terms' => $wcps_taxonomy_category,
|
176 |
+
)
|
177 |
+
)
|
178 |
+
|
179 |
+
) );
|
180 |
+
}
|
181 |
+
|
182 |
+
|
183 |
+
|
184 |
+
|
185 |
+
else if(($wcps_content_source=="product_id"))
|
186 |
+
{
|
187 |
+
|
188 |
+
$wp_query = new WP_Query(
|
189 |
+
array (
|
190 |
+
'post_type' => 'product',
|
191 |
+
'post_status' => 'publish',
|
192 |
+
'post__in' => $wcps_product_ids,
|
193 |
+
'orderby' => $wcps_query_orderby,
|
194 |
+
'order' => $wcps_query_order,
|
195 |
+
'posts_per_page' => $wcps_total_items,
|
196 |
+
|
197 |
+
|
198 |
+
) );
|
199 |
+
|
200 |
+
|
201 |
+
}
|
202 |
+
|
203 |
+
|
204 |
+
else if(($wcps_query_orderby=="title"))
|
205 |
+
{
|
206 |
+
|
207 |
+
$wp_query = new WP_Query(
|
208 |
+
array (
|
209 |
+
'post_type' => 'product',
|
210 |
+
'post_status' => 'publish',
|
211 |
+
'post__in' => $wcps_product_ids,
|
212 |
+
'orderby' => $wcps_query_orderby,
|
213 |
+
'order' => $wcps_query_order,
|
214 |
+
'posts_per_page' => $wcps_total_items,
|
215 |
+
|
216 |
+
|
217 |
+
) );
|
218 |
+
|
219 |
+
|
220 |
+
}
|
221 |
+
|
222 |
+
else
|
223 |
+
{
|
224 |
+
|
225 |
+
$wp_query = new WP_Query(
|
226 |
+
array (
|
227 |
+
'post_type' => 'product',
|
228 |
+
'post_status' => 'publish',
|
229 |
+
'orderby' => $wcps_query_orderby,
|
230 |
+
'order' => $wcps_query_order,
|
231 |
+
'posts_per_page' => $wcps_total_items,
|
232 |
+
|
233 |
+
|
234 |
+
) );
|
235 |
+
|
236 |
+
|
237 |
+
}
|
templates/scripts.php
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
$html.= '<script>
|
12 |
+
jQuery(document).ready(function($)
|
13 |
+
{
|
14 |
+
$("#wcps-'.$post_id.'").owlCarousel({
|
15 |
+
|
16 |
+
items : '.$wcps_column_number.', //10 items above 1000px browser width
|
17 |
+
itemsDesktop : [1000,'.$wcps_column_number.'], //5 items between 1000px and 901px
|
18 |
+
itemsDesktopSmall : [900,'.$wcps_column_number_tablet.'], // betweem 900px and 601px
|
19 |
+
itemsTablet: [600,'.$wcps_column_number_tablet.'], //2 items between 600 and 0
|
20 |
+
itemsMobile : [479,'.$wcps_column_number_mobile.'],
|
21 |
+
navigationText : ["",""],
|
22 |
+
';
|
23 |
+
|
24 |
+
|
25 |
+
if($wcps_auto_play=="true")
|
26 |
+
{
|
27 |
+
|
28 |
+
$html.= 'autoPlay: '.$wcps_auto_play.',';
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
if($wcps_stop_on_hover=="true")
|
33 |
+
{
|
34 |
+
|
35 |
+
$html.= 'stopOnHover: '.$wcps_stop_on_hover.',';
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
if($wcps_slider_navigation=="true")
|
40 |
+
{
|
41 |
+
|
42 |
+
$html.= 'navigation: '.$wcps_slider_navigation.',';
|
43 |
+
|
44 |
+
}
|
45 |
+
|
46 |
+
if(!empty($wcps_slider_pagination))
|
47 |
+
{
|
48 |
+
|
49 |
+
$html.= 'pagination: '.$wcps_slider_pagination.',';
|
50 |
+
|
51 |
+
}
|
52 |
+
else
|
53 |
+
{
|
54 |
+
$html.= 'pagination: false,';
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
if(!empty($wcps_slider_pagination_count))
|
59 |
+
{
|
60 |
+
|
61 |
+
$html.= 'paginationNumbers: true,';
|
62 |
+
|
63 |
+
}
|
64 |
+
else
|
65 |
+
{
|
66 |
+
$html.= 'paginationNumbers: false,';
|
67 |
+
}
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
if(!empty($wcps_slide_speed))
|
72 |
+
{
|
73 |
+
|
74 |
+
$html.= 'slideSpeed: '.$wcps_slide_speed.',';
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
if(!empty($wcps_pagination_slide_speed))
|
80 |
+
{
|
81 |
+
|
82 |
+
$html.= 'paginationSpeed: '.$wcps_pagination_slide_speed.',';
|
83 |
+
|
84 |
+
}
|
85 |
+
|
86 |
+
|
87 |
+
if(!empty($wcps_slider_touch_drag))
|
88 |
+
{
|
89 |
+
|
90 |
+
$html.= 'touchDrag : true,';
|
91 |
+
|
92 |
+
}
|
93 |
+
else
|
94 |
+
{
|
95 |
+
$html.= 'touchDrag: false,';
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
if(!empty($wcps_slider_mouse_drag ))
|
101 |
+
{
|
102 |
+
|
103 |
+
$html.= 'mouseDrag : true,';
|
104 |
+
|
105 |
+
}
|
106 |
+
else
|
107 |
+
{
|
108 |
+
$html.= 'mouseDrag : false,';
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
$html.= '});
|
119 |
+
|
120 |
+
});';
|
121 |
+
|
122 |
+
|
123 |
+
if($wcps_slider_navigation_position == 'topright')
|
124 |
+
{
|
125 |
+
$html.= 'jQuery(document).ready(function($)
|
126 |
+
{
|
127 |
+
$(".owl-buttons").addClass("topright");
|
128 |
+
|
129 |
+
|
130 |
+
})';
|
131 |
+
}
|
132 |
+
elseif($wcps_slider_navigation_position == 'middle')
|
133 |
+
{
|
134 |
+
$html.= 'jQuery(document).ready(function($)
|
135 |
+
{
|
136 |
+
$(".owl-buttons").addClass("middle");
|
137 |
+
|
138 |
+
|
139 |
+
})';
|
140 |
+
}
|
141 |
+
elseif($wcps_slider_navigation_position == 'middle-fixed')
|
142 |
+
{
|
143 |
+
$html.= 'jQuery(document).ready(function($)
|
144 |
+
{
|
145 |
+
$(".owl-buttons").addClass("middle-fixed");
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
})';
|
150 |
+
}
|
151 |
+
|
152 |
+
$html.= '</script>';
|
templates/variables.php
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$wcps_ribbons = get_option( 'wcps_ribbons' );
|
11 |
+
|
12 |
+
$wcps_bg_img = get_post_meta( $post_id, 'wcps_bg_img', true );
|
13 |
+
$wcps_themes = get_post_meta( $post_id, 'wcps_themes', true );
|
14 |
+
$wcps_total_items = get_post_meta( $post_id, 'wcps_total_items', true );
|
15 |
+
|
16 |
+
$wcps_total_items_price_format = get_post_meta( $post_id, 'wcps_total_items_price_format', true );
|
17 |
+
|
18 |
+
$wcps_column_number = get_post_meta( $post_id, 'wcps_column_number', true );
|
19 |
+
$wcps_column_number_mobile = get_post_meta( $post_id, 'wcps_column_number_mobile', true );
|
20 |
+
$wcps_column_number_tablet = get_post_meta( $post_id, 'wcps_column_number_tablet', true );
|
21 |
+
|
22 |
+
$wcps_auto_play = get_post_meta( $post_id, 'wcps_auto_play', true );
|
23 |
+
$wcps_stop_on_hover = get_post_meta( $post_id, 'wcps_stop_on_hover', true );
|
24 |
+
$wcps_slider_navigation = get_post_meta( $post_id, 'wcps_slider_navigation', true );
|
25 |
+
$wcps_slider_navigation_position = get_post_meta( $post_id, 'wcps_slider_navigation_position', true );
|
26 |
+
$wcps_slide_speed = get_post_meta( $post_id, 'wcps_slide_speed', true );
|
27 |
+
|
28 |
+
$wcps_slider_pagination = get_post_meta( $post_id, 'wcps_slider_pagination', true );
|
29 |
+
$wcps_pagination_slide_speed = get_post_meta( $post_id, 'wcps_pagination_slide_speed', true );
|
30 |
+
$wcps_slider_pagination_count = get_post_meta( $post_id, 'wcps_slider_pagination_count', true );
|
31 |
+
|
32 |
+
$wcps_slider_pagination_bg = get_post_meta( $post_id, 'wcps_slider_pagination_bg', true );
|
33 |
+
$wcps_slider_pagination_text_color = get_post_meta( $post_id, 'wcps_slider_pagination_text_color', true );
|
34 |
+
|
35 |
+
$wcps_slider_touch_drag = get_post_meta( $post_id, 'wcps_slider_touch_drag', true );
|
36 |
+
$wcps_slider_mouse_drag = get_post_meta( $post_id, 'wcps_slider_mouse_drag', true );
|
37 |
+
|
38 |
+
$wcps_query_order = get_post_meta( $post_id, 'wcps_query_order', true );
|
39 |
+
$wcps_query_orderby = get_post_meta( $post_id, 'wcps_query_orderby', true );
|
40 |
+
|
41 |
+
|
42 |
+
$wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
|
43 |
+
$wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
|
44 |
+
$wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
|
45 |
+
$wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
|
46 |
+
|
47 |
+
$wcps_taxonomy = get_post_meta( $post_id, 'wcps_taxonomy', true );
|
48 |
+
$wcps_taxonomy_category = get_post_meta( $post_id, 'wcps_taxonomy_category', true );
|
49 |
+
|
50 |
+
$wcps_product_ids = get_post_meta( $post_id, 'wcps_product_ids', true );
|
51 |
+
|
52 |
+
$wcps_cat_display = get_post_meta( $post_id, 'wcps_cat_display', true );
|
53 |
+
$wcps_featured_display = get_post_meta( $post_id, 'wcps_featured_display', true );
|
54 |
+
$wcps_featured_icon_url = get_post_meta( $post_id, 'wcps_featured_icon_url', true );
|
55 |
+
|
56 |
+
$wcps_sale_display = get_post_meta( $post_id, 'wcps_sale_display', true );
|
57 |
+
$wcps_sale_icon_url = get_post_meta( $post_id, 'wcps_sale_icon_url', true );
|
58 |
+
|
59 |
+
$wcps_cart_style = get_post_meta( $post_id, 'wcps_cart_style', true );
|
60 |
+
$wcps_cart_display = get_post_meta( $post_id, 'wcps_cart_display', true );
|
61 |
+
$wcps_ratings_display = get_post_meta( $post_id, 'wcps_ratings_display', true );
|
62 |
+
$wcps_cart_bg = get_post_meta( $post_id, 'wcps_cart_bg', true );
|
63 |
+
$wcps_cart_text_color = get_post_meta( $post_id, 'wcps_cart_text_color', true );
|
64 |
+
|
65 |
+
$wcps_grid_items = get_post_meta( $post_id, 'wcps_grid_items', true );
|
66 |
+
$wcps_grid_items_hide = get_post_meta( $post_id, 'wcps_grid_items_hide', true );
|
67 |
+
|
68 |
+
$wcps_items_title_display = get_post_meta( $post_id, 'wcps_items_title_display', true );
|
69 |
+
$wcps_items_title_color = get_post_meta( $post_id, 'wcps_items_title_color', true );
|
70 |
+
$wcps_items_title_font_size = get_post_meta( $post_id, 'wcps_items_title_font_size', true );
|
71 |
+
|
72 |
+
$wcps_items_excerpt_count = get_post_meta( $post_id, 'wcps_items_excerpt_count', true );
|
73 |
+
$wcps_items_excerpt_read_more = get_post_meta( $post_id, 'wcps_items_excerpt_read_more', true );
|
74 |
+
|
75 |
+
$wcps_items_price_display = get_post_meta( $post_id, 'wcps_items_price_display', true );
|
76 |
+
$wcps_items_price_color = get_post_meta( $post_id, 'wcps_items_price_color', true );
|
77 |
+
$wcps_items_price_font_size = get_post_meta( $post_id, 'wcps_items_price_font_size', true );
|
78 |
+
|
79 |
+
$wcps_items_thumb_link_to = get_post_meta( $post_id, 'wcps_items_thumb_link_to', true );
|
80 |
+
$wcps_items_thumb_size = get_post_meta( $post_id, 'wcps_items_thumb_size', true );
|
81 |
+
$wcps_items_thumb_max_hieght = get_post_meta( $post_id, 'wcps_items_thumb_max_hieght', true );
|
82 |
+
|
83 |
+
$wcps_items_empty_thumb = get_post_meta( $post_id, 'wcps_items_empty_thumb', true );
|
84 |
+
|
85 |
+
$wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
|
86 |
+
$wcps_ribbon_custom = get_post_meta( $post_id, 'wcps_ribbon_custom', true );
|
87 |
+
|
88 |
+
$wcps_items_custom_css = get_post_meta( $post_id, 'wcps_items_custom_css', true );
|
89 |
+
|
90 |
+
if ( wp_is_mobile() ) {
|
91 |
+
$wcps_is_mobile = "wcps_mobile";
|
92 |
+
}
|
93 |
+
else {
|
94 |
+
$wcps_is_mobile = "";
|
95 |
+
}
|
96 |
+
|
97 |
+
|
98 |
+
$class_wcps_functions = new class_wcps_functions();
|
99 |
+
if(empty($wcps_grid_items)){
|
100 |
+
$wcps_grid_items = $class_wcps_functions->wcps_grid_items();
|
101 |
+
}
|
templates/wcps-cart.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$html_cart = apply_filters( 'wcps_filter_cart', do_shortcode('[add_to_cart id="'.get_the_ID().'"]') );
|
11 |
+
|
12 |
+
$html.= '<div class="wcps-items-cart '.$wcps_cart_style.'">'.$html_cart.'</div>';
|
templates/wcps-category.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$product_cats = wp_get_post_terms( get_the_ID(), 'product_cat' );
|
11 |
+
$cat_link = array();
|
12 |
+
$cat_name = array();
|
13 |
+
|
14 |
+
$cat_html = '';
|
15 |
+
foreach($product_cats as $key => $cat)
|
16 |
+
{
|
17 |
+
|
18 |
+
$cat_link = get_term_link( $cat->term_id, 'product_cat' );
|
19 |
+
$cat_name = $cat->name;
|
20 |
+
|
21 |
+
$cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>, ';
|
22 |
+
}
|
23 |
+
|
24 |
+
$html.= '<div class="wcps-items-category" >Category: '.$cat_html.'</div>';
|
templates/wcps-excerpt.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
global $post;
|
12 |
+
|
13 |
+
$excerpt_text = wp_trim_words( $post->post_excerpt , $wcps_items_excerpt_count, ' <a class="read-more" href="'.get_permalink(get_the_ID()).'"> '.$wcps_items_excerpt_read_more.'</a>' );
|
14 |
+
|
15 |
+
$excerpt_text = apply_filters( 'wcps_filter_excerpt', $excerpt_text );
|
16 |
+
|
17 |
+
$html.= '<div class="wcps-items-excerpt" >'.$excerpt_text.'</div>';
|
templates/wcps-featured.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
if(empty($wcps_featured_icon_url)){
|
12 |
+
$wcps_featured_style = '';
|
13 |
+
}
|
14 |
+
else{
|
15 |
+
$wcps_featured_style = 'style="background: rgba(0, 0, 0, 0) url('.$wcps_featured_icon_url.') no-repeat scroll 0 0;"';
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
if($wcps_featured=="yes" && $wcps_featured_display == 'yes')
|
21 |
+
{
|
22 |
+
$html.= '<div '.$wcps_featured_style.' title="'.__('Featured Product','wcps').'" class="wcps-featured"></div>';
|
23 |
+
}
|
templates/wcps-price.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$price_text = apply_filters( 'wcps_filter_price', $price );
|
11 |
+
|
12 |
+
$html.= '<div class="wcps-items-price" style="color:'.$wcps_items_price_color.';font-size:'.$wcps_items_price_font_size.'">'.__('Price:','wcps').$price_text .'</div>';
|
templates/wcps-rating.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
$rating = $product->get_average_rating();
|
12 |
+
$rating = (($rating/5)*100);
|
13 |
+
|
14 |
+
|
15 |
+
if( $rating > 0 )
|
16 |
+
$html .= '<div class="pg-rating woocommerce wcps-items-rating"><div class="woocommerce-product-rating"><div class="star-rating" style="color:#E0BC0D; padding-bottom:10px;" title="Rated '.$rating.'"><span style="width:'.$rating.'%;"></span></div></div></div>';
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
|
templates/wcps-ribbon.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
if($wcps_ribbon_name=='custom'){
|
11 |
+
$ribbon_url = $wcps_ribbon_custom;
|
12 |
+
}
|
13 |
+
else{
|
14 |
+
$ribbon_url = wcps_plugin_url.'css/ribbons/'.$wcps_ribbon_name.'.png';
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
$html_ribbon = '<div class="wcps-ribbon wcps-ribbon-'.$wcps_ribbon_name.'" style="background:url('.$ribbon_url.') no-repeat scroll 0 0 rgba(0, 0, 0, 0);)"></div>';
|
19 |
+
|
20 |
+
$html.= apply_filters( 'wcps_filter_ribbon', $html_ribbon );
|
templates/wcps-sale.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
if(empty($wcps_sale_icon_url)){
|
11 |
+
$wcps_sale_style = '';
|
12 |
+
}
|
13 |
+
else{
|
14 |
+
$wcps_sale_style = 'style="background: rgba(0, 0, 0, 0) url('.$wcps_sale_icon_url.') no-repeat scroll 0 0;"';
|
15 |
+
}
|
16 |
+
|
17 |
+
if(!empty($sale_price) && $wcps_sale_display == 'yes')
|
18 |
+
{
|
19 |
+
$html.= '<div '.$wcps_sale_style.' title="'.__('Sale Product','wcps').'" class="wcps-items-sale"></div>';
|
20 |
+
}
|
templates/wcps-thumb.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$html.= '<div class="wcps-items-thumb"><a href="'.$permalink.'"><img alt="'.get_the_title().'" src="'.$wcps_thumb_url.'" /></a></div>';
|
11 |
+
|
templates/wcps-title.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$title_text = apply_filters( 'wcps_filter_title', get_the_title(get_the_ID()) );
|
11 |
+
|
12 |
+
$html.= '<div class="wcps-items-title" ><a style="color:'.$wcps_items_title_color.';font-size:'.$wcps_items_title_font_size.'" href="'.$permalink.'">'.$title_text.'</a></div>';
|
themes/flat/index.php
DELETED
@@ -1,448 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
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 |
-
|
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 );
|
21 |
-
$wcps_slide_speed = get_post_meta( $post_id, 'wcps_slide_speed', 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 |
-
$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 |
-
|
30 |
-
$wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
|
31 |
-
$wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
|
32 |
-
$wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
|
33 |
-
$wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
|
34 |
-
|
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_items_empty_thumb = get_post_meta( $post_id, 'wcps_items_empty_thumb', true );
|
46 |
-
|
47 |
-
$wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
$wcps_body = '';
|
53 |
-
$wcps_body = '<style type="text/css">
|
54 |
-
|
55 |
-
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
|
56 |
-
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
|
57 |
-
{
|
58 |
-
background: '.$wcps_cart_bg .';
|
59 |
-
|
60 |
-
}
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
</style>';
|
66 |
-
|
67 |
-
|
68 |
-
$wcps_body .= '
|
69 |
-
<div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
|
70 |
-
<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>
|
71 |
-
|
72 |
-
<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
|
73 |
-
|
74 |
-
';
|
75 |
-
|
76 |
-
global $wp_query;
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
if(($wcps_content_source=="latest"))
|
81 |
-
{
|
82 |
-
|
83 |
-
$wp_query = new WP_Query(
|
84 |
-
array (
|
85 |
-
'post_type' => 'product',
|
86 |
-
'post_status' => 'publish',
|
87 |
-
'orderby' => 'date',
|
88 |
-
'order' => 'DESC',
|
89 |
-
'posts_per_page' => $wcps_total_items,
|
90 |
-
|
91 |
-
) );
|
92 |
-
|
93 |
-
|
94 |
-
}
|
95 |
-
|
96 |
-
else if(($wcps_content_source=="older"))
|
97 |
-
{
|
98 |
-
|
99 |
-
$wp_query = new WP_Query(
|
100 |
-
array (
|
101 |
-
'post_type' => 'product',
|
102 |
-
'post_status' => 'publish',
|
103 |
-
'orderby' => 'date',
|
104 |
-
'order' => 'ASC',
|
105 |
-
'posts_per_page' => $wcps_total_items,
|
106 |
-
|
107 |
-
) );
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
else if(($wcps_content_source=="featured"))
|
112 |
-
{
|
113 |
-
|
114 |
-
$wp_query = new WP_Query(
|
115 |
-
array (
|
116 |
-
'post_type' => 'product',
|
117 |
-
'post_status' => 'publish',
|
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 |
-
else if(($wcps_content_source=="on_sale"))
|
131 |
-
{
|
132 |
-
|
133 |
-
$wp_query = new WP_Query(
|
134 |
-
array (
|
135 |
-
'post_type' => 'product',
|
136 |
-
'post_status' => 'publish',
|
137 |
-
'order' => 'asc',
|
138 |
-
'posts_per_page' => $wcps_total_items,
|
139 |
-
'meta_query' => array(
|
140 |
-
array(
|
141 |
-
'key' => '_visibility',
|
142 |
-
'value' => array('catalog', 'visible'),
|
143 |
-
'compare' => 'IN'
|
144 |
-
),
|
145 |
-
array(
|
146 |
-
'key' => '_sale_price',
|
147 |
-
'value' => 0,
|
148 |
-
'compare' => '>',
|
149 |
-
'type' => 'NUMERIC'
|
150 |
-
)
|
151 |
-
) ));
|
152 |
-
|
153 |
-
}
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
else if(($wcps_content_source=="year"))
|
161 |
-
{
|
162 |
-
|
163 |
-
$wp_query = new WP_Query(
|
164 |
-
array (
|
165 |
-
'post_type' => 'product',
|
166 |
-
'post_status' => 'publish',
|
167 |
-
'year' => $wcps_content_year,
|
168 |
-
'posts_per_page' => $wcps_total_items,
|
169 |
-
) );
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
else if(($wcps_content_source=="month"))
|
174 |
-
{
|
175 |
-
|
176 |
-
$wp_query = new WP_Query(
|
177 |
-
array (
|
178 |
-
'post_type' => 'product',
|
179 |
-
'post_status' => 'publish',
|
180 |
-
'year' => $wcps_content_month_year,
|
181 |
-
'monthnum' => $wcps_content_month,
|
182 |
-
'posts_per_page' => $wcps_total_items,
|
183 |
-
|
184 |
-
) );
|
185 |
-
|
186 |
-
}
|
187 |
-
|
188 |
-
else if($wcps_content_source=="taxonomy")
|
189 |
-
{
|
190 |
-
$wp_query = new WP_Query(
|
191 |
-
array (
|
192 |
-
'post_type' => 'product',
|
193 |
-
'post_status' => 'publish',
|
194 |
-
'posts_per_page' => $wcps_total_items,
|
195 |
-
|
196 |
-
'tax_query' => array(
|
197 |
-
array(
|
198 |
-
'taxonomy' => $wcps_taxonomy,
|
199 |
-
'field' => 'id',
|
200 |
-
'terms' => $wcps_taxonomy_category,
|
201 |
-
)
|
202 |
-
)
|
203 |
-
|
204 |
-
) );
|
205 |
-
}
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
else if(($wcps_content_source=="product_id"))
|
210 |
-
{
|
211 |
-
|
212 |
-
$wp_query = new WP_Query(
|
213 |
-
array (
|
214 |
-
'post_type' => 'product',
|
215 |
-
'post_status' => 'publish',
|
216 |
-
'post__in' => $wcps_product_ids,
|
217 |
-
'posts_per_page' => $wcps_total_items,
|
218 |
-
|
219 |
-
|
220 |
-
) );
|
221 |
-
|
222 |
-
|
223 |
-
}
|
224 |
-
|
225 |
-
else
|
226 |
-
{
|
227 |
-
|
228 |
-
$wp_query = new WP_Query(
|
229 |
-
array (
|
230 |
-
'post_type' => 'product',
|
231 |
-
'post_status' => 'publish',
|
232 |
-
'posts_per_page' => $wcps_total_items,
|
233 |
-
|
234 |
-
|
235 |
-
) );
|
236 |
-
|
237 |
-
|
238 |
-
}
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
if ( $wp_query->have_posts() ) :
|
244 |
-
|
245 |
-
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
246 |
-
|
247 |
-
global $product;
|
248 |
-
|
249 |
-
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
255 |
-
|
256 |
-
$wcps_thumb_url = $wcps_thumb['0'];
|
257 |
-
|
258 |
-
if(empty($wcps_thumb_url))
|
259 |
-
{
|
260 |
-
$wcps_thumb_url = $wcps_items_empty_thumb;
|
261 |
-
}
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
$currency = get_woocommerce_currency_symbol();
|
266 |
-
|
267 |
-
|
268 |
-
if($wcps_total_items_price_format=='full')
|
269 |
-
{
|
270 |
-
$price = $product->get_price_html();
|
271 |
-
}
|
272 |
-
elseif($wcps_total_items_price_format=='sale')
|
273 |
-
{
|
274 |
-
|
275 |
-
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
276 |
-
}
|
277 |
-
elseif($wcps_total_items_price_format=='regular')
|
278 |
-
{
|
279 |
-
|
280 |
-
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
281 |
-
|
282 |
-
}
|
283 |
-
else
|
284 |
-
{
|
285 |
-
$price = $product->get_price_html();
|
286 |
-
}
|
287 |
-
|
288 |
-
|
289 |
-
$wcps_body.= '<div class="wcps-items" >';
|
290 |
-
$wcps_body.= '<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img alt="'.get_the_title().'" src="'.$wcps_thumb_url.'" /></a>';
|
291 |
-
if($wcps_featured=="yes")
|
292 |
-
{
|
293 |
-
$wcps_body.= '<div class="wcps-featured">Featured</div>';
|
294 |
-
}
|
295 |
-
$wcps_body.= '</div>';
|
296 |
-
|
297 |
-
$wcps_body.= '<div class="items-info">
|
298 |
-
<div class="wcps-items-title" style="">'.get_the_title().'</div>
|
299 |
-
<div class="wcps-items-price" style="">'.$price .'</div>
|
300 |
-
<div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
|
301 |
-
</div>
|
302 |
-
</div>';
|
303 |
-
|
304 |
-
endwhile;
|
305 |
-
|
306 |
-
wp_reset_query();
|
307 |
-
endif;
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
$wcps_body .= '</div></div>';
|
312 |
-
|
313 |
-
$wcps_body .='<script>
|
314 |
-
jQuery(document).ready(function($)
|
315 |
-
{
|
316 |
-
$("#wcps-'.$post_id.'").owlCarousel({
|
317 |
-
|
318 |
-
items : '.$wcps_column_number.', //10 items above 1000px browser width
|
319 |
-
itemsDesktop : [1000,'.$wcps_column_number.'], //5 items between 1000px and 901px
|
320 |
-
itemsDesktopSmall : [900,2], // betweem 900px and 601px
|
321 |
-
itemsTablet: [600,2], //2 items between 600 and 0
|
322 |
-
itemsMobile : [479,'.$wcps_column_number_mobile.'],
|
323 |
-
navigationText : ["",""],
|
324 |
-
';
|
325 |
-
|
326 |
-
|
327 |
-
if($wcps_auto_play=="true")
|
328 |
-
{
|
329 |
-
|
330 |
-
$wcps_body .='autoPlay: '.$wcps_auto_play.',';
|
331 |
-
|
332 |
-
}
|
333 |
-
|
334 |
-
if($wcps_stop_on_hover=="true")
|
335 |
-
{
|
336 |
-
|
337 |
-
$wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
|
338 |
-
|
339 |
-
}
|
340 |
-
|
341 |
-
if($wcps_slider_navigation=="true")
|
342 |
-
{
|
343 |
-
|
344 |
-
$wcps_body .='navigation: '.$wcps_slider_navigation.',';
|
345 |
-
|
346 |
-
}
|
347 |
-
|
348 |
-
if(!empty($wcps_slider_pagination))
|
349 |
-
{
|
350 |
-
|
351 |
-
$wcps_body .='pagination: '.$wcps_slider_pagination.',';
|
352 |
-
|
353 |
-
}
|
354 |
-
else
|
355 |
-
{
|
356 |
-
$wcps_body .='pagination: false,';
|
357 |
-
}
|
358 |
-
|
359 |
-
|
360 |
-
if(!empty($wcps_slider_pagination_count))
|
361 |
-
{
|
362 |
-
|
363 |
-
$wcps_body .='paginationNumbers: true,';
|
364 |
-
|
365 |
-
}
|
366 |
-
else
|
367 |
-
{
|
368 |
-
$wcps_body .='paginationNumbers: false,';
|
369 |
-
}
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
if(!empty($wcps_slide_speed))
|
374 |
-
{
|
375 |
-
|
376 |
-
$wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
|
377 |
-
|
378 |
-
}
|
379 |
-
|
380 |
-
|
381 |
-
if(!empty($wcps_pagination_slide_speed))
|
382 |
-
{
|
383 |
-
|
384 |
-
$wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
|
385 |
-
|
386 |
-
}
|
387 |
-
|
388 |
-
|
389 |
-
if(!empty($wcps_slider_touch_drag))
|
390 |
-
{
|
391 |
-
|
392 |
-
$wcps_body .='touchDrag : true,';
|
393 |
-
|
394 |
-
}
|
395 |
-
else
|
396 |
-
{
|
397 |
-
$wcps_body .='touchDrag: false,';
|
398 |
-
}
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
if(!empty($wcps_slider_mouse_drag ))
|
403 |
-
{
|
404 |
-
|
405 |
-
$wcps_body .='mouseDrag : true,';
|
406 |
-
|
407 |
-
}
|
408 |
-
else
|
409 |
-
{
|
410 |
-
$wcps_body .='mouseDrag : false,';
|
411 |
-
}
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
$wcps_body .='});
|
421 |
-
|
422 |
-
});</script>';
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
return $wcps_body;
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/flat/style.css
DELETED
@@ -1,199 +0,0 @@
|
|
1 |
-
@charset "utf-8";
|
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 {
|
40 |
-
font-size: 14px;
|
41 |
-
line-height: 14px;
|
42 |
-
padding: 10px 0;
|
43 |
-
text-align: center;
|
44 |
-
}
|
45 |
-
|
46 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart {
|
47 |
-
text-align: center;
|
48 |
-
}
|
49 |
-
|
50 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart p {
|
51 |
-
border: medium none !important;
|
52 |
-
}
|
53 |
-
|
54 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart span.amount {
|
55 |
-
font-size: 15px;
|
56 |
-
line-height: 15px;
|
57 |
-
}
|
58 |
-
|
59 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart del{
|
60 |
-
|
61 |
-
}
|
62 |
-
|
63 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart del span.amount{
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart ins {
|
68 |
-
|
69 |
-
}
|
70 |
-
|
71 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart ins span.amount{
|
72 |
-
|
73 |
-
}
|
74 |
-
|
75 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart span.amount{
|
76 |
-
|
77 |
-
}
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart .amount,
|
83 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart del,
|
84 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart ins,
|
85 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart .woocommerce-price-suffix{
|
86 |
-
display:none; }
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart a.add_to_cart_button {
|
91 |
-
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
92 |
-
border: medium none;
|
93 |
-
border-radius: 0;
|
94 |
-
box-shadow: none;
|
95 |
-
font-size: 12px;
|
96 |
-
line-height: 12px;
|
97 |
-
margin-top: 15px;
|
98 |
-
padding: 10px 15px;
|
99 |
-
text-shadow: none;
|
100 |
-
}
|
101 |
-
|
102 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart a.added_to_cart {
|
103 |
-
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
104 |
-
border: medium none;
|
105 |
-
border-radius: 0;
|
106 |
-
box-shadow: none;
|
107 |
-
color: rgb(68, 68, 68);
|
108 |
-
font-size: 12px;
|
109 |
-
line-height: 12px;
|
110 |
-
margin-top: 15px;
|
111 |
-
padding: 10px 15px;
|
112 |
-
text-decoration: none;
|
113 |
-
text-shadow: none;
|
114 |
-
}
|
115 |
-
|
116 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-cart a.added {
|
117 |
-
display: none;
|
118 |
-
}
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
.wcps-container .wcps-flat div.wcps-items div.wcps-items-price {
|
125 |
-
text-align: center;
|
126 |
-
}
|
127 |
-
|
128 |
-
.wcps-container .wcps-flat .owl-buttons {
|
129 |
-
position: absolute;
|
130 |
-
right: 15px;
|
131 |
-
top: 15px;
|
132 |
-
}
|
133 |
-
|
134 |
-
.wcps-container .wcps-flat .owl-controls .owl-buttons .owl-prev {
|
135 |
-
background-image: url("images/arrow-prev.png");
|
136 |
-
border: 1px solid rgb(221, 221, 221);
|
137 |
-
border-radius: 0;
|
138 |
-
color: rgb(0, 0, 0);
|
139 |
-
padding: 0;
|
140 |
-
width: 30px;
|
141 |
-
height: 20px;
|
142 |
-
}
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
.wcps-container .wcps-flat .owl-controls .owl-buttons .owl-next {
|
147 |
-
background-image: url("images/arrow-next.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 |
-
.wcps-container .wcps-flat .owl-controls span.owl-numbers {
|
158 |
-
border-radius: 0;
|
159 |
-
}
|
160 |
-
|
161 |
-
.wcps-container .wcps-flat .owl-controls .owl-buttons div.owl-prev:hover{
|
162 |
-
background-image: url("images/arrow-prev.png") ;
|
163 |
-
background-color:#d5d5d5 !important; }
|
164 |
-
|
165 |
-
|
166 |
-
.wcps-container .wcps-flat .owl-controls .owl-buttons div.owl-next:hover{
|
167 |
-
background-image: url("images/arrow-next.png");
|
168 |
-
background-color:#d5d5d5 !important; }
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
.wcps-container .wcps-flat .owl-controls {
|
173 |
-
margin-top: 30px;
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/rossi/index.php
DELETED
@@ -1,448 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
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 |
-
|
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 );
|
21 |
-
$wcps_slide_speed = get_post_meta( $post_id, 'wcps_slide_speed', 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 |
-
|
29 |
-
$wcps_content_source = get_post_meta( $post_id, 'wcps_content_source', true );
|
30 |
-
$wcps_content_year = get_post_meta( $post_id, 'wcps_content_year', true );
|
31 |
-
$wcps_content_month = get_post_meta( $post_id, 'wcps_content_month', true );
|
32 |
-
$wcps_content_month_year = get_post_meta( $post_id, 'wcps_content_month_year', true );
|
33 |
-
|
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_items_empty_thumb = get_post_meta( $post_id, 'wcps_items_empty_thumb', true );
|
45 |
-
|
46 |
-
$wcps_ribbon_name = get_post_meta( $post_id, 'wcps_ribbon_name', true );
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
$wcps_body = '';
|
52 |
-
$wcps_body = '<style type="text/css">
|
53 |
-
|
54 |
-
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.add_to_cart_button,
|
55 |
-
.wcps-container #wcps-'.$post_id.' div.wcps-items-cart a.added_to_cart
|
56 |
-
{
|
57 |
-
background: '.$wcps_cart_bg .';
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
</style>';
|
64 |
-
|
65 |
-
$wcps_body .= '
|
66 |
-
<div class="wcps-container" style="background-image:url('.$wcps_bg_img.')">
|
67 |
-
<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>
|
68 |
-
|
69 |
-
<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">
|
70 |
-
|
71 |
-
';
|
72 |
-
|
73 |
-
global $wp_query;
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
if(($wcps_content_source=="latest"))
|
79 |
-
{
|
80 |
-
|
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,
|
88 |
-
|
89 |
-
) );
|
90 |
-
|
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,
|
104 |
-
|
105 |
-
) );
|
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',
|
119 |
-
'value' => 'yes',
|
120 |
-
)),
|
121 |
-
'posts_per_page' => $wcps_total_items,
|
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,
|
181 |
-
|
182 |
-
) );
|
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(
|
195 |
-
array(
|
196 |
-
'taxonomy' => $wcps_taxonomy,
|
197 |
-
'field' => 'id',
|
198 |
-
'terms' => $wcps_taxonomy_category,
|
199 |
-
)
|
200 |
-
)
|
201 |
-
|
202 |
-
) );
|
203 |
-
}
|
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 |
-
) );
|
219 |
-
|
220 |
-
|
221 |
-
}
|
222 |
-
|
223 |
-
|
224 |
-
else
|
225 |
-
{
|
226 |
-
|
227 |
-
$wp_query = new WP_Query(
|
228 |
-
array (
|
229 |
-
'post_type' => 'product',
|
230 |
-
'post_status' => 'publish',
|
231 |
-
'posts_per_page' => $wcps_total_items,
|
232 |
-
|
233 |
-
|
234 |
-
) );
|
235 |
-
|
236 |
-
|
237 |
-
}
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
if ( $wp_query->have_posts() ) :
|
246 |
-
|
247 |
-
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
248 |
-
|
249 |
-
global $product;
|
250 |
-
|
251 |
-
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
252 |
-
|
253 |
-
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
254 |
-
|
255 |
-
$wcps_thumb_url = $wcps_thumb['0'];
|
256 |
-
|
257 |
-
if(empty($wcps_thumb_url))
|
258 |
-
{
|
259 |
-
$wcps_thumb_url = $wcps_items_empty_thumb;
|
260 |
-
}
|
261 |
-
|
262 |
-
|
263 |
-
$currency = get_woocommerce_currency_symbol();
|
264 |
-
|
265 |
-
|
266 |
-
if($wcps_total_items_price_format=='full')
|
267 |
-
{
|
268 |
-
$price = $product->get_price_html();
|
269 |
-
}
|
270 |
-
elseif($wcps_total_items_price_format=='sale')
|
271 |
-
{
|
272 |
-
|
273 |
-
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
274 |
-
}
|
275 |
-
elseif($wcps_total_items_price_format=='regular')
|
276 |
-
{
|
277 |
-
|
278 |
-
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
279 |
-
|
280 |
-
}
|
281 |
-
else
|
282 |
-
{
|
283 |
-
$price = $product->get_price_html();
|
284 |
-
}
|
285 |
-
|
286 |
-
$wcps_body.= '
|
287 |
-
<div class="wcps-items" >
|
288 |
-
|
289 |
-
<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.get_permalink().'"><img alt="'.get_the_title().'" src="'.$wcps_thumb_url.'" /></a>';
|
290 |
-
|
291 |
-
if($wcps_featured=="yes")
|
292 |
-
{
|
293 |
-
$wcps_body.= '<div class="wcps-featured">Featured</div>';
|
294 |
-
}
|
295 |
-
$wcps_body.= '</div>';
|
296 |
-
|
297 |
-
$wcps_body.= '<div class="items-info">
|
298 |
-
<div class="wcps-items-title" style="">'.get_the_title().'</div>
|
299 |
-
<div class="wcps-items-price" style="">'.$price .'</div>
|
300 |
-
<div class="wcps-items-cart">'.do_shortcode('[add_to_cart id="'.get_the_ID().'"]').'</div>
|
301 |
-
</div>
|
302 |
-
</div>';
|
303 |
-
|
304 |
-
endwhile;
|
305 |
-
|
306 |
-
wp_reset_query();
|
307 |
-
endif;
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
$wcps_body .= '</div></div>';
|
312 |
-
|
313 |
-
$wcps_body .='<script>
|
314 |
-
jQuery(document).ready(function($)
|
315 |
-
{
|
316 |
-
$("#wcps-'.$post_id.'").owlCarousel({
|
317 |
-
|
318 |
-
items : '.$wcps_column_number.', //10 items above 1000px browser width
|
319 |
-
itemsDesktop : [1000,'.$wcps_column_number.'], //5 items between 1000px and 901px
|
320 |
-
itemsDesktopSmall : [900,2], // betweem 900px and 601px
|
321 |
-
itemsTablet: [600,2], //2 items between 600 and 0
|
322 |
-
itemsMobile : [479,'.$wcps_column_number_mobile.'],
|
323 |
-
navigationText : ["",""],
|
324 |
-
';
|
325 |
-
|
326 |
-
|
327 |
-
if($wcps_auto_play=="true")
|
328 |
-
{
|
329 |
-
|
330 |
-
$wcps_body .='autoPlay: '.$wcps_auto_play.',';
|
331 |
-
|
332 |
-
}
|
333 |
-
|
334 |
-
if($wcps_stop_on_hover=="true")
|
335 |
-
{
|
336 |
-
|
337 |
-
$wcps_body .='stopOnHover: '.$wcps_stop_on_hover.',';
|
338 |
-
|
339 |
-
}
|
340 |
-
|
341 |
-
if($wcps_slider_navigation=="true")
|
342 |
-
{
|
343 |
-
|
344 |
-
$wcps_body .='navigation: '.$wcps_slider_navigation.',';
|
345 |
-
|
346 |
-
}
|
347 |
-
|
348 |
-
if(!empty($wcps_slider_pagination))
|
349 |
-
{
|
350 |
-
|
351 |
-
$wcps_body .='pagination: '.$wcps_slider_pagination.',';
|
352 |
-
|
353 |
-
}
|
354 |
-
else
|
355 |
-
{
|
356 |
-
$wcps_body .='pagination: false,';
|
357 |
-
}
|
358 |
-
|
359 |
-
|
360 |
-
if(!empty($wcps_slider_pagination_count))
|
361 |
-
{
|
362 |
-
|
363 |
-
$wcps_body .='paginationNumbers: true,';
|
364 |
-
|
365 |
-
}
|
366 |
-
else
|
367 |
-
{
|
368 |
-
$wcps_body .='paginationNumbers: false,';
|
369 |
-
}
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
if(!empty($wcps_slide_speed))
|
374 |
-
{
|
375 |
-
|
376 |
-
$wcps_body .='slideSpeed: '.$wcps_slide_speed.',';
|
377 |
-
|
378 |
-
}
|
379 |
-
|
380 |
-
|
381 |
-
if(!empty($wcps_pagination_slide_speed))
|
382 |
-
{
|
383 |
-
|
384 |
-
$wcps_body .='paginationSpeed: '.$wcps_pagination_slide_speed.',';
|
385 |
-
|
386 |
-
}
|
387 |
-
|
388 |
-
|
389 |
-
if(!empty($wcps_slider_touch_drag))
|
390 |
-
{
|
391 |
-
|
392 |
-
$wcps_body .='touchDrag : true,';
|
393 |
-
|
394 |
-
}
|
395 |
-
else
|
396 |
-
{
|
397 |
-
$wcps_body .='touchDrag: false,';
|
398 |
-
}
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
if(!empty($wcps_slider_mouse_drag ))
|
403 |
-
{
|
404 |
-
|
405 |
-
$wcps_body .='mouseDrag : true,';
|
406 |
-
|
407 |
-
}
|
408 |
-
else
|
409 |
-
{
|
410 |
-
$wcps_body .='mouseDrag : false,';
|
411 |
-
}
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
$wcps_body .='});
|
421 |
-
|
422 |
-
});</script>';
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
return $wcps_body;
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/rossi/style.css
DELETED
@@ -1,164 +0,0 @@
|
|
1 |
-
@charset "utf-8";
|
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;
|
41 |
-
padding: 10px 0;
|
42 |
-
text-align: center;
|
43 |
-
}
|
44 |
-
|
45 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart {
|
46 |
-
text-align: center;
|
47 |
-
}
|
48 |
-
|
49 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart p {
|
50 |
-
border: medium none !important;
|
51 |
-
}
|
52 |
-
|
53 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart span.amount {
|
54 |
-
font-size: 15px;
|
55 |
-
line-height: 15px;
|
56 |
-
}
|
57 |
-
|
58 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart del{
|
59 |
-
|
60 |
-
}
|
61 |
-
|
62 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart del span.amount{
|
63 |
-
|
64 |
-
}
|
65 |
-
|
66 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart ins {
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart ins span.amount{
|
71 |
-
|
72 |
-
}
|
73 |
-
|
74 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart span.amount{
|
75 |
-
|
76 |
-
}
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart .amount,
|
82 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart del,
|
83 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart ins,
|
84 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart .woocommerce-price-suffix{
|
85 |
-
display:none; }
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
.wcps-container .wcps-rossi 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: medium none;
|
92 |
-
border-radius: 0;
|
93 |
-
box-shadow: none;
|
94 |
-
font-size: 12px;
|
95 |
-
line-height: 12px;
|
96 |
-
margin-top: 15px;
|
97 |
-
padding: 10px 15px;
|
98 |
-
text-shadow: none;
|
99 |
-
}
|
100 |
-
|
101 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart a.added_to_cart {
|
102 |
-
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
103 |
-
border: medium none;
|
104 |
-
border-radius: 0;
|
105 |
-
box-shadow: none;
|
106 |
-
color: rgb(68, 68, 68);
|
107 |
-
font-size: 12px;
|
108 |
-
line-height: 12px;
|
109 |
-
margin-top: 15px;
|
110 |
-
padding: 10px 15px;
|
111 |
-
text-decoration: none;
|
112 |
-
text-shadow: none;
|
113 |
-
}
|
114 |
-
|
115 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-cart a.added {
|
116 |
-
display: none;
|
117 |
-
}
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
.wcps-container .wcps-rossi div.wcps-items div.wcps-items-price {
|
124 |
-
text-align: center;
|
125 |
-
}
|
126 |
-
.wcps-container .wcps-rossi .owl-buttons {
|
127 |
-
position: absolute;
|
128 |
-
right: 15px;
|
129 |
-
top: 15px;
|
130 |
-
}
|
131 |
-
|
132 |
-
.wcps-container .wcps-rossi .owl-controls .owl-buttons .owl-prev {
|
133 |
-
background-image: url("images/arrow-prev.png");
|
134 |
-
border: 1px solid rgb(221, 221, 221);
|
135 |
-
border-radius: 0;
|
136 |
-
color: rgb(0, 0, 0);
|
137 |
-
padding: 0;
|
138 |
-
width: 30px;
|
139 |
-
height: 20px;
|
140 |
-
}
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
.wcps-container .wcps-rossi .owl-controls .owl-buttons .owl-next {
|
145 |
-
background-image: url("images/arrow-next.png");
|
146 |
-
border: 1px solid rgb(221, 221, 221);
|
147 |
-
border-radius: 0;
|
148 |
-
color: rgb(0, 0, 0);
|
149 |
-
padding: 0;
|
150 |
-
width: 30px;
|
151 |
-
height: 20px;
|
152 |
-
}
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
.wcps-container .wcps-rossi .owl-controls .owl-buttons div.owl-prev:hover{
|
157 |
-
background-image: url("images/arrow-prev.png") ;
|
158 |
-
background-color:#d5d5d5 !important; }
|
159 |
-
|
160 |
-
|
161 |
-
.wcps-container .wcps-rossi .owl-controls .owl-buttons div.owl-next:hover{
|
162 |
-
background-image: url("images/arrow-next.png");
|
163 |
-
background-color:#d5d5d5 !important; }
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/{rossi → theme1}/images/arrow-next.png
RENAMED
File without changes
|
themes/{rossi → theme1}/images/arrow-prev.png
RENAMED
File without changes
|
themes/theme1/images/tags.png
ADDED
Binary file
|
themes/theme1/index-old.php
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
include wcps_plugin_dir.'/templates/variables.php';
|
12 |
+
include wcps_plugin_dir.'/templates/custom-css.php';
|
13 |
+
|
14 |
+
$html.= '<div class="wcps-container '.$wcps_is_mobile.' " style="background-image:url('.$wcps_bg_img.')">';
|
15 |
+
|
16 |
+
include wcps_plugin_dir.'/templates/wcps-ribbon.php';
|
17 |
+
|
18 |
+
$html.= '<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">';
|
19 |
+
|
20 |
+
include wcps_plugin_dir.'/templates/query.php';
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
if ( $wp_query->have_posts() ) :
|
25 |
+
|
26 |
+
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
27 |
+
|
28 |
+
global $product;
|
29 |
+
|
30 |
+
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
31 |
+
|
32 |
+
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
33 |
+
$wcps_thumb_url = $wcps_thumb['0'];
|
34 |
+
|
35 |
+
if(empty($wcps_thumb_url))
|
36 |
+
{
|
37 |
+
$wcps_thumb_url = $wcps_items_empty_thumb;
|
38 |
+
}
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
$currency = get_woocommerce_currency_symbol();
|
43 |
+
|
44 |
+
$sale_price = get_post_meta( get_the_ID(), '_sale_price', true);
|
45 |
+
|
46 |
+
if($wcps_total_items_price_format=='full')
|
47 |
+
{
|
48 |
+
$price = $product->get_price_html();
|
49 |
+
}
|
50 |
+
elseif($wcps_total_items_price_format=='sale')
|
51 |
+
{
|
52 |
+
|
53 |
+
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
54 |
+
}
|
55 |
+
elseif($wcps_total_items_price_format=='regular')
|
56 |
+
{
|
57 |
+
|
58 |
+
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
59 |
+
|
60 |
+
}
|
61 |
+
else
|
62 |
+
{
|
63 |
+
$price = $product->get_price_html();
|
64 |
+
}
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
$product_cats = wp_get_post_terms( get_the_ID(), 'product_cat' );
|
72 |
+
$cat_link = array();
|
73 |
+
$cat_name = array();
|
74 |
+
|
75 |
+
|
76 |
+
foreach($product_cats as $key => $cat)
|
77 |
+
{
|
78 |
+
|
79 |
+
$cat_link[] = get_term_link( $cat->term_id, 'product_cat' );
|
80 |
+
$cat_name[] = $cat->name;
|
81 |
+
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
if($wcps_items_thumb_link_to == 'product')
|
89 |
+
{
|
90 |
+
$permalink = get_permalink();
|
91 |
+
}
|
92 |
+
else if($wcps_items_thumb_link_to == 'category')
|
93 |
+
{
|
94 |
+
|
95 |
+
if(empty($cat_link[0]))
|
96 |
+
{
|
97 |
+
$permalink = get_permalink();
|
98 |
+
}
|
99 |
+
else
|
100 |
+
{
|
101 |
+
$permalink = $cat_link[0];
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
}
|
107 |
+
else
|
108 |
+
{
|
109 |
+
$permalink = get_permalink();
|
110 |
+
}
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
$html.= '<div class="wcps-items" >';
|
116 |
+
$html.= '<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.$permalink.'"><img alt="'.get_the_title().'" src="'.$wcps_thumb_url.'" /></a>';
|
117 |
+
|
118 |
+
include wcps_plugin_dir.'/templates/wcps-featured.php';
|
119 |
+
include wcps_plugin_dir.'/templates/wcps-sale.php';
|
120 |
+
|
121 |
+
|
122 |
+
$html.= '</div>';
|
123 |
+
|
124 |
+
$html.= '<div class="items-info">';
|
125 |
+
|
126 |
+
if(!empty($cat_name[0]) && $wcps_cat_display == 'yes')
|
127 |
+
$html.= '<div class="wcps-terms"><a href="'.$cat_link[0].'">'.$cat_name[0].'</a></div>';
|
128 |
+
|
129 |
+
if($wcps_items_title_display == 'yes') include wcps_plugin_dir.'/templates/wcps-title.php';
|
130 |
+
if($wcps_items_price_display == 'yes') include wcps_plugin_dir.'/templates/wcps-price.php';
|
131 |
+
if ( $wcps_ratings_display == 'yes' ) include wcps_plugin_dir.'/templates/wcps-ratings.php';
|
132 |
+
if($wcps_cart_display == 'yes') include wcps_plugin_dir.'/templates/wcps-cart.php';
|
133 |
+
|
134 |
+
$html.= '</div>
|
135 |
+
</div>';
|
136 |
+
|
137 |
+
endwhile;
|
138 |
+
wp_reset_query();
|
139 |
+
|
140 |
+
else :
|
141 |
+
$html.= __('No Product to Slide','wcps');
|
142 |
+
|
143 |
+
endif;
|
144 |
+
|
145 |
+
$html.= '</div></div>';
|
146 |
+
|
147 |
+
include wcps_plugin_dir.'/templates/scripts.php';
|
themes/theme1/index.php
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
include wcps_plugin_dir.'/templates/variables.php';
|
12 |
+
include wcps_plugin_dir.'/templates/custom-css.php';
|
13 |
+
|
14 |
+
$html.= '<div class="wcps-container '.$wcps_is_mobile.' " style="background-image:url('.$wcps_bg_img.')">';
|
15 |
+
|
16 |
+
include wcps_plugin_dir.'/templates/wcps-ribbon.php';
|
17 |
+
|
18 |
+
$html.= '<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">';
|
19 |
+
|
20 |
+
include wcps_plugin_dir.'/templates/query.php';
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
if ( $wp_query->have_posts() ) :
|
25 |
+
|
26 |
+
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
27 |
+
|
28 |
+
global $product;
|
29 |
+
|
30 |
+
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
31 |
+
|
32 |
+
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
33 |
+
$wcps_thumb_url = $wcps_thumb['0'];
|
34 |
+
|
35 |
+
if(empty($wcps_thumb_url)){
|
36 |
+
$wcps_thumb_url = $wcps_items_empty_thumb;
|
37 |
+
}
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
$currency = get_woocommerce_currency_symbol();
|
42 |
+
|
43 |
+
$sale_price = get_post_meta( get_the_ID(), '_sale_price', true);
|
44 |
+
|
45 |
+
if($wcps_total_items_price_format=='full'){
|
46 |
+
$price = $product->get_price_html();
|
47 |
+
}
|
48 |
+
elseif($wcps_total_items_price_format=='sale'){
|
49 |
+
|
50 |
+
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
51 |
+
}
|
52 |
+
elseif($wcps_total_items_price_format=='regular'){
|
53 |
+
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
54 |
+
}
|
55 |
+
else{
|
56 |
+
$price = $product->get_price_html();
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
if($wcps_items_thumb_link_to == 'product'){
|
61 |
+
$permalink = get_permalink();
|
62 |
+
}
|
63 |
+
else if($wcps_items_thumb_link_to == 'category'){
|
64 |
+
|
65 |
+
if(empty($cat_link[0])){
|
66 |
+
$permalink = get_permalink();
|
67 |
+
}
|
68 |
+
else{
|
69 |
+
$permalink = $cat_link[0];
|
70 |
+
}
|
71 |
+
}
|
72 |
+
else{
|
73 |
+
$permalink = get_permalink();
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
$html.= '<div class="wcps-items" >';
|
78 |
+
|
79 |
+
foreach($wcps_grid_items as $item_key=>$item){
|
80 |
+
|
81 |
+
if(empty($wcps_grid_items_hide[$item_key])){
|
82 |
+
include wcps_plugin_dir.'/templates/wcps-'.$item_key.'.php';
|
83 |
+
}
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
$html.= '</div>'; // .wcps-items
|
88 |
+
|
89 |
+
|
90 |
+
endwhile;
|
91 |
+
wp_reset_query();
|
92 |
+
|
93 |
+
else :
|
94 |
+
$html.= __('No Product to Slide','wcps');
|
95 |
+
|
96 |
+
endif;
|
97 |
+
|
98 |
+
$html.= '</div></div>';
|
99 |
+
|
100 |
+
include wcps_plugin_dir.'/templates/scripts.php';
|
themes/theme1/style.css
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
.wcps-container .wcps-theme1 {
|
4 |
+
padding-bottom: 30px;
|
5 |
+
padding-top: 60px
|
6 |
+
}
|
7 |
+
|
8 |
+
.wcps-container .owl-carousel .owl-item {
|
9 |
+
padding: 10px 0
|
10 |
+
}
|
11 |
+
|
12 |
+
.wcps-container .wcps-theme1 .wcps-items {
|
13 |
+
background: rgb(255, 255, 255) none repeat scroll 0 0;
|
14 |
+
box-shadow: 0 0 2px -1px rgb(153, 153, 153);
|
15 |
+
margin: 0 10px;
|
16 |
+
overflow: hidden;
|
17 |
+
padding: 0;
|
18 |
+
position: relative;
|
19 |
+
}
|
20 |
+
|
21 |
+
.wcps-container .wcps-theme1 div.wcps-items div.wcps-items-thumb {
|
22 |
+
line-height: 0;
|
23 |
+
overflow: hidden;
|
24 |
+
position: relative;
|
25 |
+
text-align: center;
|
26 |
+
}
|
27 |
+
|
28 |
+
.wcps-container .wcps-theme1 div.wcps-items div.wcps-items-thumb a {
|
29 |
+
color: rgb(255, 255, 255);
|
30 |
+
margin: 0;
|
31 |
+
padding: 0;
|
32 |
+
text-decoration: none;
|
33 |
+
width: 100%
|
34 |
+
}
|
35 |
+
|
36 |
+
.wcps-container .wcps-theme1 div.wcps-items div.wcps-items-thumb img {
|
37 |
+
-moz-border-radius: 0;
|
38 |
+
-webkit-border-radius: 0;
|
39 |
+
border-radius: 0;
|
40 |
+
-moz-box-shadow: none;
|
41 |
+
-webkit-box-shadow: none;
|
42 |
+
box-shadow: none;
|
43 |
+
margin: 0;
|
44 |
+
padding: 0;
|
45 |
+
width: 100%
|
46 |
+
}
|
47 |
+
|
48 |
+
.wcps-container .wcps-theme1 .wcps-terms {
|
49 |
+
display: none;
|
50 |
+
padding: 2px 10px 2px 25px;
|
51 |
+
text-align: center
|
52 |
+
}
|
53 |
+
|
54 |
+
.wcps-container .wcps-theme1 .wcps-items-title {
|
55 |
+
padding: 10px 12px;
|
56 |
+
text-align: left;
|
57 |
+
}
|
58 |
+
|
59 |
+
.wcps-container .wcps-theme1 .wcps-items-title a {
|
60 |
+
font-size: 16px;
|
61 |
+
font-weight: bold;
|
62 |
+
line-height: normal;
|
63 |
+
text-decoration: none;
|
64 |
+
}
|
65 |
+
|
66 |
+
.wcps-container .wcps-theme1 .wcps-items-excerpt {
|
67 |
+
font-size: 14px;
|
68 |
+
padding: 10px 12px;
|
69 |
+
text-align: left;
|
70 |
+
}
|
71 |
+
.wcps-container .wcps-theme1 .wcps-items-category {
|
72 |
+
padding: 5px 12px;
|
73 |
+
}
|
74 |
+
|
75 |
+
.wcps-container .wcps-theme1 .wcps-items-category a {
|
76 |
+
text-decoration: none;
|
77 |
+
}
|
78 |
+
|
79 |
+
.wcps-container .wcps-theme1 .wcps-items-rating {
|
80 |
+
padding: 5px 12px;
|
81 |
+
}
|
82 |
+
|
83 |
+
.wcps-container .wcps-theme1 .wcps-items-rating .star-rating{
|
84 |
+
font-size:1.5em;
|
85 |
+
}
|
86 |
+
|
87 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-price {
|
88 |
+
padding: 5px 12px;
|
89 |
+
text-align: left;
|
90 |
+
}
|
91 |
+
|
92 |
+
.wcps-container .wcps-theme1 .wcps-items-price ins {
|
93 |
+
background: none repeat scroll 0 0 rgba(0, 0, 0, 0)
|
94 |
+
}
|
95 |
+
|
96 |
+
.wcps-container .wcps-theme1 .wcps-items-cart {
|
97 |
+
padding: 10px 12px;
|
98 |
+
text-align: left;
|
99 |
+
}
|
100 |
+
|
101 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart p {
|
102 |
+
border: medium none !important;
|
103 |
+
margin: 0 !important;
|
104 |
+
padding: 0 !important
|
105 |
+
}
|
106 |
+
|
107 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart.custom span.amount {
|
108 |
+
font-size: 15px;
|
109 |
+
line-height: 15px
|
110 |
+
}
|
111 |
+
|
112 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart .amount, .wcps-container .wcps-theme1 div.wcps-items div.wcps-items-cart del, .wcps-container .wcps-theme1 div.wcps-items .wcps-items-cart ins, .wcps-container .wcps-theme1 div.wcps-items div.wcps-items-cart .woocommerce-price-suffix {
|
113 |
+
display: none
|
114 |
+
}
|
115 |
+
|
116 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart.custom a.add_to_cart_button {
|
117 |
+
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
118 |
+
border: medium none;
|
119 |
+
-moz-border-radius: 0;
|
120 |
+
-webkit-border-radius: 0;
|
121 |
+
border-radius: 0;
|
122 |
+
-moz-box-shadow: none;
|
123 |
+
-webkit-box-shadow: none;
|
124 |
+
box-shadow: none;
|
125 |
+
font-size: 12px;
|
126 |
+
line-height: 12px;
|
127 |
+
margin: 0;
|
128 |
+
padding: 10px 15px;
|
129 |
+
text-shadow: none
|
130 |
+
}
|
131 |
+
|
132 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart.custom a.added_to_cart {
|
133 |
+
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
134 |
+
border: medium none;
|
135 |
+
-moz-border-radius: 0;
|
136 |
+
-webkit-border-radius: 0;
|
137 |
+
border-radius: 0;
|
138 |
+
-moz-box-shadow: none;
|
139 |
+
-webkit-box-shadow: none;
|
140 |
+
box-shadow: none;
|
141 |
+
color: rgb(68, 68, 68);
|
142 |
+
font-size: 12px;
|
143 |
+
line-height: 12px;
|
144 |
+
margin-top: 15px;
|
145 |
+
padding: 10px 15px;
|
146 |
+
text-decoration: none;
|
147 |
+
text-shadow: none
|
148 |
+
}
|
149 |
+
|
150 |
+
.wcps-container .wcps-theme1 .wcps-items div.wcps-items-cart a.added {
|
151 |
+
display: none
|
152 |
+
}
|
153 |
+
|
154 |
+
.wcps-container .wcps-theme1 .owl-controls .owl-buttons div.owl-prev:hover {
|
155 |
+
background-image: url(images/arrow-prev.png);
|
156 |
+
background-color: #d5d5d5 !important
|
157 |
+
}
|
158 |
+
|
159 |
+
.wcps-container .wcps-theme1 .owl-controls .owl-buttons div.owl-next:hover {
|
160 |
+
background-image: url(images/arrow-next.png);
|
161 |
+
background-color: #d5d5d5 !important
|
162 |
+
}
|
163 |
+
|
164 |
+
.wcps-container .wcps-theme1 .owl-controls {
|
165 |
+
margin-top: 30px
|
166 |
+
}
|
themes/theme6/images/arrow-next.png
ADDED
Binary file
|
themes/theme6/images/arrow-prev.png
ADDED
Binary file
|
themes/theme6/images/tags.png
ADDED
Binary file
|
themes/theme6/index - Copy.php
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
include wcps_plugin_dir.'/templates/variables.php';
|
11 |
+
include wcps_plugin_dir.'/templates/custom-css.php';
|
12 |
+
|
13 |
+
|
14 |
+
$html.= '<div class="wcps-container '.$wcps_is_mobile.' " style="background-image:url('.$wcps_bg_img.')">';
|
15 |
+
|
16 |
+
include wcps_plugin_dir.'/templates/wcps-ribbon.php';
|
17 |
+
|
18 |
+
$html.= '<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">';
|
19 |
+
|
20 |
+
include wcps_plugin_dir.'/templates/query.php';
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
if ( $wp_query->have_posts() ) :
|
29 |
+
|
30 |
+
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
31 |
+
|
32 |
+
global $product;
|
33 |
+
|
34 |
+
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
40 |
+
|
41 |
+
$wcps_thumb_url = $wcps_thumb['0'];
|
42 |
+
|
43 |
+
if(empty($wcps_thumb_url))
|
44 |
+
{
|
45 |
+
$wcps_thumb_url = $wcps_items_empty_thumb;
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
$currency = get_woocommerce_currency_symbol();
|
51 |
+
|
52 |
+
$sale_price = get_post_meta( get_the_ID(), '_sale_price', true);
|
53 |
+
|
54 |
+
if($wcps_total_items_price_format=='full')
|
55 |
+
{
|
56 |
+
$price = $product->get_price_html();
|
57 |
+
}
|
58 |
+
elseif($wcps_total_items_price_format=='sale')
|
59 |
+
{
|
60 |
+
|
61 |
+
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
62 |
+
}
|
63 |
+
elseif($wcps_total_items_price_format=='regular')
|
64 |
+
{
|
65 |
+
|
66 |
+
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
67 |
+
|
68 |
+
}
|
69 |
+
else
|
70 |
+
{
|
71 |
+
$price = $product->get_price_html();
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
$product_cats = wp_get_post_terms( get_the_ID(), 'product_cat' );
|
80 |
+
$cat_link = array();
|
81 |
+
$cat_name = array();
|
82 |
+
|
83 |
+
|
84 |
+
foreach($product_cats as $key => $cat)
|
85 |
+
{
|
86 |
+
|
87 |
+
$cat_link[] = get_term_link( $cat->term_id, 'product_cat' );
|
88 |
+
$cat_name[] = $cat->name;
|
89 |
+
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|
96 |
+
if($wcps_items_thumb_link_to == 'product')
|
97 |
+
{
|
98 |
+
$permalink = get_permalink();
|
99 |
+
}
|
100 |
+
else if($wcps_items_thumb_link_to == 'category')
|
101 |
+
{
|
102 |
+
|
103 |
+
if(empty($cat_link[0]))
|
104 |
+
{
|
105 |
+
$permalink = get_permalink();
|
106 |
+
}
|
107 |
+
else
|
108 |
+
{
|
109 |
+
$permalink = $cat_link[0];
|
110 |
+
}
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
}
|
115 |
+
else
|
116 |
+
{
|
117 |
+
$permalink = get_permalink();
|
118 |
+
}
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
$html.= '<div class="wcps-items" >';
|
124 |
+
$html.= '<div style="max-height:'.$wcps_items_thumb_max_hieght.';" class="wcps-items-thumb"><a href="'.$permalink.'"><img alt="'.get_the_title().'" src="'.$wcps_thumb_url.'" /></a>';
|
125 |
+
|
126 |
+
if($wcps_featured=="yes" && $wcps_featured_display == 'yes')
|
127 |
+
{
|
128 |
+
$html.= '<div title="'.__('Featured Product','wcps').'" class="wcps-featured"></div>';
|
129 |
+
}
|
130 |
+
|
131 |
+
if(!empty($sale_price) && $wcps_sale_display == 'yes')
|
132 |
+
{
|
133 |
+
$html.= '<div title="'.__('Sale Product','wcps').'" class="wcps-sale"></div>';
|
134 |
+
}
|
135 |
+
|
136 |
+
$html.= '</div>';
|
137 |
+
|
138 |
+
$html.= '<div class="items-info">';
|
139 |
+
|
140 |
+
if(!empty($cat_name[0]) && $wcps_cat_display == 'yes')
|
141 |
+
{
|
142 |
+
$html.= '<div class="wcps-terms"><a href="'.$cat_link[0].'">'.$cat_name[0].'</a></div>';
|
143 |
+
}
|
144 |
+
|
145 |
+
|
146 |
+
if($wcps_items_title_display == 'yes')
|
147 |
+
{
|
148 |
+
include wcps_plugin_dir.'/templates/wcps-title.php';
|
149 |
+
}
|
150 |
+
|
151 |
+
|
152 |
+
if($wcps_items_price_display == 'yes')
|
153 |
+
{
|
154 |
+
include wcps_plugin_dir.'/templates/wcps-price.php';
|
155 |
+
}
|
156 |
+
if ( $wcps_ratings_display == 'yes' ) include wcps_plugin_dir.'/templates/wcps-ratings.php';
|
157 |
+
if($wcps_cart_display == 'yes')
|
158 |
+
{
|
159 |
+
include wcps_plugin_dir.'/templates/wcps-cart.php';
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
$html.= '</div>
|
164 |
+
</div>';
|
165 |
+
|
166 |
+
endwhile;
|
167 |
+
|
168 |
+
wp_reset_query();
|
169 |
+
|
170 |
+
else :
|
171 |
+
|
172 |
+
$html.= __('No Product to Slide','wcps');
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
endif;
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
$html.= '</div></div>';
|
181 |
+
|
182 |
+
include wcps_plugin_dir.'/templates/scripts.php';
|
themes/theme6/index.php
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* @Author ParaTheme
|
5 |
+
* Copyright: 2015 ParaTheme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
include wcps_plugin_dir.'/templates/variables.php';
|
11 |
+
include wcps_plugin_dir.'/templates/custom-css.php';
|
12 |
+
|
13 |
+
|
14 |
+
$html.= '<div class="wcps-container '.$wcps_is_mobile.' " style="background-image:url('.$wcps_bg_img.')">';
|
15 |
+
|
16 |
+
include wcps_plugin_dir.'/templates/wcps-ribbon.php';
|
17 |
+
|
18 |
+
$html.= '<div id="wcps-'.$post_id.'" class="owl-carousel wcps-'.$wcps_themes.'">';
|
19 |
+
|
20 |
+
include wcps_plugin_dir.'/templates/query.php';
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
if ( $wp_query->have_posts() ) :
|
29 |
+
|
30 |
+
while ( $wp_query->have_posts() ) : $wp_query->the_post();
|
31 |
+
|
32 |
+
global $product;
|
33 |
+
|
34 |
+
$wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
$wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
|
40 |
+
|
41 |
+
$wcps_thumb_url = $wcps_thumb['0'];
|
42 |
+
|
43 |
+
if(empty($wcps_thumb_url))
|
44 |
+
{
|
45 |
+
$wcps_thumb_url = $wcps_items_empty_thumb;
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
$currency = get_woocommerce_currency_symbol();
|
51 |
+
|
52 |
+
$sale_price = get_post_meta( get_the_ID(), '_sale_price', true);
|
53 |
+
|
54 |
+
if($wcps_total_items_price_format=='full')
|
55 |
+
{
|
56 |
+
$price = $product->get_price_html();
|
57 |
+
}
|
58 |
+
elseif($wcps_total_items_price_format=='sale')
|
59 |
+
{
|
60 |
+
|
61 |
+
$price= $currency.get_post_meta( get_the_ID(), '_sale_price', true);
|
62 |
+
}
|
63 |
+
elseif($wcps_total_items_price_format=='regular')
|
64 |
+
{
|
65 |
+
|
66 |
+
$price = $currency.get_post_meta( get_the_ID(), '_regular_price', true);
|
67 |
+
|
68 |
+
}
|
69 |
+
else
|
70 |
+
{
|
71 |
+
$price = $product->get_price_html();
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
if($wcps_items_thumb_link_to == 'product')
|
79 |
+
{
|
80 |
+
$permalink = get_permalink();
|
81 |
+
}
|
82 |
+
else if($wcps_items_thumb_link_to == 'category')
|
83 |
+
{
|
84 |
+
|
85 |
+
if(empty($cat_link[0]))
|
86 |
+
{
|
87 |
+
$permalink = get_permalink();
|
88 |
+
}
|
89 |
+
else
|
90 |
+
{
|
91 |
+
$permalink = $cat_link[0];
|
92 |
+
}
|
93 |
+
|
94 |
+
}
|
95 |
+
else
|
96 |
+
{
|
97 |
+
$permalink = get_permalink();
|
98 |
+
}
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
$html.= '<div class="wcps-items" >';
|
104 |
+
include wcps_plugin_dir.'/templates/wcps-thumb.php';
|
105 |
+
|
106 |
+
$html.= '<div class="items-info">';
|
107 |
+
|
108 |
+
foreach($wcps_grid_items as $item_key=>$item){
|
109 |
+
|
110 |
+
if($item_key!='thumb'){
|
111 |
+
|
112 |
+
if(empty($wcps_grid_items_hide[$item_key])){
|
113 |
+
include wcps_plugin_dir.'/templates/wcps-'.$item_key.'.php';
|
114 |
+
}
|
115 |
+
|
116 |
+
}
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
}
|
121 |
+
|
122 |
+
|
123 |
+
$html.= '</div>'; // .items-info
|
124 |
+
$html.= '</div>'; // .wcps-items
|
125 |
+
|
126 |
+
endwhile;
|
127 |
+
|
128 |
+
wp_reset_query();
|
129 |
+
|
130 |
+
else :
|
131 |
+
|
132 |
+
$html.= __('No Product to Slide','wcps');
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
endif;
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
$html.= '</div></div>';
|
141 |
+
|
142 |
+
include wcps_plugin_dir.'/templates/scripts.php';
|
themes/theme6/style.css
ADDED
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
|
5 |
+
.wcps-container .wcps-theme6 {
|
6 |
+
|
7 |
+
padding-bottom: 30px;
|
8 |
+
padding-top: 60px;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
12 |
+
.wcps-container .owl-carousel .owl-item {
|
13 |
+
padding: 10px 0;
|
14 |
+
}
|
15 |
+
|
16 |
+
.wcps-container .wcps-theme6 div.wcps-items {
|
17 |
+
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
|
18 |
+
margin: 0 10px;
|
19 |
+
overflow: hidden;
|
20 |
+
padding: 0;
|
21 |
+
position: relative;
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-thumb {
|
28 |
+
|
29 |
+
overflow: hidden;
|
30 |
+
position: relative;
|
31 |
+
text-align: center;
|
32 |
+
}
|
33 |
+
|
34 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-thumb a {
|
35 |
+
color: rgb(255, 255, 255);
|
36 |
+
margin: 0;
|
37 |
+
padding: 0;
|
38 |
+
text-decoration: none;
|
39 |
+
width: 100%;
|
40 |
+
}
|
41 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-thumb img {
|
42 |
+
border-radius: 0;
|
43 |
+
box-shadow: none;
|
44 |
+
margin: 0;
|
45 |
+
padding: 0;
|
46 |
+
width: 100%;
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
.wcps-container .wcps-theme6 .items-info {
|
51 |
+
background: none repeat scroll 0 0 rgba(51, 51, 51, 0.4);
|
52 |
+
height: 100%;
|
53 |
+
padding: 0;
|
54 |
+
position: absolute;
|
55 |
+
top: 0;
|
56 |
+
transform: scale(0);
|
57 |
+
transition: all 0.4s ease 0s;
|
58 |
+
width: 100%;
|
59 |
+
}
|
60 |
+
|
61 |
+
.wcps-container .wcps-theme6 .wcps-items:hover .items-info {
|
62 |
+
|
63 |
+
transform: scale(1);
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
+
|
68 |
+
.wcps-container .wcps-theme6 .wcps-terms {
|
69 |
+
display: none;
|
70 |
+
padding: 2px 10px 2px 25px;
|
71 |
+
text-align: center;
|
72 |
+
}
|
73 |
+
|
74 |
+
.wcps-container .wcps-theme6 div.wcps-items-title {
|
75 |
+
font-size: 14px;
|
76 |
+
font-weight: bold;
|
77 |
+
padding: 5px 10px;
|
78 |
+
text-align: left;
|
79 |
+
vertical-align: top;
|
80 |
+
}
|
81 |
+
|
82 |
+
.wcps-container .wcps-theme6 div.wcps-items-title a {
|
83 |
+
color: rgb(255, 255, 255);
|
84 |
+
text-decoration: none;
|
85 |
+
}
|
86 |
+
|
87 |
+
.wcps-container .wcps-theme6 .wcps-items-excerpt {
|
88 |
+
color: rgb(255, 255, 255);
|
89 |
+
font-size: 14px;
|
90 |
+
padding: 10px 12px;
|
91 |
+
text-align: left;
|
92 |
+
}
|
93 |
+
|
94 |
+
.wcps-container .wcps-theme6 .wcps-items-excerpt a{
|
95 |
+
color: rgb(255, 255, 255);
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
.wcps-container .wcps-theme6 .wcps-items-category {
|
100 |
+
color: rgb(255, 255, 255);
|
101 |
+
padding: 5px 12px;
|
102 |
+
}
|
103 |
+
|
104 |
+
.wcps-container .wcps-theme6 .wcps-items-category a {
|
105 |
+
color: rgb(255, 255, 255);
|
106 |
+
text-decoration: none;
|
107 |
+
}
|
108 |
+
|
109 |
+
.wcps-container .wcps-theme6 div.wcps-items-rating {
|
110 |
+
padding: 0px 10px;
|
111 |
+
}
|
112 |
+
|
113 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-price {
|
114 |
+
display: inline-block;
|
115 |
+
margin: 5px 0;
|
116 |
+
padding: 0 10px;
|
117 |
+
text-align: left;
|
118 |
+
}
|
119 |
+
.wcps-container .wcps-theme6 div.wcps-items-price del{
|
120 |
+
|
121 |
+
}
|
122 |
+
.wcps-container .wcps-theme6 div.wcps-items-price ins {
|
123 |
+
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
|
124 |
+
}
|
125 |
+
|
126 |
+
.wcps-container .wcps-theme6 div.wcps-items-cart {
|
127 |
+
margin: 0 10px;
|
128 |
+
padding: 5px 0;
|
129 |
+
text-align: left;
|
130 |
+
}
|
131 |
+
|
132 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart p {
|
133 |
+
border: medium none !important;
|
134 |
+
margin: 0 !important;
|
135 |
+
padding: 0 !important;
|
136 |
+
}
|
137 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart.custom span.amount {
|
138 |
+
font-size: 15px;
|
139 |
+
line-height: 15px;
|
140 |
+
}
|
141 |
+
|
142 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart del{
|
143 |
+
|
144 |
+
}
|
145 |
+
|
146 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart del span.amount{
|
147 |
+
|
148 |
+
}
|
149 |
+
|
150 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart ins {
|
151 |
+
|
152 |
+
}
|
153 |
+
|
154 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart ins span.amount{
|
155 |
+
|
156 |
+
}
|
157 |
+
|
158 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart span.amount{
|
159 |
+
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
|
165 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart .amount,
|
166 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart del,
|
167 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart ins,
|
168 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart .woocommerce-price-suffix
|
169 |
+
{
|
170 |
+
display:none; }
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart.custom a.add_to_cart_button {
|
175 |
+
background: rgb(41, 168, 242) none repeat scroll 0 0;
|
176 |
+
border: medium none;
|
177 |
+
border-radius: 0;
|
178 |
+
box-shadow: none;
|
179 |
+
color: rgb(255, 255, 255);
|
180 |
+
font-size: 12px;
|
181 |
+
font-weight: normal;
|
182 |
+
line-height: 12px;
|
183 |
+
margin: 0;
|
184 |
+
padding: 10px 15px;
|
185 |
+
text-shadow: none;
|
186 |
+
}
|
187 |
+
|
188 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart.custom a.added_to_cart {
|
189 |
+
background: none repeat scroll 0 0 rgb(13, 225, 133);
|
190 |
+
border: medium none;
|
191 |
+
border-radius: 0;
|
192 |
+
box-shadow: none;
|
193 |
+
color: rgb(68, 68, 68);
|
194 |
+
font-size: 12px;
|
195 |
+
line-height: 12px;
|
196 |
+
margin-top: 15px;
|
197 |
+
padding: 10px 15px;
|
198 |
+
text-decoration: none;
|
199 |
+
text-shadow: none;
|
200 |
+
}
|
201 |
+
|
202 |
+
.wcps-container .wcps-theme6 div.wcps-items div.wcps-items-cart a.added {
|
203 |
+
display: none;
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
.wcps-container .wcps-theme6 .owl-controls .owl-buttons div.owl-prev:hover{
|
213 |
+
background-image: url("images/arrow-prev.png") ;
|
214 |
+
background-color:#d5d5d5 !important; }
|
215 |
+
|
216 |
+
|
217 |
+
.wcps-container .wcps-theme6 .owl-controls .owl-buttons div.owl-next:hover{
|
218 |
+
background-image: url("images/arrow-next.png");
|
219 |
+
background-color:#d5d5d5 !important; }
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
.wcps-container .wcps-theme6 .owl-controls {
|
224 |
+
margin-top: 30px;
|
225 |
+
}
|
wcps-settings.php
DELETED
@@ -1,253 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if(empty($_POST['wcps_hidden']))
|
4 |
-
{
|
5 |
-
$wcps_ribbons = get_option( 'wcps_ribbons' );
|
6 |
-
|
7 |
-
|
8 |
-
}
|
9 |
-
else
|
10 |
-
{
|
11 |
-
|
12 |
-
|
13 |
-
if($_POST['wcps_hidden'] == 'Y') {
|
14 |
-
//Form data sent
|
15 |
-
|
16 |
-
$wcps_ribbons = stripslashes_deep($_POST['wcps_ribbons']);
|
17 |
-
update_option('wcps_ribbons', $wcps_ribbons);
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
?>
|
24 |
-
<div class="updated"><p><strong><?php _e('Changes Saved.' ); ?></strong></p></div>
|
25 |
-
|
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 |
-
|
42 |
-
|
43 |
-
|
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' );
|
51 |
-
do_settings_sections( 'wcps_plugin_options' );
|
52 |
-
|
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 |
-
'dis-10'=>'Discount 10%',
|
76 |
-
'dis-20'=>'Discount 20%',
|
77 |
-
'dis-30'=>'Discount 30%',
|
78 |
-
'dis-40'=>'Discount 40%',
|
79 |
-
'dis-50'=>'Discount 50%',
|
80 |
-
'dis-60'=>'Discount 60%',
|
81 |
-
'dis-70'=>'Discount 70%',
|
82 |
-
'dis-80'=>'Discount 80%',
|
83 |
-
'dis-90'=>'Discount 90%',
|
84 |
-
'dis-100'=>'Discount 100%',
|
85 |
-
'free'=>'Free',
|
86 |
-
'fresh'=>'Fresh',
|
87 |
-
'gift'=>'Gift',
|
88 |
-
'hot'=>'Hot',
|
89 |
-
'new'=>'New',
|
90 |
-
'top'=>'Top',
|
91 |
-
'save'=>'Save',
|
92 |
-
'sale'=>'Sale',
|
93 |
-
'pro'=>'Pro',
|
94 |
-
'best'=>'Best',
|
95 |
-
|
96 |
-
|
97 |
-
);
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
if(empty($wcps_ribbons))
|
107 |
-
{
|
108 |
-
$wcps_ribbons = array(
|
109 |
-
'dis-10'=>'dis-10',
|
110 |
-
'dis-20'=>'dis-20',
|
111 |
-
'dis-30'=>'dis-30',
|
112 |
-
'dis-40'=>'dis-40',
|
113 |
-
'dis-50'=>'dis-50',
|
114 |
-
'dis-60'=>'dis-60',
|
115 |
-
'dis-70'=>'dis-70',
|
116 |
-
'dis-80'=>'dis-80',
|
117 |
-
'dis-90'=>'dis-90',
|
118 |
-
'dis-100'=>'dis-100',
|
119 |
-
'free'=>'free',
|
120 |
-
'fresh'=>'fresh',
|
121 |
-
'gift'=>'gift',
|
122 |
-
'hot'=>'hot',
|
123 |
-
'new'=>'new',
|
124 |
-
'top'=>'top',
|
125 |
-
'save'=>'save',
|
126 |
-
'sale'=>'sale',
|
127 |
-
'pro'=>'pro',
|
128 |
-
'best'=>'best',
|
129 |
-
|
130 |
-
);
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
foreach($wcps_ribbons as $key =>$value)
|
136 |
-
{
|
137 |
-
echo '<tr>';
|
138 |
-
echo '<td width="120">'.$wcps_ribbons_des[$key].'</td>';
|
139 |
-
echo '<td width="120"><img src="'.wcps_plugin_url.'css/ribbons/'.$value.'.png" /></td>';
|
140 |
-
echo '<td width="320"><input class="wcps_ribbons" name="wcps_ribbons['.$key.']" type="text" value="'.wcps_plugin_url.'css/ribbons/'.$value.'.png"</td>';
|
141 |
-
echo '</tr>';
|
142 |
-
|
143 |
-
}
|
144 |
-
|
145 |
-
|
146 |
-
}
|
147 |
-
else
|
148 |
-
{
|
149 |
-
foreach($wcps_ribbons as $key =>$value)
|
150 |
-
{
|
151 |
-
echo '<tr>';
|
152 |
-
echo '<td width="120">'.$wcps_ribbons_des[$key].'</td>';
|
153 |
-
echo '<td width="120"><img src="'.$value.'" /></td>';
|
154 |
-
echo '<td width="320"><input size="30" class="wcps_ribbons" name="wcps_ribbons['.$key.']" type="text" value="'.$value.'"</td>';
|
155 |
-
echo '</tr>';
|
156 |
-
|
157 |
-
}
|
158 |
-
}
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
?>
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
</table>
|
171 |
-
</div>
|
172 |
-
|
173 |
-
<div class="option-box">
|
174 |
-
<p class="option-title"></p>
|
175 |
-
<p class="option-info"></p>
|
176 |
-
|
177 |
-
</div>
|
178 |
-
|
179 |
-
</li>
|
180 |
-
<li style="display: none;" class="box2 tab-box">
|
181 |
-
|
182 |
-
<div class="option-box">
|
183 |
-
<p class="option-title">Need Help ?</p>
|
184 |
-
<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 />
|
185 |
-
|
186 |
-
<?php
|
187 |
-
|
188 |
-
if($wcps_customer_type=="free")
|
189 |
-
{
|
190 |
-
|
191 |
-
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. ';
|
192 |
-
|
193 |
-
echo '<br /><a href="'.wcps_pro_url.'">'.wcps_pro_url.'</a>';
|
194 |
-
|
195 |
-
}
|
196 |
-
else
|
197 |
-
{
|
198 |
-
|
199 |
-
echo 'Thanks for using <strong> premium version '.$wcps_version.'</strong> of <strong>'.wcps_plugin_name.'</strong> ';
|
200 |
-
|
201 |
-
|
202 |
-
}
|
203 |
-
|
204 |
-
?>
|
205 |
-
|
206 |
-
|
207 |
-
</p>
|
208 |
-
|
209 |
-
</div>
|
210 |
-
<div class="option-box">
|
211 |
-
<p class="option-title">Submit Reviews...</p>
|
212 |
-
<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>
|
213 |
-
<img class="wcps-pro-pricing" src="<?php echo wcps_plugin_url."css/five-star.png";?>" /><br />
|
214 |
-
<a target="_blank" href="<?php echo wcps_wp_reviews; ?>">
|
215 |
-
<?php echo wcps_wp_reviews; ?>
|
216 |
-
</a>
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
</div>
|
221 |
-
<div class="option-box">
|
222 |
-
<p class="option-title">Please Share</p>
|
223 |
-
<p class="option-info">If you like this plugin please share with your social share network.</p>
|
224 |
-
<?php
|
225 |
-
|
226 |
-
echo wcps_share_plugin();
|
227 |
-
?>
|
228 |
-
</div>
|
229 |
-
<div class="option-box">
|
230 |
-
<p class="option-title">Video Tutorial</p>
|
231 |
-
<p class="option-info">Please watch this video tutorial.</p>
|
232 |
-
<iframe width="640" height="480" src="<?php echo wcps_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
|
233 |
-
</div>
|
234 |
-
|
235 |
-
|
236 |
-
</li>
|
237 |
-
|
238 |
-
</ul>
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
</div>
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
<p class="submit">
|
248 |
-
<input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes' ) ?>" />
|
249 |
-
</p>
|
250 |
-
</form>
|
251 |
-
|
252 |
-
|
253 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
woocommerce-products-slider.php
CHANGED
@@ -3,139 +3,99 @@
|
|
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.
|
7 |
Author: paratheme
|
8 |
Author URI: http://paratheme.com
|
9 |
-
License:
|
10 |
-
License URI: http://
|
11 |
*/
|
12 |
|
13 |
-
|
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');
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
//wp_localize_script('wcps_js', 'wcps_ajax', array( 'wcps_ajaxurl' => admin_url( 'admin-ajax.php')));
|
42 |
wp_enqueue_style('wcps_style', wcps_plugin_url.'css/style.css');
|
43 |
|
44 |
wp_enqueue_script('owl.carousel', plugins_url( '/js/owl.carousel.js' , __FILE__ ) , array( 'jquery' ));
|
45 |
wp_enqueue_style('owl.carousel', wcps_plugin_url.'css/owl.carousel.css');
|
46 |
wp_enqueue_style('owl.theme', wcps_plugin_url.'css/owl.theme.css');
|
|
|
47 |
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
-
|
50 |
-
|
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 |
-
|
58 |
-
|
59 |
-
wp_enqueue_style('wcps-style-rossi', wcps_plugin_url.'themes/rossi/style.css');
|
60 |
-
|
61 |
-
}
|
62 |
-
add_action("init","wcps_init_scripts");
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
add_action( 'admin_enqueue_scripts', 'wp_enqueue_media' ); // to work upload button
|
67 |
-
add_filter('widget_text', 'do_shortcode'); //shoer-code support into sidebar.
|
68 |
-
|
69 |
-
|
70 |
-
register_activation_hook(__FILE__, 'wcps_activation');
|
71 |
-
|
72 |
-
|
73 |
-
function wcps_activation()
|
74 |
-
{
|
75 |
-
$wcps_version= "1.5";
|
76 |
-
update_option('wcps_version', $wcps_version); //update plugin version.
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
}
|
82 |
|
|
|
83 |
|
84 |
-
function wcps_display($atts, $content = null ) {
|
85 |
-
$atts = shortcode_atts(
|
86 |
-
array(
|
87 |
-
'id' => "",
|
88 |
-
|
89 |
-
), $atts);
|
90 |
-
|
91 |
-
|
92 |
-
$post_id = $atts['id'];
|
93 |
-
|
94 |
-
$wcps_themes = get_post_meta( $post_id, 'wcps_themes', true );
|
95 |
-
|
96 |
-
$wcps_display ="";
|
97 |
-
|
98 |
-
if($wcps_themes== "flat")
|
99 |
-
{
|
100 |
-
$wcps_display.= wcps_body_flat($post_id);
|
101 |
-
}
|
102 |
-
|
103 |
-
else if($wcps_themes== "rossi")
|
104 |
-
{
|
105 |
-
$wcps_display.= wcps_body_rossi($post_id);
|
106 |
-
}
|
107 |
-
|
108 |
-
else
|
109 |
-
{
|
110 |
-
$wcps_display.= wcps_body_flat($post_id);
|
111 |
-
}
|
112 |
-
|
113 |
-
return $wcps_display;
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
add_shortcode('wcps', 'wcps_display');
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
add_action('admin_menu', 'wcps_menu_init');
|
125 |
-
|
126 |
-
function wcps_menu_settings(){
|
127 |
-
include('wcps-settings.php');
|
128 |
-
}
|
129 |
-
|
130 |
-
function wcps_menu_init() {
|
131 |
-
add_submenu_page('edit.php?post_type=wcps', __('Settings','menu-wpt'), __('Settings','menu-wpt'), 'manage_options', 'wcps_menu_settings', 'wcps_menu_settings');
|
132 |
-
|
133 |
-
|
134 |
-
}
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
?>
|
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.8
|
7 |
Author: paratheme
|
8 |
Author URI: http://paratheme.com
|
9 |
+
License: Custom support@paratheme.com
|
10 |
+
License URI: http://paratheme.com/copyright/
|
11 |
*/
|
12 |
|
13 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
15 |
|
16 |
+
class WoocommerceProductsSlider{
|
17 |
+
|
18 |
+
public function __construct(){
|
19 |
+
|
20 |
+
define('wcps_plugin_url', plugins_url('/', __FILE__) );
|
21 |
+
define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
|
22 |
+
define('wcps_wp_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
|
23 |
+
define('wcps_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/woocommerce-products-slider' );
|
24 |
+
define('wcps_pro_url','http://paratheme.com/items/woocommerce-product-slider-for-wordpress/' );
|
25 |
+
define('wcps_demo_url', 'product-slider.com' );
|
26 |
+
define('wcps_conatct_url', 'http://paratheme.com/contact/' );
|
27 |
+
define('wcps_qa_url', 'http://paratheme.com/qa/' );
|
28 |
+
define('wcps_plugin_name', 'Woocommerce Products Slider' );
|
29 |
+
define('wcps_plugin_version', '1.8' );
|
30 |
+
define('wcps_customer_type', 'free' ); // pro & free
|
31 |
+
define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
|
32 |
+
define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );
|
33 |
+
|
34 |
+
|
35 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-meta.php');
|
36 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/wcps-functions.php');
|
37 |
+
|
38 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-functions.php');
|
39 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes.php');
|
40 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings.php');
|
41 |
+
|
42 |
+
|
43 |
+
// to work upload button
|
44 |
+
add_action( 'admin_enqueue_scripts', 'wp_enqueue_media' );
|
45 |
+
|
46 |
+
//shoer-code support into sidebar.
|
47 |
+
add_filter('widget_text', 'do_shortcode');
|
48 |
+
|
49 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'wcps_front_scripts' ) );
|
50 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'wcps_admin_scripts' ) );
|
51 |
+
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
public function wcps_install(){
|
56 |
+
|
57 |
+
do_action( 'wcps_action_install' );
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
public function wcps_uninstall(){
|
62 |
+
|
63 |
+
do_action( 'wcps_action_uninstall' );
|
64 |
+
}
|
65 |
+
|
66 |
+
public function wcps_deactivation(){
|
67 |
+
|
68 |
+
do_action( 'wcps_action_deactivation' );
|
69 |
+
}
|
70 |
+
|
71 |
+
public function wcps_front_scripts(){
|
72 |
|
|
|
73 |
wp_enqueue_style('wcps_style', wcps_plugin_url.'css/style.css');
|
74 |
|
75 |
wp_enqueue_script('owl.carousel', plugins_url( '/js/owl.carousel.js' , __FILE__ ) , array( 'jquery' ));
|
76 |
wp_enqueue_style('owl.carousel', wcps_plugin_url.'css/owl.carousel.css');
|
77 |
wp_enqueue_style('owl.theme', wcps_plugin_url.'css/owl.theme.css');
|
78 |
+
}
|
79 |
|
80 |
+
public function wcps_admin_scripts(){
|
81 |
+
|
82 |
+
wp_enqueue_script('jquery');
|
83 |
+
wp_enqueue_script('wcps_js', plugins_url( '/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
|
84 |
+
wp_localize_script('wcps_js', 'wcps_ajax', array( 'wcps_ajaxurl' => admin_url( 'admin-ajax.php')));
|
85 |
|
86 |
+
|
87 |
+
wp_enqueue_style('wcps_style', wcps_plugin_url.'admin/css/style.css');
|
88 |
|
89 |
//ParaAdmin
|
90 |
+
wp_enqueue_style('ParaAdmin', wcps_plugin_url.'ParaAdmin/css/ParaAdmin.css');
|
|
|
91 |
wp_enqueue_script('ParaAdmin', plugins_url( 'ParaAdmin/js/ParaAdmin.js' , __FILE__ ) , array( 'jquery' ));
|
92 |
|
93 |
+
wp_enqueue_style( 'wp-color-picker' );
|
94 |
+
wp_enqueue_script( 'wcps_color_picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
+
}
|
97 |
+
|
|
|
98 |
}
|
99 |
|
100 |
+
new WoocommerceProductsSlider();
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|