Version Description
- Brand New UI, Drag and Drop option, organize within the pages, posts and media library
Download this release
Release Info
Developer | galdub |
Plugin | Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 2.0.1
- assets/css/admin-setting.css +780 -0
- assets/css/design.css +816 -0
- assets/css/folder-icon.css +81 -0
- assets/css/sweetalert2.min.css +1 -0
- assets/fonts/folder-icon.eot +0 -0
- assets/fonts/folder-icon.svg +46 -0
- assets/fonts/folder-icon.ttf +0 -0
- assets/fonts/folder-icon.woff +0 -0
- assets/images/ajax-loader.gif +0 -0
- assets/images/client-image.jpg +0 -0
- assets/images/form-loader.png +0 -0
- assets/images/rpt_recommended.png +0 -0
- assets/img/folder-icon-pages.png +0 -0
- assets/img/folder-icon-posts.png +0 -0
- assets/img/folder-icon.png +0 -0
- assets/js/custom.js +841 -0
- assets/js/sweetalert.all.min.js +10 -0
- assets/screenshot-1.jpg +0 -0
- assets/screenshot-2.jpg +0 -0
- folders.php +11 -69
- includes/GMMediaTags.class.php +0 -98
- includes/GMMediaTags.js +0 -120
- includes/GMMediaTagsAdmin.class.php +0 -319
- includes/folders.class.php +1156 -0
- includes/form.class.php +52 -0
- includes/options.php +0 -87
- includes/plugin.updates.php +564 -0
- includes/tree.class.php +82 -0
- includes/types.php +0 -204
- license.txt +0 -694
- readme.txt +91 -13
- templates/admin/admin-content.php +63 -0
- templates/admin/general-settings.php +79 -0
- templates/admin/upgrade-to-pro.php +187 -0
- uninstall.php +0 -10
assets/css/admin-setting.css
ADDED
@@ -0,0 +1,780 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
10 |
+
|
11 |
+
.rpt_2_plans .rpt_plan {
|
12 |
+
margin-right: 2%;
|
13 |
+
width: 49%;
|
14 |
+
float: left
|
15 |
+
}
|
16 |
+
|
17 |
+
.rpt_2_plans .rpt_plan:last-child {
|
18 |
+
margin-right: 0
|
19 |
+
}
|
20 |
+
|
21 |
+
.rpt_3_plans .rpt_plan {
|
22 |
+
margin-right: 2%;
|
23 |
+
width: 32%;
|
24 |
+
float: left
|
25 |
+
}
|
26 |
+
|
27 |
+
.rpt_3_plans .rpt_plan:last-child {
|
28 |
+
margin-right: 0
|
29 |
+
}
|
30 |
+
|
31 |
+
.rpt_4_plans .rpt_plan {
|
32 |
+
margin-right: 1%;
|
33 |
+
width: 24.25%;
|
34 |
+
float: left
|
35 |
+
}
|
36 |
+
|
37 |
+
.rpt_4_plans .rpt_plan:last-child {
|
38 |
+
margin-right: 0
|
39 |
+
}
|
40 |
+
|
41 |
+
.rpt_5_plans .rpt_plan {
|
42 |
+
margin-right: .5%;
|
43 |
+
width: 19.6%;
|
44 |
+
float: left
|
45 |
+
}
|
46 |
+
|
47 |
+
.rpt_5_plans .rpt_plan:last-child {
|
48 |
+
margin-right: 0
|
49 |
+
}
|
50 |
+
|
51 |
+
.rpt_style_bic .rpt_plan, .rpt_style_loc .rpt_plan {
|
52 |
+
-webkit-box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19);
|
53 |
+
-moz-box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19);
|
54 |
+
box-shadow: 1px 1px 3px 0 rgba(50, 50, 50, .19)
|
55 |
+
}
|
56 |
+
|
57 |
+
.rpt_plans .rpt_plan .rpt_title img {
|
58 |
+
margin-right: 10px;
|
59 |
+
position: relative;
|
60 |
+
vertical-align: middle
|
61 |
+
}
|
62 |
+
|
63 |
+
.rpt_plans .rpt_plan .rpt_title {
|
64 |
+
background: #23282d;
|
65 |
+
font-weight: 300;
|
66 |
+
padding: 24px 18px;
|
67 |
+
font-size: 26px;
|
68 |
+
color: #fff;
|
69 |
+
line-height: 35px;
|
70 |
+
height: auto
|
71 |
+
}
|
72 |
+
|
73 |
+
.rpt_plans .rpt_plan .rpt_title span {
|
74 |
+
display: inline-block;
|
75 |
+
position: relative;
|
76 |
+
top: -10px
|
77 |
+
}
|
78 |
+
|
79 |
+
.rpt_style_basic .rpt_plan .rpt_title {
|
80 |
+
border-bottom: #23282d solid 1px;
|
81 |
+
border-top-left-radius: 8px;
|
82 |
+
border-top-right-radius: 8px
|
83 |
+
}
|
84 |
+
|
85 |
+
.rpt_style_spec .rpt_plan .rpt_title {
|
86 |
+
color: #fff
|
87 |
+
}
|
88 |
+
|
89 |
+
.rpt_style_bic .rpt_plan .rpt_title, .rpt_style_loc .rpt_plan .rpt_title, .rpt_style_swl .rpt_plan .rpt_title {
|
90 |
+
background: #333
|
91 |
+
}
|
92 |
+
|
93 |
+
.rpt_plans .rpt_sm_title .rpt_plan .rpt_title {
|
94 |
+
font-size: 20px;
|
95 |
+
line-height: 18px
|
96 |
+
}
|
97 |
+
|
98 |
+
.rpt_plans .rpt_xsm_title .rpt_plan .rpt_title {
|
99 |
+
font-size: 15px;
|
100 |
+
line-height: 15px
|
101 |
+
}
|
102 |
+
|
103 |
+
.rpt_4_plans .rpt_plan .rpt_title {
|
104 |
+
font-size: 17px;
|
105 |
+
line-height: 15px
|
106 |
+
}
|
107 |
+
|
108 |
+
.rpt_4_plans .rpt_sm_title .rpt_plan .rpt_title {
|
109 |
+
font-size: 15px;
|
110 |
+
line-height: 13px
|
111 |
+
}
|
112 |
+
|
113 |
+
.rpt_4_plans .rpt_xsm_title .rpt_plan .rpt_title {
|
114 |
+
font-size: 13px;
|
115 |
+
line-height: 11px
|
116 |
+
}
|
117 |
+
|
118 |
+
.rpt_5_plans .rpt_plan .rpt_title {
|
119 |
+
font-size: 15px;
|
120 |
+
line-height: 13px
|
121 |
+
}
|
122 |
+
|
123 |
+
.rpt_5_plans .rpt_sm_title .rpt_plan .rpt_title {
|
124 |
+
font-size: 13px;
|
125 |
+
line-height: 11px
|
126 |
+
}
|
127 |
+
|
128 |
+
.rpt_5_plans .rpt_xsm_title .rpt_plan .rpt_title {
|
129 |
+
font-size: 12px;
|
130 |
+
line-height: 10px
|
131 |
+
}
|
132 |
+
|
133 |
+
.rpt_plans .rpt_recommended_plan .rpt_title {
|
134 |
+
background: #23282d
|
135 |
+
}
|
136 |
+
|
137 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
138 |
+
position: relative;
|
139 |
+
top: -44px;
|
140 |
+
left: -10px;
|
141 |
+
font-size: 35px;
|
142 |
+
line-height: 0
|
143 |
+
}
|
144 |
+
|
145 |
+
.rpt_4_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
146 |
+
top: -36px
|
147 |
+
}
|
148 |
+
|
149 |
+
.rpt_5_plans .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
150 |
+
top: -26px
|
151 |
+
}
|
152 |
+
|
153 |
+
.rpt_sm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
154 |
+
font-size: 30px;
|
155 |
+
top: -44px;
|
156 |
+
left: -4px
|
157 |
+
}
|
158 |
+
|
159 |
+
.rpt_xsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
160 |
+
font-size: 25px;
|
161 |
+
top: -30px;
|
162 |
+
left: -4px
|
163 |
+
}
|
164 |
+
|
165 |
+
.rpt_xxsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency {
|
166 |
+
font-size: 21px;
|
167 |
+
top: -14px;
|
168 |
+
left: -4px
|
169 |
+
}
|
170 |
+
|
171 |
+
.rpt_style_basic .rpt_plan .rpt_head {
|
172 |
+
background: #9c9c9c
|
173 |
+
}
|
174 |
+
|
175 |
+
.rpt_style_spec .rpt_plan .rpt_head {
|
176 |
+
background: #222
|
177 |
+
}
|
178 |
+
|
179 |
+
.rpt_style_swl .rpt_plan .rpt_head {
|
180 |
+
background: #fff
|
181 |
+
}
|
182 |
+
|
183 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_price {
|
184 |
+
padding: 6px 10px;
|
185 |
+
font-size: 74px;
|
186 |
+
line-height: 100px;
|
187 |
+
font-weight: 300;
|
188 |
+
text-align: center;
|
189 |
+
color: #fff
|
190 |
+
}
|
191 |
+
|
192 |
+
.rpt_style_basic .rpt_plan .rpt_head .rpt_price, .rpt_style_spec .rpt_plan .rpt_head .rpt_price {
|
193 |
+
text-shadow: 1px 2px 7px rgba(0, 0, 0, .6)
|
194 |
+
}
|
195 |
+
|
196 |
+
.rpt_style_swl .rpt_plan .rpt_head .rpt_price {
|
197 |
+
color: #000
|
198 |
+
}
|
199 |
+
|
200 |
+
.rpt_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
|
201 |
+
font-size: 62px
|
202 |
+
}
|
203 |
+
|
204 |
+
.rpt_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
|
205 |
+
font-size: 56px
|
206 |
+
}
|
207 |
+
|
208 |
+
.rpt_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
|
209 |
+
font-size: 38px
|
210 |
+
}
|
211 |
+
|
212 |
+
.rpt_4_plans .rpt_plan .rpt_head .rpt_price {
|
213 |
+
font-size: 69px;
|
214 |
+
line-height: 80px
|
215 |
+
}
|
216 |
+
|
217 |
+
.rpt_4_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
|
218 |
+
font-size: 53px;
|
219 |
+
line-height: 65px
|
220 |
+
}
|
221 |
+
|
222 |
+
.rpt_4_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
|
223 |
+
font-size: 47px;
|
224 |
+
line-height: 64px
|
225 |
+
}
|
226 |
+
|
227 |
+
.rpt_4_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
|
228 |
+
font-size: 31px;
|
229 |
+
line-height: 60px
|
230 |
+
}
|
231 |
+
|
232 |
+
.rpt_5_plans .rpt_plan .rpt_head .rpt_price {
|
233 |
+
font-size: 59px;
|
234 |
+
line-height: 80px
|
235 |
+
}
|
236 |
+
|
237 |
+
.rpt_5_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price {
|
238 |
+
font-size: 44px;
|
239 |
+
line-height: 60px
|
240 |
+
}
|
241 |
+
|
242 |
+
.rpt_5_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price {
|
243 |
+
font-size: 37px;
|
244 |
+
line-height: 53px
|
245 |
+
}
|
246 |
+
|
247 |
+
.rpt_5_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price {
|
248 |
+
font-size: 24px;
|
249 |
+
line-height: 50px
|
250 |
+
}
|
251 |
+
|
252 |
+
.rpt_plans .rpt_recommended_plan .rpt_head .rpt_price {
|
253 |
+
font-size: 98px
|
254 |
+
}
|
255 |
+
|
256 |
+
.rpt_4_plans .rpt_recommended_plan .rpt_head .rpt_price {
|
257 |
+
font-size: 74px
|
258 |
+
}
|
259 |
+
|
260 |
+
.rpt_5_plans .rpt_recommended_plan .rpt_head .rpt_price {
|
261 |
+
font-size: 67px
|
262 |
+
}
|
263 |
+
|
264 |
+
.rpt_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
265 |
+
font-size: 83px
|
266 |
+
}
|
267 |
+
|
268 |
+
.rpt_4_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
269 |
+
font-size: 60px
|
270 |
+
}
|
271 |
+
|
272 |
+
.rpt_5_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
273 |
+
font-size: 54px
|
274 |
+
}
|
275 |
+
|
276 |
+
.rpt_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
277 |
+
font-size: 55px
|
278 |
+
}
|
279 |
+
|
280 |
+
.rpt_4_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
281 |
+
font-size: 49px
|
282 |
+
}
|
283 |
+
|
284 |
+
.rpt_5_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
285 |
+
font-size: 41px
|
286 |
+
}
|
287 |
+
|
288 |
+
.rpt_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
289 |
+
font-size: 42px
|
290 |
+
}
|
291 |
+
|
292 |
+
.rpt_4_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
293 |
+
font-size: 34px
|
294 |
+
}
|
295 |
+
|
296 |
+
.rpt_5_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price {
|
297 |
+
font-size: 26px
|
298 |
+
}
|
299 |
+
|
300 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_recurrence {
|
301 |
+
font-size: 13px;
|
302 |
+
font-weight: 300;
|
303 |
+
line-height: 18px;
|
304 |
+
padding: 20px 40px 10px;
|
305 |
+
color: #d3d3d3;
|
306 |
+
text-align: center
|
307 |
+
}
|
308 |
+
|
309 |
+
.rpt_style_spec .rpt_plan .rpt_head .rpt_recurrence {
|
310 |
+
color: #d3d3d3
|
311 |
+
}
|
312 |
+
|
313 |
+
.rpt_style_bic .rpt_plan .rpt_head .rpt_recurrence, .rpt_style_loc .rpt_plan .rpt_head .rpt_recurrence {
|
314 |
+
color: #f5f5f5
|
315 |
+
}
|
316 |
+
|
317 |
+
.rpt_style_swl .rpt_plan .rpt_head .rpt_recurrence {
|
318 |
+
color: grey
|
319 |
+
}
|
320 |
+
|
321 |
+
.rpt_plans .rpt_sm_recurrence .rpt_plan .rpt_head .rpt_recurrence {
|
322 |
+
font-size: 11px;
|
323 |
+
padding: 20px 40px 4px
|
324 |
+
}
|
325 |
+
|
326 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_subtitle {
|
327 |
+
font-size: 16px;
|
328 |
+
line-height: 20px;
|
329 |
+
font-weight: 300;
|
330 |
+
text-align: center;
|
331 |
+
padding: 10px 30px 20px
|
332 |
+
}
|
333 |
+
|
334 |
+
.rpt_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
335 |
+
font-size: 14px
|
336 |
+
}
|
337 |
+
|
338 |
+
.rpt_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
339 |
+
font-size: 12px
|
340 |
+
}
|
341 |
+
|
342 |
+
.rpt_4_plans .rpt_plan .rpt_head .rpt_subtitle {
|
343 |
+
font-size: 16px;
|
344 |
+
line-height: 18px;
|
345 |
+
padding: 10px 10px 20px
|
346 |
+
}
|
347 |
+
|
348 |
+
.rpt_4_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
349 |
+
font-size: 14px;
|
350 |
+
line-height: 17px
|
351 |
+
}
|
352 |
+
|
353 |
+
.rpt_4_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
354 |
+
font-size: 13px;
|
355 |
+
line-height: 16px
|
356 |
+
}
|
357 |
+
|
358 |
+
.rpt_5_plans .rpt_plan .rpt_head .rpt_subtitle {
|
359 |
+
font-size: 15px;
|
360 |
+
line-height: 18px;
|
361 |
+
padding: 10px 10px 20px
|
362 |
+
}
|
363 |
+
|
364 |
+
.rpt_5_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
365 |
+
font-size: 13px;
|
366 |
+
line-height: 17px
|
367 |
+
}
|
368 |
+
|
369 |
+
.rpt_5_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle {
|
370 |
+
font-size: 12px;
|
371 |
+
line-height: 16px
|
372 |
+
}
|
373 |
+
|
374 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_description {
|
375 |
+
font-size: 14px;
|
376 |
+
line-height: 20px;
|
377 |
+
padding: 0 20px 30px;
|
378 |
+
font-weight: 300;
|
379 |
+
text-align: center;
|
380 |
+
color: #fff
|
381 |
+
}
|
382 |
+
|
383 |
+
.rpt_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
|
384 |
+
font-size: 12px
|
385 |
+
}
|
386 |
+
|
387 |
+
.rpt_style_bic .rpt_plan .rpt_head .rpt_description, .rpt_style_loc .rpt_plan .rpt_head .rpt_description {
|
388 |
+
color: #f5f5f5
|
389 |
+
}
|
390 |
+
|
391 |
+
.rpt_4_plans .rpt_plan .rpt_head .rpt_description {
|
392 |
+
font-size: 13px;
|
393 |
+
line-height: 18px
|
394 |
+
}
|
395 |
+
|
396 |
+
.rpt_4_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
|
397 |
+
font-size: 12px;
|
398 |
+
line-height: 17px
|
399 |
+
}
|
400 |
+
|
401 |
+
.rpt_5_plans .rpt_plan .rpt_head .rpt_description {
|
402 |
+
font-size: 12px;
|
403 |
+
line-height: 18px
|
404 |
+
}
|
405 |
+
|
406 |
+
.rpt_5_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description {
|
407 |
+
font-size: 11px;
|
408 |
+
line-height: 17px
|
409 |
+
}
|
410 |
+
|
411 |
+
.rpt_plans .rpt_plan .rpt_features {
|
412 |
+
padding: 20px;
|
413 |
+
background: #f5f5f5;
|
414 |
+
text-align: center
|
415 |
+
}
|
416 |
+
|
417 |
+
.rpt_plans .rpt_plan .rpt_features .rpt_feature {
|
418 |
+
font-size: 16px;
|
419 |
+
padding: 6px 16px;
|
420 |
+
border-bottom: 1px dotted #d3d3d3
|
421 |
+
}
|
422 |
+
|
423 |
+
.rpt_plans .rpt_plan .rpt_features .rpt_feature:last-child {
|
424 |
+
border-bottom: none
|
425 |
+
}
|
426 |
+
|
427 |
+
.rpt_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
|
428 |
+
font-size: 14px
|
429 |
+
}
|
430 |
+
|
431 |
+
.rpt_style_bic .rpt_plan .rpt_features, .rpt_style_loc .rpt_plan .rpt_features, .rpt_style_swl .rpt_plan .rpt_features {
|
432 |
+
background: #fff
|
433 |
+
}
|
434 |
+
|
435 |
+
.rpt_style_swl .rpt_plan .rpt_features .rpt_feature {
|
436 |
+
padding: 5px 16px
|
437 |
+
}
|
438 |
+
|
439 |
+
.rpt_4_plans .rpt_plan .rpt_features .rpt_feature {
|
440 |
+
padding: 6px 10px;
|
441 |
+
font-size: 14px
|
442 |
+
}
|
443 |
+
|
444 |
+
.rpt_4_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
|
445 |
+
font-size: 12px
|
446 |
+
}
|
447 |
+
|
448 |
+
.rpt_5_plans .rpt_plan .rpt_features .rpt_feature {
|
449 |
+
padding: 6px 10px;
|
450 |
+
font-size: 13px
|
451 |
+
}
|
452 |
+
|
453 |
+
.rpt_5_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature {
|
454 |
+
font-size: 11px
|
455 |
+
}
|
456 |
+
|
457 |
+
.rpt_plans .rpt_plan .rpt_foot {
|
458 |
+
display: block;
|
459 |
+
padding: 10px 30px;
|
460 |
+
border-top: #f5f5f5 solid 2px;
|
461 |
+
text-align: center;
|
462 |
+
color: #fff;
|
463 |
+
font-size: 24px;
|
464 |
+
text-decoration: none;
|
465 |
+
font-weight: 300;
|
466 |
+
transition: All .5s ease;
|
467 |
+
-webkit-transition: All .5s ease;
|
468 |
+
-moz-transition: All .5s ease;
|
469 |
+
-o-transition: All .5s ease
|
470 |
+
}
|
471 |
+
|
472 |
+
.rpt_plans .rpt_sm_button .rpt_plan .rpt_foot {
|
473 |
+
font-size: 19px
|
474 |
+
}
|
475 |
+
|
476 |
+
.rpt_style_basic .rpt_plan .rpt_foot {
|
477 |
+
border-bottom-left-radius: 8px;
|
478 |
+
border-bottom-right-radius: 8px
|
479 |
+
}
|
480 |
+
|
481 |
+
.rpt_style_swl .rpt_plan .rpt_foot {
|
482 |
+
border-top: none;
|
483 |
+
padding: 10px 30px 20px;
|
484 |
+
color: #000;
|
485 |
+
background: #333
|
486 |
+
}
|
487 |
+
|
488 |
+
.rpt_4_plans .rpt_plan .rpt_foot {
|
489 |
+
padding: 4px 20px;
|
490 |
+
font-size: 19px
|
491 |
+
}
|
492 |
+
|
493 |
+
.rpt_4_plans .rpt_sm_button .rpt_plan .rpt_foot, .rpt_5_plans .rpt_plan .rpt_foot {
|
494 |
+
padding: 4px 20px;
|
495 |
+
font-size: 17px
|
496 |
+
}
|
497 |
+
|
498 |
+
.rpt_5_plans .rpt_sm_button .rpt_plan .rpt_foot {
|
499 |
+
font-size: 16px
|
500 |
+
}
|
501 |
+
|
502 |
+
.rpt_plans .rpt_plan .rpt_foot:hover {
|
503 |
+
opacity: .8
|
504 |
+
}
|
505 |
+
|
506 |
+
.rpt_style_swl .rpt_plan .rpt_foot:hover {
|
507 |
+
opacity: 1
|
508 |
+
}
|
509 |
+
|
510 |
+
.rpt_plans .rpt_recommended_plan .rpt_foot {
|
511 |
+
font-size: 30px;
|
512 |
+
padding: 16px 0
|
513 |
+
}
|
514 |
+
|
515 |
+
.rpt_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
|
516 |
+
font-size: 26px
|
517 |
+
}
|
518 |
+
|
519 |
+
.rpt_4_plans .rpt_recommended_plan .rpt_foot {
|
520 |
+
font-size: 22px;
|
521 |
+
font-weight: 300;
|
522 |
+
padding: 10px 0
|
523 |
+
}
|
524 |
+
|
525 |
+
.rpt_4_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
|
526 |
+
font-size: 19px;
|
527 |
+
padding: 10px 0
|
528 |
+
}
|
529 |
+
|
530 |
+
.rpt_5_plans .rpt_recommended_plan .rpt_foot {
|
531 |
+
font-size: 20px;
|
532 |
+
font-weight: 300;
|
533 |
+
padding: 10px 0
|
534 |
+
}
|
535 |
+
|
536 |
+
.rpt_5_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot {
|
537 |
+
font-size: 18px;
|
538 |
+
padding: 10px 0
|
539 |
+
}
|
540 |
+
|
541 |
+
.rpt_custom_btn {
|
542 |
+
border-bottom-left-radius: 5px;
|
543 |
+
border-bottom-right-radius: 5px;
|
544 |
+
text-align: center;
|
545 |
+
padding: 16px 20px
|
546 |
+
}
|
547 |
+
|
548 |
+
.rpt_plans .rpt_recommended_plan {
|
549 |
+
position: relative;
|
550 |
+
top: -10px
|
551 |
+
}
|
552 |
+
|
553 |
+
.rpt_recommended_plan img.rpt_recommended {
|
554 |
+
position: absolute !important;
|
555 |
+
right: 10px !important
|
556 |
+
}
|
557 |
+
|
558 |
+
.rpt_style_bic .rpt_recommended_plan, .rpt_style_loc .rpt_recommended_plan {
|
559 |
+
-webkit-box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39);
|
560 |
+
-moz-box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39);
|
561 |
+
box-shadow: 1px 1px 6px 0 rgba(50, 50, 50, .39)
|
562 |
+
}
|
563 |
+
|
564 |
+
a.rpt_tooltip {
|
565 |
+
display: block;
|
566 |
+
outline: 0;
|
567 |
+
position: relative
|
568 |
+
}
|
569 |
+
|
570 |
+
a.rpt_tooltip strong {
|
571 |
+
line-height: 30px
|
572 |
+
}
|
573 |
+
|
574 |
+
a.rpt_tooltip > span.intool {
|
575 |
+
width: 90%;
|
576 |
+
padding: 10px;
|
577 |
+
margin-top: 56px;
|
578 |
+
opacity: 0;
|
579 |
+
visibility: hidden;
|
580 |
+
z-index: 10;
|
581 |
+
position: absolute;
|
582 |
+
top: -15px;
|
583 |
+
display: block;
|
584 |
+
color: #f5f5f5;
|
585 |
+
font-size: 13px;
|
586 |
+
line-height: 20px;
|
587 |
+
background: #333;
|
588 |
+
font-weight: 300;
|
589 |
+
text-align: center
|
590 |
+
}
|
591 |
+
|
592 |
+
a.rpt_tooltip:hover {
|
593 |
+
cursor: zoom-in
|
594 |
+
}
|
595 |
+
|
596 |
+
a.rpt_tooltip .rpt_tooltip_plus {
|
597 |
+
text-decoration: none !important;
|
598 |
+
display: inline;
|
599 |
+
font-size: 12px;
|
600 |
+
font-weight: 700;
|
601 |
+
position: relative;
|
602 |
+
top: -6px
|
603 |
+
}
|
604 |
+
|
605 |
+
.rpt_feature:hover a.rpt_tooltip > span.intool {
|
606 |
+
opacity: .98;
|
607 |
+
text-decoration: none;
|
608 |
+
visibility: visible;
|
609 |
+
overflow: visible
|
610 |
+
}
|
611 |
+
|
612 |
+
a.rpt_tooltip span.intool b {
|
613 |
+
width: 10px;
|
614 |
+
height: 10px;
|
615 |
+
margin-left: 35%;
|
616 |
+
margin-top: -15px;
|
617 |
+
position: absolute;
|
618 |
+
-webkit-transform: rotate(-45deg);
|
619 |
+
-moz-transform: rotate(-45deg);
|
620 |
+
-o-transform: rotate(-45deg);
|
621 |
+
transform: rotate(-45deg);
|
622 |
+
display: none \0/;
|
623 |
+
background: #333
|
624 |
+
}
|
625 |
+
|
626 |
+
.rpt_3_plans a.rpt_tooltip > span.intool {
|
627 |
+
margin-left: -1%
|
628 |
+
}
|
629 |
+
|
630 |
+
.rpt_4_plans a.rpt_tooltip > span.intool {
|
631 |
+
margin-left: 0
|
632 |
+
}
|
633 |
+
|
634 |
+
.rpt_5_plans a.rpt_tooltip > span.intool {
|
635 |
+
margin-left: -2%
|
636 |
+
}
|
637 |
+
|
638 |
+
.entry-content .rpt_plan a, .rpt_plan a {
|
639 |
+
border-bottom: none !important;
|
640 |
+
text-decoration: none;
|
641 |
+
}
|
642 |
+
|
643 |
+
.rpt_plans .rpt_plan .rpt_icon {
|
644 |
+
max-width: 30px;
|
645 |
+
max-height: 30px
|
646 |
+
}
|
647 |
+
|
648 |
+
.rpt_plans .rpt_plan img {
|
649 |
+
display: inline;
|
650 |
+
margin: 0 10px 0 0;
|
651 |
+
padding: 0;
|
652 |
+
-webkit-box-shadow: 0 0 0 0 transparent;
|
653 |
+
-moz-box-shadow: 0 0 0 0 transparent;
|
654 |
+
box-shadow: 0 0 0 0 transparent;
|
655 |
+
border: none
|
656 |
+
}
|
657 |
+
|
658 |
+
.folder-testimonial {
|
659 |
+
position: relative;
|
660 |
+
}
|
661 |
+
.folder-testimonial .testimonial-data {
|
662 |
+
position: relative;
|
663 |
+
}
|
664 |
+
.folder-testimonial .testimonial-data {
|
665 |
+
position: relative;
|
666 |
+
margin-left: 30px;
|
667 |
+
padding: 10px 10px 10px 40px;
|
668 |
+
background: #f5f5f5;
|
669 |
+
font-size: 16px;
|
670 |
+
line-height: 22px;
|
671 |
+
}
|
672 |
+
.folder-testimonial .testimonial-image {
|
673 |
+
position: absolute;
|
674 |
+
height: 60px;
|
675 |
+
width: 60px;
|
676 |
+
overflow: hidden;
|
677 |
+
border-radius: 30px;
|
678 |
+
top: 50%;
|
679 |
+
margin-top: -30px;
|
680 |
+
z-index: 1;
|
681 |
+
}
|
682 |
+
.folder-testimonial .testimonial-image img {
|
683 |
+
width: 100%;
|
684 |
+
height: auto;
|
685 |
+
}
|
686 |
+
.folder-testimonial-list {
|
687 |
+
width: 100%;
|
688 |
+
max-width: 1080px;
|
689 |
+
margin: 30px auto;
|
690 |
+
}
|
691 |
+
.testimonial-title {
|
692 |
+
font-weight: bold;
|
693 |
+
font-size: 18px;
|
694 |
+
padding: 0 0 5px 0;
|
695 |
+
}
|
696 |
+
.testimonial-author {
|
697 |
+
font-size: 16px;
|
698 |
+
font-style: italic;
|
699 |
+
font-weight: 500;
|
700 |
+
padding: 5px 0 0 0;
|
701 |
+
}
|
702 |
+
@media only screen and (max-width: 640px) {
|
703 |
+
.rpt_plans .rpt_plan {
|
704 |
+
width: 96%;
|
705 |
+
margin: 10px 2% 20px !important
|
706 |
+
}
|
707 |
+
|
708 |
+
.rpt_plans .rpt_plan .rpt_title {
|
709 |
+
position: relative;
|
710 |
+
font-size: 26px !important;
|
711 |
+
line-height: 35px !important
|
712 |
+
}
|
713 |
+
|
714 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_price {
|
715 |
+
font-size: 74px !important;
|
716 |
+
line-height: 100px !important
|
717 |
+
}
|
718 |
+
|
719 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_subtitle {
|
720 |
+
font-size: 17px !important;
|
721 |
+
line-height: 28px !important;
|
722 |
+
padding: 10px 40px 20px
|
723 |
+
}
|
724 |
+
|
725 |
+
.rpt_plans .rpt_plan .rpt_head .rpt_description {
|
726 |
+
font-size: 15px !important;
|
727 |
+
line-height: 26px !important;
|
728 |
+
padding: 0 40px 30px
|
729 |
+
}
|
730 |
+
|
731 |
+
.rpt_plans .rpt_plan .rpt_features .rpt_feature {
|
732 |
+
padding: 6px 16px;
|
733 |
+
font-size: 14px !important
|
734 |
+
}
|
735 |
+
|
736 |
+
.rpt_plans .rpt_plan .rpt_foot {
|
737 |
+
padding: 10px 40px;
|
738 |
+
text-align: center;
|
739 |
+
color: #fff;
|
740 |
+
font-size: 20px
|
741 |
+
}
|
742 |
+
|
743 |
+
.rpt_plans .rpt_recommended_plan .rpt_foot {
|
744 |
+
font-size: 30px;
|
745 |
+
font-weight: 300;
|
746 |
+
padding: 20px 0
|
747 |
+
}
|
748 |
+
|
749 |
+
.rpt_plan .rpt_head .rpt_price .rpt_currency {
|
750 |
+
top: -36px !important;
|
751 |
+
left: -10px !important;
|
752 |
+
font-size: 35px !important
|
753 |
+
}
|
754 |
+
}
|
755 |
+
|
756 |
+
#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature, #rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature a, #rpt_pricr .rpt_plan_ori .rpt_foot, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_description, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_price, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_price .rpt_currency, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_recurrence, #rpt_pricr .rpt_plan_ori .rpt_head .rpt_subtitle, #rpt_pricr .rpt_plan_ori .rpt_title {
|
757 |
+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
758 |
+
font-weight: 300 !important
|
759 |
+
}
|
760 |
+
#folder-modal #rpt_pricr {
|
761 |
+
width: 100%;
|
762 |
+
max-width: 1080px;
|
763 |
+
margin: 0 auto;
|
764 |
+
|
765 |
+
}
|
766 |
+
#folder-modal {
|
767 |
+
padding: 20px;
|
768 |
+
background: #fff;
|
769 |
+
margin-top: 40px;
|
770 |
+
direction: ltr;
|
771 |
+
}
|
772 |
+
|
773 |
+
#folder-modal p.udner-title {
|
774 |
+
font-size: 30px;
|
775 |
+
margin: 0 0 20px 0;
|
776 |
+
text-align: center;
|
777 |
+
}
|
778 |
+
#folder-modal .text-center {
|
779 |
+
text-align: center;
|
780 |
+
}
|
assets/css/design.css
ADDED
@@ -0,0 +1,816 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wcp-custom-menu {
|
2 |
+
padding-left: 0px;
|
3 |
+
|
4 |
+
}
|
5 |
+
|
6 |
+
.wcp-custom-menu {
|
7 |
+
position: relative;
|
8 |
+
}
|
9 |
+
|
10 |
+
.wcp-container ul {
|
11 |
+
list-style: none;
|
12 |
+
}
|
13 |
+
|
14 |
+
.wcp-container .route {
|
15 |
+
position: relative;
|
16 |
+
list-style-type: none;
|
17 |
+
border: 0;
|
18 |
+
margin: 0;
|
19 |
+
padding: 0;
|
20 |
+
top: 0px;
|
21 |
+
margin-top: 0px;
|
22 |
+
max-height: 100% !important;
|
23 |
+
width: 100%;
|
24 |
+
border-radius: 2px;
|
25 |
+
z-index: -1;
|
26 |
+
background: transparent;
|
27 |
+
}
|
28 |
+
|
29 |
+
.wcp-container .route span {
|
30 |
+
position: absolute;
|
31 |
+
top: 0;
|
32 |
+
left: 0;
|
33 |
+
z-index: 10;
|
34 |
+
width: 20px;
|
35 |
+
height: 18px;
|
36 |
+
text-indent: 0;
|
37 |
+
font-size: 20px;
|
38 |
+
background: no-repeat;
|
39 |
+
}
|
40 |
+
|
41 |
+
.wcp-container .route .title {
|
42 |
+
position: absolute;
|
43 |
+
border: 0;
|
44 |
+
margin: 0;
|
45 |
+
padding: 0;
|
46 |
+
padding-top: 0px;
|
47 |
+
height: 24px;
|
48 |
+
width: 200px;
|
49 |
+
text-indent: 30px;
|
50 |
+
background: transparent;
|
51 |
+
border-radius: 0px;
|
52 |
+
box-shadow: none;
|
53 |
+
font-size: 14px;
|
54 |
+
line-height: 24px;
|
55 |
+
border-radius: 4px;
|
56 |
+
-webkit-border-radius: 4px;
|
57 |
+
-moz-border-radius: 4px;
|
58 |
+
overflow: hidden;
|
59 |
+
}
|
60 |
+
|
61 |
+
.wcp-container .first-title {
|
62 |
+
margin-left: 10px;
|
63 |
+
}
|
64 |
+
|
65 |
+
.wcp-container .space {
|
66 |
+
position: relative;
|
67 |
+
list-style-type: none;
|
68 |
+
border: 0;
|
69 |
+
margin: 0;
|
70 |
+
padding: 0;
|
71 |
+
margin-left: 20px;
|
72 |
+
width: 30px;
|
73 |
+
top: 25px;
|
74 |
+
padding-bottom: 25px;
|
75 |
+
height: 100%;
|
76 |
+
z-index: 1;
|
77 |
+
}
|
78 |
+
|
79 |
+
.wcp-container .first-space {
|
80 |
+
margin-left: 10px;
|
81 |
+
}
|
82 |
+
|
83 |
+
i.fa-caret-right {
|
84 |
+
transition: 0.1s;
|
85 |
+
-webkit-transition: 0.1s;
|
86 |
+
-moz-transition: 0.1s;
|
87 |
+
}
|
88 |
+
|
89 |
+
li.active > span > i.fa-caret-right {
|
90 |
+
transform: rotate(90deg);
|
91 |
+
-webkit-transform: rotate(90deg);
|
92 |
+
-moz-transform: rotate(90deg);
|
93 |
+
}
|
94 |
+
|
95 |
+
li.active > span > i.fa-folder:before {
|
96 |
+
content: "\f07c";
|
97 |
+
}
|
98 |
+
|
99 |
+
.has-sub-tree > ul.ui-sortable li {
|
100 |
+
display: none;
|
101 |
+
}
|
102 |
+
|
103 |
+
.has-sub-tree.active > ul.ui-sortable > li {
|
104 |
+
display: block;
|
105 |
+
}
|
106 |
+
|
107 |
+
.nav-icon {
|
108 |
+
display: none;
|
109 |
+
left: -20px !important;
|
110 |
+
}
|
111 |
+
|
112 |
+
.has-sub-tree > .nav-icon {
|
113 |
+
display: block;
|
114 |
+
}
|
115 |
+
|
116 |
+
.wcp-content {
|
117 |
+
position: fixed !important;
|
118 |
+
top: 32px;
|
119 |
+
left: 160px;
|
120 |
+
bottom: 0;
|
121 |
+
width: 305px;
|
122 |
+
box-sizing: border-box;
|
123 |
+
z-index: 1;
|
124 |
+
direction: ltr;
|
125 |
+
}
|
126 |
+
html[dir="rtl"] .wcp-content {
|
127 |
+
left: auto;
|
128 |
+
right: 160px;
|
129 |
+
}
|
130 |
+
body.wp-admin #wpcontent {
|
131 |
+
padding-left: 310px;
|
132 |
+
}
|
133 |
+
html[dir="rtl"] body.wp-admin #wpcontent {
|
134 |
+
padding-left: 0px;
|
135 |
+
padding-right: 320px;
|
136 |
+
}
|
137 |
+
.wcp-container {
|
138 |
+
padding: 20px;
|
139 |
+
/* overflow: hidden;*/
|
140 |
+
}
|
141 |
+
.form-title {
|
142 |
+
font-size: 23px;
|
143 |
+
font-weight: 400;
|
144 |
+
margin: 0;
|
145 |
+
padding: 0 0 10px 0;
|
146 |
+
line-height: 29px;
|
147 |
+
}
|
148 |
+
.form-operations {
|
149 |
+
border: solid 1px #e5e5e5;
|
150 |
+
border-right: none;
|
151 |
+
margin-bottom: 20px;
|
152 |
+
}
|
153 |
+
.form-operations ul {
|
154 |
+
margin: 0;
|
155 |
+
padding: 0 ;
|
156 |
+
}
|
157 |
+
.form-operations li {
|
158 |
+
display: block;
|
159 |
+
float: left;
|
160 |
+
width: 20%;
|
161 |
+
text-align: center;
|
162 |
+
background: #fff;
|
163 |
+
margin: 0;
|
164 |
+
padding: 0;
|
165 |
+
}
|
166 |
+
.form-operations li a {
|
167 |
+
display: block;
|
168 |
+
padding: 10px 0;
|
169 |
+
border-right: solid 1px #e5e5e5;
|
170 |
+
font-size: 16px;
|
171 |
+
color: #727272;
|
172 |
+
}
|
173 |
+
.clearfix {
|
174 |
+
clear: both;
|
175 |
+
}
|
176 |
+
.wcp-parent-data {
|
177 |
+
position: relative;
|
178 |
+
}
|
179 |
+
.wcp-parent {
|
180 |
+
position: absolute;
|
181 |
+
left: -21px;
|
182 |
+
font-weight: bold;
|
183 |
+
font-size: 14px;
|
184 |
+
}
|
185 |
+
.wcp-parent .fa {
|
186 |
+
font-size: 18px;
|
187 |
+
margin-right: 8px;
|
188 |
+
}
|
189 |
+
.wcp-form-data {
|
190 |
+
background: #fff;
|
191 |
+
border: solid 1px #f1f1f1;
|
192 |
+
padding: 15px;
|
193 |
+
display: none;
|
194 |
+
margin-bottom: 20px;
|
195 |
+
}
|
196 |
+
.wcp-form-title {
|
197 |
+
color: #727272;
|
198 |
+
font-size: 14px;
|
199 |
+
text-transform: uppercase;
|
200 |
+
padding: 0 0 10px 0;
|
201 |
+
}
|
202 |
+
.wcp-form-data .form-field {
|
203 |
+
padding: 0 0 10px 0;
|
204 |
+
}
|
205 |
+
|
206 |
+
.wcp-form-data .form-field input, .wcp-form-data .form-field select {
|
207 |
+
width: 100%;
|
208 |
+
}
|
209 |
+
button#wcp-save-folder {
|
210 |
+
float: right;
|
211 |
+
}
|
212 |
+
.wcp-form-message span {
|
213 |
+
display: block;
|
214 |
+
padding: 5px 10px;
|
215 |
+
background: #ffabab;
|
216 |
+
margin-bottom: 10px;
|
217 |
+
color: #000;
|
218 |
+
border: solid 1px #8c0000;
|
219 |
+
border-radius: 4px;
|
220 |
+
}
|
221 |
+
.wcp-container .route.active-item > h3.title {
|
222 |
+
background: #008ec2;
|
223 |
+
color: #fff;
|
224 |
+
border-radius: 4px;
|
225 |
+
}
|
226 |
+
.wcp-container .route span.ui-icon {
|
227 |
+
line-height: 24px;
|
228 |
+
font-size: 18px;
|
229 |
+
cursor: move;
|
230 |
+
left: 5px;
|
231 |
+
}
|
232 |
+
.route.active-item > span.ui-icon {
|
233 |
+
background: #008ec2;
|
234 |
+
color: #fff;
|
235 |
+
}
|
236 |
+
#custom-menu.active > ul > li.route {
|
237 |
+
display: block;
|
238 |
+
}
|
239 |
+
.wcp-parent.active > i.fa-caret-right {
|
240 |
+
transform: rotate(90deg);
|
241 |
+
-webkit-transform: rotate(90deg);
|
242 |
+
-moz-transform: rotate(90deg);
|
243 |
+
}
|
244 |
+
.wcp-parent.active > i.fa-folder:before {
|
245 |
+
content: "\f07c";
|
246 |
+
}
|
247 |
+
.wcp-container .route .title:hover {
|
248 |
+
background: #dfdfdf;
|
249 |
+
cursor: pointer;
|
250 |
+
}
|
251 |
+
.add-new-folder {
|
252 |
+
text-decoration: none;
|
253 |
+
display: block;
|
254 |
+
float: right;
|
255 |
+
font-size: 14px;
|
256 |
+
padding: 4px 10px;
|
257 |
+
background: #F51366;
|
258 |
+
color: #fff;
|
259 |
+
border: solid 1px #F51366;
|
260 |
+
border-radius: 3px;
|
261 |
+
line-height: 24px;
|
262 |
+
-webkit-box-shadow: 0 3px 5px -3px #333333;
|
263 |
+
-moz-box-shadow: 0 3px 5px -3px #333333;
|
264 |
+
box-shadow: 0 3px 5px -3px #333333;
|
265 |
+
}
|
266 |
+
.add-new-folder:hover, .add-new-folder:focus {
|
267 |
+
background: #bc0f50;
|
268 |
+
color: #ffffff;
|
269 |
+
border: solid 1px #bc0f50
|
270 |
+
}
|
271 |
+
.add-new-folder span {
|
272 |
+
display: block;
|
273 |
+
float: left;
|
274 |
+
line-height: 20px;
|
275 |
+
font-size: 14px;
|
276 |
+
margin-right: 5px;
|
277 |
+
}
|
278 |
+
.add-new-folder span.folder-icon-create_new_folder {
|
279 |
+
font-size: 20px;
|
280 |
+
}
|
281 |
+
.form-options {
|
282 |
+
background: #fff;
|
283 |
+
padding: 10px 10px 0 10px;
|
284 |
+
margin: 10px 0 0px;
|
285 |
+
}
|
286 |
+
.form-options ul {
|
287 |
+
margin: 0;
|
288 |
+
padding: 0;
|
289 |
+
}
|
290 |
+
.form-options li {
|
291 |
+
display: inline-block;
|
292 |
+
margin: 0 5px 0 0;
|
293 |
+
vertical-align: top;
|
294 |
+
}
|
295 |
+
.form-options li.last {
|
296 |
+
margin: 0;
|
297 |
+
}
|
298 |
+
.form-options li a {
|
299 |
+
display: inline-block;
|
300 |
+
text-decoration: none;
|
301 |
+
padding: 5px 12px;
|
302 |
+
color: #000;
|
303 |
+
background: #ccc;
|
304 |
+
box-shadow: 0 1px 0 #ccc;
|
305 |
+
vertical-align: middle;
|
306 |
+
border: solid 1px #ccc;
|
307 |
+
border-radius: 3px;
|
308 |
+
margin: 0 0 10px 0;
|
309 |
+
}
|
310 |
+
.form-options li.last a {
|
311 |
+
padding: 3px;
|
312 |
+
}
|
313 |
+
.form-options li.last a span.icon{
|
314 |
+
font-size: 28px;
|
315 |
+
line-height: 22px;
|
316 |
+
}
|
317 |
+
a#expand-collapse-list.all-open span:before {
|
318 |
+
content: "\e911";
|
319 |
+
}
|
320 |
+
.form-options li a:hover {
|
321 |
+
background: #404040;
|
322 |
+
color: #ffffff;
|
323 |
+
border: solid 1px #404040;
|
324 |
+
}
|
325 |
+
.form-options span.icon {
|
326 |
+
font-size: 18px;
|
327 |
+
display: inline-block;
|
328 |
+
vertical-align: top;
|
329 |
+
}
|
330 |
+
.header-posts a {
|
331 |
+
color: #444444;
|
332 |
+
padding: 7px;
|
333 |
+
border-radius: 3px;
|
334 |
+
display: block;
|
335 |
+
text-decoration: none;
|
336 |
+
font-size: 14px;
|
337 |
+
line-height: 18px;
|
338 |
+
}
|
339 |
+
.header-posts a:hover {
|
340 |
+
background: #dfdfdf;
|
341 |
+
}
|
342 |
+
span.total-count {
|
343 |
+
float: right;
|
344 |
+
background: #fff;
|
345 |
+
padding: 0 5px;
|
346 |
+
border: solid 1px #cccccc;
|
347 |
+
font-size: 10px;
|
348 |
+
line-height: 16px;
|
349 |
+
border-radius: 2px;
|
350 |
+
}
|
351 |
+
.wcp-icon {
|
352 |
+
display: inline-block;
|
353 |
+
font-size: 16px;
|
354 |
+
vertical-align: top;
|
355 |
+
margin-right: 3px;
|
356 |
+
}
|
357 |
+
#custom-menu .wcp-icon {
|
358 |
+
font-size: 20px;
|
359 |
+
line-height: 24px;
|
360 |
+
}
|
361 |
+
.route.active > .nav-icon > .folder-icon-arrow_right {
|
362 |
+
transform: rotate(90deg);
|
363 |
+
-webkit-transform: rotate(90deg);
|
364 |
+
-moz-transform: rotate(90deg);
|
365 |
+
}
|
366 |
+
|
367 |
+
.route.active > .ui-icon > .folder-icon-folder:before {
|
368 |
+
content: "\e90c";
|
369 |
+
}
|
370 |
+
|
371 |
+
.wcp-container .route span.total-count {
|
372 |
+
position: relative;
|
373 |
+
font-size: 8px;
|
374 |
+
float: right;
|
375 |
+
text-align: center;
|
376 |
+
width: auto;
|
377 |
+
background: #fff;
|
378 |
+
display: block;
|
379 |
+
margin: 3px;
|
380 |
+
color: #23282d;
|
381 |
+
line-height: 16px;
|
382 |
+
height: 16px;
|
383 |
+
}
|
384 |
+
.dynamic-menu {
|
385 |
+
position: absolute;
|
386 |
+
left: 50px;
|
387 |
+
background: #fff;
|
388 |
+
width: 140px;
|
389 |
+
padding: 0;
|
390 |
+
z-index: 101;
|
391 |
+
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
|
392 |
+
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
|
393 |
+
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
|
394 |
+
}
|
395 |
+
.dynamic-menu li {
|
396 |
+
position: relative;
|
397 |
+
display: block !important;
|
398 |
+
padding: 2px 0;
|
399 |
+
margin: 0;
|
400 |
+
}
|
401 |
+
.dynamic-menu a {
|
402 |
+
text-decoration: none;
|
403 |
+
color: #848484;
|
404 |
+
position: relative;
|
405 |
+
display: block;
|
406 |
+
padding: 5px 10px;
|
407 |
+
}
|
408 |
+
.wcp-container .route .dynamic-menu ul > li > a > span, .wcp-container .route .dynamic-menu ul > li > a > span span {
|
409 |
+
position: relative;
|
410 |
+
top: auto;
|
411 |
+
display: inline-block;
|
412 |
+
vertical-align: top;
|
413 |
+
margin-right: 5px;
|
414 |
+
}
|
415 |
+
.wcp-container .route .dynamic-menu ul > li > a > span span {
|
416 |
+
top: auto;
|
417 |
+
height: auto;
|
418 |
+
width: auto;
|
419 |
+
margin: 0;
|
420 |
+
left: auto;
|
421 |
+
vertical-align: baseline;
|
422 |
+
}
|
423 |
+
.dynamic-menu li.new-folder {
|
424 |
+
border-bottom: solid 1px #d8d8d8;
|
425 |
+
}
|
426 |
+
.dynamic-menu a:hover {
|
427 |
+
background: #efefef;
|
428 |
+
color: #000;
|
429 |
+
}
|
430 |
+
.wcp-form-input {
|
431 |
+
padding-left: 35px;
|
432 |
+
box-sizing: border-box;
|
433 |
+
position: relative;
|
434 |
+
}
|
435 |
+
.wcp-form-input input {
|
436 |
+
width: 100%;
|
437 |
+
}
|
438 |
+
.wcp-form-btn {
|
439 |
+
padding: 4px 0 4px 2px;
|
440 |
+
}
|
441 |
+
.wcp-form-input:before {
|
442 |
+
content: "\e90d";
|
443 |
+
font-family: 'folder-icon' !important;
|
444 |
+
speak: none;
|
445 |
+
position: absolute;
|
446 |
+
left: 0;
|
447 |
+
font-size: 28px;
|
448 |
+
top: 5px;
|
449 |
+
}
|
450 |
+
.add-new-folder-btn {
|
451 |
+
margin-right: 5px !important;
|
452 |
+
}
|
453 |
+
.form-loader {
|
454 |
+
width: 100%;
|
455 |
+
height: 5px;
|
456 |
+
margin: 0 0 20px;
|
457 |
+
}
|
458 |
+
.form-loader-count {
|
459 |
+
width: 0;
|
460 |
+
height: 5px;
|
461 |
+
background: url("../images/form-loader.png");
|
462 |
+
transition: all 2.5s linear;
|
463 |
+
-webkit-transition: all 2s linear;
|
464 |
+
-moz-transition: all 2.5s linear;
|
465 |
+
}
|
466 |
+
.route.is-high > .ui-icon > i:before {
|
467 |
+
content: "\e900" !important
|
468 |
+
}
|
469 |
+
.route.is-high.active > .ui-icon > i:before {
|
470 |
+
content: "\e90c" !important;
|
471 |
+
z-index: 11;
|
472 |
+
color: #444;
|
473 |
+
font-size: 20px;
|
474 |
+
}
|
475 |
+
.route.is-high.active > .ui-icon > i:after {
|
476 |
+
content: "\e907";
|
477 |
+
margin-left: -1.2em;
|
478 |
+
color: #444;
|
479 |
+
font-size: 11px;
|
480 |
+
top: 1px;
|
481 |
+
position: absolute;
|
482 |
+
}
|
483 |
+
.route.is-high.active.active-item > .ui-icon > i:before, .route.is-high.active.active-item > .ui-icon > i:after {
|
484 |
+
color: #ffffff;
|
485 |
+
}
|
486 |
+
li.active-menu {
|
487 |
+
z-index: 2 !important;
|
488 |
+
}
|
489 |
+
th#wcp_move {
|
490 |
+
width: 20px;
|
491 |
+
}
|
492 |
+
td.wcp_move.column-wcp_move {
|
493 |
+
vertical-align: middle;
|
494 |
+
opacity: 0;
|
495 |
+
}
|
496 |
+
.wp-list-table tr:hover .column-wcp_move:hover, .wp-list-table td.wcp_move.column-wcp_move.wcp-draggable {
|
497 |
+
opacity: 1;
|
498 |
+
}
|
499 |
+
.wcp-drop-hover {
|
500 |
+
background: #0073aa !important;
|
501 |
+
z-index: 2 !important;
|
502 |
+
color: #fff !important;
|
503 |
+
}
|
504 |
+
.wcp-drop-hover span {
|
505 |
+
color: #fff !important;
|
506 |
+
}
|
507 |
+
.ui-draggable-dragging {
|
508 |
+
z-index: 1051 !important;
|
509 |
+
}
|
510 |
+
span.wcp-item {
|
511 |
+
display: none;
|
512 |
+
}
|
513 |
+
.wcp-move-file {
|
514 |
+
cursor: move;
|
515 |
+
}
|
516 |
+
.wcp-drop-hover-list a.folder-view {
|
517 |
+
background: #008ec2;
|
518 |
+
color: #fff;
|
519 |
+
border: solid 1px #fff;
|
520 |
+
position: relative;
|
521 |
+
}
|
522 |
+
.tree-structure .folder-view {
|
523 |
+
display: block;
|
524 |
+
border: 1px solid #dadce0;
|
525 |
+
color: #404040;
|
526 |
+
border-radius: 4px;
|
527 |
+
-moz-border-radius: 4px;
|
528 |
+
-webkit-border-radius: 4px;
|
529 |
+
position: relative;
|
530 |
+
cursor: pointer;
|
531 |
+
background: #fff;
|
532 |
+
}
|
533 |
+
.tree-structure .folder-view:hover {
|
534 |
+
background: #008ec2;
|
535 |
+
color: #ffffff;
|
536 |
+
|
537 |
+
}
|
538 |
+
.wcp-drop-hover-list a.folder-view:before {
|
539 |
+
width: 100%;
|
540 |
+
height: 100%;
|
541 |
+
content: "";
|
542 |
+
position: absolute;
|
543 |
+
top: -2px;
|
544 |
+
left: -2px;
|
545 |
+
border: solid 1px #008ec2;
|
546 |
+
padding: 1px;
|
547 |
+
border-radius: 4px;
|
548 |
+
-moz-border-radius: 4px;
|
549 |
+
-webkit-border-radius: 4px;
|
550 |
+
}
|
551 |
+
.ui-draggable-dragging.wcp-move-file {
|
552 |
+
z-index: 5001;
|
553 |
+
display: inline-block;
|
554 |
+
border: solid 2px #0073aa;
|
555 |
+
padding: 5px 10px;
|
556 |
+
border-radius: 5px;
|
557 |
+
background: #e4f6ff;
|
558 |
+
z-index: 2001;
|
559 |
+
position: fixed !important;
|
560 |
+
max-width: 230px;
|
561 |
+
overflow: hidden;
|
562 |
+
width: auto !important;
|
563 |
+
}
|
564 |
+
.ui-draggable-dragging.wcp-move-file span {
|
565 |
+
display: block;
|
566 |
+
float: left;
|
567 |
+
}
|
568 |
+
.ui-draggable-dragging.wcp-move-file span.wcp-move {
|
569 |
+
margin-right: 5px;
|
570 |
+
display: block;
|
571 |
+
float: left;
|
572 |
+
}
|
573 |
+
.wcp-container .route span.title-text {
|
574 |
+
position: relative;
|
575 |
+
top: auto;
|
576 |
+
left: auto;
|
577 |
+
width: auto;
|
578 |
+
display: inline-block;
|
579 |
+
font-size: 16px;
|
580 |
+
}
|
581 |
+
.ui-resizable-handle.ui-resizable-e {
|
582 |
+
position: absolute;
|
583 |
+
top: 0;
|
584 |
+
height: 100%;
|
585 |
+
height: 100vh;
|
586 |
+
width: 1px;
|
587 |
+
right: 0;
|
588 |
+
border-right: 1px solid #ccc;
|
589 |
+
cursor: col-resize;
|
590 |
+
}
|
591 |
+
.ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {
|
592 |
+
content: "";
|
593 |
+
top: 68px;
|
594 |
+
width: 3px;
|
595 |
+
height: 53px;
|
596 |
+
position: absolute;
|
597 |
+
border-left: solid 1px #ccc;
|
598 |
+
border-right: solid 1px #ccc;
|
599 |
+
left: -1px;
|
600 |
+
}
|
601 |
+
.ui-resizable-handle.ui-resizable-w {
|
602 |
+
position: absolute;
|
603 |
+
top: 0;
|
604 |
+
height: 100%;
|
605 |
+
height: 100vh;
|
606 |
+
width: 1px;
|
607 |
+
left: 0;
|
608 |
+
border-right: 1px solid #ccc;
|
609 |
+
cursor: col-resize;
|
610 |
+
}
|
611 |
+
|
612 |
+
div#custom-menu {
|
613 |
+
padding-bottom: 120px;
|
614 |
+
}
|
615 |
+
.wcp-container .route span.star-icon {
|
616 |
+
position: relative;
|
617 |
+
top: auto;
|
618 |
+
left: auto;
|
619 |
+
float: right;
|
620 |
+
font-family: 'folder-icon' !important;
|
621 |
+
speak: none;
|
622 |
+
color: #ffc90e;
|
623 |
+
display: none;
|
624 |
+
}
|
625 |
+
.wcp-container .route span.update-inline-record {
|
626 |
+
position: relative;
|
627 |
+
left: auto;
|
628 |
+
top: auto;
|
629 |
+
float: right;
|
630 |
+
width: 0px;
|
631 |
+
height: 18px;
|
632 |
+
font-family: 'folder-icon' !important;
|
633 |
+
font-size: 16px;
|
634 |
+
overflow: hidden;
|
635 |
+
transition: all 0.25s linear;
|
636 |
+
-webkit-transition: all 0.25s linear;
|
637 |
+
-moz-transition: all 0.25s linear;
|
638 |
+
}
|
639 |
+
.wcp-container .route h3:hover > span.update-inline-record {
|
640 |
+
width: 18px;
|
641 |
+
}
|
642 |
+
.wcp-container .route span.update-inline-record:after {
|
643 |
+
content: "\e910";
|
644 |
+
}
|
645 |
+
.wcp-container .route.is-high > h3 > span.star-icon {
|
646 |
+
display: block;
|
647 |
+
}
|
648 |
+
.wcp-container .route span.star-icon:after {
|
649 |
+
content: "\e907";
|
650 |
+
}
|
651 |
+
|
652 |
+
.tree-structure li {
|
653 |
+
display: block;
|
654 |
+
width: 16.667%;
|
655 |
+
float: left;
|
656 |
+
margin: 0;
|
657 |
+
padding: 0;
|
658 |
+
}
|
659 |
+
.tree-structure .folder-item {
|
660 |
+
padding: 8px;
|
661 |
+
position: relative;
|
662 |
+
}
|
663 |
+
.tree-structure .folder-view {
|
664 |
+
display: block;
|
665 |
+
border: 1px solid #dadce0;
|
666 |
+
color: #404040;
|
667 |
+
border-radius: 4px;
|
668 |
+
-moz-border-radius: 4px;
|
669 |
+
-webkit-border-radius: 4px;
|
670 |
+
position: relative;
|
671 |
+
cursor: pointer;
|
672 |
+
background: #fff;
|
673 |
+
}
|
674 |
+
.tree-structure .folder-view span.item-name {
|
675 |
+
display: block;
|
676 |
+
padding: 10px 25px 10px 50px;
|
677 |
+
position: relative;
|
678 |
+
width: 100%;
|
679 |
+
overflow: hidden;
|
680 |
+
height: 38px;
|
681 |
+
font-size: 16px;
|
682 |
+
box-sizing: border-box;
|
683 |
+
}
|
684 |
+
.folder-view span.item-name:before {
|
685 |
+
content: "\e90d";
|
686 |
+
font-family: 'folder-icon' !important;
|
687 |
+
position: absolute;
|
688 |
+
left: 15px;
|
689 |
+
font-size: 24px;
|
690 |
+
}
|
691 |
+
.folder-view.is-high span.item-name:before {
|
692 |
+
content: "\e900";
|
693 |
+
}
|
694 |
+
.folder-view.is-post span.item-name:before {
|
695 |
+
content: "\e901";
|
696 |
+
}
|
697 |
+
.tree-structure span.folder-option {
|
698 |
+
position: absolute;
|
699 |
+
right: 0;
|
700 |
+
font-family: 'folder-icon' !important;
|
701 |
+
top: 0px;
|
702 |
+
font-size: 20px;
|
703 |
+
line-height: 38px;
|
704 |
+
z-index: 1;
|
705 |
+
cursor: pointer;
|
706 |
+
display: none;
|
707 |
+
}
|
708 |
+
.tree-structure .folder-view:hover span.folder-option {
|
709 |
+
display: block;
|
710 |
+
}
|
711 |
+
.tree-structure span.folder-option:hover {
|
712 |
+
color: #F51366;
|
713 |
+
}
|
714 |
+
.tree-structure span.folder-option:after {
|
715 |
+
content: "\e90a";
|
716 |
+
}
|
717 |
+
.tree-structure li {
|
718 |
+
position: relative;
|
719 |
+
}
|
720 |
+
.tree-structure {
|
721 |
+
margin-left: -8px;
|
722 |
+
margin-right: -8px;
|
723 |
+
}
|
724 |
+
.tree-structure .folder-view span.folder-title {
|
725 |
+
overflow: hidden;
|
726 |
+
width: 100%;
|
727 |
+
height: 18px;
|
728 |
+
display: block;
|
729 |
+
}
|
730 |
+
.swal2-popup .swal2-title {
|
731 |
+
line-height: 36px;
|
732 |
+
}
|
733 |
+
.attachments-browser.ui-draggable-dragging .media-sidebar, .attachments-browser.ui-draggable-dragging .uploader-inline, .attachments-browser.ui-draggable-dragging .media-toolbar, .attachments-browser.ui-draggable-dragging ul.attachments {
|
734 |
+
display: none;
|
735 |
+
}
|
736 |
+
.attachments.ui-sortable.ui-draggable-dragging {
|
737 |
+
z-index: 5000;;
|
738 |
+
}
|
739 |
+
.selected-items {
|
740 |
+
background: #0073aa;
|
741 |
+
color: #ffffff;
|
742 |
+
padding: 10px 20px;
|
743 |
+
border-radius: 5px;
|
744 |
+
-moz-border-radius: 5px;
|
745 |
+
-webkit-border-radius: 5px;
|
746 |
+
margin-top: 0px;
|
747 |
+
cursor: none;
|
748 |
+
}
|
749 |
+
.media-frame, .media-frame-content, .media-frame .attachments-browser {
|
750 |
+
overflow: inherit;
|
751 |
+
}
|
752 |
+
span.upgrade-message {
|
753 |
+
padding: 0px 0 10px;
|
754 |
+
background: #fff;
|
755 |
+
display: inline-block;
|
756 |
+
font-size: 14px;
|
757 |
+
color: #000;
|
758 |
+
}
|
759 |
+
span.upgrade-message a.pink, span.upgrade-message span.pink {
|
760 |
+
color: #FF5983;
|
761 |
+
text-decoration: none;
|
762 |
+
font-weight: bold;
|
763 |
+
}
|
764 |
+
@media screen and (max-width: 1300px) {
|
765 |
+
.tree-structure li {
|
766 |
+
width: 20%;
|
767 |
+
}
|
768 |
+
}
|
769 |
+
@media screen and (max-width: 960px) {
|
770 |
+
.wcp-content {
|
771 |
+
left: 36px;
|
772 |
+
}
|
773 |
+
html[dir="rtl"] .wcp-content {
|
774 |
+
right: 36px;
|
775 |
+
left: auto;
|
776 |
+
}
|
777 |
+
.tree-structure li {
|
778 |
+
width: 25%;
|
779 |
+
}
|
780 |
+
}
|
781 |
+
|
782 |
+
@media screen and (max-width: 780px) {
|
783 |
+
.wcp-content {
|
784 |
+
left: 0px;
|
785 |
+
}
|
786 |
+
html[dir="rtl"] .wcp-content {
|
787 |
+
right: 0px;
|
788 |
+
}
|
789 |
+
.tree-structure li {
|
790 |
+
width: 33.33%;
|
791 |
+
}
|
792 |
+
}
|
793 |
+
|
794 |
+
|
795 |
+
@media screen and (max-width: 640px) {
|
796 |
+
.wcp-content {
|
797 |
+
left: 0px;
|
798 |
+
position: relative !important;
|
799 |
+
width: 100% !important;
|
800 |
+
padding-bottom: 100px;
|
801 |
+
top: 0;
|
802 |
+
right: 0;
|
803 |
+
}
|
804 |
+
.ui-resizable-handle.ui-resizable-e {
|
805 |
+
display: none !important;
|
806 |
+
}
|
807 |
+
body.wp-admin #wpcontent {
|
808 |
+
padding: 0 !important;
|
809 |
+
}
|
810 |
+
#wpbody-content {
|
811 |
+
padding-bottom: 30px;
|
812 |
+
}
|
813 |
+
.tree-structure li {
|
814 |
+
width: 50%;
|
815 |
+
}
|
816 |
+
}
|
assets/css/folder-icon.css
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'folder-icon';
|
3 |
+
src: url('../fonts/folder-icon.eot?44ce3u');
|
4 |
+
src: url('../fonts/folder-icon.eot?44ce3u#iefix') format('embedded-opentype'),
|
5 |
+
url('../fonts/folder-icon.ttf?44ce3u') format('truetype'),
|
6 |
+
url('../fonts/folder-icon.woff?44ce3u') format('woff'),
|
7 |
+
url('../fonts/folder-icon.svg?44ce3u#folder-icon') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
|
12 |
+
[class^="folder-icon-"], [class*=" folder-icon-"] {
|
13 |
+
/* use !important to prevent issues with browser extensions that change fonts */
|
14 |
+
font-family: 'folder-icon' !important;
|
15 |
+
speak: none;
|
16 |
+
font-style: normal;
|
17 |
+
font-weight: normal;
|
18 |
+
font-variant: normal;
|
19 |
+
text-transform: none;
|
20 |
+
line-height: 1;
|
21 |
+
|
22 |
+
/* Better Font Rendering =========== */
|
23 |
+
-webkit-font-smoothing: antialiased;
|
24 |
+
-moz-osx-font-smoothing: grayscale;
|
25 |
+
}
|
26 |
+
|
27 |
+
.folder-icon-expand_more:before {
|
28 |
+
content: "\e90f";
|
29 |
+
}
|
30 |
+
.folder-icon-edit:before {
|
31 |
+
content: "\e910";
|
32 |
+
}
|
33 |
+
.folder-icon-expand_less:before {
|
34 |
+
content: "\e911";
|
35 |
+
}
|
36 |
+
.folder-icon-folder_special:before {
|
37 |
+
content: "\e900";
|
38 |
+
}
|
39 |
+
.folder-icon-insert_drive_file:before {
|
40 |
+
content: "\e901";
|
41 |
+
}
|
42 |
+
.folder-icon-border_color .path1:before {
|
43 |
+
content: "\e902";
|
44 |
+
}
|
45 |
+
.folder-icon-border_color .path2:before {
|
46 |
+
content: "\e903";
|
47 |
+
margin-left: -1em;
|
48 |
+
}
|
49 |
+
.folder-icon-file_copy:before {
|
50 |
+
content: "\e904";
|
51 |
+
}
|
52 |
+
.folder-icon-all_inbox:before {
|
53 |
+
content: "\e905";
|
54 |
+
}
|
55 |
+
.folder-icon-delete:before {
|
56 |
+
content: "\e906";
|
57 |
+
}
|
58 |
+
.folder-icon-star_rate:before {
|
59 |
+
content: "\e907";
|
60 |
+
}
|
61 |
+
.folder-icon-arrow_drop_down:before {
|
62 |
+
content: "\e908";
|
63 |
+
}
|
64 |
+
.folder-icon-arrow_right:before {
|
65 |
+
content: "\e909";
|
66 |
+
}
|
67 |
+
.folder-icon-more_vert:before {
|
68 |
+
content: "\e90a";
|
69 |
+
}
|
70 |
+
.folder-icon-folder_shared:before {
|
71 |
+
content: "\e90b";
|
72 |
+
}
|
73 |
+
.folder-icon-folder_open:before {
|
74 |
+
content: "\e90c";
|
75 |
+
}
|
76 |
+
.folder-icon-folder:before {
|
77 |
+
content: "\e90d";
|
78 |
+
}
|
79 |
+
.folder-icon-create_new_folder:before {
|
80 |
+
content: "\e90e";
|
81 |
+
}
|
assets/css/sweetalert2.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{flex-wrap:wrap;align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:.3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validation-message::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:initial!important}}
|
assets/fonts/folder-icon.eot
ADDED
Binary file
|
assets/fonts/folder-icon.svg
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>
|
5 |
+
<json>
|
6 |
+
<![CDATA[
|
7 |
+
{
|
8 |
+
"fontFamily": "folder-icon",
|
9 |
+
"majorVersion": 1,
|
10 |
+
"minorVersion": 0,
|
11 |
+
"version": "Version 1.0",
|
12 |
+
"fontId": "folder-icon",
|
13 |
+
"psName": "folder-icon",
|
14 |
+
"subFamily": "Regular",
|
15 |
+
"fullName": "folder-icon",
|
16 |
+
"description": "Font generated by IcoMoon."
|
17 |
+
}
|
18 |
+
]]>
|
19 |
+
</json>
|
20 |
+
</metadata>
|
21 |
+
<defs>
|
22 |
+
<font id="folder-icon" horiz-adv-x="1024">
|
23 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
24 |
+
<missing-glyph horiz-adv-x="1024" />
|
25 |
+
<glyph unicode=" " horiz-adv-x="512" d="" />
|
26 |
+
<glyph unicode="" glyph-name="folder_special" data-tags="folder_special" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-85.333-38.4-85.333-85.333v-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM722.773 259.84l-82.773 48.213-82.773-48.213c-16.213-9.387-35.84 5.12-31.573 23.467l21.76 93.867-72.107 62.293c-14.080 12.373-6.827 35.84 11.947 37.547l95.147 8.107 37.547 87.893c7.253 17.067 32 17.067 39.253 0l37.547-87.893 95.147-8.107c18.773-1.707 26.453-25.173 11.947-37.547l-72.107-62.293 21.76-93.867c4.693-18.347-14.933-32.853-30.72-23.467z" />
|
27 |
+
<glyph unicode="" glyph-name="insert_drive_file" data-tags="insert_drive_file" d="M256 874.667c-46.933 0-84.907-38.4-84.907-85.333l-0.427-682.667c0-46.933 37.973-85.333 84.907-85.333h512.427c46.933 0 85.333 38.4 85.333 85.333v512l-256 256h-341.333zM554.667 576v234.667l234.667-234.667h-234.667z" />
|
28 |
+
<glyph unicode="" d="M757.333 661.333l-160 160-426.667-426.667v-160h160l426.667 426.667zM883.627 787.627c16.64 16.64 16.64 43.52 0 60.16l-99.84 99.84c-16.64 16.64-43.52 16.64-60.16 0l-83.627-83.627 160-160 83.627 83.627z" />
|
29 |
+
<glyph unicode="" d="M0 106.667h1024v-170.667h-1024z" />
|
30 |
+
<glyph unicode="" glyph-name="file_copy" data-tags="file_copy" d="M682.667 917.333h-512c-46.933 0-85.333-38.4-85.333-85.333v-597.333h85.333v597.333h512v85.333zM640 746.667l256-256v-426.667c0-46.933-38.4-85.333-85.333-85.333h-469.76c-46.933 0-84.907 38.4-84.907 85.333l0.427 597.333c0 46.933 37.973 85.333 84.907 85.333h298.667zM597.333 448h234.667l-234.667 234.667v-234.667z" />
|
31 |
+
<glyph unicode="" glyph-name="all_inbox" data-tags="all_inbox" d="M810.667 832h-597.333c-46.933 0-85.333-38.4-85.333-85.333v-298.667c0-46.933 38.4-85.333 85.333-85.333h597.333c46.933 0 85.333 38.4 85.333 85.333v298.667c0 46.933-38.4 85.333-85.333 85.333zM810.667 576h-170.667c0-69.12-58.88-128-128-128s-128 58.88-128 128h-170.667v170.667h597.333v-170.667zM640 277.333h256v-128c0-46.933-38.4-85.333-85.333-85.333h-597.333c-46.933 0-85.333 38.4-85.333 85.333v128h256c0-70.827 57.173-128 128-128s128 57.173 128 128z" />
|
32 |
+
<glyph unicode="" glyph-name="delete" data-tags="delete" d="M256 149.333c0-46.933 38.4-85.333 85.333-85.333h341.333c46.933 0 85.333 38.4 85.333 85.333v512h-512v-512zM810.667 789.333h-149.333l-42.667 42.667h-213.333l-42.667-42.667h-149.333v-85.333h597.333v85.333z" />
|
33 |
+
<glyph unicode="" glyph-name="star_rate" data-tags="star_rate" d="M512 317.156l211.058-153.6-80.782 248.036 211.058 150.187h-258.844l-82.489 256-82.489-256h-258.844l211.058-150.187-80.782-248.036z" />
|
34 |
+
<glyph unicode="" glyph-name="arrow_drop_down" data-tags="arrow_drop_down" d="M298.667 533.333l213.333-213.333 213.333 213.333z" />
|
35 |
+
<glyph unicode="" glyph-name="arrow_right" data-tags="arrow_right" d="M426.667 234.667l213.333 213.333-213.333 213.333v-426.667z" />
|
36 |
+
<glyph unicode="" glyph-name="more_vert" data-tags="more_vert" d="M512 618.667c46.933 0 85.333 38.4 85.333 85.333s-38.4 85.333-85.333 85.333-85.333-38.4-85.333-85.333 38.4-85.333 85.333-85.333zM512 533.333c-46.933 0-85.333-38.4-85.333-85.333s38.4-85.333 85.333-85.333 85.333 38.4 85.333 85.333-38.4 85.333-85.333 85.333zM512 277.333c-46.933 0-85.333-38.4-85.333-85.333s38.4-85.333 85.333-85.333 85.333 38.4 85.333 85.333-38.4 85.333-85.333 85.333z" />
|
37 |
+
<glyph unicode="" glyph-name="folder_shared" data-tags="folder_shared" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM640 576c46.933 0 85.333-38.4 85.333-85.333s-38.4-85.333-85.333-85.333-85.333 38.4-85.333 85.333 38.4 85.333 85.333 85.333zM810.667 234.667h-341.333v42.667c0 56.747 113.92 85.333 170.667 85.333s170.667-28.587 170.667-85.333v-42.667z" />
|
38 |
+
<glyph unicode="" glyph-name="folder_open" data-tags="folder_open" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM810.667 192h-597.333c-23.467 0-42.667 19.2-42.667 42.667v341.333c0 23.467 19.2 42.667 42.667 42.667h597.333c23.467 0 42.667-19.2 42.667-42.667v-341.333c0-23.467-19.2-42.667-42.667-42.667z" />
|
39 |
+
<glyph unicode="" glyph-name="folder" data-tags="folder" d="M451.84 764.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333h-341.333l-60.16 60.16z" />
|
40 |
+
<glyph unicode="" glyph-name="create_new_folder" data-tags="create_new_folder" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-47.36 0-84.907-37.973-84.907-85.333l-0.427-512c0-47.36 37.973-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM768 362.667h-85.333v-85.333c0-23.467-19.2-42.667-42.667-42.667s-42.667 19.2-42.667 42.667v85.333h-85.333c-23.467 0-42.667 19.2-42.667 42.667s19.2 42.667 42.667 42.667h85.333v85.333c0 23.467 19.2 42.667 42.667 42.667s42.667-19.2 42.667-42.667v-85.333h85.333c23.467 0 42.667-19.2 42.667-42.667s-19.2-42.667-42.667-42.667z" />
|
41 |
+
<glyph unicode="" glyph-name="expand_more" data-tags="expand_more" d="M677.547 563.627l-165.547-165.547-165.547 165.547c-16.64 16.64-43.52 16.64-60.16 0s-16.64-43.52 0-60.16l195.84-195.84c16.64-16.64 43.52-16.64 60.16 0l195.84 195.84c16.64 16.64 16.64 43.52 0 60.16-16.64 16.213-43.947 16.64-60.587 0z" />
|
42 |
+
<glyph unicode="" glyph-name="edit" data-tags="edit" d="M128 224v-160h160l471.893 471.893-160 160-471.893-471.893zM883.627 659.627c16.64 16.64 16.64 43.52 0 60.16l-99.84 99.84c-16.64 16.64-43.52 16.64-60.16 0l-78.080-78.080 160-160 78.080 78.080z" />
|
43 |
+
<glyph unicode="" glyph-name="expand_less" data-tags="expand_less" d="M481.707 588.373l-195.84-195.84c-16.64-16.64-16.64-43.52 0-60.16s43.52-16.64 60.16 0l165.973 165.547 165.547-165.547c16.64-16.64 43.52-16.64 60.16 0s16.64 43.52 0 60.16l-195.84 195.84c-16.213 16.64-43.52 16.64-60.16 0z" />
|
44 |
+
<glyph unicode="" d="M396.8 618.667h452.267v-422.4h-452.267v422.4z" />
|
45 |
+
<glyph unicode="" d="M853.333 704h-341.333l-59.733 59.733c-17.067 17.067-38.4 25.6-59.733 25.6h-221.867c-46.933 0-85.333-38.4-85.333-85.333v-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM721.067 260.267l-81.067 46.933-81.067-46.933c-17.067-8.533-34.133 4.267-29.867 25.6l21.333 93.867-72.533 64c-12.8 12.8-8.533 34.133 12.8 38.4l93.867 8.533 38.4 89.6c8.533 17.067 34.133 17.067 38.4 0l38.4-89.6 93.867-8.533c17.067 0 25.6-25.6 12.8-38.4l-72.533-64 21.333-93.867c4.267-21.333-17.067-34.133-34.133-25.6z" />
|
46 |
+
</font></defs></svg>
|
assets/fonts/folder-icon.ttf
ADDED
Binary file
|
assets/fonts/folder-icon.woff
ADDED
Binary file
|
assets/images/ajax-loader.gif
ADDED
Binary file
|
assets/images/client-image.jpg
ADDED
Binary file
|
assets/images/form-loader.png
ADDED
Binary file
|
assets/images/rpt_recommended.png
ADDED
Binary file
|
assets/img/folder-icon-pages.png
DELETED
Binary file
|
assets/img/folder-icon-posts.png
DELETED
Binary file
|
assets/img/folder-icon.png
DELETED
Binary file
|
assets/js/custom.js
ADDED
@@ -0,0 +1,841 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var defaultFolderHtml;
|
2 |
+
var folderID = 0;
|
3 |
+
var fileAddUpdateStatus = "add";
|
4 |
+
var fileFolderID = 0;
|
5 |
+
var folderNameDynamic = '';
|
6 |
+
var totalFolders = -1;
|
7 |
+
var isKeyActive = 0;
|
8 |
+
var folderLimitation = 10;
|
9 |
+
|
10 |
+
var listFolderString = "<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'>" +
|
11 |
+
"<div class='folder-item is-folder' data-id='__folder_id__'>" +
|
12 |
+
"<a title='__folder_name__' id='folder_view___folder_id__'" +
|
13 |
+
"class='folder-view __append_class__'" +
|
14 |
+
"data-id='__folder_id__'>" +
|
15 |
+
"<span class='folder item-name'><span id='wcp_folder_text___folder_id__'" +
|
16 |
+
"class='folder-title'>__folder_name__</span></span>" +
|
17 |
+
"</a>" +
|
18 |
+
"</div>" +
|
19 |
+
"</li>";
|
20 |
+
|
21 |
+
function addFolder() {
|
22 |
+
if(isKeyActive == 0 && totalFolders >= folderLimitation) {
|
23 |
+
Swal.fire({
|
24 |
+
title: "You've reached the "+totalFolders+" folder limitation!",
|
25 |
+
text: "Unlock unlimited amount of folders by upgrading to one of our pro plans.",
|
26 |
+
type: 'warning',
|
27 |
+
showCancelButton: true,
|
28 |
+
confirmButtonColor: '#3085d6',
|
29 |
+
cancelButtonColor: '#d33',
|
30 |
+
confirmButtonText: 'See Pro Plans'
|
31 |
+
}).then((result) => {
|
32 |
+
if (result.value) {
|
33 |
+
window.location = wcp_settings.register_url;
|
34 |
+
}
|
35 |
+
});
|
36 |
+
return false;
|
37 |
+
}
|
38 |
+
folderOrder = jQuery("#space_"+fileFolderID+" > li").length+1;
|
39 |
+
ajaxURL = wcp_settings.ajax_url+"?parent_id=" + fileFolderID + "&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&term_id=" + fileFolderID + "&order=" + folderOrder+"&name=";
|
40 |
+
Swal({
|
41 |
+
title: 'Add Folder',
|
42 |
+
input: 'text',
|
43 |
+
inputAttributes: {
|
44 |
+
autocapitalize: 'off',
|
45 |
+
placeholder: "Folder name"
|
46 |
+
},
|
47 |
+
showCancelButton: true,
|
48 |
+
confirmButtonText: 'Submit',
|
49 |
+
showLoaderOnConfirm: true,
|
50 |
+
reverseButtons: true,
|
51 |
+
preConfirm: (folderName) => {
|
52 |
+
if(folderName == "") {
|
53 |
+
swal.showValidationError(
|
54 |
+
'Please enter folder name'
|
55 |
+
)
|
56 |
+
return false;
|
57 |
+
}
|
58 |
+
return fetch(ajaxURL+folderName)
|
59 |
+
.then(response => {
|
60 |
+
if (!response.ok) {
|
61 |
+
throw new Error(response.statusText);
|
62 |
+
}
|
63 |
+
return response.json();
|
64 |
+
}).catch(error => {
|
65 |
+
Swal.showValidationMessage(
|
66 |
+
"Request failed: "+error
|
67 |
+
)
|
68 |
+
});
|
69 |
+
},
|
70 |
+
allowOutsideClick: () => !Swal.isLoading()
|
71 |
+
}).then((result) => {
|
72 |
+
if(result.value.error == 1) {
|
73 |
+
Swal({
|
74 |
+
type: 'error',
|
75 |
+
title: 'Oops...',
|
76 |
+
text: result.value.message
|
77 |
+
});
|
78 |
+
} else if(result.value.status == 1) {
|
79 |
+
jQuery("#space_"+result.value.parent_id).append(result.value.term_data);
|
80 |
+
jQuery("#wcp_folder_"+result.value.parent_id).addClass("active has-sub-tree");
|
81 |
+
isKeyActive = parseInt(result.value.is_key_active);
|
82 |
+
totalFolders = parseInt(result.value.folders);
|
83 |
+
jQuery("#current-folder").text(totalFolders);
|
84 |
+
if(totalFolders > folderLimitation) {
|
85 |
+
folderLimitation = totalFolders;
|
86 |
+
}
|
87 |
+
jQuery("#total-folder").text(folderLimitation);
|
88 |
+
checkForExpandCollapse();
|
89 |
+
add_menu_to_list();
|
90 |
+
}
|
91 |
+
});
|
92 |
+
}
|
93 |
+
|
94 |
+
|
95 |
+
function updateFolder() {
|
96 |
+
folderName = jQuery.trim(jQuery("#wcp_folder_"+fileFolderID+" > h3").text());
|
97 |
+
parentID = jQuery("#wcp_folder_"+fileFolderID).closest("li.route").data("folder-id");
|
98 |
+
if(parentID == undefined) {
|
99 |
+
parentID = 0;
|
100 |
+
}
|
101 |
+
ajaxURL = wcp_settings.ajax_url+"?parent_id=" + parentID + "&type=" + wcp_settings.post_type + "&action=wcp_update_folder&term_id=" + fileFolderID + "&name=";
|
102 |
+
Swal({
|
103 |
+
title: 'Update Folder',
|
104 |
+
input: 'text',
|
105 |
+
inputValue: folderName,
|
106 |
+
inputAttributes: {
|
107 |
+
autocapitalize: 'off',
|
108 |
+
placeholder: "Folder name",
|
109 |
+
value: folderName
|
110 |
+
},
|
111 |
+
showCancelButton: true,
|
112 |
+
confirmButtonText: 'Submit',
|
113 |
+
showLoaderOnConfirm: true,
|
114 |
+
reverseButtons: true,
|
115 |
+
preConfirm: (folderName) => {
|
116 |
+
if(folderName == "") {
|
117 |
+
swal.showValidationError(
|
118 |
+
'Please enter folder name'
|
119 |
+
)
|
120 |
+
return false;
|
121 |
+
}
|
122 |
+
return fetch(ajaxURL+folderName)
|
123 |
+
.then(response => {
|
124 |
+
if (!response.ok) {
|
125 |
+
throw new Error(response.statusText);
|
126 |
+
}
|
127 |
+
return response.json();
|
128 |
+
}).catch(error => {
|
129 |
+
Swal.showValidationMessage(
|
130 |
+
"Request failed: "+error
|
131 |
+
)
|
132 |
+
});
|
133 |
+
},
|
134 |
+
allowOutsideClick: () => !Swal.isLoading()
|
135 |
+
}).then((result) => {
|
136 |
+
if(result.value.error == 1) {
|
137 |
+
Swal({
|
138 |
+
type: 'error',
|
139 |
+
title: 'Oops...',
|
140 |
+
text: result.value.message
|
141 |
+
});
|
142 |
+
} else if(result.value.status == 1) {
|
143 |
+
jQuery("#wcp_folder_"+result.value.id+" > h3 > .title-text").text(result.value.term_title);
|
144 |
+
jQuery("#wcp_folder_"+result.value.id+" > h3").attr("title",result.value.term_title);
|
145 |
+
add_menu_to_list();
|
146 |
+
}
|
147 |
+
});
|
148 |
+
}
|
149 |
+
|
150 |
+
function add_menu_to_list() {
|
151 |
+
folderId = 0;
|
152 |
+
if(jQuery(".active-term").length) {
|
153 |
+
folderId = jQuery(".active-term").data("folder-id");
|
154 |
+
}
|
155 |
+
jQuery(".tree-structure ul").html("");
|
156 |
+
jQuery("#space_"+folderId).children().each(function(){
|
157 |
+
fID = jQuery(this).data("folder-id");
|
158 |
+
fName = jQuery(this).find("h3.title:first .title-text").text()
|
159 |
+
liHtml = listFolderString.replace(/__folder_id__/g,fID);
|
160 |
+
liHtml = liHtml.replace(/__folder_name__/g,fName);
|
161 |
+
selectedClass = jQuery(this).hasClass("is-high")?"is-high":"";
|
162 |
+
liHtml = liHtml.replace(/__append_class__/g,selectedClass);
|
163 |
+
jQuery(".tree-structure ul").append(liHtml);
|
164 |
+
});
|
165 |
+
}
|
166 |
+
|
167 |
+
jQuery(document).ready(function(){
|
168 |
+
|
169 |
+
isKeyActive = parseInt(wcp_settings.is_key_active);
|
170 |
+
totalFolders = parseInt(wcp_settings.folders);
|
171 |
+
|
172 |
+
if(wcp_settings.post_type == "attachment") {
|
173 |
+
jQuery(".wp-header-end").before('<div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div>');
|
174 |
+
|
175 |
+
add_menu_to_list();
|
176 |
+
}
|
177 |
+
|
178 |
+
calcWidth(jQuery('#title_0'));
|
179 |
+
window.onresize = function(event) {
|
180 |
+
console.log("window resized");
|
181 |
+
|
182 |
+
};
|
183 |
+
|
184 |
+
jQuery("#cancel-button").click(function(){
|
185 |
+
jQuery(".wcp-form-data").hide();
|
186 |
+
});
|
187 |
+
|
188 |
+
|
189 |
+
jQuery(document).on("click", "h3.title", function(e) {
|
190 |
+
e.stopPropagation();
|
191 |
+
window.location = wcp_settings.page_url+jQuery(this).closest("li.route").data("slug");
|
192 |
+
});
|
193 |
+
|
194 |
+
jQuery(".tree-structure a").livequery(function(){
|
195 |
+
jQuery(this).click(function(){
|
196 |
+
fID = jQuery(this).data("id");
|
197 |
+
jQuery("#title_"+fID).trigger("click");
|
198 |
+
});
|
199 |
+
});
|
200 |
+
|
201 |
+
jQuery(".wcp-parent > span").click(function(){
|
202 |
+
window.location = wcp_settings.page_url
|
203 |
+
});
|
204 |
+
|
205 |
+
jQuery("h3.title").livequery(function(){
|
206 |
+
jQuery(this).droppable({
|
207 |
+
accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
|
208 |
+
hoverClass: 'wcp-drop-hover',
|
209 |
+
classes: {
|
210 |
+
"ui-droppable-active": "ui-state-highlight"
|
211 |
+
},
|
212 |
+
drop: function( event, ui ) {
|
213 |
+
folderID = jQuery(this).closest("li.route").data('folder-id');
|
214 |
+
if ( ui.draggable.hasClass( 'wcp-move-multiple' ) ) {
|
215 |
+
if(jQuery(".wp-list-table input:checked").length) {
|
216 |
+
chkStr = "";
|
217 |
+
jQuery(".wp-list-table input:checked").each(function(){
|
218 |
+
chkStr += jQuery(this).val()+",";
|
219 |
+
});
|
220 |
+
jQuery.ajax({
|
221 |
+
url: wcp_settings.ajax_url,
|
222 |
+
data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID,
|
223 |
+
method: 'post',
|
224 |
+
success: function (res) {
|
225 |
+
window.location.reload();
|
226 |
+
}
|
227 |
+
});
|
228 |
+
}
|
229 |
+
} else if( ui.draggable.hasClass( 'wcp-move-file' ) ){
|
230 |
+
postID = ui.draggable[0].attributes['data-id'].nodeValue;
|
231 |
+
jQuery.ajax({
|
232 |
+
url: wcp_settings.ajax_url,
|
233 |
+
data: "post_id=" + postID + "&type=" + wcp_settings.post_type + "&action=wcp_change_post_folder&folder_id=" + folderID,
|
234 |
+
method: 'post',
|
235 |
+
success: function (res) {
|
236 |
+
window.location.reload();
|
237 |
+
}
|
238 |
+
});
|
239 |
+
} else if( ui.draggable.hasClass( 'attachment' ) ){
|
240 |
+
chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
|
241 |
+
if(jQuery(".attachments-browser li.attachment.selected").length > 1) {
|
242 |
+
chkStr = "";
|
243 |
+
jQuery(".attachments-browser li.attachment.selected").each(function(){
|
244 |
+
chkStr += jQuery(this).data("id")+",";
|
245 |
+
});
|
246 |
+
}
|
247 |
+
jQuery.ajax({
|
248 |
+
url: wcp_settings.ajax_url,
|
249 |
+
data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID,
|
250 |
+
method: 'post',
|
251 |
+
success: function (res) {
|
252 |
+
window.location.reload();
|
253 |
+
}
|
254 |
+
});
|
255 |
+
}
|
256 |
+
}
|
257 |
+
});
|
258 |
+
});
|
259 |
+
|
260 |
+
jQuery(".attachments-browser li.attachment").livequery(function(){
|
261 |
+
jQuery(this).draggable({
|
262 |
+
revert: "invalid",
|
263 |
+
containment: "document",
|
264 |
+
helper: function(event, ui){
|
265 |
+
jQuery(".selected-items").remove();
|
266 |
+
selectedItems = jQuery(".attachments-browser li.attachment.selected").length;
|
267 |
+
selectedItems = (selectedItems == 0 || selectedItems == 1)?"1 Item":selectedItems+" Items";
|
268 |
+
return jQuery("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>");
|
269 |
+
},
|
270 |
+
start: function( event, ui){
|
271 |
+
|
272 |
+
},
|
273 |
+
cursor: "move",
|
274 |
+
cursorAt: {
|
275 |
+
left: 0,
|
276 |
+
top: 0
|
277 |
+
},
|
278 |
+
stop: function( event, ui ) {
|
279 |
+
jQuery(".selected-items").remove();
|
280 |
+
}
|
281 |
+
});
|
282 |
+
jQuery(this).draggable("disable");
|
283 |
+
});
|
284 |
+
|
285 |
+
jQuery(".media-button").livequery(function(){
|
286 |
+
jQuery(this).click(function() {
|
287 |
+
|
288 |
+
if(jQuery(".delete-selected-button").hasClass("hidden")) {
|
289 |
+
jQuery(".attachments-browser li.attachment").draggable( "disable" );
|
290 |
+
} else {
|
291 |
+
jQuery(".attachments-browser li.attachment").draggable( "enable" );
|
292 |
+
}
|
293 |
+
|
294 |
+
});
|
295 |
+
});
|
296 |
+
|
297 |
+
jQuery(".header-posts").click(function(){
|
298 |
+
window.location = wcp_settings.page_url;
|
299 |
+
});
|
300 |
+
|
301 |
+
jQuery(".tree-structure .folder-item").livequery(function(){
|
302 |
+
jQuery(this).droppable({
|
303 |
+
accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
|
304 |
+
hoverClass: 'wcp-drop-hover-list',
|
305 |
+
classes: {
|
306 |
+
"ui-droppable-active": "ui-state-highlight"
|
307 |
+
},
|
308 |
+
drop: function( event, ui ) {
|
309 |
+
console.log(ui);
|
310 |
+
folderID = jQuery(this).data('id');
|
311 |
+
if ( ui.draggable.hasClass( 'wcp-move-multiple' ) ) {
|
312 |
+
if(jQuery(".wp-list-table input:checked").length) {
|
313 |
+
chkStr = "";
|
314 |
+
jQuery(".wp-list-table input:checked").each(function(){
|
315 |
+
chkStr += jQuery(this).val()+",";
|
316 |
+
});
|
317 |
+
jQuery.ajax({
|
318 |
+
url: wcp_settings.ajax_url,
|
319 |
+
data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID,
|
320 |
+
method: 'post',
|
321 |
+
success: function (res) {
|
322 |
+
window.location.reload();
|
323 |
+
}
|
324 |
+
});
|
325 |
+
}
|
326 |
+
} else if ( ui.draggable.hasClass( 'wcp-move-file' ) ) {
|
327 |
+
postID = ui.draggable[0].attributes['data-id'].nodeValue;
|
328 |
+
jQuery.ajax({
|
329 |
+
url: wcp_settings.ajax_url,
|
330 |
+
data: "post_id=" + postID + "&type=" + wcp_settings.post_type + "&action=wcp_change_post_folder&folder_id=" + folderID,
|
331 |
+
method: 'post',
|
332 |
+
success: function (res) {
|
333 |
+
window.location.reload();
|
334 |
+
}
|
335 |
+
});
|
336 |
+
} else if( ui.draggable.hasClass( 'attachment' ) ){
|
337 |
+
chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
|
338 |
+
if(jQuery(".attachments-browser li.attachment.selected").length > 1) {
|
339 |
+
chkStr = "";
|
340 |
+
jQuery(".attachments-browser li.attachment.selected").each(function(){
|
341 |
+
chkStr += jQuery(this).data("id")+",";
|
342 |
+
});
|
343 |
+
}
|
344 |
+
jQuery.ajax({
|
345 |
+
url: wcp_settings.ajax_url,
|
346 |
+
data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID,
|
347 |
+
method: 'post',
|
348 |
+
success: function (res) {
|
349 |
+
window.location.reload();
|
350 |
+
}
|
351 |
+
});
|
352 |
+
}
|
353 |
+
}
|
354 |
+
});
|
355 |
+
});
|
356 |
+
|
357 |
+
jQuery("#expand-collapse-list").click(function(e){
|
358 |
+
e.stopPropagation();
|
359 |
+
statusType = 0;
|
360 |
+
if(jQuery(this).hasClass("all-open")) {
|
361 |
+
jQuery(this).removeClass("all-open");
|
362 |
+
jQuery(".has-sub-tree").removeClass("active");
|
363 |
+
statusType = 0;
|
364 |
+
} else {
|
365 |
+
jQuery(this).addClass("all-open");
|
366 |
+
statusType = 1;
|
367 |
+
jQuery(".has-sub-tree").addClass("active");
|
368 |
+
}
|
369 |
+
folderIDs = "";
|
370 |
+
jQuery(".has-sub-tree").each(function(){
|
371 |
+
folderIDs += jQuery(this).data("folder-id")+",";
|
372 |
+
});
|
373 |
+
if(folderIDs != "") {
|
374 |
+
jQuery(".form-loader-count").css("width","100%");
|
375 |
+
jQuery.ajax({
|
376 |
+
url: wcp_settings.ajax_url,
|
377 |
+
data: "type=" + wcp_settings.post_type + "&action=wcp_change_all_status&status=" + statusType + "&folders="+folderIDs,
|
378 |
+
method: 'post',
|
379 |
+
success: function (res) {
|
380 |
+
jQuery(".form-loader-count").css("width","0");
|
381 |
+
add_menu_to_list();
|
382 |
+
}
|
383 |
+
});
|
384 |
+
}
|
385 |
+
});
|
386 |
+
|
387 |
+
resizeDirection = (wcp_settings.isRTL == "1" || wcp_settings.isRTL == 1)?"w":"e";
|
388 |
+
jQuery(".wcp-content").resizable( {
|
389 |
+
resizeHeight: false,
|
390 |
+
handles: resizeDirection,
|
391 |
+
minWidth: 305,
|
392 |
+
maxWidth: 500,
|
393 |
+
resize: function( e, ui ) {
|
394 |
+
if(wcp_settings.isRTL == "1") {
|
395 |
+
jQuery("#wpcontent").css("padding-right", (ui.size.width + 20) + "px");
|
396 |
+
jQuery("#wpcontent").css("padding-left", "0px");
|
397 |
+
} else {
|
398 |
+
jQuery("#wpcontent").css("padding-left", (ui.size.width + 20) + "px");
|
399 |
+
}
|
400 |
+
newWidth = ui.size.width - 40;
|
401 |
+
cssString = "";
|
402 |
+
classString = "";
|
403 |
+
for(i=0; i<=15; i++) {
|
404 |
+
classString += " .space > .route >";
|
405 |
+
currentWidth = newWidth - (13+(20*i));
|
406 |
+
cssString += "#custom-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ";
|
407 |
+
}
|
408 |
+
jQuery("#wcp-custom-style").html("<style>"+cssString+"</style>");
|
409 |
+
},
|
410 |
+
stop: function( e, ui ) {
|
411 |
+
jQuery.ajax({
|
412 |
+
url: wcp_settings.ajax_url,
|
413 |
+
data: "type=" + wcp_settings.post_type + "&action=wcp_change_post_width&width=" + ui.size.width,
|
414 |
+
method: 'post',
|
415 |
+
success: function (res) {
|
416 |
+
|
417 |
+
}
|
418 |
+
});
|
419 |
+
}
|
420 |
+
});
|
421 |
+
|
422 |
+
jQuery(".wcp-move-file").draggable({
|
423 |
+
/*cancel: "a.ui-icon",*/
|
424 |
+
revert: "invalid",
|
425 |
+
containment: "document",
|
426 |
+
helper: "clone",
|
427 |
+
cursor: "move",
|
428 |
+
start: function( event, ui){
|
429 |
+
jQuery(this).closest("td").addClass("wcp-draggable");
|
430 |
+
},
|
431 |
+
stop: function( event, ui ) {
|
432 |
+
jQuery(this).closest("td").removeClass("wcp-draggable");
|
433 |
+
}
|
434 |
+
});
|
435 |
+
|
436 |
+
jQuery(".wcp-move-multiple").draggable({
|
437 |
+
/*cancel: "a.ui-icon",*/
|
438 |
+
revert: "invalid",
|
439 |
+
containment: "document",
|
440 |
+
helper: "clone",
|
441 |
+
cursor: "move"
|
442 |
+
});
|
443 |
+
|
444 |
+
jQuery("h3.title").livequery(function(){
|
445 |
+
jQuery(this).on("contextmenu",function(e) {
|
446 |
+
e.preventDefault();
|
447 |
+
isHigh = jQuery(this).closest("li.route").hasClass("is-high");
|
448 |
+
jQuery(".dynamic-menu").remove();
|
449 |
+
jQuery(".active-menu").removeClass("active-menu");
|
450 |
+
menuHtml = "<div class='dynamic-menu'><ul>" +
|
451 |
+
"<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
|
452 |
+
"<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
|
453 |
+
"<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>" +
|
454 |
+
"<li class='remove-folder'><a href='javascript:;'><span class='folder-icon-delete'></span> Delete</a></li>" +
|
455 |
+
"</ul></div>";
|
456 |
+
jQuery(this).after(menuHtml);
|
457 |
+
jQuery(this).parents("li.route").addClass("active-menu");
|
458 |
+
return false;
|
459 |
+
});
|
460 |
+
});
|
461 |
+
|
462 |
+
jQuery("body").click(function(){
|
463 |
+
jQuery(".dynamic-menu").remove();
|
464 |
+
jQuery(".active-menu").removeClass("active-menu");
|
465 |
+
});
|
466 |
+
|
467 |
+
jQuery(".dynamic-menu").livequery(function(){
|
468 |
+
jQuery(this).click(function(e){
|
469 |
+
e.stopPropagation();
|
470 |
+
});
|
471 |
+
});
|
472 |
+
|
473 |
+
jQuery(".rename-folder").livequery(function(){
|
474 |
+
jQuery(this).click(function(e){
|
475 |
+
e.stopPropagation();
|
476 |
+
fileFolderID = jQuery(this).closest("li.route").data("folder-id");
|
477 |
+
updateFolder();
|
478 |
+
add_menu_to_list();
|
479 |
+
});
|
480 |
+
});
|
481 |
+
|
482 |
+
jQuery(".mark-folder").livequery(function(){
|
483 |
+
jQuery(this).click(function(e){
|
484 |
+
e.stopPropagation();
|
485 |
+
folderID = jQuery(this).closest("li.route").data("folder-id");
|
486 |
+
//console.log("folderID :"+ folderID);
|
487 |
+
jQuery(".form-loader-count").css("width","100%");
|
488 |
+
jQuery(".dynamic-menu").remove();
|
489 |
+
jQuery(".active-menu").removeClass("active-menu");
|
490 |
+
jQuery.ajax({
|
491 |
+
url: wcp_settings.ajax_url,
|
492 |
+
data: "term_id=" + folderID + "&type=" + wcp_settings.post_type + "&action=wcp_mark_un_mark_folder",
|
493 |
+
method: 'post',
|
494 |
+
success: function (res) {
|
495 |
+
res = jQuery.parseJSON(res);
|
496 |
+
jQuery(".form-loader-count").css("width","0%");
|
497 |
+
if (res.status == '1') {
|
498 |
+
if(res.marked == '1') {
|
499 |
+
jQuery("#wcp_folder_"+res.id).addClass("is-high");
|
500 |
+
} else {
|
501 |
+
jQuery("#wcp_folder_"+res.id).removeClass("is-high");
|
502 |
+
}
|
503 |
+
}
|
504 |
+
add_menu_to_list();
|
505 |
+
}
|
506 |
+
});
|
507 |
+
});
|
508 |
+
});
|
509 |
+
|
510 |
+
/* Add new folder */
|
511 |
+
jQuery(".new-folder").livequery(function(){
|
512 |
+
jQuery(this).click(function(e) {
|
513 |
+
e.stopPropagation();
|
514 |
+
jQuery(".active-menu").removeClass("active-menu");
|
515 |
+
fileFolderID = jQuery(this).closest("li.route").data("folder-id");
|
516 |
+
jQuery(".dynamic-menu").remove();
|
517 |
+
jQuery(".active-menu").removeClass("active-menu");
|
518 |
+
addFolder();
|
519 |
+
add_menu_to_list();
|
520 |
+
});
|
521 |
+
});
|
522 |
+
|
523 |
+
jQuery(".cancel-button").livequery(function(){
|
524 |
+
jQuery(this).click(function(e){
|
525 |
+
e.stopPropagation();
|
526 |
+
jQuery(".form-li").remove();
|
527 |
+
});
|
528 |
+
});
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
jQuery("#add-new-folder").livequery(function(){
|
533 |
+
jQuery(this).click(function() {
|
534 |
+
if(jQuery("#custom-menu li.active-item").length) {
|
535 |
+
fileFolderID = jQuery("#custom-menu li.active-item").data("folder-id");
|
536 |
+
} else {
|
537 |
+
fileFolderID = 0;
|
538 |
+
}
|
539 |
+
addFolder();
|
540 |
+
add_menu_to_list();
|
541 |
+
});
|
542 |
+
});
|
543 |
+
|
544 |
+
jQuery("#inline-update").click(function(){
|
545 |
+
if(jQuery("#custom-menu li.active-item").length) {
|
546 |
+
fileFolderID = jQuery("#custom-menu li.active-item").data("folder-id");
|
547 |
+
updateFolder();
|
548 |
+
add_menu_to_list();
|
549 |
+
}
|
550 |
+
});
|
551 |
+
|
552 |
+
jQuery("#inline-remove").click(function(){
|
553 |
+
if(jQuery("#custom-menu li.active-item").length) {
|
554 |
+
fileFolderID = jQuery("#custom-menu li.active-item").data("folder-id");
|
555 |
+
jQuery(".dynamic-menu").remove();
|
556 |
+
jQuery(".active-menu").removeClass("active-menu");
|
557 |
+
Swal.fire({
|
558 |
+
url: wcp_settings.ajax_url,
|
559 |
+
title: 'Are you sure you want to delete the selected folder?',
|
560 |
+
text: 'Items in the folder will not be deleted.',
|
561 |
+
type: 'warning',
|
562 |
+
showCancelButton: true,
|
563 |
+
confirmButtonText: 'Yes, delete it!',
|
564 |
+
cancelButtonText: 'No, keep it',
|
565 |
+
}).then((result) => {
|
566 |
+
if (result.value) {
|
567 |
+
Swal({
|
568 |
+
title: 'Please wait..',
|
569 |
+
imageUrl: wcp_settings.ajax_image,
|
570 |
+
imageAlt: 'The uploaded picture',
|
571 |
+
showConfirmButton: false
|
572 |
+
});
|
573 |
+
jQuery.ajax({
|
574 |
+
url: wcp_settings.ajax_url,
|
575 |
+
data: "type=" + wcp_settings.post_type + "&action=wcp_remove_folder&term_id=" + fileFolderID,
|
576 |
+
method: 'post',
|
577 |
+
success: function (res) {
|
578 |
+
Swal.fire(
|
579 |
+
'Deleted!',
|
580 |
+
'Your folder has been deleted.',
|
581 |
+
'success'
|
582 |
+
);
|
583 |
+
res = jQuery.parseJSON(res);
|
584 |
+
if (res.status == '1') {
|
585 |
+
jQuery("#wcp_folder_"+fileFolderID).remove();
|
586 |
+
jQuery("#folder_"+fileFolderID).remove();
|
587 |
+
isKeyActive = parseInt(res.is_key_active);
|
588 |
+
totalFolders = parseInt(res.folders);
|
589 |
+
jQuery("#current-folder").text(totalFolders);
|
590 |
+
if(totalFolders > folderLimitation) {
|
591 |
+
folderLimitation = totalFolders;
|
592 |
+
}
|
593 |
+
jQuery("#total-folder").text(folderLimitation);
|
594 |
+
add_menu_to_list();
|
595 |
+
}
|
596 |
+
}
|
597 |
+
});
|
598 |
+
}
|
599 |
+
});
|
600 |
+
}
|
601 |
+
});
|
602 |
+
|
603 |
+
jQuery('.space').livequery(function(){
|
604 |
+
jQuery(this).sortable({
|
605 |
+
placeholder: "ui-state-highlight",
|
606 |
+
connectWith:'.space',
|
607 |
+
tolerance:'intersect',
|
608 |
+
over:function(event,ui){
|
609 |
+
|
610 |
+
},
|
611 |
+
update: function( event, ui ) {
|
612 |
+
thisId = ui.item.context.attributes['data-folder-id'].nodeValue;
|
613 |
+
orderString = "";
|
614 |
+
jQuery(this).children().each(function(){
|
615 |
+
if(jQuery(this).hasClass("route")) {
|
616 |
+
orderString += jQuery(this).data("folder-id")+",";
|
617 |
+
}
|
618 |
+
});
|
619 |
+
if(orderString != "") {
|
620 |
+
jQuery(".form-loader-count").css("width","100%");
|
621 |
+
jQuery.ajax({
|
622 |
+
url: wcp_settings.ajax_url,
|
623 |
+
data: "term_ids=" + orderString + "&action=wcp_save_folder_order&&type=" + wcp_settings.post_type,
|
624 |
+
method: 'post',
|
625 |
+
success: function (res) {
|
626 |
+
res = jQuery.parseJSON(res);
|
627 |
+
if (res.status == '1') {
|
628 |
+
jQuery("#wcp_folder_parent").html(res.options);
|
629 |
+
jQuery(".form-loader-count").css("width","0");
|
630 |
+
add_menu_to_list();
|
631 |
+
}
|
632 |
+
}
|
633 |
+
});
|
634 |
+
}
|
635 |
+
},
|
636 |
+
receive:function(event, ui){
|
637 |
+
calcWidth(jQuery(this).siblings('.title'));
|
638 |
+
check_for_sub_menu();
|
639 |
+
jQuery(this).closest("li.route").addClass("active");
|
640 |
+
jQuery(this).closest("li.route").find("ul.ui-sortable:first-child > li").slideDown();
|
641 |
+
parentId = jQuery(this).closest("li.route").data("folder-id");
|
642 |
+
thisId = ui.item.context.attributes['data-folder-id'].nodeValue;
|
643 |
+
if(parentId == undefined) {
|
644 |
+
parentId = 0;
|
645 |
+
}
|
646 |
+
orderString = "";
|
647 |
+
if(jQuery("#wcp_folder_"+parentId+" .ui-sortable li").length) {
|
648 |
+
jQuery("#wcp_folder_"+parentId+" .ui-sortable li").each(function(){
|
649 |
+
orderString += jQuery(this).data("folder-id")+",";
|
650 |
+
});
|
651 |
+
} else if(parentId == 0) {
|
652 |
+
jQuery("#custom-menu > ul.space > li").each(function(){
|
653 |
+
orderString += jQuery(this).data("folder-id")+",";
|
654 |
+
});
|
655 |
+
}
|
656 |
+
jQuery(".form-loader-count").css("width","100%");
|
657 |
+
jQuery.ajax({
|
658 |
+
url: wcp_settings.ajax_url,
|
659 |
+
data: "term_id=" + thisId + "&action=wcp_update_parent_information&parent_id=" + parentId+"&type=" + wcp_settings.post_type,
|
660 |
+
method: 'post',
|
661 |
+
success: function (res) {
|
662 |
+
jQuery(".form-loader-count").css("width","0%");
|
663 |
+
add_menu_to_list();
|
664 |
+
}
|
665 |
+
});
|
666 |
+
}
|
667 |
+
});
|
668 |
+
jQuery(this).disableSelection();
|
669 |
+
});
|
670 |
+
jQuery(".update-inline-record").livequery(function(){
|
671 |
+
jQuery(this).click(function(e){
|
672 |
+
e.stopPropagation();
|
673 |
+
isHigh = jQuery(this).closest("li.route").hasClass("is-high");
|
674 |
+
jQuery(".dynamic-menu").remove();
|
675 |
+
jQuery(".active-menu").removeClass("active-menu");
|
676 |
+
menuHtml = "<div class='dynamic-menu'><ul>" +
|
677 |
+
"<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
|
678 |
+
"<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
|
679 |
+
"<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>" +
|
680 |
+
"<li class='remove-folder'><a href='javascript:;'><span class='folder-icon-delete'></span> Delete</a></li>" +
|
681 |
+
"</ul></div>";
|
682 |
+
jQuery(this).closest("h3.title").after(menuHtml);
|
683 |
+
jQuery(this).parents("li.route").addClass("active-menu");
|
684 |
+
});
|
685 |
+
});
|
686 |
+
//check_for_sub_menu();
|
687 |
+
//jQuery(".has-sub-tree:first").addClass("active");
|
688 |
+
jQuery(".nav-icon").livequery(function(){
|
689 |
+
jQuery(this).click(function(){
|
690 |
+
if(jQuery(this).closest("li.route").hasClass("active")) {
|
691 |
+
jQuery(this).closest("li.route").removeClass("active");
|
692 |
+
jQuery(this).closest("li.route").find("ul.ui-sortable:first-child > li").slideUp();
|
693 |
+
folderStatus = 0;
|
694 |
+
} else {
|
695 |
+
jQuery(this).closest("li.route").addClass("active");
|
696 |
+
jQuery(this).closest("li.route").find("ul.ui-sortable:first-child > li").slideDown();
|
697 |
+
folderStatus = 1;
|
698 |
+
}
|
699 |
+
folderID = jQuery(this).closest("li.route").data("folder-id");
|
700 |
+
jQuery(".form-loader-count").css("width","100%");
|
701 |
+
checkForExpandCollapse();
|
702 |
+
jQuery.ajax({
|
703 |
+
url: wcp_settings.ajax_url,
|
704 |
+
data: "is_active=" + folderStatus + "&action=save_wcp_folder_state&term_id=" + folderID,
|
705 |
+
method: 'post',
|
706 |
+
success: function (res) {
|
707 |
+
jQuery(".form-loader-count").css("width","0");
|
708 |
+
add_menu_to_list();
|
709 |
+
}
|
710 |
+
});
|
711 |
+
});
|
712 |
+
});
|
713 |
+
jQuery("#custom-menu .ui-icon, #custom-menu h3").livequery(function(){
|
714 |
+
jQuery(this).click(function(){
|
715 |
+
jQuery("#custom-menu .active-item").removeClass("active-item");
|
716 |
+
jQuery(this).closest(".route").addClass("active-item");
|
717 |
+
add_menu_to_list();
|
718 |
+
});
|
719 |
+
});
|
720 |
+
jQuery(".remove-folder").livequery(function(){
|
721 |
+
jQuery(this).click(function() {
|
722 |
+
folderID = jQuery(this).closest("li.route").data("folder-id");
|
723 |
+
fileFolderID = folderID;
|
724 |
+
jQuery(".dynamic-menu").remove();
|
725 |
+
jQuery(".active-menu").removeClass("active-menu");
|
726 |
+
Swal.fire({
|
727 |
+
url: wcp_settings.ajax_url,
|
728 |
+
title: 'Are you sure you want to delete the selected folder?',
|
729 |
+
text: 'Items in the folder will not be deleted.',
|
730 |
+
type: 'warning',
|
731 |
+
showCancelButton: true,
|
732 |
+
confirmButtonText: 'Yes, delete it!',
|
733 |
+
cancelButtonText: 'No, keep it',
|
734 |
+
}).then((result) => {
|
735 |
+
if (result.value) {
|
736 |
+
Swal({
|
737 |
+
title: 'Please wait..',
|
738 |
+
imageUrl: wcp_settings.ajax_image,
|
739 |
+
imageAlt: 'The uploaded picture',
|
740 |
+
showConfirmButton: false
|
741 |
+
});
|
742 |
+
jQuery.ajax({
|
743 |
+
url: wcp_settings.ajax_url,
|
744 |
+
data: "type=" + wcp_settings.post_type + "&action=wcp_remove_folder&term_id=" + folderID,
|
745 |
+
method: 'post',
|
746 |
+
success: function (res) {
|
747 |
+
Swal.fire(
|
748 |
+
'Deleted!',
|
749 |
+
'Your folder has been deleted.',
|
750 |
+
'success'
|
751 |
+
);
|
752 |
+
res = jQuery.parseJSON(res);
|
753 |
+
if (res.status == '1') {
|
754 |
+
jQuery("#wcp_folder_"+fileFolderID).remove();
|
755 |
+
jQuery("#folder_"+fileFolderID).remove();
|
756 |
+
isKeyActive = parseInt(res.is_key_active);
|
757 |
+
totalFolders = parseInt(res.folders);
|
758 |
+
jQuery("#current-folder").text(totalFolders);
|
759 |
+
if(totalFolders > folderLimitation) {
|
760 |
+
folderLimitation = totalFolders;
|
761 |
+
}
|
762 |
+
jQuery("#total-folder").text(folderLimitation);
|
763 |
+
add_menu_to_list();
|
764 |
+
}
|
765 |
+
}
|
766 |
+
});
|
767 |
+
}
|
768 |
+
});
|
769 |
+
});
|
770 |
+
});
|
771 |
+
jQuery(".wcp-parent .fa-caret-right").livequery(function(){
|
772 |
+
jQuery(this).click(function() {
|
773 |
+
autoStatus = 1;
|
774 |
+
if (jQuery(this).closest(".wcp-parent").hasClass("active")) {
|
775 |
+
jQuery(this).closest(".wcp-parent").removeClass("active");
|
776 |
+
jQuery("#custom-menu").removeClass("active");
|
777 |
+
autoStatus = 0;
|
778 |
+
} else {
|
779 |
+
jQuery(this).closest(".wcp-parent").addClass("active");
|
780 |
+
jQuery("#custom-menu").addClass("active");
|
781 |
+
}
|
782 |
+
jQuery(".form-loader-count").css("width","100%");
|
783 |
+
add_menu_to_list();
|
784 |
+
jQuery.ajax({
|
785 |
+
url: wcp_settings.ajax_url,
|
786 |
+
data: "type=" + wcp_settings.post_type + "&action=wcp_save_parent_data&is_active=" + autoStatus,
|
787 |
+
method: 'post',
|
788 |
+
success: function (res) {
|
789 |
+
jQuery(".form-loader-count").css("width","0%");
|
790 |
+
}
|
791 |
+
});
|
792 |
+
});
|
793 |
+
});
|
794 |
+
|
795 |
+
checkForExpandCollapse();
|
796 |
+
})
|
797 |
+
|
798 |
+
function checkForExpandCollapse() {
|
799 |
+
add_menu_to_list();
|
800 |
+
currentStatus = true;
|
801 |
+
if((jQuery("#custom-menu .has-sub-tree").length == jQuery("#custom-menu .has-sub-tree.active").length) && jQuery("#custom-menu .has-sub-tree").length) {
|
802 |
+
jQuery("#expand-collapse-list").addClass("all-open");
|
803 |
+
} else {
|
804 |
+
jQuery("#expand-collapse-list").removeClass("all-open");
|
805 |
+
}
|
806 |
+
}
|
807 |
+
|
808 |
+
function check_for_sub_menu() {
|
809 |
+
jQuery("#custom-menu li.route").removeClass("has-sub-tree");
|
810 |
+
jQuery("#custom-menu li.route").each(function(){
|
811 |
+
if(jQuery(this).find("ul.ui-sortable li").length) {
|
812 |
+
jQuery(this).addClass("has-sub-tree");
|
813 |
+
if(jQuery(this).find("ul.ui-sortable:first").is(":hidden")) {
|
814 |
+
jQuery(this).removeClass("is-hidden");
|
815 |
+
} else {
|
816 |
+
jQuery(this).addClass("is-hidden")
|
817 |
+
}
|
818 |
+
} else {
|
819 |
+
jQuery(this).removeClass("active");
|
820 |
+
}
|
821 |
+
});
|
822 |
+
}
|
823 |
+
|
824 |
+
//recursively calculate the Width all titles
|
825 |
+
function calcWidth(obj){
|
826 |
+
var titles =
|
827 |
+
jQuery(obj).siblings('.space').children('.route').children('.title');
|
828 |
+
jQuery(titles).each(function(index, element){
|
829 |
+
var pTitleWidth = parseInt(jQuery(obj).css('width'));
|
830 |
+
var leftOffset = parseInt(jQuery(obj).siblings('.space').css('margin-left'));
|
831 |
+
var newWidth = pTitleWidth - leftOffset;
|
832 |
+
if (jQuery(obj).attr('id') == 'title_0'){
|
833 |
+
newWidth = newWidth - 10;
|
834 |
+
}
|
835 |
+
jQuery(element).css({
|
836 |
+
'width': newWidth
|
837 |
+
});
|
838 |
+
calcWidth(element);
|
839 |
+
});
|
840 |
+
|
841 |
+
}
|
assets/js/sweetalert.all.min.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return(l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&u(i,n.prototype),i}).apply(null,arguments)}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var t="SweetAlert2:",f=function(e){return Array.prototype.slice.call(e)},R=function(e){console.warn("".concat(t," ").concat(e))},I=function(e){console.error("".concat(t," ").concat(e))},n=[],m=function(e){-1===n.indexOf(e)&&(n.push(e),R(e))},H=function(e){return"function"==typeof e?e():e},D=function(e){return e&&Promise.resolve(e)===e},e=Object.freeze({cancel:"cancel",backdrop:"overlay",close:"close",esc:"esc",timer:"timer"}),h=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},_=h(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl"]),g=h(["success","warning","info","question","error"]),b={previousBodyPadding:null},v=function(e,t){return e.classList.contains(t)},N=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},y=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},z=function(e,t){y(e,t,!0)},W=function(e,t){y(e,t,!1)},U=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(v(e.childNodes[n],t))return e.childNodes[n]},K=function(e){e.style.opacity="",e.style.display=e.id===_.content?"block":"flex"},F=function(e){e.style.opacity="",e.style.display="none"},Z=function(e){return e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w=function(){return document.body.querySelector("."+_.container)},C=function(e){var t=w();return t?t.querySelector("."+e):null},k=function(){return C(_.popup)},x=function(){var e=k();return f(e.querySelectorAll("."+_.icon))},A=function(){return C(_.title)},B=function(){return C(_.content)},S=function(){return C(_.image)},P=function(){return C(_.progresssteps)},E=function(){return C(_["validation-message"])},L=function(){return C(_.confirm)},O=function(){return C(_.cancel)},Q=function(){return C(_.actions)},Y=function(){return C(_.footer)},$=function(){return C(_.close)},J=function(){var e=f(k().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0}),t=f(k().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter(function(e){return Z(e)})},T=function(){return!M()&&!document.body.classList.contains(_["no-backdrop"])},M=function(){return document.body.classList.contains(_["toast-shown"])},j=function(){return"undefined"==typeof window||"undefined"==typeof document},V='\n <div aria-labelledby="'.concat(_.title,'" aria-describedby="').concat(_.content,'" class="').concat(_.popup,'" tabindex="-1">\n <div class="').concat(_.header,'">\n <ul class="').concat(_.progresssteps,'"></ul>\n <div class="').concat(_.icon," ").concat(g.error,'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="').concat(_.icon," ").concat(g.question,'">\n <span class="').concat(_["icon-text"],'">?</span>\n </div>\n <div class="').concat(_.icon," ").concat(g.warning,'">\n <span class="').concat(_["icon-text"],'">!</span>\n </div>\n <div class="').concat(_.icon," ").concat(g.info,'">\n <span class="').concat(_["icon-text"],'">i</span>\n </div>\n <div class="').concat(_.icon," ").concat(g.success,'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="').concat(_.image,'" />\n <h2 class="').concat(_.title,'" id="').concat(_.title,'"></h2>\n <button type="button" class="').concat(_.close,'">×</button>\n </div>\n <div class="').concat(_.content,'">\n <div id="').concat(_.content,'"></div>\n <input class="').concat(_.input,'" />\n <input type="file" class="').concat(_.file,'" />\n <div class="').concat(_.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(_.select,'"></select>\n <div class="').concat(_.radio,'"></div>\n <label for="').concat(_.checkbox,'" class="').concat(_.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(_.label,'"></span>\n </label>\n <textarea class="').concat(_.textarea,'"></textarea>\n <div class="').concat(_["validation-message"],'" id="').concat(_["validation-message"],'"></div>\n </div>\n <div class="').concat(_.actions,'">\n <button type="button" class="').concat(_.confirm,'">OK</button>\n <button type="button" class="').concat(_.cancel,'">Cancel</button>\n </div>\n <div class="').concat(_.footer,'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),X=function(e){var t=w();if(t&&(t.parentNode.removeChild(t),W([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]])),!j()){var n=document.createElement("div");n.className=_.container,n.innerHTML=V;var o="string"==typeof e.target?document.querySelector(e.target):e.target;o.appendChild(n);var i,r=k(),a=B(),s=U(a,_.input),c=U(a,_.file),u=a.querySelector(".".concat(_.range," input")),l=a.querySelector(".".concat(_.range," output")),d=U(a,_.select),p=a.querySelector(".".concat(_.checkbox," input")),f=U(a,_.textarea);r.setAttribute("role",e.toast?"alert":"dialog"),r.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||r.setAttribute("aria-modal","true"),"rtl"===window.getComputedStyle(o).direction&&z(w(),_.rtl);var m=function(e){De.isVisible()&&i!==e.target.value&&De.resetValidationMessage(),i=e.target.value};return s.oninput=m,c.onchange=m,d.onchange=m,p.onchange=m,f.oninput=m,u.oninput=function(e){m(e),l.value=u.value},u.onchange=function(e){m(e),u.nextSibling.value=u.value},r}I("SweetAlert2 requires document to initialize")},G=function(e,t){if(!e)return F(t);if(e instanceof HTMLElement)t.appendChild(e);else if("object"===q(e))if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0));else e&&(t.innerHTML=e);K(t)},ee=function(){if(j())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),te=function(e){var t=Q(),n=L(),o=O();if(e.showConfirmButton||e.showCancelButton?K(t):F(t),e.showCancelButton?o.style.display="inline-block":F(o),e.showConfirmButton?n.style.removeProperty("display"):F(n),n.innerHTML=e.confirmButtonText,o.innerHTML=e.cancelButtonText,n.setAttribute("aria-label",e.confirmButtonAriaLabel),o.setAttribute("aria-label",e.cancelButtonAriaLabel),n.className=_.confirm,z(n,e.confirmButtonClass),o.className=_.cancel,z(o,e.cancelButtonClass),e.buttonsStyling){z([n,o],_.styled),e.confirmButtonColor&&(n.style.backgroundColor=e.confirmButtonColor),e.cancelButtonColor&&(o.style.backgroundColor=e.cancelButtonColor);var i=window.getComputedStyle(n).getPropertyValue("background-color");n.style.borderLeftColor=i,n.style.borderRightColor=i}else W([n,o],_.styled),n.style.backgroundColor=n.style.borderLeftColor=n.style.borderRightColor="",o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor=""},ne=function(e){var t=B().querySelector("#"+_.content);e.html?G(e.html,t):e.text?(t.textContent=e.text,K(t)):F(t)},oe=function(e){for(var t=x(),n=0;n<t.length;n++)F(t[n]);if(e.type)if(-1!==Object.keys(g).indexOf(e.type)){var o=De.getPopup().querySelector(".".concat(_.icon,".").concat(g[e.type]));K(o),e.animation&&z(o,"swal2-animate-".concat(e.type,"-icon"))}else I('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},ie=function(e){var t=S();e.imageUrl?(t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),K(t),e.imageWidth?t.setAttribute("width",e.imageWidth):t.removeAttribute("width"),e.imageHeight?t.setAttribute("height",e.imageHeight):t.removeAttribute("height"),t.className=_.image,e.imageClass&&z(t,e.imageClass)):F(t)},re=function(i){var r=P(),a=parseInt(null===i.currentProgressStep?De.getQueueStep():i.currentProgressStep,10);i.progressSteps&&i.progressSteps.length?(K(r),r.innerHTML="",a>=i.progressSteps.length&&R("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.progressSteps.forEach(function(e,t){var n=document.createElement("li");if(z(n,_.progresscircle),n.innerHTML=e,t===a&&z(n,_.activeprogressstep),r.appendChild(n),t!==i.progressSteps.length-1){var o=document.createElement("li");z(o,_.progressline),i.progressStepsDistance&&(o.style.width=i.progressStepsDistance),r.appendChild(o)}})):F(r)},ae=function(e){var t=A();e.titleText?t.innerText=e.titleText:e.title&&("string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),G(e.title,t))},se=function(){null===b.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(b.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=b.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},ce=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ue=function(){var e=w(),t=k();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},le={},de=function(e,t){var n=w(),o=k();if(o){null!==e&&"function"==typeof e&&e(o),W(o,_.show),z(o,_.hide);var i=function(){M()?pe(t):(new Promise(function(e){var t=window.scrollX,n=window.scrollY;le.restoreFocusTimeout=setTimeout(function(){le.previousActiveElement&&le.previousActiveElement.focus?(le.previousActiveElement.focus(),le.previousActiveElement=null):document.body&&document.body.focus(),e()},100),void 0!==t&&void 0!==n&&window.scrollTo(t,n)}).then(function(){return pe(t)}),le.keydownTarget.removeEventListener("keydown",le.keydownHandler,{capture:le.keydownListenerCapture}),le.keydownHandlerAdded=!1),n.parentNode&&n.parentNode.removeChild(n),W([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"],_["toast-column"]]),T()&&(null!==b.previousBodyPadding&&(document.body.style.paddingRight=b.previousBodyPadding,b.previousBodyPadding=null),function(){if(v(document.body,_.iosfix)){var e=parseInt(document.body.style.top,10);W(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!=typeof window&&ce()&&window.removeEventListener("resize",ue),f(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))};ee&&!v(o,_.noanimation)?o.addEventListener(ee,function e(){o.removeEventListener(ee,e),v(o,_.hide)&&i()}):i()}},pe=function(e){null!==e&&"function"==typeof e&&setTimeout(function(){e()})};function fe(e){var t=function e(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(!(this instanceof e))return l(e,n);Object.getPrototypeOf(e).apply(this,n)};return t.prototype=r(Object.create(e.prototype),{constructor:t}),"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var me={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",customContainerClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,validationMessage:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},he=["useRejections","expectRejections","extraParams"],ge=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],be=function(e){return me.hasOwnProperty(e)||"extraParams"===e},ve=function(e){return-1!==he.indexOf(e)},ye=function(e){for(var t in e)be(t)||R('Unknown parameter "'.concat(t,'"')),e.toast&&-1!==ge.indexOf(t)&&R('The parameter "'.concat(t,'" is incompatible with toasts')),ve(t)&&m('The parameter "'.concat(t,'" is deprecated and will be removed in the next major release.'))},we='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',Ce={};var ke=[],xe=function(){var e=k();e||De(""),e=k();var t=Q(),n=L(),o=O();K(t),K(n),z([e,t],_.loading),n.disabled=!0,o.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Ae=Object.freeze({isValidParameter:be,isDeprecatedParameter:ve,argsToParams:function(n){var o={};switch(q(n[0])){case"object":r(o,n[0]);break;default:["title","html","type"].forEach(function(e,t){switch(q(n[t])){case"string":o[e]=n[t];break;case"undefined":break;default:I("Unexpected type of ".concat(e,'! Expected "string", got ').concat(q(n[t])))}})}return o},adaptInputValidator:function(n){return function(e,t){return n.call(this,e,t).then(function(){},function(e){return e})}},close:de,closePopup:de,closeModal:de,closeToast:de,isVisible:function(){return!!k()},clickConfirm:function(){return L().click()},clickCancel:function(){return O().click()},getContainer:w,getPopup:k,getTitle:A,getContent:B,getImage:S,getIcons:x,getCloseButton:$,getButtonsWrapper:function(){return m("swal.getButtonsWrapper() is deprecated and will be removed in the next major release, use swal.getActions() instead"),C(_.actions)},getActions:Q,getConfirmButton:L,getCancelButton:O,getFooter:Y,getFocusableElements:J,getValidationMessage:E,isLoading:function(){return k().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(this,t)},mixin:function(n){return fe(function(e){function t(){return a(this,t),d(this,c(t).apply(this,arguments))}return s(t,e),i(t,[{key:"_main",value:function(e){return p(c(t.prototype),"_main",this).call(this,r({},n,e))}}]),t}(this))},queue:function(e){var r=this;ke=e;var a=function(){ke=[],document.body.removeAttribute("data-swal2-queue-step")},s=[];return new Promise(function(i){!function t(n,o){n<ke.length?(document.body.setAttribute("data-swal2-queue-step",n),r(ke[n]).then(function(e){void 0!==e.value?(s.push(e.value),t(n+1,o)):(a(),i({dismiss:e.dismiss}))})):(a(),i({value:s}))}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(e,t){return t&&t<ke.length?ke.splice(t,0,e):ke.push(e)},deleteQueueStep:function(e){void 0!==ke[e]&&ke.splice(e,1)},showLoading:xe,enableLoading:xe,getTimerLeft:function(){return le.timeout&&le.timeout.getTimerLeft()},stopTimer:function(){return le.timeout&&le.timeout.stop()},resumeTimer:function(){return le.timeout&&le.timeout.start()},toggleTimer:function(){var e=le.timeout;return e&&(e.running?e.stop():e.start())},increaseTimer:function(e){return le.timeout&&le.timeout.increase(e)},isTimerRunning:function(){return le.timeout&&le.timeout.isRunning()}}),Be="function"==typeof Symbol?Symbol:function(){var t=0;function e(e){return"__"+e+"_"+Math.floor(1e9*Math.random())+"_"+ ++t+"__"}return e.iterator=e("Symbol.iterator"),e}(),Se="function"==typeof WeakMap?WeakMap:function(n,o,t){function e(){o(this,n,{value:Be("WeakMap")})}return e.prototype={delete:function(e){delete e[this[n]]},get:function(e){return e[this[n]]},has:function(e){return t.call(e,this[n])},set:function(e,t){o(e,this[n],{configurable:!0,value:t})}},e}(Be("WeakMap"),Object.defineProperty,{}.hasOwnProperty),Pe={promise:new Se,innerParams:new Se,domCache:new Se};function Ee(){var e=Pe.innerParams.get(this),t=Pe.domCache.get(this);e.showConfirmButton||(F(t.confirmButton),e.showCancelButton||F(t.actions)),W([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}function Le(e){var t=Pe.domCache.get(this);t.validationMessage.innerHTML=e;var n=window.getComputedStyle(t.popup);t.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),t.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),K(t.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",_["validation-message"]),N(o),z(o,_.inputerror))}function Oe(){var e=Pe.domCache.get(this);e.validationMessage&&F(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),W(t,_.inputerror))}var Te=function e(t,n){a(this,e);var o,i,r=n;this.running=!1,this.start=function(){return this.running||(this.running=!0,i=new Date,o=setTimeout(t,r)),r},this.stop=function(){return this.running&&(this.running=!1,clearTimeout(o),r-=new Date-i),r},this.increase=function(e){var t=this.running;return t&&this.stop(),r+=e,t&&this.start(),r},this.getTimerLeft=function(){return this.running&&(this.stop(),this.start()),r},this.isRunning=function(){return this.running},this.start()},Me={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid URL")}};var je=function(e){var t=w(),n=k();null!==e.onBeforeOpen&&"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n),e.animation?(z(n,_.show),z(t,_.fade),W(n,_.hide)):W(n,_.fade),K(n),t.style.overflowY="hidden",ee&&!v(n,_.noanimation)?n.addEventListener(ee,function e(){n.removeEventListener(ee,e),t.style.overflowY="auto"}):t.style.overflowY="auto",z([document.documentElement,document.body,t],_.shown),e.heightAuto&&e.backdrop&&!e.toast&&z([document.documentElement,document.body],_["height-auto"]),T()&&(se(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!v(document.body,_.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",z(document.body,_.iosfix)}}(),"undefined"!=typeof window&&ce()&&(ue(),window.addEventListener("resize",ue)),f(document.body.children).forEach(function(e){e===w()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,w())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),setTimeout(function(){t.scrollTop=0})),M()||le.previousActiveElement||(le.previousActiveElement=document.activeElement),null!==e.onOpen&&"function"==typeof e.onOpen&&setTimeout(function(){e.onOpen(n)})};var Ve,qe=Object.freeze({hideLoading:Ee,disableLoading:Ee,getInput:function(e){var t=Pe.innerParams.get(this),n=Pe.domCache.get(this);if(!(e=e||t.input))return null;switch(e){case"select":case"textarea":case"file":return U(n.content,_[e]);case"checkbox":return n.popup.querySelector(".".concat(_.checkbox," input"));case"radio":return n.popup.querySelector(".".concat(_.radio," input:checked"))||n.popup.querySelector(".".concat(_.radio," input:first-child"));case"range":return n.popup.querySelector(".".concat(_.range," input"));default:return U(n.content,_.input)}},enableButtons:function(){var e=Pe.domCache.get(this);e.confirmButton.disabled=!1,e.cancelButton.disabled=!1},disableButtons:function(){var e=Pe.domCache.get(this);e.confirmButton.disabled=!0,e.cancelButton.disabled=!0},enableConfirmButton:function(){Pe.domCache.get(this).confirmButton.disabled=!1},disableConfirmButton:function(){Pe.domCache.get(this).confirmButton.disabled=!0},enableInput:function(){var e=this.getInput();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},disableInput:function(){var e=this.getInput();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},showValidationMessage:Le,resetValidationMessage:Oe,resetValidationError:function(){m("Swal.resetValidationError() is deprecated and will be removed in the next major release, use Swal.resetValidationMessage() instead"),Oe.bind(this)()},showValidationError:function(e){m("Swal.showValidationError() is deprecated and will be removed in the next major release, use Swal.showValidationMessage() instead"),Le.bind(this)(e)},getProgressSteps:function(){return Pe.innerParams.get(this).progressSteps},setProgressSteps:function(e){var t=r({},Pe.innerParams.get(this),{progressSteps:e});Pe.innerParams.set(this,t),re(t)},showProgressSteps:function(){var e=Pe.domCache.get(this);K(e.progressSteps)},hideProgressSteps:function(){var e=Pe.domCache.get(this);F(e.progressSteps)},_main:function(e){var T=this;ye(e);var M=r({},me,e);!function(t){var e;t.inputValidator||Object.keys(Me).forEach(function(e){t.input===e&&(t.inputValidator=t.expectRejections?Me[e]:De.adaptInputValidator(Me[e]))}),t.validationMessage&&("object"!==q(t.extraParams)&&(t.extraParams={}),t.extraParams.validationMessage=t.validationMessage),(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(R('Target parameter is not valid, defaulting to "body"'),t.target="body"),"function"==typeof t.animation&&(t.animation=t.animation.call());var n=k(),o="string"==typeof t.target?document.querySelector(t.target):t.target;e=n&&o&&n.parentNode!==o.parentNode?X(t):n||X(t),t.width&&(e.style.width="number"==typeof t.width?t.width+"px":t.width),t.padding&&(e.style.padding="number"==typeof t.padding?t.padding+"px":t.padding),t.background&&(e.style.background=t.background);for(var i=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),a=0;a<r.length;a++)r[a].style.backgroundColor=i;var s=w(),c=$(),u=Y();if(ae(t),ne(t),"string"==typeof t.backdrop?w().style.background=t.backdrop:t.backdrop||z([document.documentElement,document.body],_["no-backdrop"]),!t.backdrop&&t.allowOutsideClick&&R('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.position in _?z(s,_[t.position]):(R('The "position" parameter is not valid, defaulting to "center"'),z(s,_.center)),t.grow&&"string"==typeof t.grow){var l="grow-"+t.grow;l in _&&z(s,_[l])}t.showCloseButton?(c.setAttribute("aria-label",t.closeButtonAriaLabel),K(c)):F(c),e.className=_.popup,t.toast?(z([document.documentElement,document.body],_["toast-shown"]),z(e,_.toast)):z(e,_.modal),t.customClass&&z(e,t.customClass),t.customContainerClass&&z(s,t.customContainerClass),re(t),oe(t),ie(t),te(t),G(t.footer,u),!0===t.animation?W(e,_.noanimation):z(e,_.noanimation),t.showLoaderOnConfirm&&!t.preConfirm&&R("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")}(M),Object.freeze(M),Pe.innerParams.set(this,M),le.timeout&&(le.timeout.stop(),delete le.timeout),clearTimeout(le.restoreFocusTimeout);var j={popup:k(),container:w(),content:B(),actions:Q(),confirmButton:L(),cancelButton:O(),closeButton:$(),validationMessage:E(),progressSteps:P()};Pe.domCache.set(this,j);var V=this.constructor;return new Promise(function(t,n){var o=function(e){V.closePopup(M.onClose,M.onAfterClose),M.useRejections?t(e):t({value:e})},c=function(e){V.closePopup(M.onClose,M.onAfterClose),M.useRejections?n(e):t({dismiss:e})},u=function(e){V.closePopup(M.onClose,M.onAfterClose),n(e)};M.timer&&(le.timeout=new Te(function(){c("timer"),delete le.timeout},M.timer)),M.input&&setTimeout(function(){var e=T.getInput();e&&N(e)},0);for(var l=function(t){if(M.showLoaderOnConfirm&&V.showLoading(),M.preConfirm){T.resetValidationMessage();var e=Promise.resolve().then(function(){return M.preConfirm(t,M.extraParams)});M.expectRejections?e.then(function(e){return o(e||t)},function(e){T.hideLoading(),e&&T.showValidationMessage(e)}):e.then(function(e){Z(j.validationMessage)||!1===e?T.hideLoading():o(e||t)},function(e){return u(e)})}else o(t)},e=function(e){var t=e.target,n=j.confirmButton,o=j.cancelButton,i=n&&(n===t||n.contains(t)),r=o&&(o===t||o.contains(t));switch(e.type){case"click":if(i&&V.isVisible())if(T.disableButtons(),M.input){var a=function(){var e=T.getInput();if(!e)return null;switch(M.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return M.inputAutoTrim?e.value.trim():e.value}}();if(M.inputValidator){T.disableInput();var s=Promise.resolve().then(function(){return M.inputValidator(a,M.extraParams)});M.expectRejections?s.then(function(){T.enableButtons(),T.enableInput(),l(a)},function(e){T.enableButtons(),T.enableInput(),e&&T.showValidationMessage(e)}):s.then(function(e){T.enableButtons(),T.enableInput(),e?T.showValidationMessage(e):l(a)},function(e){return u(e)})}else T.getInput().checkValidity()?l(a):(T.enableButtons(),T.showValidationMessage(M.validationMessage))}else l(!0);else r&&V.isVisible()&&(T.disableButtons(),c(V.DismissReason.cancel))}},i=j.popup.querySelectorAll("button"),r=0;r<i.length;r++)i[r].onclick=e,i[r].onmouseover=e,i[r].onmouseout=e,i[r].onmousedown=e;if(j.closeButton.onclick=function(){c(V.DismissReason.close)},M.toast)j.popup.onclick=function(){M.showConfirmButton||M.showCancelButton||M.showCloseButton||M.input||c(V.DismissReason.close)};else{var a=!1;j.popup.onmousedown=function(){j.container.onmouseup=function(e){j.container.onmouseup=void 0,e.target===j.container&&(a=!0)}},j.container.onmousedown=function(){j.popup.onmouseup=function(e){j.popup.onmouseup=void 0,(e.target===j.popup||j.popup.contains(e.target))&&(a=!0)}},j.container.onclick=function(e){a?a=!1:e.target===j.container&&H(M.allowOutsideClick)&&c(V.DismissReason.backdrop)}}M.reverseButtons?j.confirmButton.parentNode.insertBefore(j.cancelButton,j.confirmButton):j.confirmButton.parentNode.insertBefore(j.confirmButton,j.cancelButton);var s=function(e,t){for(var n=J(M.focusCancel),o=0;o<n.length;o++)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();j.popup.focus()};le.keydownHandlerAdded&&(le.keydownTarget.removeEventListener("keydown",le.keydownHandler,{capture:le.keydownListenerCapture}),le.keydownHandlerAdded=!1),M.toast||(le.keydownHandler=function(e){return function(e,t){if(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"!==e.key||e.isComposing)if("Tab"===e.key){for(var n=e.target,o=J(t.focusCancel),i=-1,r=0;r<o.length;r++)if(n===o[r]){i=r;break}e.shiftKey?s(i,-1):s(i,1),e.stopPropagation(),e.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(e.key)?document.activeElement===j.confirmButton&&Z(j.cancelButton)?j.cancelButton.focus():document.activeElement===j.cancelButton&&Z(j.confirmButton)&&j.confirmButton.focus():"Escape"!==e.key&&"Esc"!==e.key||!0!==H(t.allowEscapeKey)||(e.preventDefault(),c(V.DismissReason.esc));else if(e.target&&T.getInput()&&e.target.outerHTML===T.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(t.input))return;V.clickConfirm(),e.preventDefault()}}(e,M)},le.keydownTarget=M.keydownListenerCapture?window:j.popup,le.keydownListenerCapture=M.keydownListenerCapture,le.keydownTarget.addEventListener("keydown",le.keydownHandler,{capture:le.keydownListenerCapture}),le.keydownHandlerAdded=!0),T.enableButtons(),T.hideLoading(),T.resetValidationMessage(),M.toast&&(M.input||M.footer||M.showCloseButton)?z(document.body,_["toast-column"]):W(document.body,_["toast-column"]);for(var d,p,f=["input","file","range","select","radio","checkbox","textarea"],m=function(e){e.placeholder&&!M.inputPlaceholder||(e.placeholder=M.inputPlaceholder)},h=0;h<f.length;h++){var g=_[f[h]],b=U(j.content,g);if(d=T.getInput(f[h])){for(var v in d.attributes)if(d.attributes.hasOwnProperty(v)){var y=d.attributes[v].name;"type"!==y&&"value"!==y&&d.removeAttribute(y)}for(var w in M.inputAttributes)"range"===f[h]&&"placeholder"===w||d.setAttribute(w,M.inputAttributes[w])}b.className=g,M.inputClass&&z(b,M.inputClass),F(b)}switch(M.input){case"text":case"email":case"password":case"number":case"tel":case"url":d=U(j.content,_.input),"string"==typeof M.inputValue||"number"==typeof M.inputValue?d.value=M.inputValue:D(M.inputValue)||R('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(q(M.inputValue),'"')),m(d),d.type=M.input,K(d);break;case"file":m(d=U(j.content,_.file)),d.type=M.input,K(d);break;case"range":var C=U(j.content,_.range),k=C.querySelector("input"),x=C.querySelector("output");k.value=M.inputValue,k.type=M.input,x.value=M.inputValue,K(C);break;case"select":var A=U(j.content,_.select);if(A.innerHTML="",M.inputPlaceholder){var B=document.createElement("option");B.innerHTML=M.inputPlaceholder,B.value="",B.disabled=!0,B.selected=!0,A.appendChild(B)}p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("option");o.value=t,o.innerHTML=n,M.inputValue.toString()===t.toString()&&(o.selected=!0),A.appendChild(o)}),K(A),A.focus()};break;case"radio":var S=U(j.content,_.radio);S.innerHTML="",p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=_.radio,o.value=t,M.inputValue.toString()===t.toString()&&(o.checked=!0);var r=document.createElement("span");r.innerHTML=n,r.className=_.label,i.appendChild(o),i.appendChild(r),S.appendChild(i)}),K(S);var t=S.querySelectorAll("input");t.length&&t[0].focus()};break;case"checkbox":var P=U(j.content,_.checkbox),E=T.getInput("checkbox");E.type="checkbox",E.value=1,E.id=_.checkbox,E.checked=Boolean(M.inputValue),P.querySelector("span").innerHTML=M.inputPlaceholder,K(P);break;case"textarea":var L=U(j.content,_.textarea);L.value=M.inputValue,m(L),K(L);break;case null:break;default:I('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(M.input,'"'))}if("select"===M.input||"radio"===M.input){var O=function(e){return p((t=e,n=[],"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(e,t){n.push([t,e])}):Object.keys(t).forEach(function(e){n.push([e,t[e]])}),n));var t,n};D(M.inputOptions)?(V.showLoading(),M.inputOptions.then(function(e){T.hideLoading(),O(e)})):"object"===q(M.inputOptions)?O(M.inputOptions):I("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(q(M.inputOptions)))}else-1!==["text","email","number","tel","textarea"].indexOf(M.input)&&D(M.inputValue)&&(V.showLoading(),F(d),M.inputValue.then(function(e){d.value="number"===M.input?parseFloat(e)||0:e+"",K(d),d.focus(),T.hideLoading()}).catch(function(e){I("Error in inputValue promise: "+e),d.value="",K(d),d.focus(),T.hideLoading()}));je(M),M.toast||(H(M.allowEnterKey)?M.focusCancel&&Z(j.cancelButton)?j.cancelButton.focus():M.focusConfirm&&Z(j.confirmButton)?j.confirmButton.focus():s(-1,1):document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()),j.container.scrollTop=0})}});function Re(){if("undefined"!=typeof window){"undefined"==typeof Promise&&I("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Ve=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0}});var i=this._main(this.params);Pe.promise.set(this,i)}}Re.prototype.then=function(e,t){return Pe.promise.get(this).then(e,t)},Re.prototype.catch=function(e){return Pe.promise.get(this).catch(e)},Re.prototype.finally=function(e){return Pe.promise.get(this).finally(e)},r(Re.prototype,qe),r(Re,Ae),Object.keys(qe).forEach(function(t){Re[t]=function(){var e;if(Ve)return(e=Ve)[t].apply(e,arguments)}}),Re.DismissReason=e,Re.noop=function(){};var Ie,He,De=fe((Ie=Re,He=function(e){function t(){return a(this,t),d(this,c(t).apply(this,arguments))}return s(t,Ie),i(t,[{key:"_main",value:function(e){return p(c(t.prototype),"_main",this).call(this,r({},Ce,e))}}],[{key:"setDefaults",value:function(t){if(m(we),!t||"object"!==q(t))throw new TypeError("SweetAlert2: The argument for setDefaults() is required and has to be a object");ye(t),Object.keys(t).forEach(function(e){Ie.isValidParameter(e)&&(Ce[e]=t[e])})}},{key:"resetDefaults",value:function(){m(we),Ce={}}}]),t}(),"undefined"!=typeof window&&"object"===q(window._swalDefaults)&&He.setDefaults(window._swalDefaults),He));return De.default=De}),"undefined"!=typeof window&&window.Sweetalert2&&(window.Sweetalert2.version="7.33.1",window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2);
|
2 |
+
"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,"@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{flex-wrap:wrap;align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:.3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validation-message::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:initial!important}}");
|
3 |
+
/*! jquery.livequery - v1.3.6 - 2013-08-26
|
4 |
+
* Copyright (c)
|
5 |
+
* (c) 2010, Brandon Aaron (http://brandonaaron.net)
|
6 |
+
* (c) 2012 - 2013, Alexander Zaytsev (http://hazzik.ru/en)
|
7 |
+
* Dual licensed under the MIT (MIT_LICENSE.txt)
|
8 |
+
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
|
9 |
+
*/
|
10 |
+
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a,b){function c(a,b,c,d){return!(a.selector!=b.selector||a.context!=b.context||c&&c.$lqguid!=b.fn.$lqguid||d&&d.$lqguid!=b.fn2.$lqguid)}a.extend(a.fn,{livequery:function(b,e){var f,g=this;return a.each(d.queries,function(a,d){return c(g,d,b,e)?(f=d)&&!1:void 0}),f=f||new d(g.selector,g.context,b,e),f.stopped=!1,f.run(),g},expire:function(b,e){var f=this;return a.each(d.queries,function(a,g){c(f,g,b,e)&&!f.stopped&&d.stop(g.id)}),f}});var d=a.livequery=function(b,c,e,f){var g=this;return g.selector=b,g.context=c,g.fn=e,g.fn2=f,g.elements=a([]),g.stopped=!1,g.id=d.queries.push(g)-1,e.$lqguid=e.$lqguid||d.guid++,f&&(f.$lqguid=f.$lqguid||d.guid++),g};d.prototype={stop:function(){var b=this;b.stopped||(b.fn2&&b.elements.each(b.fn2),b.elements=a([]),b.stopped=!0)},run:function(){var b=this;if(!b.stopped){var c=b.elements,d=a(b.selector,b.context),e=d.not(c),f=c.not(d);b.elements=d,e.each(b.fn),b.fn2&&f.each(b.fn2)}}},a.extend(d,{guid:0,queries:[],queue:[],running:!1,timeout:null,registered:[],checkQueue:function(){if(d.running&&d.queue.length)for(var a=d.queue.length;a--;)d.queries[d.queue.shift()].run()},pause:function(){d.running=!1},play:function(){d.running=!0,d.run()},registerPlugin:function(){a.each(arguments,function(b,c){if(a.fn[c]&&!(a.inArray(c,d.registered)>0)){var e=a.fn[c];a.fn[c]=function(){var a=e.apply(this,arguments);return d.run(),a},d.registered.push(c)}})},run:function(c){c!==b?a.inArray(c,d.queue)<0&&d.queue.push(c):a.each(d.queries,function(b){a.inArray(b,d.queue)<0&&d.queue.push(b)}),d.timeout&&clearTimeout(d.timeout),d.timeout=setTimeout(d.checkQueue,20)},stop:function(c){c!==b?d.queries[c].stop():a.each(d.queries,d.prototype.stop)}}),d.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html","prop","removeProp"),a(function(){d.play()})});
|
assets/screenshot-1.jpg
DELETED
Binary file
|
assets/screenshot-2.jpg
DELETED
Binary file
|
folders.php
CHANGED
@@ -1,77 +1,19 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: Folders
|
4 |
* Description: Arrange media, pages, custom post types and posts into folders
|
5 |
-
* Version:
|
6 |
* Author: Premio
|
7 |
* Author URI: https://premio.io/downloads/folders/
|
8 |
*/
|
9 |
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
if (empty($globOptions)) {
|
18 |
-
return false;
|
19 |
-
}
|
20 |
-
|
21 |
-
foreach($globOptions as $key => $value) {
|
22 |
-
if ($value == 1) {
|
23 |
-
$types[] = str_replace('folders4', '', $key);
|
24 |
-
}
|
25 |
-
}
|
26 |
-
return $types;
|
27 |
-
}
|
28 |
-
|
29 |
-
function searchForId($id, $menu) {
|
30 |
-
if($menu) {
|
31 |
-
foreach ($menu as $key => $val) {
|
32 |
-
if(array_key_exists(2, $val)) {
|
33 |
-
$stripVal = explode('=', $val[2]);
|
34 |
-
}
|
35 |
-
if(array_key_exists(1, $stripVal)){
|
36 |
-
$stripVal = $stripVal[1];
|
37 |
-
}
|
38 |
-
if ($stripVal === $id) {
|
39 |
-
return $key;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
function folders_admin_notice(){
|
46 |
-
$screen = get_current_screen();
|
47 |
-
$getPage = $screen->parent_file;
|
48 |
-
if ($getPage == 'folders-settings') {
|
49 |
-
echo '<div class="update-nag"><p><strong>Notice: </strong>Your folders will <strong>NOT</strong> show in the admin panel until items are assigned to a folder.</p></div>';
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
add_action('admin_notices', 'folders_admin_notice');
|
54 |
-
|
55 |
-
/* Combine GMMediaTags */
|
56 |
-
add_action('after_setup_theme', 'init_GMMediaTags', 30);
|
57 |
-
|
58 |
-
function init_GMMediaTags() {
|
59 |
-
|
60 |
-
if ( ! defined('ABSPATH') ) die();
|
61 |
-
|
62 |
-
define('GMMEDIATAGSPATH', plugin_dir_path( __FILE__ ) );
|
63 |
-
define('GMMEDIATAGSURL', plugins_url( '/' , __FILE__ ) );
|
64 |
-
|
65 |
-
require_once( GMMEDIATAGSPATH . 'includes/GMMediaTags.class.php');
|
66 |
-
|
67 |
-
// allow disabling plugin from another plugin or theme via filter
|
68 |
-
if ( apply_filters('gm_mediatags_enable', true) ) {
|
69 |
-
GMMediaTags::init();
|
70 |
-
}
|
71 |
-
|
72 |
-
}
|
73 |
-
// Include Custom Post Types
|
74 |
-
include(plugin_dir_path( __FILE__ ).'includes/types.php');
|
75 |
-
|
76 |
-
// Include Options Page
|
77 |
-
include(plugin_dir_path( __FILE__ ).'includes/options.php');
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Folders - Pages, Posts and Media Library Folders with Drag and Drop
|
4 |
* Description: Arrange media, pages, custom post types and posts into folders
|
5 |
+
* Version: 2.0.1
|
6 |
* Author: Premio
|
7 |
* Author URI: https://premio.io/downloads/folders/
|
8 |
*/
|
9 |
|
10 |
+
define('WCP_FOLDERS_PLUGIN_FILE', __FILE__ );
|
11 |
+
define('WCP_FOLDERS_PLUGIN_BASE', plugin_basename(WCP_FOLDERS_PLUGIN_FILE ) );
|
12 |
+
define('WCP_FOLDER', 'folders');
|
13 |
+
define('WCP_FOLDER_VAR', 'folders_settings');
|
14 |
+
define("WCP_DS", DIRECTORY_SEPARATOR);
|
15 |
+
define('WCP_FOLDER_URL',plugin_dir_url(__FILE__));
|
16 |
|
17 |
+
include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
|
18 |
+
register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
|
19 |
+
WCP_Folders::get_instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/GMMediaTags.class.php
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* GMMediaTags class
|
4 |
-
*
|
5 |
-
* @package GMMediaTags
|
6 |
-
* @author Giuseppe Mazzapica
|
7 |
-
*
|
8 |
-
*/
|
9 |
-
class GMMediaTags {
|
10 |
-
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Class version
|
14 |
-
*
|
15 |
-
* @since 0.1.0
|
16 |
-
*
|
17 |
-
* @access protected
|
18 |
-
*
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected static $version = '0.1.1';
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Prevent register method from run more than one time.
|
28 |
-
*
|
29 |
-
* @since 0.1.0
|
30 |
-
*
|
31 |
-
* @access protected
|
32 |
-
*
|
33 |
-
* @var bool
|
34 |
-
*/
|
35 |
-
protected static $done = false;
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Constructor. Doing nothing
|
42 |
-
*
|
43 |
-
* @since 0.1.0
|
44 |
-
*
|
45 |
-
* @access public
|
46 |
-
* @return null
|
47 |
-
*
|
48 |
-
*/
|
49 |
-
function __construct() {
|
50 |
-
_doing_it_wrong( 'GMMediaTags::__construct', 'GMMediaTags Class is intented to be used statically.' );
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Initialize the plugin. Run on 'after_setup_theme' hook
|
58 |
-
*
|
59 |
-
* @since 0.1.0
|
60 |
-
*
|
61 |
-
* @access public
|
62 |
-
* @return null
|
63 |
-
*
|
64 |
-
*/
|
65 |
-
static function init() {
|
66 |
-
|
67 |
-
if ( ! defined('GMMEDIATAGSPATH') ) die();
|
68 |
-
|
69 |
-
add_action('init', array(__CLASS__, 'register'), 999 );
|
70 |
-
add_action('admin_init', array(__CLASS__, 'admin_init') );
|
71 |
-
|
72 |
-
}
|
73 |
-
|
74 |
-
|
75 |
-
static function register() {
|
76 |
-
|
77 |
-
self::$done = true;
|
78 |
-
|
79 |
-
}
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Add the action for backend. Run on 'admin_init' hook
|
86 |
-
*
|
87 |
-
* @since 0.1.0
|
88 |
-
*
|
89 |
-
* @access public
|
90 |
-
* @return null
|
91 |
-
*
|
92 |
-
*/
|
93 |
-
static function admin_init() {
|
94 |
-
require( GMMEDIATAGSPATH . 'includes/GMMediaTagsAdmin.class.php');
|
95 |
-
GMMediaTagsAdmin::init();
|
96 |
-
}
|
97 |
-
|
98 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/GMMediaTags.js
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
2 |
-
var GMMediaTags = {};
|
3 |
-
|
4 |
-
GMMediaTags.add_bulk_element = function(id, add, force_add) {
|
5 |
-
if ( ! id ) return false;
|
6 |
-
if ( $("select[name='action']").children("option:selected").val() == 'bulk_edit_media_tag' || $("select[name='action2']").children("option:selected").val() == 'bulk_edit_media_tag' ) {
|
7 |
-
if ( $('#bulk-edit').length && ( $('#bulk-edit').is(':visible') || force_add ) ) {
|
8 |
-
if (add && ! $('#ttle' + id).length ) {
|
9 |
-
var a = '<a id="_' + id + '" class="ntdelbutton" title="' + gm_mediatags_vars.remove_from_edit + '">X</a>' + $('#post-' + id + ' td.title strong a').text();
|
10 |
-
$('<div id="ttle' + id + '"></div>').html(a).appendTo('#bulk-titles');
|
11 |
-
} else if ( ! add ) {
|
12 |
-
$('#ttle' + id).remove();
|
13 |
-
}
|
14 |
-
}
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
18 |
-
|
19 |
-
GMMediaTags.reset_bulk_edit = function() {
|
20 |
-
$('#bulk-edit').hide();
|
21 |
-
$('#bulk-titles').empty();
|
22 |
-
$('#bulk-edit textarea').val('');
|
23 |
-
$('#bulk-edit input[type="checkbox"]').attr('checked', false);
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
GMMediaTags.bulk_media_error = function () {
|
28 |
-
GMMediaTags.reset_bulk_edit();
|
29 |
-
$('div.gm_mediatags_error').remove();
|
30 |
-
$('#icon-upload').siblings('h2').eq(0).after( '<div class="error gm_mediatags_error"><p>' + gm_mediatags_vars.update_error + '</p></div>' );
|
31 |
-
}
|
32 |
-
|
33 |
-
|
34 |
-
$(document).on('click', '#doaction, #doaction2', function(e) {
|
35 |
-
if ( $("select[name='action']").children("option:selected").val() == 'bulk_edit_media_tag' || $("select[name='action2']").children("option:selected").val() == 'bulk_edit_media_tag' ) {
|
36 |
-
e.preventDefault();
|
37 |
-
var selected = new Array();
|
38 |
-
$('.check-column input:checked').each(function(index, element) {
|
39 |
-
var val = $(this).val();
|
40 |
-
if ( val != 'on' ) selected.push(val);
|
41 |
-
});
|
42 |
-
if ( $('#bulk-edit').length && ! $('#bulk-edit').is(':visible') && selected.length > 0 ) {
|
43 |
-
$.each(selected, function(index, value) {
|
44 |
-
GMMediaTags.add_bulk_element(value, true, true);
|
45 |
-
})
|
46 |
-
$('#bulk-edit').show();
|
47 |
-
} else if ( ! $('#bulk-edit').length && selected.length > 0 ) {
|
48 |
-
$.ajax({
|
49 |
-
type: "POST",
|
50 |
-
url: ajaxurl,
|
51 |
-
data: {
|
52 |
-
action: "add_media_tag_bulk_tr",
|
53 |
-
media_tag_ver: gm_mediatags_vars.ver_html,
|
54 |
-
colspan: $('#the-list tr').eq(0).children(':visible').length,
|
55 |
-
media: selected
|
56 |
-
}
|
57 |
-
}).done(function( markup ) {
|
58 |
-
|
59 |
-
if ( markup ) {
|
60 |
-
$('#the-list').prepend(markup);
|
61 |
-
$('label.inline-edit-tags textarea').each(function() {
|
62 |
-
$(this).suggest( ajaxurl + "?action=ajax-tag-search&tax=" + $(this).attr('class').replace('tax_input_', ''), { multiple:true, multipleSep: "," } );
|
63 |
-
});
|
64 |
-
}
|
65 |
-
});
|
66 |
-
}
|
67 |
-
}
|
68 |
-
});
|
69 |
-
|
70 |
-
|
71 |
-
$(document).on('click', '#bulk-titles a.ntdelbutton', function() {
|
72 |
-
$(this).parent().remove();
|
73 |
-
$('#cb-select-' + $(this).attr('id').replace('_', '')).attr('checked', false);
|
74 |
-
if ( $('#cb-select-all-1').is(':checked') ) {
|
75 |
-
$('#cb-select-all-1').attr('checked', false);
|
76 |
-
$('#cb-select-all-2').attr('checked', false);
|
77 |
-
}
|
78 |
-
});
|
79 |
-
|
80 |
-
|
81 |
-
$(document).on('click', 'p.inline-assign_media_tag a.cancel', function() {
|
82 |
-
GMMediaTags.reset_bulk_edit();
|
83 |
-
});
|
84 |
-
|
85 |
-
|
86 |
-
$(document).on('click', '#bulk_assign_media_tag', function(e) {
|
87 |
-
e.preventDefault();
|
88 |
-
if ( $('#bulk-titles div').length ) {
|
89 |
-
var media = new Array();
|
90 |
-
$('#bulk-titles div a').each( function() {
|
91 |
-
media.push( $(this).attr('id').replace('_', '') );
|
92 |
-
});
|
93 |
-
$.ajax({
|
94 |
-
type: "POST",
|
95 |
-
dataType: "json",
|
96 |
-
url: ajaxurl,
|
97 |
-
data: {
|
98 |
-
action: "save_media_tag_bulk",
|
99 |
-
media_tag_ver: gm_mediatags_vars.ver_save,
|
100 |
-
attachments: media,
|
101 |
-
formData: $('#posts-filter').serialize(),
|
102 |
-
}
|
103 |
-
}).done(function(json) {
|
104 |
-
if ( json.bulk_media_tag == 'updated' && json.location) {
|
105 |
-
window.location = json.location;
|
106 |
-
} else if ( json.bulk_media_tag == 'error' ) {
|
107 |
-
GMMediaTags.bulk_media_error();
|
108 |
-
}
|
109 |
-
}).fail( function() { GMMediaTags.bulk_media_error(); } );
|
110 |
-
}
|
111 |
-
});
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
var newoption = "<option value='bulk_edit_media_tag'>" + gm_mediatags_vars.assign_terms + "</option>";
|
116 |
-
$("select[name='action']").children("option").eq(0).after( newoption );
|
117 |
-
$("select[name='action2']").children("option").eq(0).after( newoption );
|
118 |
-
|
119 |
-
|
120 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/GMMediaTagsAdmin.class.php
DELETED
@@ -1,319 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* GMMediaTagsAdmin class
|
4 |
-
*
|
5 |
-
* @package GMMediaTags
|
6 |
-
* @author Giuseppe Mazzapica
|
7 |
-
*
|
8 |
-
*/
|
9 |
-
class GMMediaTagsAdmin {
|
10 |
-
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Class version
|
14 |
-
*
|
15 |
-
* @since 0.1.0
|
16 |
-
*
|
17 |
-
* @access protected
|
18 |
-
*
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
protected static $version = '0.1.1';
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Registered taxonomies names
|
27 |
-
*
|
28 |
-
* @since 0.1.0
|
29 |
-
*
|
30 |
-
* @access public
|
31 |
-
*
|
32 |
-
* @var array
|
33 |
-
*/
|
34 |
-
protected static $registered = array();
|
35 |
-
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Constructor. Doing nothing
|
39 |
-
*
|
40 |
-
* @since 0.1.0
|
41 |
-
*
|
42 |
-
* @access public
|
43 |
-
* @return null
|
44 |
-
*
|
45 |
-
*/
|
46 |
-
function __construct() {
|
47 |
-
_doing_it_wrong( 'GMMediaTagsAdmin::__construct', 'GMMediaTagsAdmin Class is intented to be used statically.' );
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Init the plugin backend. Run on 'admin_init' hook
|
54 |
-
*
|
55 |
-
* @since 0.1.0
|
56 |
-
*
|
57 |
-
* @access public
|
58 |
-
* @return null
|
59 |
-
*
|
60 |
-
*/
|
61 |
-
static function init() {
|
62 |
-
|
63 |
-
if ( ! defined('GMMEDIATAGSPATH') ) die();
|
64 |
-
|
65 |
-
self::$registered = get_object_taxonomies('attachment');
|
66 |
-
|
67 |
-
add_action( 'wp_ajax_add_media_tag_bulk_tr', array(__CLASS__, 'print_tr') );
|
68 |
-
add_action( 'wp_ajax_save_media_tag_bulk', array(__CLASS__, 'save') );
|
69 |
-
add_action( 'admin_notices', array(__CLASS__, 'notices') );
|
70 |
-
add_action( 'admin_enqueue_scripts', array(__CLASS__, 'add_scripts') );
|
71 |
-
|
72 |
-
}
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Add the javascript and pass json data to it using 'wp_localize_script'. Run on 'admin_enqueue_scripts' hook
|
78 |
-
*
|
79 |
-
* @since 0.1.0
|
80 |
-
*
|
81 |
-
* @param string $hook current admin page
|
82 |
-
* @access public
|
83 |
-
* @return null
|
84 |
-
*
|
85 |
-
*/
|
86 |
-
static function add_scripts( $hook ) {
|
87 |
-
if( $hook == 'upload.php' ) {
|
88 |
-
wp_enqueue_script( 'suggest' );
|
89 |
-
wp_enqueue_script( 'GMMediaTags', GMMEDIATAGSURL . 'includes/GMMediaTags.js', array('jquery'), null, true);
|
90 |
-
$vars = array(
|
91 |
-
'remove_from_edit' => __('Remove from bulk edit', 'gmmediatags'),
|
92 |
-
'update_error' => __('Error on update attachments', 'gmmediatags'),
|
93 |
-
'assign_terms' => __('Assign Folders', 'gmmediatags'),
|
94 |
-
'ver_html' => wp_create_nonce('add_media_tag_bulk_tr'),
|
95 |
-
'ver_save' => wp_create_nonce('save_media_tag_bulk')
|
96 |
-
);
|
97 |
-
wp_localize_script( 'GMMediaTags', 'gm_mediatags_vars', $vars );
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Output json data from an ajax call
|
106 |
-
*
|
107 |
-
* @since 0.1.0
|
108 |
-
*
|
109 |
-
* @param array $data data to output
|
110 |
-
* @param string $error if not empty funtion output error data
|
111 |
-
* @access protected
|
112 |
-
* @return null
|
113 |
-
*
|
114 |
-
*/
|
115 |
-
protected static function json_out( $data = array(), $error = "" ) {
|
116 |
-
header('Cache-Control: no-cache, must-revalidate');
|
117 |
-
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
118 |
-
header('Content-type: application/json');
|
119 |
-
if ( ! empty($error) || empty($data) ) $data = array('bulk_media_tag' => 'error', 'error' => $error);
|
120 |
-
die ( json_encode( (object)$data) );
|
121 |
-
}
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
/**
|
127 |
-
* Bulk save on ajax the terms
|
128 |
-
*
|
129 |
-
* @since 0.1.0
|
130 |
-
*
|
131 |
-
* @access public
|
132 |
-
* @return null
|
133 |
-
*
|
134 |
-
*/
|
135 |
-
static function save() {
|
136 |
-
error_reporting(0);
|
137 |
-
if ( ! defined('DOING_AJAX') ) die();
|
138 |
-
if ( ! isset($_POST['formData']) ) self::json_out(false, 'formData_error');
|
139 |
-
parse_str ( $_POST['formData'], $form_data );
|
140 |
-
|
141 |
-
$referer = isset($form_data['_wp_http_referer']) ? $form_data['_wp_http_referer'] : null;
|
142 |
-
$nonce = isset($_POST['media_tag_ver']) ? $_POST['media_tag_ver'] : null;
|
143 |
-
$screen = isset($form_data['screen']) ? $form_data['screen'] : null;
|
144 |
-
if ( empty($nonce) || empty($referer) || empty($screen) ) self::json_out(false, 'security error 10');
|
145 |
-
if ( ! wp_verify_nonce($_POST['media_tag_ver'], 'save_media_tag_bulk') ) self::json_out(false, 'security error 20');
|
146 |
-
$from = parse_url( $referer );
|
147 |
-
$admin_url = admin_url('upload.php');
|
148 |
-
if ($_SERVER['HTTPS']) {
|
149 |
-
$http = 'https://';
|
150 |
-
} else {
|
151 |
-
$http = 'http://';
|
152 |
-
}
|
153 |
-
if ( ! $from ) self::json_out(false, 'security error 30');
|
154 |
-
if ( ! isset($from['path']) ) self::json_out(false, 'security error 40');
|
155 |
-
if ( $admin_url != $http.$_SERVER['HTTP_HOST'] . $from['path'] ) self::json_out(false, 'security error 50' );
|
156 |
-
if ( $screen != 'upload' ) self::json_out(false, 'security error 60');
|
157 |
-
|
158 |
-
$orig_qv = array();
|
159 |
-
if ( isset($from['query']) ) parse_str($from['query'], $orig_qv);
|
160 |
-
$taxonomies = isset($form_data['tax_input']) ? $form_data['tax_input'] : array();
|
161 |
-
$clean_taxonomies = isset($form_data['clean_tax']) ? $form_data['clean_tax'] : array();
|
162 |
-
$toclean = array_keys($clean_taxonomies);
|
163 |
-
$attachments = isset($_POST['attachments']) ? $_POST['attachments'] : array();
|
164 |
-
|
165 |
-
if ( ( empty($taxonomies) && empty($clean_taxonomies) ) || empty($attachments) ) self::json_out( array( 'bulk_media_tag' => 'none' ) );
|
166 |
-
$errors = 0;
|
167 |
-
$done = null;
|
168 |
-
$tax_objs = array();
|
169 |
-
foreach( $taxonomies as $taxonomy => $terms ) {
|
170 |
-
if ( empty($terms) || in_array($taxonomy, $toclean) ) continue;
|
171 |
-
$tax_obj = get_taxonomy($taxonomy);
|
172 |
-
$tax_objs[$taxonomy] = $tax_obj;
|
173 |
-
if ( ! current_user_can( $tax_obj->cap->assign_terms ) ) continue;
|
174 |
-
$done = 1;
|
175 |
-
foreach( $attachments as $attachment ) {
|
176 |
-
if ( ! is_array( wp_set_post_terms( $attachment, $terms, $taxonomy, true ) ) ) $errors++;
|
177 |
-
}
|
178 |
-
}
|
179 |
-
if ( ! empty($clean_taxonomies) ) { foreach ($clean_taxonomies as $taxonomy => $val ) {
|
180 |
-
if ( $val == 1 ) {
|
181 |
-
$tax_obj = isset($tax_objs[$taxonomy]) ? $tax_objs[$taxonomy] : get_taxonomy($taxonomy);
|
182 |
-
if ( ! current_user_can( $tax_obj->cap->delete_terms ) ) continue;
|
183 |
-
$done = 1;
|
184 |
-
foreach( $attachments as $attachment ) {
|
185 |
-
if ( ! is_array( wp_set_post_terms( $attachment, array(), $taxonomy, false ) ) ) $errors++;
|
186 |
-
}
|
187 |
-
}
|
188 |
-
} }
|
189 |
-
if ( is_null($done) ) self::json_out( array( 'bulk_media_tag' => 'none' ) );
|
190 |
-
$location = add_query_arg( array( 'bulk_media_tag' => 'updated' ), $admin_url );
|
191 |
-
if ( ! empty($orig_qv) ) $location = add_query_arg( $orig_qv, $location );
|
192 |
-
$data = array( 'location' => $location, 'bulk_media_tag' => 'updated');
|
193 |
-
self::json_out( $data );
|
194 |
-
}
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Print admin notices after update
|
201 |
-
*
|
202 |
-
* @since 0.1.0
|
203 |
-
*
|
204 |
-
* @access public
|
205 |
-
* @return null
|
206 |
-
*
|
207 |
-
*/
|
208 |
-
static function notices() {
|
209 |
-
global $pagenow;
|
210 |
-
if( $pagenow == 'upload.php' && isset($_GET['bulk_media_tag']) && ! empty($_GET['bulk_media_tag']) ) {
|
211 |
-
$result = $_GET['bulk_media_tag'];
|
212 |
-
if ( $result == 'updated' ) {
|
213 |
-
echo '<div class="updated"><p>' . __( 'Attachments updated successfully.', 'gmmediatags') . '</p></div>';
|
214 |
-
} elseif ( $result == 'none' ) {
|
215 |
-
echo '<div class="updated"><p>' . __( 'Nothing to update: no media or no terms selected.', 'gmmediatags') . '</p></div>';
|
216 |
-
} else {
|
217 |
-
echo '<div class="error"><p>' . __( 'Error on update attachments.', 'gmmediatags') . '</p></div>';
|
218 |
-
}
|
219 |
-
}
|
220 |
-
|
221 |
-
}
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Output the html markup for the edit ui on ajax call
|
228 |
-
*
|
229 |
-
* @since 0.1.0
|
230 |
-
*
|
231 |
-
* @access public
|
232 |
-
* @return null
|
233 |
-
*
|
234 |
-
*/
|
235 |
-
static function print_tr() {
|
236 |
-
if ( ! defined('DOING_AJAX') ) die();
|
237 |
-
if ( empty( self::$registered ) ) die();
|
238 |
-
if ( ! isset($_POST['media_tag_ver']) || ! wp_verify_nonce($_POST['media_tag_ver'], 'add_media_tag_bulk_tr')) die();
|
239 |
-
error_reporting(0);
|
240 |
-
$colspan = isset( $_POST['colspan'] ) && intval($_POST['colspan']) ? $_POST['colspan'] : 8;
|
241 |
-
$hierarchical_taxonomies = array();
|
242 |
-
$flat_taxonomies = array();
|
243 |
-
foreach ( self::$registered as $taxonomy_name ) {
|
244 |
-
$taxonomy = get_taxonomy( $taxonomy_name );
|
245 |
-
$taxonomies_obj[$taxonomy_name] = $taxonomy;
|
246 |
-
if ( ! $taxonomy->show_ui ) continue;
|
247 |
-
if ( $taxonomy->hierarchical )
|
248 |
-
$hierarchical_taxonomies[] = $taxonomy;
|
249 |
-
else
|
250 |
-
$flat_taxonomies[] = $taxonomy;
|
251 |
-
}
|
252 |
-
do_action('gm_mediatags_pre_ui_print');
|
253 |
-
?>
|
254 |
-
<tr id="bulk-edit" class="inline-edit-row inline-edit-row-media inline-edit-media bulk-edit-row bulk-edit-row-media bulk-edit-media inline-editor" style="display: table-row;">
|
255 |
-
<td colspan="<?php echo $colspan ?>" class="colspanchange">
|
256 |
-
<fieldset class="inline-edit-col-left">
|
257 |
-
<div class="inline-edit-col">
|
258 |
-
<h4><?php _e( 'Bulk Edit', 'gmmediatags' ); ?></h4>
|
259 |
-
<div id="bulk-title-div">
|
260 |
-
<div id="bulk-titles">
|
261 |
-
<?php
|
262 |
-
if ( isset($_POST['media']) && ! empty($_POST['media']) ) { foreach ( $_POST['media'] as $media ) {
|
263 |
-
$title = get_the_title($media);
|
264 |
-
?>
|
265 |
-
<div id="ttle<?php echo $media; ?>">
|
266 |
-
<a id="_<?php echo $media; ?>" class="ntdelbutton" title="<?php _e('Remove From Bulk Edit', 'gmmediatags'); ?>">X</a><?php echo $title; ?>
|
267 |
-
</div>
|
268 |
-
<?php } } ?>
|
269 |
-
</div>
|
270 |
-
</div>
|
271 |
-
</div>
|
272 |
-
</fieldset>
|
273 |
-
|
274 |
-
<fieldset class="inline-edit-col-center" style="width:<?php echo empty($flat_taxonomies) ? '64' : '32' ?>%; float:right;"><div class="inline-edit-col">
|
275 |
-
<?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>
|
276 |
-
<span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
|
277 |
-
<?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) { ?>
|
278 |
-
<ul class="cat-checklist <?php echo esc_attr( $taxonomy->name )?>-checklist">
|
279 |
-
<?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ); ?>
|
280 |
-
</ul>
|
281 |
-
<?php } ?>
|
282 |
-
<?php endforeach;?>
|
283 |
-
</div></fieldset>
|
284 |
-
|
285 |
-
<fieldset class="inline-edit-col-right" style="width:<?php echo empty($hierarchical_taxonomies) ? '64' : '32' ?>%; float:right;"><div class="inline-edit-col">
|
286 |
-
<?php foreach($flat_taxonomies as $taxonomy ) : if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
|
287 |
-
<label class="inline-edit-tags">
|
288 |
-
<span class="title"><?php echo esc_html( $taxonomy->labels->name ) ?></span>
|
289 |
-
<textarea cols="22" rows="1" name="tax_input[<?php echo esc_attr( $taxonomy->name )?>]" class="tax_input_<?php echo esc_attr( $taxonomy->name )?>"></textarea>
|
290 |
-
</label>
|
291 |
-
<?php endif; endforeach;?>
|
292 |
-
</div></fieldset>
|
293 |
-
|
294 |
-
<fieldset class="inline-edit-col-full" style="width:100%; float:left;"><div class="inline-edit-col">
|
295 |
-
<h4><?php _e('Remove all terms from: ', 'gmmediatags'); ?></h4>
|
296 |
-
<?php
|
297 |
-
foreach ( self::$registered as $taxonomy_name ) {
|
298 |
-
printf('<label style="float:left; margin-left:6px"><input type="checkbox" name="clean_tax[%s]" value="1"> %s</label>', esc_attr($taxonomy_name), $taxonomies_obj[$taxonomy_name]->labels->name );
|
299 |
-
}
|
300 |
-
?>
|
301 |
-
</div></fieldset>
|
302 |
-
|
303 |
-
<p class="submit inline-assign_media_tag">
|
304 |
-
<input name="bulk_assign_media_tag" id="bulk_assign_media_tag" class="button button-primary alignright" value="<?php _e('Update'); ?>" accesskey="s" type="submit">
|
305 |
-
<a accesskey="c" class="button-secondary cancel alignright" style="margin-right:20px;"><?php _e('Cancel'); ?></a>
|
306 |
-
<input name="media_view" value="list" type="hidden">
|
307 |
-
<input name="screen" value="upload" type="hidden">
|
308 |
-
<br class="clear">
|
309 |
-
</p>
|
310 |
-
</td>
|
311 |
-
</tr>
|
312 |
-
<?php
|
313 |
-
do_action('gm_mediatags_ui_printed');
|
314 |
-
die();
|
315 |
-
}
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WCP_Folders
|
4 |
+
{
|
5 |
+
|
6 |
+
private static $instance;
|
7 |
+
|
8 |
+
public $license_key_data = null;
|
9 |
+
|
10 |
+
private static $folders;
|
11 |
+
|
12 |
+
public $total_folders = 0;
|
13 |
+
|
14 |
+
private function __construct()
|
15 |
+
{
|
16 |
+
spl_autoload_register(array($this, 'autoload'));
|
17 |
+
add_action('init', array($this, 'create_folder_terms'), 15);
|
18 |
+
add_action('admin_init', array($this, 'folders_register_settings'));
|
19 |
+
add_action('admin_menu', array($this, 'admin_menu'), 10000);
|
20 |
+
add_action('admin_enqueue_scripts', array($this, 'folders_admin_styles'));
|
21 |
+
add_action('admin_enqueue_scripts', array($this, 'folders_admin_scripts'));
|
22 |
+
add_filter('plugin_action_links_' . WCP_FOLDERS_PLUGIN_BASE, [$this, 'plugin_action_links']);
|
23 |
+
add_action('admin_footer', array($this, 'admin_footer'));
|
24 |
+
add_action('parse_tax_query', array($this, 'taxonomy_archive_exclude_children'));
|
25 |
+
|
26 |
+
/* Save Data */
|
27 |
+
add_action('wp_ajax_nopriv_wcp_add_new_folder', array($this, 'wcp_add_new_folder'));
|
28 |
+
add_action('wp_ajax_wcp_add_new_folder', array($this, 'wcp_add_new_folder'));
|
29 |
+
|
30 |
+
/* Update Data */
|
31 |
+
add_action('wp_ajax_nopriv_wcp_update_folder', array($this, 'wcp_update_folder'));
|
32 |
+
add_action('wp_ajax_wcp_update_folder', array($this, 'wcp_update_folder'));
|
33 |
+
|
34 |
+
/* Remove Data */
|
35 |
+
add_action('wp_ajax_nopriv_wcp_remove_folder', array($this, 'wcp_remove_folder'));
|
36 |
+
add_action('wp_ajax_wcp_remove_folder', array($this, 'wcp_remove_folder'));
|
37 |
+
|
38 |
+
/* Save State Data */
|
39 |
+
add_action('wp_ajax_nopriv_save_wcp_folder_state', array($this, 'save_wcp_folder_state'));
|
40 |
+
add_action('wp_ajax_save_wcp_folder_state', array($this, 'save_wcp_folder_state'));
|
41 |
+
|
42 |
+
/* Save State Data */
|
43 |
+
add_action('wp_ajax_nopriv_wcp_save_parent_data', array($this, 'wcp_save_parent_data'));
|
44 |
+
add_action('wp_ajax_wcp_save_parent_data', array($this, 'wcp_save_parent_data'));
|
45 |
+
|
46 |
+
/* Update Parent Data */
|
47 |
+
add_action('wp_ajax_nopriv_wcp_update_parent_information', array($this, 'wcp_update_parent_information'));
|
48 |
+
add_action('wp_ajax_wcp_update_parent_information', array($this, 'wcp_update_parent_information'));
|
49 |
+
|
50 |
+
/* Update Parent Data */
|
51 |
+
add_action('wp_ajax_nopriv_wcp_save_folder_order', array($this, 'wcp_save_folder_order'));
|
52 |
+
add_action('wp_ajax_wcp_save_folder_order', array($this, 'wcp_save_folder_order'));
|
53 |
+
|
54 |
+
/* Update Parent Data */
|
55 |
+
add_action('wp_ajax_nopriv_wcp_mark_un_mark_folder', array($this, 'wcp_mark_un_mark_folder'));
|
56 |
+
add_action('wp_ajax_wcp_mark_un_mark_folder', array($this, 'wcp_mark_un_mark_folder'));
|
57 |
+
|
58 |
+
/* Update Parent Data */
|
59 |
+
add_action('wp_ajax_nopriv_wcp_change_post_folder', array($this, 'wcp_change_post_folder'));
|
60 |
+
add_action('wp_ajax_wcp_change_post_folder', array($this, 'wcp_change_post_folder'));
|
61 |
+
|
62 |
+
/* Update Parent Data */
|
63 |
+
add_action('wp_ajax_nopriv_wcp_change_multiple_post_folder', array($this, 'wcp_change_multiple_post_folder'));
|
64 |
+
add_action('wp_ajax_wcp_change_multiple_post_folder', array($this, 'wcp_change_multiple_post_folder'));
|
65 |
+
|
66 |
+
/* Update width Data */
|
67 |
+
add_action('wp_ajax_nopriv_wcp_change_post_width', array($this, 'wcp_change_post_width'));
|
68 |
+
add_action('wp_ajax_wcp_change_post_width', array($this, 'wcp_change_post_width'));
|
69 |
+
|
70 |
+
/* Update width Data */
|
71 |
+
add_action('wp_ajax_nopriv_wcp_change_all_status', array($this, 'wcp_change_all_status'));
|
72 |
+
add_action('wp_ajax_wcp_change_all_status', array($this, 'wcp_change_all_status'));
|
73 |
+
|
74 |
+
/* Update width Data */
|
75 |
+
add_action('wp_ajax_nopriv_wcp_folder_activate_key', array($this, 'wcp_folder_activate_key'));
|
76 |
+
add_action('wp_ajax_wcp_folder_activate_key', array($this, 'wcp_folder_activate_key'));
|
77 |
+
|
78 |
+
add_action('admin_notices', array($this, 'wcp_admin_notice'));
|
79 |
+
|
80 |
+
self::$folders = 10;
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
+
public function check_has_valid_key()
|
85 |
+
{
|
86 |
+
return 0;
|
87 |
+
}
|
88 |
+
|
89 |
+
public function total_term_folders()
|
90 |
+
{
|
91 |
+
$post_types = get_option(WCP_FOLDER_VAR);
|
92 |
+
$total = 0;
|
93 |
+
foreach ($post_types as $post_type) {
|
94 |
+
$post_type = self::get_custom_post_type($post_type);
|
95 |
+
$total += wp_count_terms($post_type);
|
96 |
+
}
|
97 |
+
return $total;
|
98 |
+
}
|
99 |
+
|
100 |
+
public function wcp_admin_notice()
|
101 |
+
{
|
102 |
+
|
103 |
+
}
|
104 |
+
|
105 |
+
public function get_license_key_information($licenseKey)
|
106 |
+
{
|
107 |
+
return array();
|
108 |
+
}
|
109 |
+
|
110 |
+
public function get_license_key_data($licenseKey = '')
|
111 |
+
{
|
112 |
+
return array();
|
113 |
+
}
|
114 |
+
|
115 |
+
public function check_for_license_key()
|
116 |
+
{
|
117 |
+
return false;
|
118 |
+
}
|
119 |
+
|
120 |
+
public function wcp_remove_post_item()
|
121 |
+
{
|
122 |
+
$response = array();
|
123 |
+
$response['status'] = 0;
|
124 |
+
$response['error'] = 0;
|
125 |
+
$response['data'] = array();
|
126 |
+
$response['message'] = "";
|
127 |
+
$postData = $_POST;
|
128 |
+
if (isset($postData['post_id']) && !empty($postData['post_id'])) {
|
129 |
+
wp_delete_post($postData['post_id']);
|
130 |
+
$response['status'] = 1;
|
131 |
+
}
|
132 |
+
echo json_encode($response);
|
133 |
+
die;
|
134 |
+
}
|
135 |
+
|
136 |
+
public function wcp_change_all_status()
|
137 |
+
{
|
138 |
+
$response = array();
|
139 |
+
$response['status'] = 0;
|
140 |
+
$response['error'] = 0;
|
141 |
+
$response['data'] = array();
|
142 |
+
$response['message'] = "";
|
143 |
+
$postData = $_POST;
|
144 |
+
if (isset($postData['folders']) && !empty($postData['folders'])) {
|
145 |
+
$status = (isset($postData['status']) && $postData['status'] == 1) ? 1 : 0;
|
146 |
+
$folders = $postData['folders'];
|
147 |
+
$folders = trim($folders, ",");
|
148 |
+
$folders = explode(",", $folders);
|
149 |
+
foreach ($folders as $folder) {
|
150 |
+
update_term_meta($folder, "is_active", $status);
|
151 |
+
}
|
152 |
+
}
|
153 |
+
echo json_encode($response);
|
154 |
+
die;
|
155 |
+
}
|
156 |
+
|
157 |
+
public function wcp_change_post_width()
|
158 |
+
{
|
159 |
+
$response = array();
|
160 |
+
$response['status'] = 0;
|
161 |
+
$response['error'] = 0;
|
162 |
+
$response['data'] = array();
|
163 |
+
$response['message'] = "";
|
164 |
+
$postData = $_POST;
|
165 |
+
if (isset($postData['width']) && isset($postData['type'])) {
|
166 |
+
$optionName = "wcp_dynamic_width_for_" . $postData['type'];
|
167 |
+
update_option($optionName, $postData['width']);
|
168 |
+
$response['status'] = 1;
|
169 |
+
}
|
170 |
+
echo json_encode($response);
|
171 |
+
die;
|
172 |
+
}
|
173 |
+
|
174 |
+
public function wcp_change_multiple_post_folder()
|
175 |
+
{
|
176 |
+
$response = array();
|
177 |
+
$response['status'] = 0;
|
178 |
+
$response['error'] = 0;
|
179 |
+
$response['data'] = array();
|
180 |
+
$response['message'] = "";
|
181 |
+
$postData = $_POST;
|
182 |
+
if (isset($postData['post_ids']) && isset($postData['folder_id'])) {
|
183 |
+
$postID = $postData['post_ids'];
|
184 |
+
$postID = trim($postID, ",");
|
185 |
+
$folderID = $postData['folder_id'];
|
186 |
+
$postArray = explode(",", $postID);
|
187 |
+
if (is_array($postArray)) {
|
188 |
+
foreach ($postArray as $post) {
|
189 |
+
$post_type = self::get_custom_post_type($postData['type']);
|
190 |
+
wp_set_post_terms($post, $folderID, $post_type, false);
|
191 |
+
}
|
192 |
+
}
|
193 |
+
$response['status'] = 1;
|
194 |
+
}
|
195 |
+
echo json_encode($response);
|
196 |
+
die;
|
197 |
+
}
|
198 |
+
|
199 |
+
public function wcp_change_post_folder()
|
200 |
+
{
|
201 |
+
$response = array();
|
202 |
+
$response['status'] = 0;
|
203 |
+
$response['error'] = 0;
|
204 |
+
$response['data'] = array();
|
205 |
+
$response['message'] = "";
|
206 |
+
$postData = $_POST;
|
207 |
+
if (isset($postData['post_id']) && isset($postData['folder_id'])) {
|
208 |
+
$postID = $postData['post_id'];
|
209 |
+
$folderID = $postData['folder_id'];
|
210 |
+
$folder_post_type = self::get_custom_post_type($postData['type']);
|
211 |
+
$terms = get_the_terms($postID, $folder_post_type);
|
212 |
+
if (!empty($terms)) {
|
213 |
+
foreach ($terms as $term) {
|
214 |
+
wp_remove_object_terms($postID, $term->term_id, $folder_post_type);
|
215 |
+
}
|
216 |
+
}
|
217 |
+
wp_set_post_terms($postID, $folderID, $folder_post_type);
|
218 |
+
$response['status'] = 1;
|
219 |
+
}
|
220 |
+
echo json_encode($response);
|
221 |
+
die;
|
222 |
+
}
|
223 |
+
|
224 |
+
public function wcp_mark_un_mark_folder()
|
225 |
+
{
|
226 |
+
$response = array();
|
227 |
+
$response['status'] = 0;
|
228 |
+
$response['error'] = 0;
|
229 |
+
$response['data'] = array();
|
230 |
+
$response['message'] = "";
|
231 |
+
$postData = $_POST;
|
232 |
+
$status = 0;
|
233 |
+
if (isset($postData['term_id'])) {
|
234 |
+
$status = get_term_meta($postData['term_id'], "is_highlighted", true);
|
235 |
+
if ($status == 1) {
|
236 |
+
update_term_meta($postData['term_id'], "is_highlighted", 0);
|
237 |
+
$status = 0;
|
238 |
+
} else {
|
239 |
+
update_term_meta($postData['term_id'], "is_highlighted", 1);
|
240 |
+
$status = 1;
|
241 |
+
}
|
242 |
+
$response['marked'] = $status;
|
243 |
+
$response['id'] = $postData['term_id'];
|
244 |
+
$response['status'] = 1;
|
245 |
+
}
|
246 |
+
echo json_encode($response);
|
247 |
+
die;
|
248 |
+
}
|
249 |
+
|
250 |
+
public function wcp_save_folder_order()
|
251 |
+
{
|
252 |
+
$response = array();
|
253 |
+
$response['status'] = 0;
|
254 |
+
$response['error'] = 0;
|
255 |
+
$response['data'] = array();
|
256 |
+
$response['message'] = "";
|
257 |
+
$postData = $_POST;
|
258 |
+
if (isset($postData['term_ids'])) {
|
259 |
+
$termIds = $postData['term_ids'];
|
260 |
+
$termIds = trim($termIds, ",");
|
261 |
+
$termArray = explode(",", $termIds);
|
262 |
+
$order = 1;
|
263 |
+
foreach ($termArray as $term) {
|
264 |
+
if (!empty($term)) {
|
265 |
+
update_term_meta($term, "wcp_custom_order", $order);
|
266 |
+
$order++;
|
267 |
+
}
|
268 |
+
}
|
269 |
+
$response['status'] = 1;
|
270 |
+
$folder_type = self::get_custom_post_type($postData['type']);
|
271 |
+
$response['options'] = WCP_Tree::get_option_data_for_select($folder_type);
|
272 |
+
}
|
273 |
+
echo json_encode($response);
|
274 |
+
die;
|
275 |
+
}
|
276 |
+
|
277 |
+
public function save_wcp_folder_state()
|
278 |
+
{
|
279 |
+
$response = array();
|
280 |
+
$response['status'] = 0;
|
281 |
+
$response['error'] = 0;
|
282 |
+
$response['data'] = array();
|
283 |
+
$response['message'] = "";
|
284 |
+
$postData = $_POST;
|
285 |
+
if (isset($postData['term_id'])) {
|
286 |
+
if (isset($postData['is_active']) && $postData['is_active'] == 1) {
|
287 |
+
update_term_meta($postData['term_id'], "is_active", 1);
|
288 |
+
} else {
|
289 |
+
update_term_meta($postData['term_id'], "is_active", 0);
|
290 |
+
}
|
291 |
+
}
|
292 |
+
echo json_encode($response);
|
293 |
+
die;
|
294 |
+
}
|
295 |
+
|
296 |
+
public function wcp_update_parent_information()
|
297 |
+
{
|
298 |
+
$response = array();
|
299 |
+
$response['status'] = 0;
|
300 |
+
$response['error'] = 0;
|
301 |
+
$response['data'] = array();
|
302 |
+
$response['message'] = "";
|
303 |
+
$postData = $_POST;
|
304 |
+
if (isset($postData['type']) && isset($postData['term_id']) && isset($postData['parent_id'])) {
|
305 |
+
$folder_type = self::get_custom_post_type($postData['type']);
|
306 |
+
wp_update_term($postData['term_id'], $folder_type, array(
|
307 |
+
'parent' => $postData['parent_id']
|
308 |
+
));
|
309 |
+
update_term_meta($postData['parent_id'], "is_active", 1);
|
310 |
+
}
|
311 |
+
echo json_encode($response);
|
312 |
+
die;
|
313 |
+
}
|
314 |
+
|
315 |
+
public function wcp_save_parent_data()
|
316 |
+
{
|
317 |
+
$response = array();
|
318 |
+
$response['status'] = 0;
|
319 |
+
$response['error'] = 0;
|
320 |
+
$response['data'] = array();
|
321 |
+
$response['message'] = "";
|
322 |
+
$postData = $_POST;
|
323 |
+
if (isset($postData['type'])) {
|
324 |
+
$postType = $postData['type'];
|
325 |
+
$optionName = $postType . "_parent_status";
|
326 |
+
if (isset($postData['is_active']) && $postData['is_active'] == 1) {
|
327 |
+
update_option($optionName, 1);
|
328 |
+
} else {
|
329 |
+
update_option($optionName, 0);
|
330 |
+
}
|
331 |
+
}
|
332 |
+
echo json_encode($response);
|
333 |
+
die;
|
334 |
+
}
|
335 |
+
|
336 |
+
public function wcp_remove_folder()
|
337 |
+
{
|
338 |
+
$response = array();
|
339 |
+
$response['status'] = 0;
|
340 |
+
$response['error'] = 0;
|
341 |
+
$response['data'] = array();
|
342 |
+
$response['message'] = "";
|
343 |
+
$postData = $_POST;
|
344 |
+
$errorCounter = 0;
|
345 |
+
if (!isset($postData['term_id']) || empty($postData['term_id'])) {
|
346 |
+
$error = "Invalid request";
|
347 |
+
$errorCounter++;
|
348 |
+
} else if (!isset($postData['type']) || empty($postData['type'])) {
|
349 |
+
$error = "Invalid request";
|
350 |
+
$errorCounter++;
|
351 |
+
}
|
352 |
+
if ($errorCounter == 0) {
|
353 |
+
// $fol
|
354 |
+
self::remove_folder_child_items($postData['term_id'], $postData['type']);
|
355 |
+
$response['status'] = 1;
|
356 |
+
$is_active = 1;
|
357 |
+
$folders = -1;
|
358 |
+
if (!self::check_has_valid_key()) {
|
359 |
+
$is_active = 0;
|
360 |
+
$folders = self::total_term_folders();
|
361 |
+
}
|
362 |
+
$response['folders'] = $folders;
|
363 |
+
$response['is_key_active'] = $is_active;
|
364 |
+
} else {
|
365 |
+
$response['error'] = 1;
|
366 |
+
$response['message'] = $error;
|
367 |
+
}
|
368 |
+
echo json_encode($response);
|
369 |
+
die;
|
370 |
+
}
|
371 |
+
|
372 |
+
public function remove_folder_child_items($term_id, $post_type)
|
373 |
+
{
|
374 |
+
$folder_type = self::get_custom_post_type($post_type);
|
375 |
+
$terms = get_terms($folder_type, array(
|
376 |
+
'hide_empty' => false,
|
377 |
+
'parent' => $term_id
|
378 |
+
));
|
379 |
+
|
380 |
+
if (!empty($terms)) {
|
381 |
+
foreach ($terms as $term) {
|
382 |
+
self::remove_folder_child_items($term->term_id, $post_type);
|
383 |
+
}
|
384 |
+
wp_delete_term($term_id, $folder_type);
|
385 |
+
} else {
|
386 |
+
wp_delete_term($term_id, $folder_type);
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
public function wcp_update_folder()
|
391 |
+
{
|
392 |
+
$response = array();
|
393 |
+
$response['status'] = 0;
|
394 |
+
$response['error'] = 0;
|
395 |
+
$response['data'] = array();
|
396 |
+
$response['message'] = "";
|
397 |
+
$postData = $_REQUEST;
|
398 |
+
$errorCounter = 0;
|
399 |
+
if (!isset($postData['name']) || empty($postData['name'])) {
|
400 |
+
$error = "Folder name can no be empty";
|
401 |
+
$errorCounter++;
|
402 |
+
} else if (!isset($postData['type']) || empty($postData['type'])) {
|
403 |
+
$error = "Invalid request";
|
404 |
+
$errorCounter++;
|
405 |
+
}
|
406 |
+
if ($errorCounter == 0) {
|
407 |
+
$folder_type = self::get_custom_post_type($postData['type']);
|
408 |
+
$parent = isset($postData['parent_id']) && !empty($postData['parent_id']) ? $postData['parent_id'] : 0;
|
409 |
+
$term = term_exists($postData['name'], $folder_type, $parent);
|
410 |
+
//if (!(0 !== $term && null !== $term )) {
|
411 |
+
$result = wp_update_term(
|
412 |
+
$postData['term_id'], // the term
|
413 |
+
$folder_type, // the taxonomy
|
414 |
+
array(
|
415 |
+
'name' => $postData['name'],
|
416 |
+
)
|
417 |
+
);
|
418 |
+
if (!empty($result)) {
|
419 |
+
$response['id'] = $result['term_id'];
|
420 |
+
$response['status'] = 1;
|
421 |
+
$response['term_title'] = $postData['name'];
|
422 |
+
} else {
|
423 |
+
$response['message'] = "Error during server request";
|
424 |
+
}
|
425 |
+
// } else {
|
426 |
+
// $response['message'] = "Folder name already exists";
|
427 |
+
// }
|
428 |
+
} else {
|
429 |
+
$response['error'] = 1;
|
430 |
+
$response['message'] = $error;
|
431 |
+
}
|
432 |
+
echo json_encode($response);
|
433 |
+
die;
|
434 |
+
}
|
435 |
+
|
436 |
+
public function create_slug_from_string($str)
|
437 |
+
{
|
438 |
+
$a = array('À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'ÿ', 'A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', 'Ð', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', '?', '?', 'J', 'j', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', '?', '?', 'L', 'l', 'N', 'n', 'N', 'n', 'N', 'n', '?', 'O', 'o', 'O', 'o', 'O', 'o', 'Œ', 'œ', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'Š', 'š', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', 'Ÿ', 'Z', 'z', 'Z', 'z', 'Ž', 'ž', '?', 'ƒ', 'O', 'o', 'U', 'u', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', '?', '?', '?', '?', '?', '?');
|
439 |
+
$b = array('A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I', 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'Y', 's', 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'n', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'y', 'y', 'A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'IJ', 'ij', 'J', 'j', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'l', 'l', 'N', 'n', 'N', 'n', 'N', 'n', 'n', 'O', 'o', 'O', 'o', 'O', 'o', 'OE', 'oe', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', 'Y', 'Z', 'z', 'Z', 'z', 'Z', 'z', 's', 'f', 'O', 'o', 'U', 'u', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'A', 'a', 'AE', 'ae', 'O', 'o');
|
440 |
+
return strtolower(preg_replace(array('/[^a-zA-Z0-9 -]/', '/[ -]+/', '/^-|-$/'), array('', '-', ''), str_replace($a, $b, $str)));
|
441 |
+
}
|
442 |
+
|
443 |
+
public function wcp_add_new_folder()
|
444 |
+
{
|
445 |
+
$response = array();
|
446 |
+
$response['status'] = 0;
|
447 |
+
$response['error'] = 0;
|
448 |
+
$response['data'] = array();
|
449 |
+
$response['message'] = "";
|
450 |
+
$postData = $_REQUEST;
|
451 |
+
$errorCounter = 0;
|
452 |
+
if (!isset($postData['name']) || empty($postData['name'])) {
|
453 |
+
$error = "Folder name can no be empty";
|
454 |
+
$errorCounter++;
|
455 |
+
} else if (!isset($postData['type']) || empty($postData['type'])) {
|
456 |
+
$error = "Invalid request";
|
457 |
+
$errorCounter++;
|
458 |
+
}
|
459 |
+
if ($errorCounter == 0) {
|
460 |
+
$parent = isset($postData['parent_id']) && !empty($postData['parent_id']) ? $postData['parent_id'] : 0;
|
461 |
+
$folder_type = self::get_custom_post_type($postData['type']);
|
462 |
+
$term = term_exists($postData['name'], $folder_type, $parent);
|
463 |
+
if (!(0 !== $term && null !== $term)) {
|
464 |
+
$slug = self::create_slug_from_string($postData['name']) . "-" . time();
|
465 |
+
$result = wp_insert_term(
|
466 |
+
$postData['name'], // the term
|
467 |
+
$folder_type, // the taxonomy
|
468 |
+
array(
|
469 |
+
'parent' => $parent,
|
470 |
+
'slug' => $slug
|
471 |
+
)
|
472 |
+
);
|
473 |
+
if (!empty($result)) {
|
474 |
+
$response['id'] = $result['term_id'];
|
475 |
+
$response['status'] = 1;
|
476 |
+
$order = isset($postData['order']) ? $postData['order'] : 0;
|
477 |
+
update_term_meta($result['term_id'], "wcp_custom_order", $order);
|
478 |
+
if ($parent != 0) {
|
479 |
+
update_term_meta($parent, "is_active", 1);
|
480 |
+
}
|
481 |
+
$string = "<li data-slug='{$result['term_id']}' class='ui-state-default route' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title' id='title_{$result['term_id']}'><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
|
482 |
+
$string .= "</ul></li>";
|
483 |
+
$response['term_data'] = $string;
|
484 |
+
$response['parent_id'] = $parent;
|
485 |
+
|
486 |
+
$is_active = 1;
|
487 |
+
$folders = -1;
|
488 |
+
if (!self::check_has_valid_key()) {
|
489 |
+
$is_active = 0;
|
490 |
+
$folders = self::total_term_folders();
|
491 |
+
}
|
492 |
+
$response['is_key_active'] = $is_active;
|
493 |
+
$response['folders'] = $folders;
|
494 |
+
} else {
|
495 |
+
$response['message'] = "Error during server request";
|
496 |
+
}
|
497 |
+
} else {
|
498 |
+
$response['error'] = 1;
|
499 |
+
$response['message'] = "Folder name already exists";
|
500 |
+
}
|
501 |
+
} else {
|
502 |
+
$response['error'] = 1;
|
503 |
+
$response['message'] = $error;
|
504 |
+
}
|
505 |
+
echo json_encode($response);
|
506 |
+
die;
|
507 |
+
}
|
508 |
+
|
509 |
+
public function is_for_this_post_type($post_type)
|
510 |
+
{
|
511 |
+
$post_types = get_option(WCP_FOLDER_VAR);
|
512 |
+
return in_array($post_type, $post_types);
|
513 |
+
}
|
514 |
+
|
515 |
+
public function is_active_for_screen()
|
516 |
+
{
|
517 |
+
|
518 |
+
global $typenow, $current_screen;
|
519 |
+
|
520 |
+
if ((isset($_POST['action']) && $_POST['action'] == 'inline-save') && (isset($_POST['post_type']) && self::is_for_this_post_type($_POST['post_type']))) {
|
521 |
+
return true;
|
522 |
+
}
|
523 |
+
global $current_screen;
|
524 |
+
|
525 |
+
if (self::is_for_this_post_type($typenow) && ('edit' == $current_screen->base || 'upload' == $current_screen->base)) {
|
526 |
+
return true;
|
527 |
+
}
|
528 |
+
|
529 |
+
$post_types = get_option(WCP_FOLDER_VAR);
|
530 |
+
|
531 |
+
if(empty($typenow) && 'upload' == $current_screen->base ) {
|
532 |
+
$typenow = "attachment";
|
533 |
+
if (self::is_for_this_post_type($typenow)) {
|
534 |
+
return true;
|
535 |
+
}
|
536 |
+
}
|
537 |
+
return false;
|
538 |
+
}
|
539 |
+
|
540 |
+
public function is_add_update_screen()
|
541 |
+
{
|
542 |
+
global $current_screen;
|
543 |
+
$current_type = $current_screen->base;
|
544 |
+
$action = $current_screen->action;
|
545 |
+
$post_types = get_option(WCP_FOLDER_VAR);
|
546 |
+
global $typenow;
|
547 |
+
if (in_array($current_type, $post_types) && in_array($action, array("add", ""))) {
|
548 |
+
$license_data = self::get_license_key_data();
|
549 |
+
|
550 |
+
$is_active = 1;
|
551 |
+
$folders = -1;
|
552 |
+
if (!self::check_has_valid_key()) {
|
553 |
+
$is_active = 0;
|
554 |
+
$folders = self::total_term_folders();
|
555 |
+
}
|
556 |
+
$response['folders'] = $folders;
|
557 |
+
$response['is_key_active'] = $is_active;
|
558 |
+
|
559 |
+
wp_register_script('wcp-folders-inner', plugin_dir_url(dirname(__FILE__)) . 'assets/js/inner.js');
|
560 |
+
|
561 |
+
$is_rtl = 0;
|
562 |
+
if ( function_exists( 'is_rtl' ) && is_rtl() ) {
|
563 |
+
$is_rtl = 1;
|
564 |
+
}
|
565 |
+
|
566 |
+
wp_localize_script('wcp-folders-inner', 'wcp_inner_settings', array(
|
567 |
+
'ajax_url' => admin_url('admin-ajax.php'),
|
568 |
+
'post_type' => $typenow,
|
569 |
+
'ajax_image' => plugin_dir_url(dirname(__FILE__)) . "assets/images/ajax-loader.gif",
|
570 |
+
'is_valid' => $is_active,
|
571 |
+
'folders' => $folders,
|
572 |
+
'isRTL' => $is_rtl
|
573 |
+
));
|
574 |
+
wp_enqueue_script('wcp-folders-inner');
|
575 |
+
}
|
576 |
+
}
|
577 |
+
|
578 |
+
public function get_custom_post_type($post_type)
|
579 |
+
{
|
580 |
+
if ($post_type == "post") {
|
581 |
+
return "post_folder";
|
582 |
+
} else if ($post_type == "page") {
|
583 |
+
return "folder";
|
584 |
+
} else if ($post_type == "attachment") {
|
585 |
+
return "media_folder";
|
586 |
+
}
|
587 |
+
return $post_type . '_folder';
|
588 |
+
}
|
589 |
+
|
590 |
+
public function admin_footer()
|
591 |
+
{
|
592 |
+
if (self::is_active_for_screen()) {
|
593 |
+
global $typenow;
|
594 |
+
|
595 |
+
$total_posts = self::get_total_posts($typenow);
|
596 |
+
|
597 |
+
$folder_type = self::get_custom_post_type($typenow);
|
598 |
+
$terms_data = WCP_Tree::get_full_tree_data($folder_type);
|
599 |
+
$terms_html = WCP_Tree::get_option_data_for_select($folder_type);
|
600 |
+
$form_html = WCP_Forms::get_form_html($terms_html);
|
601 |
+
include_once dirname(dirname(__FILE__)) . WCP_DS . "/templates" . WCP_DS . "admin" . WCP_DS . "admin-content.php";
|
602 |
+
}
|
603 |
+
}
|
604 |
+
|
605 |
+
public function get_total_posts($post_type = "")
|
606 |
+
{
|
607 |
+
global $typenow;
|
608 |
+
if ($post_type == "") {
|
609 |
+
$post_type = $typenow;
|
610 |
+
}
|
611 |
+
if ($typenow == "attachment") {
|
612 |
+
return wp_count_posts($post_type)->inherit;
|
613 |
+
} else {
|
614 |
+
return wp_count_posts($post_type)->publish + wp_count_posts($post_type)->draft + wp_count_posts($post_type)->future + wp_count_posts($post_type)->private;
|
615 |
+
}
|
616 |
+
}
|
617 |
+
|
618 |
+
public function autoload()
|
619 |
+
{
|
620 |
+
$files = array(
|
621 |
+
'WCP_Tree_View' => WCP_DS . "includes" . WCP_DS . "tree.class.php",
|
622 |
+
'WCP_Form_View' => WCP_DS . "includes" . WCP_DS . "form.class.php",
|
623 |
+
);
|
624 |
+
|
625 |
+
foreach ($files as $file) {
|
626 |
+
if (file_exists(dirname(dirname(__FILE__)) . $file)) {
|
627 |
+
include_once dirname(dirname(__FILE__)) . $file;
|
628 |
+
}
|
629 |
+
}
|
630 |
+
}
|
631 |
+
|
632 |
+
public function create_folder_terms()
|
633 |
+
{
|
634 |
+
$options = get_option(WCP_FOLDER_VAR);
|
635 |
+
$old_plugin_status = 0;
|
636 |
+
$posts = array();
|
637 |
+
if (!empty($options)) {
|
638 |
+
foreach ($options as $option) {
|
639 |
+
if (!(strpos($option, 'folder4') === false) && $old_plugin_status == 0) {
|
640 |
+
$old_plugin_status = 1;
|
641 |
+
}
|
642 |
+
if (in_array($option, array("page", "post", "attachment"))) {
|
643 |
+
$posts[] = str_replace("folder4", "", $option);
|
644 |
+
}
|
645 |
+
}
|
646 |
+
if(!empty($posts)) {
|
647 |
+
update_option(WCP_FOLDER_VAR, $posts);
|
648 |
+
}
|
649 |
+
}
|
650 |
+
if ($old_plugin_status == 1) {
|
651 |
+
update_option("folders_show_in_menu", "on");
|
652 |
+
$old_plugin_var = get_option("folder_old_plugin_status");
|
653 |
+
if (empty($old_plugin_var) || $old_plugin_var == null) {
|
654 |
+
update_option("folder_old_plugin_status", "1");
|
655 |
+
}
|
656 |
+
}
|
657 |
+
$posts = get_option(WCP_FOLDER_VAR);
|
658 |
+
if (!empty($posts)) {
|
659 |
+
foreach ($posts as $post_type) {
|
660 |
+
$labels = array(
|
661 |
+
'name' => __('Folders', WCP_FOLDER),
|
662 |
+
'singular_name' => __('Folder', WCP_FOLDER),
|
663 |
+
'all_items' => __('All Folders', WCP_FOLDER),
|
664 |
+
'edit_item' => __('Edit Folder', WCP_FOLDER),
|
665 |
+
'update_item' => __('Update Folder', WCP_FOLDER),
|
666 |
+
'add_new_item' => __('Add New Folder', WCP_FOLDER),
|
667 |
+
'new_item_name' => __('Add Folder Name', WCP_FOLDER),
|
668 |
+
'menu_name' => __('Folders', WCP_FOLDER),
|
669 |
+
'search_items' => __('Search Folders', WCP_FOLDER),
|
670 |
+
'parent_item' => __('Parent Folder', WCP_FOLDER),
|
671 |
+
);
|
672 |
+
|
673 |
+
$args = array(
|
674 |
+
'label' => __('Folder'),
|
675 |
+
'labels' => $labels,
|
676 |
+
'show_tagcloud' => false,
|
677 |
+
'hierarchical' => true,
|
678 |
+
'public' => false,
|
679 |
+
'show_ui' => true,
|
680 |
+
'show_in_menu' => false,
|
681 |
+
'show_in_rest' => true,
|
682 |
+
'show_admin_column' => true,
|
683 |
+
'update_count_callback' => '_update_generic_term_count',
|
684 |
+
'query_var' => true,
|
685 |
+
'rewrite' => false,
|
686 |
+
);
|
687 |
+
|
688 |
+
$folder_post_type = self::get_custom_post_type($post_type);
|
689 |
+
|
690 |
+
register_taxonomy(
|
691 |
+
$folder_post_type,
|
692 |
+
$post_type,
|
693 |
+
$args
|
694 |
+
);
|
695 |
+
}
|
696 |
+
}
|
697 |
+
|
698 |
+
|
699 |
+
if (isset($_POST['folders_show_in_menu']) && !empty($_POST['folders_show_in_menu'])) {
|
700 |
+
$show_menu = "off";
|
701 |
+
if($_POST['folders_show_in_menu'] == "on") {
|
702 |
+
$show_menu = "on";
|
703 |
+
}
|
704 |
+
update_option("folders_show_in_menu", $show_menu);
|
705 |
+
}
|
706 |
+
|
707 |
+
if(isset($_POST['folders_settings1'])) {
|
708 |
+
$posts = array();
|
709 |
+
if(isset($_POST['folders_settings']) && is_array($_POST['folders_settings'])) {
|
710 |
+
foreach($_POST['folders_settings'] as $key=>$val) {
|
711 |
+
$posts[] = $val;
|
712 |
+
}
|
713 |
+
}
|
714 |
+
update_option("folders_settings", $posts);
|
715 |
+
}
|
716 |
+
|
717 |
+
$old_version = get_option("folder_old_plugin_status");
|
718 |
+
if($old_version !== false && $old_version == 1) {
|
719 |
+
$total_folders = get_option("folder_old_plugin_folder_status");
|
720 |
+
if($total_folders === false) {
|
721 |
+
$total = self::total_term_folders();
|
722 |
+
if($total <= 10) {
|
723 |
+
$total = 10;
|
724 |
+
};
|
725 |
+
update_option("folder_old_plugin_folder_status", $total);
|
726 |
+
self::$folders = $total;
|
727 |
+
} else {
|
728 |
+
self::$folders = $total_folders;
|
729 |
+
}
|
730 |
+
}
|
731 |
+
|
732 |
+
$total_folders = get_option("folder_old_plugin_folder_status");
|
733 |
+
if($total_folders === false) {
|
734 |
+
self::$folders = 10;
|
735 |
+
} else {
|
736 |
+
self::$folders = $total_folders;
|
737 |
+
}
|
738 |
+
}
|
739 |
+
|
740 |
+
function searchForId($id, $menu)
|
741 |
+
{
|
742 |
+
if ($menu) {
|
743 |
+
foreach ($menu as $key => $val) {
|
744 |
+
if (array_key_exists(2, $val)) {
|
745 |
+
$stripVal = explode('=', $val[2]);
|
746 |
+
}
|
747 |
+
if (array_key_exists(1, $stripVal)) {
|
748 |
+
$stripVal = $stripVal[1];
|
749 |
+
}
|
750 |
+
if ($stripVal === $id) {
|
751 |
+
return $key;
|
752 |
+
}
|
753 |
+
}
|
754 |
+
}
|
755 |
+
}
|
756 |
+
|
757 |
+
function create_menu_for_folders()
|
758 |
+
{
|
759 |
+
global $menu;
|
760 |
+
self::check_and_set_post_type();
|
761 |
+
|
762 |
+
$folder_types = get_option("folders_settings");
|
763 |
+
if (empty($folder_types)) {
|
764 |
+
return;
|
765 |
+
}
|
766 |
+
|
767 |
+
foreach ($folder_types as $type) {
|
768 |
+
$itemKey = self::searchForId($type, $menu);
|
769 |
+
switch (true) {
|
770 |
+
case ($type == 'attachment'):
|
771 |
+
$itemKey = 10;
|
772 |
+
$edit = 'upload.php';
|
773 |
+
break;
|
774 |
+
case ($type === 'post'):
|
775 |
+
$edit = 'edit.php';
|
776 |
+
$itemKey = 5;
|
777 |
+
break;
|
778 |
+
default:
|
779 |
+
$edit = 'edit.php';
|
780 |
+
break;
|
781 |
+
}
|
782 |
+
|
783 |
+
$folder = $type == 'attachment' ? 'media' : $type;
|
784 |
+
$upper = $type == 'attachment' ? 'Media' : ucwords(str_replace(array('-', '_'), ' ', $type));
|
785 |
+
if ($type == 'page') {
|
786 |
+
$tax_slug = 'folder';
|
787 |
+
} else {
|
788 |
+
$tax_slug = $folder . '_folder';
|
789 |
+
}
|
790 |
+
|
791 |
+
|
792 |
+
if ($type == 'attachment') {
|
793 |
+
add_menu_page('Media Folders', 'Media Folders', 'publish_pages', "{$edit}?type=folder", false, 'dashicons-portfolio', "{$itemKey}.5");
|
794 |
+
} else {
|
795 |
+
add_menu_page($upper . ' Folders', "{$upper} Folders", 'publish_pages', "{$edit}?post_type={$type}&type=folder", false, 'dashicons-portfolio', "{$itemKey}.5");
|
796 |
+
}
|
797 |
+
$terms = get_terms($tax_slug, array(
|
798 |
+
'hide_empty' => true,
|
799 |
+
'parent' => 0,
|
800 |
+
'orderby' => 'meta_value_num',
|
801 |
+
'order' => 'ASC',
|
802 |
+
'hierarchical' => false,
|
803 |
+
'meta_query' => [[
|
804 |
+
'key' => 'wcp_custom_order',
|
805 |
+
'type' => 'NUMERIC',
|
806 |
+
]]
|
807 |
+
)
|
808 |
+
);
|
809 |
+
|
810 |
+
if ($terms) {
|
811 |
+
foreach ($terms as $term) {
|
812 |
+
if ($type == 'attachment') {
|
813 |
+
add_submenu_page("{$edit}?type=folder", $term->name, $term->name, 'publish_pages', "{$edit}?post_type=attachment&media_folder={$term->slug}", false);
|
814 |
+
} else {
|
815 |
+
add_submenu_page("{$edit}?post_type={$type}&type=folder", $term->name, $term->name, 'publish_pages', "{$edit}?post_type={$type}&{$tax_slug}={$term->slug}", false);
|
816 |
+
}
|
817 |
+
}
|
818 |
+
}
|
819 |
+
}
|
820 |
+
}
|
821 |
+
|
822 |
+
function folders_admin_styles()
|
823 |
+
{
|
824 |
+
if (self::is_active_for_screen()) {
|
825 |
+
wp_register_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folder-icon.css');
|
826 |
+
wp_enqueue_style('wcp-folders-fa');
|
827 |
+
wp_register_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)) . 'assets/css/design.css');
|
828 |
+
wp_enqueue_style('wcp-folders-admin');
|
829 |
+
}
|
830 |
+
wp_register_style('wcp-css-handle', false);
|
831 |
+
wp_enqueue_style('wcp-css-handle');
|
832 |
+
$css = "
|
833 |
+
.wcp-folder-upgrade-button {color: #FF5983; font-weight: bold;}
|
834 |
+
";
|
835 |
+
if (self::is_active_for_screen()) {
|
836 |
+
global $typenow;
|
837 |
+
$width = get_option("wcp_dynamic_width_for_" . $typenow);
|
838 |
+
if (!empty($width)) {
|
839 |
+
$css .= ".wcp-content{width:{$width}px}";
|
840 |
+
if ( function_exists( 'is_rtl' ) && is_rtl() ) {
|
841 |
+
$css .= "html[dir='rtl'] body.wp-admin #wpcontent {padding-right:" . ($width + 20) . "px}";
|
842 |
+
$css .= "html[dir='rtl'] body.wp-admin #wpcontent {padding-left:0px}";
|
843 |
+
} else {
|
844 |
+
$css .= "body.wp-admin #wpcontent {padding-left:" . ($width + 20) . "px}";
|
845 |
+
}
|
846 |
+
|
847 |
+
}
|
848 |
+
}
|
849 |
+
wp_add_inline_style('wcp-css-handle', $css);
|
850 |
+
|
851 |
+
if (self::is_active_for_screen()) {
|
852 |
+
global $typenow;
|
853 |
+
add_filter('views_edit-' . $typenow, array($this, 'wcp_check_for_child_folders'));
|
854 |
+
}
|
855 |
+
}
|
856 |
+
|
857 |
+
function wcp_check_for_child_folders()
|
858 |
+
{
|
859 |
+
$termId = 0;
|
860 |
+
global $typenow;
|
861 |
+
$post_type = self::get_custom_post_type($typenow);
|
862 |
+
if (isset($_GET[$post_type]) && !empty($_GET[$post_type])) {
|
863 |
+
$term = $_GET[$post_type];
|
864 |
+
$term = get_term_by("slug", $term, $post_type);
|
865 |
+
if (!empty($term)) {
|
866 |
+
$termId = $term->term_id;
|
867 |
+
}
|
868 |
+
}
|
869 |
+
$terms = get_terms($post_type, array(
|
870 |
+
'hide_empty' => false,
|
871 |
+
'parent' => $termId,
|
872 |
+
'orderby' => 'meta_value_num',
|
873 |
+
'order' => 'ASC',
|
874 |
+
'hierarchical' => false,
|
875 |
+
'update_count_callback' => '_update_generic_term_count',
|
876 |
+
'meta_query' => [[
|
877 |
+
'key' => 'wcp_custom_order',
|
878 |
+
'type' => 'NUMERIC',
|
879 |
+
]]
|
880 |
+
));
|
881 |
+
echo '<div class="tree-structure" id="list-folder-' . $termId . '" data-id="' . $termId . '">';
|
882 |
+
echo '<ul>';
|
883 |
+
foreach ($terms as $term) {
|
884 |
+
$status = get_term_meta($term->term_id, "is_highlighted", true);
|
885 |
+
?>
|
886 |
+
<li class="grid-view" data-id="<?php echo $term->term_id ?>" id="folder_<?php echo $term->term_id ?>">
|
887 |
+
<div class="folder-item is-folder" data-id="<?php echo $term->term_id ?>">
|
888 |
+
<a title='<?php echo $term->name ?>' id="folder_view_<?php echo $term->term_id ?>"
|
889 |
+
class="folder-view <?php echo ($status == 1) ? "is-high" : "" ?>"
|
890 |
+
data-id="<?php echo $term->term_id ?>">
|
891 |
+
<span class="folder item-name"><span id="wcp_folder_text_<?php echo $term->term_id ?>"
|
892 |
+
class="folder-title"><?php echo $term->name ?></span></span>
|
893 |
+
<!--<span class="folder-option"></span>-->
|
894 |
+
</a>
|
895 |
+
</div>
|
896 |
+
</li>
|
897 |
+
<?php
|
898 |
+
}
|
899 |
+
echo '</ul>';
|
900 |
+
echo '<div class="clear clearfix"></div>';
|
901 |
+
echo '</div>';
|
902 |
+
}
|
903 |
+
|
904 |
+
function folders_admin_scripts()
|
905 |
+
{
|
906 |
+
if (self::is_active_for_screen()) {
|
907 |
+
global $typenow;
|
908 |
+
wp_register_script('wcp-folders-alert', plugin_dir_url(dirname(__FILE__)) . 'assets/js/sweetalert.all.min.js');
|
909 |
+
wp_register_script('wcp-folders-custom', plugin_dir_url(dirname(__FILE__)) . 'assets/js/custom.js', array('jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'));
|
910 |
+
|
911 |
+
if ($typenow == "attachment") {
|
912 |
+
$admin_url = admin_url("upload.php?post_type=attachment&media_folder=");
|
913 |
+
} else {
|
914 |
+
$admin_url = admin_url("edit.php?post_type=" . $typenow);
|
915 |
+
if (isset($_GET['s']) && !empty($_GET['s'])) {
|
916 |
+
$admin_url .= "&s=" . $_GET['s'];
|
917 |
+
}
|
918 |
+
$post_type = self::get_custom_post_type($typenow);
|
919 |
+
$admin_url .= "&{$post_type}=";
|
920 |
+
}
|
921 |
+
|
922 |
+
$is_active = 1;
|
923 |
+
$folders = -1;
|
924 |
+
if (!self::check_has_valid_key()) {
|
925 |
+
$is_active = 0;
|
926 |
+
$folders = self::total_term_folders();
|
927 |
+
}
|
928 |
+
$register_url = admin_url("admin.php?page=wcp_folders_upgrade");
|
929 |
+
|
930 |
+
$is_rtl = 0;
|
931 |
+
if ( function_exists( 'is_rtl' ) && is_rtl() ) {
|
932 |
+
$is_rtl = 1;
|
933 |
+
}
|
934 |
+
|
935 |
+
wp_localize_script('wcp-folders-custom', 'wcp_settings', array(
|
936 |
+
'ajax_url' => admin_url('admin-ajax.php'),
|
937 |
+
'post_type' => $typenow,
|
938 |
+
'page_url' => $admin_url,
|
939 |
+
'ajax_image' => plugin_dir_url(dirname(__FILE__)) . "assets/images/ajax-loader.gif",
|
940 |
+
'is_key_active' => $is_active,
|
941 |
+
'folders' => $folders,
|
942 |
+
'register_url' => $register_url,
|
943 |
+
'isRTL' => $is_rtl
|
944 |
+
));
|
945 |
+
wp_enqueue_script('wcp-folders-alert');
|
946 |
+
wp_enqueue_script('wcp-folders-custom');
|
947 |
+
|
948 |
+
} else {
|
949 |
+
self::is_add_update_screen();
|
950 |
+
}
|
951 |
+
}
|
952 |
+
|
953 |
+
public function plugin_action_links($links)
|
954 |
+
{
|
955 |
+
array_unshift($links, '<a href="' . admin_url("admin.php?page=wcp_folders_settings") . '" >' . __('Settings', WCP_FOLDER) . '</a>');
|
956 |
+
$links['pro'] = '<a class="wcp-folder-upgrade-button" href="'.admin_url("admin.php?page=wcp_folders_upgrade").'" >'.__( 'Upgrade', WCP_FOLDER ).'</a>';
|
957 |
+
return $links;
|
958 |
+
}
|
959 |
+
|
960 |
+
public static function get_instance()
|
961 |
+
{
|
962 |
+
if (empty(self::$instance)) {
|
963 |
+
self::$instance = new WCP_Folders();
|
964 |
+
}
|
965 |
+
return self::$instance;
|
966 |
+
}
|
967 |
+
|
968 |
+
public function check_and_set_post_type() {
|
969 |
+
$options = get_option(WCP_FOLDER_VAR);
|
970 |
+
$old_plugin_status = 0;
|
971 |
+
$post_array = array();
|
972 |
+
if (!empty($options)) {
|
973 |
+
foreach ($options as $key=>$val) {
|
974 |
+
if (!(strpos($key, 'folders4') === false) && $old_plugin_status == 0) {
|
975 |
+
$old_plugin_status = 1;
|
976 |
+
}
|
977 |
+
if (in_array($key, array("folders4page", "folders4post", "folders4attachment"))) {
|
978 |
+
$post_array[] = str_replace("folders4", "", $key);
|
979 |
+
}
|
980 |
+
}
|
981 |
+
} else {
|
982 |
+
$post_array = array("page", "post", "attachment");
|
983 |
+
}
|
984 |
+
if ($old_plugin_status == 1) {
|
985 |
+
update_option("folders_show_in_menu", "on");
|
986 |
+
$old_plugin_var = get_option("folder_old_plugin_status");
|
987 |
+
if (empty($old_plugin_var) || $old_plugin_var == null) {
|
988 |
+
update_option("folder_old_plugin_status", "1");
|
989 |
+
}
|
990 |
+
update_option(WCP_FOLDER_VAR, $post_array);
|
991 |
+
self::set_default_values_if_not_exists();
|
992 |
+
}
|
993 |
+
if (!empty($post_array) && get_option(WCP_FOLDER_VAR) === false) {
|
994 |
+
update_option(WCP_FOLDER_VAR, $post_array);
|
995 |
+
update_option("folders_show_in_menu", "off");
|
996 |
+
}
|
997 |
+
}
|
998 |
+
|
999 |
+
public static function activate()
|
1000 |
+
{
|
1001 |
+
update_option("folders_show_in_menu", "off");
|
1002 |
+
update_option("folder_redirect_status", 1);
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
public static function get_total_term_folders()
|
1006 |
+
{
|
1007 |
+
return self::total_term_folders();
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
function folders_register_settings()
|
1011 |
+
{
|
1012 |
+
register_setting('folders_settings', 'folders_settings1', 'folders_settings_validate');
|
1013 |
+
|
1014 |
+
self::check_and_set_post_type();
|
1015 |
+
|
1016 |
+
$options = get_option("folders_settings");
|
1017 |
+
|
1018 |
+
if (in_array("post", $options)) {
|
1019 |
+
add_filter('manage_posts_columns', array($this, 'wcp_manage_columns_head'));
|
1020 |
+
add_action('manage_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
if (in_array("page", $options)) {
|
1024 |
+
add_filter('manage_page_posts_columns', array($this, 'wcp_manage_columns_head'));
|
1025 |
+
add_action('manage_page_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
if (in_array("attachment", $options)) {
|
1029 |
+
add_filter('manage_media_columns', array($this, 'wcp_manage_columns_head'));
|
1030 |
+
add_action('manage_media_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
foreach ($options as $option) {
|
1034 |
+
if ($option != "post" && $option != "page" && $option != "attachment") {
|
1035 |
+
add_filter('manage_edit-' . $option . '_columns', 'wcp_manage_columns_head');
|
1036 |
+
add_action('manage_' . $option . '_posts_custom_column', 'my_manage_movie_columns', 10, 2);
|
1037 |
+
}
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
$option = get_option("folder_redirect_status", true);
|
1041 |
+
if ($option == 1) {
|
1042 |
+
update_option("folder_redirect_status", 0);
|
1043 |
+
wp_redirect(admin_url("admin.php?page=wcp_folders_settings"));
|
1044 |
+
exit;
|
1045 |
+
}
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
function wcp_manage_columns_head($defaults)
|
1049 |
+
{
|
1050 |
+
global $typenow;
|
1051 |
+
$options = get_option("folders_settings");
|
1052 |
+
if (is_array($options) && in_array($typenow, $options)) {
|
1053 |
+
$columns = array(
|
1054 |
+
'wcp_move' => '<div class="wcp-move-multiple wcp-col" title="' . __('Move selected items', WCP_FOLDER) . '"><span class="dashicons dashicons-move"></span><div class="wcp-items"></div></div>',
|
1055 |
+
) + $defaults;
|
1056 |
+
return $columns;
|
1057 |
+
}
|
1058 |
+
return $defaults;
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
function wcp_manage_columns_content($column_name, $post_ID)
|
1062 |
+
{
|
1063 |
+
global $typenow;
|
1064 |
+
$options = get_option("folders_settings");
|
1065 |
+
if (is_array($options) && in_array($typenow, $options)) {
|
1066 |
+
if ($column_name == 'wcp_move') {
|
1067 |
+
$title = get_the_title();
|
1068 |
+
if (strlen($title) > 20) {
|
1069 |
+
$title = substr($title, 0, 20) . "...";
|
1070 |
+
}
|
1071 |
+
echo "<div class='wcp-move-file' data-id='{$post_ID}'><span class='wcp-move dashicons dashicons-move' data-id='{$post_ID}'></span><span class='wcp-item' data-object-id='{$post_ID}'>" . $title . "</span></div>";
|
1072 |
+
}
|
1073 |
+
}
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
function taxonomy_archive_exclude_children($query)
|
1077 |
+
{
|
1078 |
+
$options = get_option("folders_settings");
|
1079 |
+
if (!empty($options)) {
|
1080 |
+
$taxonomy_slugs = array();
|
1081 |
+
foreach ($options as $option) {
|
1082 |
+
$taxonomy_slugs[] = self::get_custom_post_type($option);
|
1083 |
+
}
|
1084 |
+
if (!empty($taxonomy_slugs)) {
|
1085 |
+
if ($query->is_main_query() && is_tax($taxonomy_slugs)) {
|
1086 |
+
foreach ($query->tax_query->queries as &$tax_query_item) {
|
1087 |
+
if (empty($taxonomy_slugs) || in_array($tax_query_item['taxonomy'], $taxonomy_slugs)) {
|
1088 |
+
$tax_query_item['include_children'] = 0;
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
}
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
public function admin_menu()
|
1097 |
+
{
|
1098 |
+
// Add menu item for settings page
|
1099 |
+
$page_title = __('Folders', WCP_FOLDER);
|
1100 |
+
$menu_title = __('Folders Settings', WCP_FOLDER);
|
1101 |
+
$capability = 'manage_options';
|
1102 |
+
$menu_slug = 'wcp_folders_settings';
|
1103 |
+
$callback = array($this, "wcp_folders_settings");
|
1104 |
+
$icon_url = 'dashicons-category';
|
1105 |
+
$position = 99;
|
1106 |
+
|
1107 |
+
add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $position);
|
1108 |
+
|
1109 |
+
add_submenu_page(
|
1110 |
+
$menu_slug,
|
1111 |
+
__('Upgrade to Pro', CHT_OPT),
|
1112 |
+
__('Upgrade to Pro', CHT_OPT),
|
1113 |
+
'manage_options',
|
1114 |
+
'wcp_folders_upgrade',
|
1115 |
+
array($this, 'wcp_folders_upgrade')
|
1116 |
+
);
|
1117 |
+
|
1118 |
+
self::check_and_set_post_type();
|
1119 |
+
|
1120 |
+
$show_menu = get_option("folders_show_in_menu", true);
|
1121 |
+
if ($show_menu == "on") {
|
1122 |
+
self::create_menu_for_folders();
|
1123 |
+
}
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
public function wcp_folders_upgrade()
|
1127 |
+
{
|
1128 |
+
self::set_default_values_if_not_exists();
|
1129 |
+
include_once dirname(dirname(__FILE__)) . "/templates/admin/upgrade-to-pro.php";
|
1130 |
+
}
|
1131 |
+
|
1132 |
+
public function wcp_folders_settings()
|
1133 |
+
{
|
1134 |
+
self::set_default_values_if_not_exists();
|
1135 |
+
include_once dirname(dirname(__FILE__)) . "/templates/admin/general-settings.php";
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
public function set_default_values_if_not_exists()
|
1139 |
+
{
|
1140 |
+
$options = get_option(WCP_FOLDER_VAR);
|
1141 |
+
foreach ($options as $option) {
|
1142 |
+
$post_type = self::get_custom_post_type($option);
|
1143 |
+
$terms = get_terms($post_type, array(
|
1144 |
+
'hide_empty' => false,
|
1145 |
+
)
|
1146 |
+
);
|
1147 |
+
foreach ($terms as $term) {
|
1148 |
+
$order = get_term_meta($term->term_id, "wcp_custom_order", true);
|
1149 |
+
if (empty($order) || $order == null) {
|
1150 |
+
update_term_meta($term->term_id, "wcp_custom_order", "1");
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
}
|
1154 |
+
}
|
1155 |
+
}
|
1156 |
+
}
|
includes/form.class.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class WCP_Forms {
|
3 |
+
public function __construct() {
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
|
7 |
+
public function get_form_html($option_data = "") {
|
8 |
+
ob_start();
|
9 |
+
?>
|
10 |
+
<div class="wcp-custom-form">
|
11 |
+
<div class="form-title">
|
12 |
+
<?php echo __("Folders", WCP_FOLDER) ?>
|
13 |
+
<a href="javascript:;" class="add-new-folder" id="add-new-folder"><span class="folder-icon-create_new_folder"></span> <span><?php echo __("New Folder", WCP_FOLDER) ?></span></a>
|
14 |
+
<div class="clear"></div>
|
15 |
+
</div>
|
16 |
+
<div class="form-options">
|
17 |
+
<ul>
|
18 |
+
<li>
|
19 |
+
<a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php echo __("Rename", WCP_FOLDER) ?></span> </a>
|
20 |
+
</li>
|
21 |
+
<li>
|
22 |
+
<a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php echo __("Delete", WCP_FOLDER) ?></span> </a>
|
23 |
+
</li>
|
24 |
+
<li class="last">
|
25 |
+
<a href="javascript:;" id="expand-collapse-list"><span class="icon folder-icon-expand_more"></span></span> </a>
|
26 |
+
</li>
|
27 |
+
</ul>
|
28 |
+
<div class="upgrade-message">
|
29 |
+
<?php
|
30 |
+
$total_folders = get_option("folder_old_plugin_folder_status");
|
31 |
+
if($total_folders == false || $total_folders < 10) {
|
32 |
+
$total_folders = 10;
|
33 |
+
}
|
34 |
+
$total = WCP_Folders::get_total_term_folders();
|
35 |
+
if($total > $total_folders) {
|
36 |
+
$total_folders = $total;
|
37 |
+
}
|
38 |
+
?>
|
39 |
+
<span class="upgrade-message">You have used <?php echo "<span class='pink' id='current-folder'>".$total."</span>/<span id='total-folder'>".$total_folders."</span>" ?> Folders. <a class="pink" href="<?php echo admin_url("admin.php?page=wcp_folders_upgrade") ?>"><?php echo __("Upgrade", WCP_FOLDER) ?></a></span>
|
40 |
+
<script>
|
41 |
+
folderLimitation = <?php echo $total_folders; ?>;
|
42 |
+
</script>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
<div class="form-loader">
|
46 |
+
<div class="form-loader-count"></div>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<?php
|
50 |
+
return ob_get_clean();
|
51 |
+
}
|
52 |
+
}
|
includes/options.php
DELETED
@@ -1,87 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*************************/
|
3 |
-
/********* OPTIONS *******/
|
4 |
-
/*************************/
|
5 |
-
|
6 |
-
function folders_admin_page(){
|
7 |
-
add_menu_page('Folder Settings', 'Folder Settings', 'publish_pages', 'folders-settings', 'folders_admin_page_callback', 'dashicons-category');
|
8 |
-
}
|
9 |
-
add_action('admin_menu', 'folders_admin_page');
|
10 |
-
|
11 |
-
function folders_register_settings(){
|
12 |
-
register_setting('folders_settings', 'folders_settings', 'folders_settings_validate');
|
13 |
-
}
|
14 |
-
add_action('admin_init', 'folders_register_settings');
|
15 |
-
|
16 |
-
function folders_settings_validate($args){
|
17 |
-
return $args;
|
18 |
-
}
|
19 |
-
|
20 |
-
function folders_admin_notices(){
|
21 |
-
settings_errors();
|
22 |
-
}
|
23 |
-
add_action('admin_notices', 'folders_admin_notices');
|
24 |
-
|
25 |
-
function folders_admin_page_callback(){
|
26 |
-
global $globOptions;
|
27 |
-
?>
|
28 |
-
<style>
|
29 |
-
#side-info-column {
|
30 |
-
width: 250px;
|
31 |
-
float: right;
|
32 |
-
}
|
33 |
-
#side-info-column h3 {
|
34 |
-
margin: 10px;
|
35 |
-
}
|
36 |
-
.form-table th {
|
37 |
-
width: 250px;
|
38 |
-
}
|
39 |
-
</style>
|
40 |
-
<div class="wrap">
|
41 |
-
<h2>Folder Settings</h2>
|
42 |
-
<form style="width: 300px; float:left" action="options.php" method="post"><?php
|
43 |
-
settings_fields( 'folders_settings' );
|
44 |
-
do_settings_sections( __FILE__ );
|
45 |
-
|
46 |
-
$options = $globOptions; ?>
|
47 |
-
<table class="form-table">
|
48 |
-
<?php
|
49 |
-
$args = array(
|
50 |
-
'public' => true
|
51 |
-
);
|
52 |
-
$postTypes = get_post_types($args);
|
53 |
-
foreach ($postTypes as $type) { ?>
|
54 |
-
<tr>
|
55 |
-
<th scope="row"><label for="folders4<?php echo $type; ?>">Use Folders with <?php echo ucfirst($type); ?></label></th>
|
56 |
-
<td>
|
57 |
-
<fieldset>
|
58 |
-
<input name="folders_settings[folders4<?php echo $type; ?>]" type="checkbox" id="folders4<?php echo $type; ?>" value="1" <?php if (!empty($options['folders4'.$type]) && $options['folders4'.$type] == 1) {echo 'checked';} ?>/>
|
59 |
-
<br />
|
60 |
-
</fieldset>
|
61 |
-
</td>
|
62 |
-
</tr>
|
63 |
-
<?php } ?>
|
64 |
-
</table>
|
65 |
-
<?php submit_button(); ?>
|
66 |
-
</form>
|
67 |
-
<div id="side-info-column">
|
68 |
-
<div class="postbox">
|
69 |
-
<h3><span>Donate</span></h3>
|
70 |
-
<div class="inside">
|
71 |
-
<p>Please consider donating a small amount to help us keep Folders in development.</p>
|
72 |
-
<a href="http://62design.co.uk/wordpress-plugins/folders/" target="_blank">Click here to donate</a>
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
-
</div>
|
76 |
-
|
77 |
-
<div id="side-info-column" style="clear:right;">
|
78 |
-
<div class="postbox">
|
79 |
-
<h3><span>Rate Folders</span></h3>
|
80 |
-
<div class="inside">
|
81 |
-
<strong>Please Rate Folders on WordPress</strong>
|
82 |
-
<p><a href="https://wordpress.org/support/view/plugin-reviews/folders">Click to rate folders plugin</a></p>
|
83 |
-
</div>
|
84 |
-
</div>
|
85 |
-
</div>
|
86 |
-
</div>
|
87 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/plugin.updates.php
ADDED
@@ -0,0 +1,564 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
|
3 |
+
// Exit if accessed directly
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Allows plugins to use their own update API.
|
8 |
+
*
|
9 |
+
* @author Easy Digital Downloads
|
10 |
+
* @version 1.6.17
|
11 |
+
*/
|
12 |
+
class Folder_Plugin_Updater {
|
13 |
+
|
14 |
+
private $api_url = '';
|
15 |
+
private $api_data = array();
|
16 |
+
private $name = '';
|
17 |
+
private $slug = '';
|
18 |
+
private $version = '';
|
19 |
+
private $wp_override = false;
|
20 |
+
private $cache_key = '';
|
21 |
+
|
22 |
+
private $health_check_timeout = 5;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Class constructor.
|
26 |
+
*
|
27 |
+
* @uses plugin_basename()
|
28 |
+
* @uses hook()
|
29 |
+
*
|
30 |
+
* @param string $_api_url The URL pointing to the custom API endpoint.
|
31 |
+
* @param string $_plugin_file Path to the plugin file.
|
32 |
+
* @param array $_api_data Optional data to send with API calls.
|
33 |
+
*/
|
34 |
+
public function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
|
35 |
+
|
36 |
+
global $edd_plugin_data;
|
37 |
+
|
38 |
+
$this->api_url = trailingslashit( $_api_url );
|
39 |
+
$this->api_data = $_api_data;
|
40 |
+
$this->name = plugin_basename( $_plugin_file );
|
41 |
+
$this->slug = basename( $_plugin_file, '.php' );
|
42 |
+
$this->version = $_api_data['version'];
|
43 |
+
$this->wp_override = isset( $_api_data['wp_override'] ) ? (bool) $_api_data['wp_override'] : false;
|
44 |
+
$this->beta = ! empty( $this->api_data['beta'] ) ? true : false;
|
45 |
+
$this->cache_key = 'edd_sl_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
|
46 |
+
|
47 |
+
$edd_plugin_data[ $this->slug ] = $this->api_data;
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Fires after the $edd_plugin_data is setup.
|
51 |
+
*
|
52 |
+
* @since x.x.x
|
53 |
+
*
|
54 |
+
* @param array $edd_plugin_data Array of EDD SL plugin data.
|
55 |
+
*/
|
56 |
+
do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data );
|
57 |
+
|
58 |
+
// Set up hooks.
|
59 |
+
$this->init();
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Set up WordPress filters to hook into WP's update process.
|
65 |
+
*
|
66 |
+
* @uses add_filter()
|
67 |
+
*
|
68 |
+
* @return void
|
69 |
+
*/
|
70 |
+
public function init() {
|
71 |
+
|
72 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
73 |
+
add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
|
74 |
+
remove_action( 'after_plugin_row_' . $this->name, 'wp_plugin_update_row', 10 );
|
75 |
+
add_action( 'after_plugin_row_' . $this->name, array( $this, 'show_update_notification' ), 10, 2 );
|
76 |
+
add_action( 'admin_init', array( $this, 'show_changelog' ) );
|
77 |
+
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Check for Updates at the defined API endpoint and modify the update array.
|
82 |
+
*
|
83 |
+
* This function dives into the update API just when WordPress creates its update array,
|
84 |
+
* then adds a custom API call and injects the custom plugin data retrieved from the API.
|
85 |
+
* It is reassembled from parts of the native WordPress plugin update code.
|
86 |
+
* See wp-includes/update.php line 121 for the original wp_update_plugins() function.
|
87 |
+
*
|
88 |
+
* @uses api_request()
|
89 |
+
*
|
90 |
+
* @param array $_transient_data Update array build by WordPress.
|
91 |
+
* @return array Modified update array with custom plugin data.
|
92 |
+
*/
|
93 |
+
public function check_update( $_transient_data ) {
|
94 |
+
|
95 |
+
global $pagenow;
|
96 |
+
|
97 |
+
if ( ! is_object( $_transient_data ) ) {
|
98 |
+
$_transient_data = new stdClass;
|
99 |
+
}
|
100 |
+
|
101 |
+
if ( 'plugins.php' == $pagenow && is_multisite() ) {
|
102 |
+
return $_transient_data;
|
103 |
+
}
|
104 |
+
|
105 |
+
if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
|
106 |
+
return $_transient_data;
|
107 |
+
}
|
108 |
+
|
109 |
+
$version_info = $this->get_cached_version_info();
|
110 |
+
|
111 |
+
if ( false === $version_info ) {
|
112 |
+
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
|
113 |
+
|
114 |
+
$this->set_version_info_cache( $version_info );
|
115 |
+
|
116 |
+
}
|
117 |
+
|
118 |
+
if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
|
119 |
+
|
120 |
+
if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
121 |
+
|
122 |
+
$_transient_data->response[ $this->name ] = $version_info;
|
123 |
+
|
124 |
+
}
|
125 |
+
|
126 |
+
$_transient_data->last_checked = time();
|
127 |
+
$_transient_data->checked[ $this->name ] = $this->version;
|
128 |
+
|
129 |
+
}
|
130 |
+
|
131 |
+
return $_transient_data;
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* show update nofication row -- needed for multisite subsites, because WP won't tell you otherwise!
|
136 |
+
*
|
137 |
+
* @param string $file
|
138 |
+
* @param array $plugin
|
139 |
+
*/
|
140 |
+
public function show_update_notification( $file, $plugin ) {
|
141 |
+
|
142 |
+
if ( is_network_admin() ) {
|
143 |
+
return;
|
144 |
+
}
|
145 |
+
|
146 |
+
if( ! current_user_can( 'update_plugins' ) ) {
|
147 |
+
return;
|
148 |
+
}
|
149 |
+
|
150 |
+
if( ! is_multisite() ) {
|
151 |
+
return;
|
152 |
+
}
|
153 |
+
|
154 |
+
if ( $this->name != $file ) {
|
155 |
+
return;
|
156 |
+
}
|
157 |
+
|
158 |
+
// Remove our filter on the site transient
|
159 |
+
remove_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ), 10 );
|
160 |
+
|
161 |
+
$update_cache = get_site_transient( 'update_plugins' );
|
162 |
+
|
163 |
+
$update_cache = is_object( $update_cache ) ? $update_cache : new stdClass();
|
164 |
+
|
165 |
+
if ( empty( $update_cache->response ) || empty( $update_cache->response[ $this->name ] ) ) {
|
166 |
+
|
167 |
+
$version_info = $this->get_cached_version_info();
|
168 |
+
|
169 |
+
if ( false === $version_info ) {
|
170 |
+
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug, 'beta' => $this->beta ) );
|
171 |
+
|
172 |
+
// Since we disabled our filter for the transient, we aren't running our object conversion on banners, sections, or icons. Do this now:
|
173 |
+
if ( isset( $version_info->banners ) && ! is_array( $version_info->banners ) ) {
|
174 |
+
$version_info->banners = $this->convert_object_to_array( $version_info->banners );
|
175 |
+
}
|
176 |
+
|
177 |
+
if ( isset( $version_info->sections ) && ! is_array( $version_info->sections ) ) {
|
178 |
+
$version_info->sections = $this->convert_object_to_array( $version_info->sections );
|
179 |
+
}
|
180 |
+
|
181 |
+
if ( isset( $version_info->icons ) && ! is_array( $version_info->icons ) ) {
|
182 |
+
$version_info->icons = $this->convert_object_to_array( $version_info->icons );
|
183 |
+
}
|
184 |
+
|
185 |
+
$this->set_version_info_cache( $version_info );
|
186 |
+
}
|
187 |
+
|
188 |
+
if ( ! is_object( $version_info ) ) {
|
189 |
+
return;
|
190 |
+
}
|
191 |
+
|
192 |
+
if ( version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
193 |
+
|
194 |
+
$update_cache->response[ $this->name ] = $version_info;
|
195 |
+
|
196 |
+
}
|
197 |
+
|
198 |
+
$update_cache->last_checked = time();
|
199 |
+
$update_cache->checked[ $this->name ] = $this->version;
|
200 |
+
|
201 |
+
set_site_transient( 'update_plugins', $update_cache );
|
202 |
+
|
203 |
+
} else {
|
204 |
+
|
205 |
+
$version_info = $update_cache->response[ $this->name ];
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
// Restore our filter
|
210 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
211 |
+
|
212 |
+
if ( ! empty( $update_cache->response[ $this->name ] ) && version_compare( $this->version, $version_info->new_version, '<' ) ) {
|
213 |
+
|
214 |
+
// build a plugin list row, with update notification
|
215 |
+
$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
|
216 |
+
# <tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
217 |
+
echo '<tr class="plugin-update-tr" id="' . $this->slug . '-update" data-slug="' . $this->slug . '" data-plugin="' . $this->slug . '/' . $file . '">';
|
218 |
+
echo '<td colspan="3" class="plugin-update colspanchange">';
|
219 |
+
echo '<div class="update-message notice inline notice-warning notice-alt">';
|
220 |
+
|
221 |
+
$changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
|
222 |
+
|
223 |
+
if ( empty( $version_info->download_link ) ) {
|
224 |
+
printf(
|
225 |
+
__( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s.', 'easy-digital-downloads' ),
|
226 |
+
esc_html( $version_info->name ),
|
227 |
+
'<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
|
228 |
+
esc_html( $version_info->new_version ),
|
229 |
+
'</a>'
|
230 |
+
);
|
231 |
+
} else {
|
232 |
+
printf(
|
233 |
+
__( 'There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s.', 'easy-digital-downloads' ),
|
234 |
+
esc_html( $version_info->name ),
|
235 |
+
'<a target="_blank" class="thickbox" href="' . esc_url( $changelog_link ) . '">',
|
236 |
+
esc_html( $version_info->new_version ),
|
237 |
+
'</a>',
|
238 |
+
'<a href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $this->name, 'upgrade-plugin_' . $this->name ) ) .'">',
|
239 |
+
'</a>'
|
240 |
+
);
|
241 |
+
}
|
242 |
+
|
243 |
+
do_action( "in_plugin_update_message-{$file}", $plugin, $version_info );
|
244 |
+
|
245 |
+
echo '</div></td></tr>';
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Updates information on the "View version x.x details" page with custom data.
|
251 |
+
*
|
252 |
+
* @uses api_request()
|
253 |
+
*
|
254 |
+
* @param mixed $_data
|
255 |
+
* @param string $_action
|
256 |
+
* @param object $_args
|
257 |
+
* @return object $_data
|
258 |
+
*/
|
259 |
+
public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
|
260 |
+
|
261 |
+
if ( $_action != 'plugin_information' ) {
|
262 |
+
|
263 |
+
return $_data;
|
264 |
+
|
265 |
+
}
|
266 |
+
|
267 |
+
if ( ! isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) {
|
268 |
+
|
269 |
+
return $_data;
|
270 |
+
|
271 |
+
}
|
272 |
+
|
273 |
+
$to_send = array(
|
274 |
+
'slug' => $this->slug,
|
275 |
+
'is_ssl' => is_ssl(),
|
276 |
+
'fields' => array(
|
277 |
+
'banners' => array(),
|
278 |
+
'reviews' => false,
|
279 |
+
'icons' => array(),
|
280 |
+
)
|
281 |
+
);
|
282 |
+
|
283 |
+
$cache_key = 'edd_api_request_' . md5( serialize( $this->slug . $this->api_data['license'] . $this->beta ) );
|
284 |
+
|
285 |
+
// Get the transient where we store the api request for this plugin for 24 hours
|
286 |
+
$edd_api_request_transient = $this->get_cached_version_info( $cache_key );
|
287 |
+
|
288 |
+
//If we have no transient-saved value, run the API, set a fresh transient with the API value, and return that value too right now.
|
289 |
+
if ( empty( $edd_api_request_transient ) ) {
|
290 |
+
|
291 |
+
$api_response = $this->api_request( 'plugin_information', $to_send );
|
292 |
+
|
293 |
+
// Expires in 3 hours
|
294 |
+
$this->set_version_info_cache( $api_response, $cache_key );
|
295 |
+
|
296 |
+
if ( false !== $api_response ) {
|
297 |
+
$_data = $api_response;
|
298 |
+
}
|
299 |
+
|
300 |
+
} else {
|
301 |
+
$_data = $edd_api_request_transient;
|
302 |
+
}
|
303 |
+
|
304 |
+
// Convert sections into an associative array, since we're getting an object, but Core expects an array.
|
305 |
+
if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
|
306 |
+
$_data->sections = $this->convert_object_to_array( $_data->sections );
|
307 |
+
}
|
308 |
+
|
309 |
+
// Convert banners into an associative array, since we're getting an object, but Core expects an array.
|
310 |
+
if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
|
311 |
+
$_data->banners = $this->convert_object_to_array( $_data->banners );
|
312 |
+
}
|
313 |
+
|
314 |
+
// Convert icons into an associative array, since we're getting an object, but Core expects an array.
|
315 |
+
if ( isset( $_data->icons ) && ! is_array( $_data->icons ) ) {
|
316 |
+
$_data->icons = $this->convert_object_to_array( $_data->icons );
|
317 |
+
}
|
318 |
+
|
319 |
+
return $_data;
|
320 |
+
}
|
321 |
+
|
322 |
+
/**
|
323 |
+
* Convert some objects to arrays when injecting data into the update API
|
324 |
+
*
|
325 |
+
* Some data like sections, banners, and icons are expected to be an associative array, however due to the JSON
|
326 |
+
* decoding, they are objects. This method allows us to pass in the object and return an associative array.
|
327 |
+
*
|
328 |
+
* @since 3.6.5
|
329 |
+
*
|
330 |
+
* @param stdClass $data
|
331 |
+
*
|
332 |
+
* @return array
|
333 |
+
*/
|
334 |
+
private function convert_object_to_array( $data ) {
|
335 |
+
$new_data = array();
|
336 |
+
foreach ( $data as $key => $value ) {
|
337 |
+
$new_data[ $key ] = $value;
|
338 |
+
}
|
339 |
+
|
340 |
+
return $new_data;
|
341 |
+
}
|
342 |
+
|
343 |
+
/**
|
344 |
+
* Disable SSL verification in order to prevent download update failures
|
345 |
+
*
|
346 |
+
* @param array $args
|
347 |
+
* @param string $url
|
348 |
+
* @return object $array
|
349 |
+
*/
|
350 |
+
public function http_request_args( $args, $url ) {
|
351 |
+
|
352 |
+
$verify_ssl = $this->verify_ssl();
|
353 |
+
if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
|
354 |
+
$args['sslverify'] = $verify_ssl;
|
355 |
+
}
|
356 |
+
return $args;
|
357 |
+
|
358 |
+
}
|
359 |
+
|
360 |
+
/**
|
361 |
+
* Calls the API and, if successfull, returns the object delivered by the API.
|
362 |
+
*
|
363 |
+
* @uses get_bloginfo()
|
364 |
+
* @uses wp_remote_post()
|
365 |
+
* @uses is_wp_error()
|
366 |
+
*
|
367 |
+
* @param string $_action The requested action.
|
368 |
+
* @param array $_data Parameters for the API action.
|
369 |
+
* @return false|object
|
370 |
+
*/
|
371 |
+
private function api_request( $_action, $_data ) {
|
372 |
+
|
373 |
+
global $wp_version, $edd_plugin_url_available;
|
374 |
+
|
375 |
+
// Do a quick status check on this domain if we haven't already checked it.
|
376 |
+
$store_hash = md5( $this->api_url );
|
377 |
+
if ( ! is_array( $edd_plugin_url_available ) || ! isset( $edd_plugin_url_available[ $store_hash ] ) ) {
|
378 |
+
$test_url_parts = parse_url( $this->api_url );
|
379 |
+
|
380 |
+
$scheme = ! empty( $test_url_parts['scheme'] ) ? $test_url_parts['scheme'] : 'http';
|
381 |
+
$host = ! empty( $test_url_parts['host'] ) ? $test_url_parts['host'] : '';
|
382 |
+
$port = ! empty( $test_url_parts['port'] ) ? ':' . $test_url_parts['port'] : '';
|
383 |
+
|
384 |
+
if ( empty( $host ) ) {
|
385 |
+
$edd_plugin_url_available[ $store_hash ] = false;
|
386 |
+
} else {
|
387 |
+
$test_url = $scheme . '://' . $host . $port;
|
388 |
+
$response = wp_remote_get( $test_url, array( 'timeout' => $this->health_check_timeout, 'sslverify' => true ) );
|
389 |
+
$edd_plugin_url_available[ $store_hash ] = is_wp_error( $response ) ? false : true;
|
390 |
+
}
|
391 |
+
}
|
392 |
+
|
393 |
+
if ( false === $edd_plugin_url_available[ $store_hash ] ) {
|
394 |
+
return;
|
395 |
+
}
|
396 |
+
|
397 |
+
$data = array_merge( $this->api_data, $_data );
|
398 |
+
|
399 |
+
if ( $data['slug'] != $this->slug ) {
|
400 |
+
return;
|
401 |
+
}
|
402 |
+
|
403 |
+
if( $this->api_url == trailingslashit ( home_url() ) ) {
|
404 |
+
return false; // Don't allow a plugin to ping itself
|
405 |
+
}
|
406 |
+
|
407 |
+
$api_params = array(
|
408 |
+
'edd_action' => 'get_version',
|
409 |
+
'license' => ! empty( $data['license'] ) ? $data['license'] : '',
|
410 |
+
'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
|
411 |
+
'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
|
412 |
+
'version' => isset( $data['version'] ) ? $data['version'] : false,
|
413 |
+
'slug' => $data['slug'],
|
414 |
+
'author' => $data['author'],
|
415 |
+
'url' => home_url(),
|
416 |
+
'beta' => ! empty( $data['beta'] ),
|
417 |
+
);
|
418 |
+
|
419 |
+
$verify_ssl = $this->verify_ssl();
|
420 |
+
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
421 |
+
|
422 |
+
if ( ! is_wp_error( $request ) ) {
|
423 |
+
$request = json_decode( wp_remote_retrieve_body( $request ) );
|
424 |
+
}
|
425 |
+
|
426 |
+
if ( $request && isset( $request->sections ) ) {
|
427 |
+
$request->sections = maybe_unserialize( $request->sections );
|
428 |
+
} else {
|
429 |
+
$request = false;
|
430 |
+
}
|
431 |
+
|
432 |
+
if ( $request && isset( $request->banners ) ) {
|
433 |
+
$request->banners = maybe_unserialize( $request->banners );
|
434 |
+
}
|
435 |
+
|
436 |
+
if ( $request && isset( $request->icons ) ) {
|
437 |
+
$request->icons = maybe_unserialize( $request->icons );
|
438 |
+
}
|
439 |
+
|
440 |
+
if( ! empty( $request->sections ) ) {
|
441 |
+
foreach( $request->sections as $key => $section ) {
|
442 |
+
$request->$key = (array) $section;
|
443 |
+
}
|
444 |
+
}
|
445 |
+
|
446 |
+
return $request;
|
447 |
+
}
|
448 |
+
|
449 |
+
public function show_changelog() {
|
450 |
+
|
451 |
+
global $edd_plugin_data;
|
452 |
+
|
453 |
+
if( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' != $_REQUEST['edd_sl_action'] ) {
|
454 |
+
return;
|
455 |
+
}
|
456 |
+
|
457 |
+
if( empty( $_REQUEST['plugin'] ) ) {
|
458 |
+
return;
|
459 |
+
}
|
460 |
+
|
461 |
+
if( empty( $_REQUEST['slug'] ) ) {
|
462 |
+
return;
|
463 |
+
}
|
464 |
+
|
465 |
+
if( ! current_user_can( 'update_plugins' ) ) {
|
466 |
+
wp_die( __( 'You do not have permission to install plugin updates', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
|
467 |
+
}
|
468 |
+
|
469 |
+
$data = $edd_plugin_data[ $_REQUEST['slug'] ];
|
470 |
+
$beta = ! empty( $data['beta'] ) ? true : false;
|
471 |
+
$cache_key = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
|
472 |
+
$version_info = $this->get_cached_version_info( $cache_key );
|
473 |
+
|
474 |
+
if( false === $version_info ) {
|
475 |
+
|
476 |
+
$api_params = array(
|
477 |
+
'edd_action' => 'get_version',
|
478 |
+
'item_name' => isset( $data['item_name'] ) ? $data['item_name'] : false,
|
479 |
+
'item_id' => isset( $data['item_id'] ) ? $data['item_id'] : false,
|
480 |
+
'slug' => $_REQUEST['slug'],
|
481 |
+
'author' => $data['author'],
|
482 |
+
'url' => home_url(),
|
483 |
+
'beta' => ! empty( $data['beta'] )
|
484 |
+
);
|
485 |
+
|
486 |
+
$verify_ssl = $this->verify_ssl();
|
487 |
+
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
488 |
+
|
489 |
+
if ( ! is_wp_error( $request ) ) {
|
490 |
+
$version_info = json_decode( wp_remote_retrieve_body( $request ) );
|
491 |
+
}
|
492 |
+
|
493 |
+
|
494 |
+
if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
|
495 |
+
$version_info->sections = maybe_unserialize( $version_info->sections );
|
496 |
+
} else {
|
497 |
+
$version_info = false;
|
498 |
+
}
|
499 |
+
|
500 |
+
if( ! empty( $version_info ) ) {
|
501 |
+
foreach( $version_info->sections as $key => $section ) {
|
502 |
+
$version_info->$key = (array) $section;
|
503 |
+
}
|
504 |
+
}
|
505 |
+
|
506 |
+
$this->set_version_info_cache( $version_info, $cache_key );
|
507 |
+
|
508 |
+
}
|
509 |
+
|
510 |
+
if( ! empty( $version_info ) && isset( $version_info->sections['changelog'] ) ) {
|
511 |
+
echo '<div style="background:#fff;padding:10px;">' . $version_info->sections['changelog'] . '</div>';
|
512 |
+
}
|
513 |
+
|
514 |
+
exit;
|
515 |
+
}
|
516 |
+
|
517 |
+
public function get_cached_version_info( $cache_key = '' ) {
|
518 |
+
|
519 |
+
if( empty( $cache_key ) ) {
|
520 |
+
$cache_key = $this->cache_key;
|
521 |
+
}
|
522 |
+
|
523 |
+
$cache = get_option( $cache_key );
|
524 |
+
|
525 |
+
if( empty( $cache['timeout'] ) || time() > $cache['timeout'] ) {
|
526 |
+
return false; // Cache is expired
|
527 |
+
}
|
528 |
+
|
529 |
+
// We need to turn the icons into an array, thanks to WP Core forcing these into an object at some point.
|
530 |
+
$cache['value'] = json_decode( $cache['value'] );
|
531 |
+
if ( ! empty( $cache['value']->icons ) ) {
|
532 |
+
$cache['value']->icons = (array) $cache['value']->icons;
|
533 |
+
}
|
534 |
+
|
535 |
+
return $cache['value'];
|
536 |
+
|
537 |
+
}
|
538 |
+
|
539 |
+
public function set_version_info_cache( $value = '', $cache_key = '' ) {
|
540 |
+
|
541 |
+
if( empty( $cache_key ) ) {
|
542 |
+
$cache_key = $this->cache_key;
|
543 |
+
}
|
544 |
+
|
545 |
+
$data = array(
|
546 |
+
'timeout' => strtotime( '+3 hours', time() ),
|
547 |
+
'value' => json_encode( $value )
|
548 |
+
);
|
549 |
+
|
550 |
+
update_option( $cache_key, $data, 'no' );
|
551 |
+
|
552 |
+
}
|
553 |
+
|
554 |
+
/**
|
555 |
+
* Returns if the SSL of the store should be verified.
|
556 |
+
*
|
557 |
+
* @since 1.6.13
|
558 |
+
* @return bool
|
559 |
+
*/
|
560 |
+
private function verify_ssl() {
|
561 |
+
return (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true, $this );
|
562 |
+
}
|
563 |
+
|
564 |
+
}
|
includes/tree.class.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class WCP_Tree {
|
3 |
+
public function __construct() {
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
|
7 |
+
public function get_full_tree_data($post_type) {
|
8 |
+
$string = self::get_folder_category_data($post_type, 0, 0);
|
9 |
+
return $string['string'];
|
10 |
+
}
|
11 |
+
|
12 |
+
public function get_folder_category_data($post_type, $parent = 0, $parentStatus = 0) {
|
13 |
+
// echo "<pre>"; print_r($post_type); die;
|
14 |
+
$terms = get_terms( $post_type, array(
|
15 |
+
'hide_empty' => false,
|
16 |
+
'parent' => $parent,
|
17 |
+
'orderby' => 'meta_value_num',
|
18 |
+
'order' => 'ASC',
|
19 |
+
'hierarchical' => false,
|
20 |
+
'update_count_callback' => '_update_generic_term_count',
|
21 |
+
'meta_query' => [[
|
22 |
+
'key' => 'wcp_custom_order',
|
23 |
+
'type' => 'NUMERIC',
|
24 |
+
]]
|
25 |
+
));
|
26 |
+
$string = "";
|
27 |
+
$child = 0;
|
28 |
+
if(!empty($terms)) {
|
29 |
+
$child = count($terms);
|
30 |
+
foreach($terms as $term) {
|
31 |
+
$status = get_term_meta($term->term_id, "is_active", true);
|
32 |
+
$return = self::get_folder_category_data($post_type, $term->term_id, $status);
|
33 |
+
$class = ($status == 1 && $return['child']>0)?"active":"";
|
34 |
+
$class .= ($return['child'])>0?" has-sub-tree":"";
|
35 |
+
if($post_type == "attachment") {
|
36 |
+
$class .= (isset($_GET['term']) && $_GET['term'] == $term->slug)?" active-item active-term":"";
|
37 |
+
} else {
|
38 |
+
$class .= (isset($_GET[$post_type]) && $_GET[$post_type] == $term->slug)?" active-item active-term":"";
|
39 |
+
}
|
40 |
+
$status = get_term_meta($term->term_id, "is_highlighted", true);
|
41 |
+
$class .= ($status == 1)?" is-high":"";
|
42 |
+
$count = ($term->count != 0)?"<span class='total-count'>{$term->count}</span>":"";
|
43 |
+
$string .= "<li data-slug='{$term->slug}' class='ui-state-default route {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i></span> <ul class='space' id='space_{$term->term_id}'>";
|
44 |
+
$string .= $return['string'];
|
45 |
+
$string .= "</ul></li>";
|
46 |
+
}
|
47 |
+
}
|
48 |
+
return array(
|
49 |
+
'string' =>$string,
|
50 |
+
'child' => $child
|
51 |
+
);
|
52 |
+
}
|
53 |
+
|
54 |
+
public function get_option_data_for_select($post_type) {
|
55 |
+
$string = "<option value='0'>Parent Folder</option>";
|
56 |
+
$string .= self::get_folder_option_data($post_type, 0, ' ');
|
57 |
+
return $string;
|
58 |
+
}
|
59 |
+
|
60 |
+
public function get_folder_option_data($post_type, $parent = 0, $space) {
|
61 |
+
$terms = get_terms( $post_type, array(
|
62 |
+
'hide_empty' => false,
|
63 |
+
'parent' => $parent,
|
64 |
+
'orderby' => 'meta_value_num',
|
65 |
+
'order' => 'ASC',
|
66 |
+
'hierarchical' => false,
|
67 |
+
'meta_query' => [[
|
68 |
+
'key' => 'wcp_custom_order',
|
69 |
+
'type' => 'NUMERIC',
|
70 |
+
]]
|
71 |
+
) );
|
72 |
+
|
73 |
+
$string = "";
|
74 |
+
if(!empty($terms)) {
|
75 |
+
foreach($terms as $term) {
|
76 |
+
$string .= "<option value='{$term->term_id}'>{$space}{$term->name}</option>";
|
77 |
+
$string .= self::get_folder_option_data($post_type, $term->term_id, $space."  ");
|
78 |
+
}
|
79 |
+
}
|
80 |
+
return $string;
|
81 |
+
}
|
82 |
+
}
|
includes/types.php
DELETED
@@ -1,204 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/************************
|
3 |
-
*** CUSTOM POST TYPES ***
|
4 |
-
*************************/
|
5 |
-
|
6 |
-
function add_custom_posttype_folder_taxonomy() {
|
7 |
-
// get post types
|
8 |
-
global $globOptions, $folder_types, $typenow;
|
9 |
-
|
10 |
-
if ($globOptions) {
|
11 |
-
|
12 |
-
foreach($folder_types as $type) {
|
13 |
-
$tax_slug = $type.'_folder';
|
14 |
-
$args = array(
|
15 |
-
'hierarchical' => true,
|
16 |
-
'labels' => array(
|
17 |
-
'name' => _x( 'Folders', 'taxonomy general name' ),
|
18 |
-
'singular_name' => _x( 'Folder', 'taxonomy singular name' ),
|
19 |
-
'search_items' => __( 'Search Folders' ),
|
20 |
-
'all_items' => __( 'All Folders' ),
|
21 |
-
'parent_item' => __( 'Parent Folder' ),
|
22 |
-
'parent_item_colon' => __( 'Parent Folder:' ),
|
23 |
-
'edit_item' => __( 'Edit Folder' ),
|
24 |
-
'update_item' => __( 'Update Folder' ),
|
25 |
-
'add_new_item' => __( 'Add New Folder' ),
|
26 |
-
'new_item_name' => __( 'New Folder Name' ),
|
27 |
-
'menu_name' => __( 'Folders' ),
|
28 |
-
),
|
29 |
-
'rewrite' => array(
|
30 |
-
'slug' => '',
|
31 |
-
'with_front' => false,
|
32 |
-
'hierarchical' => false
|
33 |
-
),
|
34 |
-
'update_count_callback' => '_update_generic_term_count'
|
35 |
-
);
|
36 |
-
if ($type == 'attachment') {
|
37 |
-
$tax_slug = 'media_folder';
|
38 |
-
$args = array(
|
39 |
-
'hierarchical' => true,
|
40 |
-
'labels' => array(
|
41 |
-
'name' => _x( 'Folders', 'taxonomy general name' ),
|
42 |
-
'singular_name' => _x( 'Folder', 'taxonomy singular name' ),
|
43 |
-
'search_items' => __( 'Search Folders' ),
|
44 |
-
'all_items' => __( 'All Folders' ),
|
45 |
-
'parent_item' => __( 'Parent Folder' ),
|
46 |
-
'parent_item_colon' => __( 'Parent Folder:' ),
|
47 |
-
'edit_item' => __( 'Edit Folder' ),
|
48 |
-
'update_item' => __( 'Update Folder' ),
|
49 |
-
'add_new_item' => __( 'Add New Folder' ),
|
50 |
-
'new_item_name' => __( 'New Folder Name' ),
|
51 |
-
'menu_name' => __( 'Folders' ),
|
52 |
-
),
|
53 |
-
'sort' => true,
|
54 |
-
'show_admin_column' => true,
|
55 |
-
'update_count_callback' => '_update_generic_term_count'
|
56 |
-
);
|
57 |
-
} elseif ($type == 'page') {
|
58 |
-
$tax_slug = 'folder';
|
59 |
-
$args = array(
|
60 |
-
'hierarchical' => true,
|
61 |
-
'labels' => array(
|
62 |
-
'name' => _x( 'Folders', 'taxonomy general name' ),
|
63 |
-
'singular_name' => _x( 'Folder', 'taxonomy singular name' ),
|
64 |
-
'search_items' => __( 'Search Folders' ),
|
65 |
-
'all_items' => __( 'All Folders' ),
|
66 |
-
'parent_item' => __( 'Parent Folder' ),
|
67 |
-
'parent_item_colon' => __( 'Parent Folder:' ),
|
68 |
-
'edit_item' => __( 'Edit Folder' ),
|
69 |
-
'update_item' => __( 'Update Folder' ),
|
70 |
-
'add_new_item' => __( 'Add New Folder' ),
|
71 |
-
'new_item_name' => __( 'New Folder Name' ),
|
72 |
-
'menu_name' => __( 'Folders' ),
|
73 |
-
),
|
74 |
-
'sort' => true,
|
75 |
-
'show_admin_column' => true,
|
76 |
-
'update_count_callback' => '_update_generic_term_count'
|
77 |
-
);
|
78 |
-
}
|
79 |
-
register_taxonomy($tax_slug, $type, $args);
|
80 |
-
}
|
81 |
-
}
|
82 |
-
}
|
83 |
-
add_action( 'init', 'add_custom_posttype_folder_taxonomy', 0 );
|
84 |
-
|
85 |
-
function folders_add_posttype_taxonomy_filters() {
|
86 |
-
global $globOptions, $folder_types, $typenow;
|
87 |
-
if ($folder_types) {
|
88 |
-
foreach($folder_types as $type) {
|
89 |
-
if($type == 'page') {
|
90 |
-
$tax_slug = 'folder';
|
91 |
-
} else {
|
92 |
-
$tax_slug = $type.'_folder';
|
93 |
-
}
|
94 |
-
if( $typenow == $type ) {
|
95 |
-
$tax_obj = get_taxonomy($tax_slug);
|
96 |
-
$tax_name = $tax_obj->labels->name;
|
97 |
-
$terms = get_terms($tax_slug);
|
98 |
-
if(count($terms)) {
|
99 |
-
echo "<select name='$tax_slug' id='$tax_slug' class='postform'>";
|
100 |
-
echo "<option value=''>Show All $tax_name</option>";
|
101 |
-
foreach ($terms as $term) {
|
102 |
-
echo '<option value='. $term->slug, $_GET[$tax_slug] == $term->slug ? ' selected="selected"' : '','>' . $term->name .' (' . $term->count .')</option>';
|
103 |
-
}
|
104 |
-
echo "</select>";
|
105 |
-
}
|
106 |
-
}
|
107 |
-
}
|
108 |
-
}
|
109 |
-
}
|
110 |
-
add_action( 'restrict_manage_posts', 'folders_add_posttype_taxonomy_filters' );
|
111 |
-
|
112 |
-
// Add Folders into Admin Menu
|
113 |
-
function folders_posttype_in_admin_menu() {
|
114 |
-
global $globOptions, $folder_types, $menu;
|
115 |
-
if (empty($folder_types)) {
|
116 |
-
return;
|
117 |
-
}
|
118 |
-
|
119 |
-
foreach($folder_types as $type) {
|
120 |
-
$itemKey = searchForId($type, $menu);
|
121 |
-
switch (true) {
|
122 |
-
case ($type == 'attachment'):
|
123 |
-
$itemKey = 10;
|
124 |
-
$edit = 'upload.php';
|
125 |
-
break;
|
126 |
-
case ($type === 'post'):
|
127 |
-
$edit = 'edit.php';
|
128 |
-
$itemKey = 5;
|
129 |
-
break;
|
130 |
-
default:
|
131 |
-
$edit = 'edit.php';
|
132 |
-
break;
|
133 |
-
}
|
134 |
-
|
135 |
-
|
136 |
-
$folder = $type == 'attachment' ? 'media' : $type;
|
137 |
-
$upper = $type == 'attachment' ? 'Media' : ucwords(str_replace(array('-','_'), ' ', $type));
|
138 |
-
if ($type == 'page') {
|
139 |
-
$tax_slug = 'folder';
|
140 |
-
} else {
|
141 |
-
$tax_slug = $folder . '_folder';
|
142 |
-
}
|
143 |
-
|
144 |
-
|
145 |
-
if ($type == 'attachment') {
|
146 |
-
add_menu_page( 'Media Folders', 'Media Folders', 'publish_pages', "edit-tags.php?taxonomy=media_folder&post_type=attachment", false, 'dashicons-portfolio', "{$itemKey}.5" );
|
147 |
-
} else {
|
148 |
-
add_menu_page( $upper.' Folders', "{$upper} Folders", 'publish_pages', "{$edit}?post_type={$type}&{$tax_slug}", false, 'dashicons-portfolio', "{$itemKey}.5" );
|
149 |
-
}
|
150 |
-
add_submenu_page( "{$edit}?post_type={$type}&{$tax_slug}", 'Add/Edit Folders', 'Add/Edit Folders', 'publish_pages', "edit-tags.php?taxonomy={$tax_slug}&post_type={$type}", false );
|
151 |
-
$tax_obj = get_taxonomy($tax_slug);
|
152 |
-
$tax_name = $tax_obj->labels->name;
|
153 |
-
$terms = get_terms($tax_slug);
|
154 |
-
|
155 |
-
if($terms) {
|
156 |
-
foreach ($terms as $term) {
|
157 |
-
if ($type == 'attachment') {
|
158 |
-
add_submenu_page( "edit-tags.php?taxonomy=media_folder&post_type=attachment", $term->name, $term->name, 'publish_pages', "{$edit}?taxonomy=media_folder&term={$term->slug}", false );
|
159 |
-
} else {
|
160 |
-
add_submenu_page( "{$edit}?post_type={$type}&{$tax_slug}", $term->name, $term->name, 'publish_pages', "{$edit}?post_type={$type}&{$tax_slug}={$term->slug}", false );
|
161 |
-
}
|
162 |
-
}
|
163 |
-
}
|
164 |
-
remove_submenu_page( "{$edit}", "edit-tags.php?taxonomy=post_folder" );
|
165 |
-
remove_submenu_page( "{$edit}?post_type={$type}", "edit-tags.php?taxonomy={$tax_slug}&post_type={$type}" );
|
166 |
-
remove_submenu_page( "{$edit}", "edit-tags.php?taxonomy={$tax_slug}&post_type={$type}" );
|
167 |
-
}
|
168 |
-
}
|
169 |
-
add_action('admin_menu', 'folders_posttype_in_admin_menu');
|
170 |
-
|
171 |
-
function add_folder_posttype_column( $columns ) {
|
172 |
-
$myCustomColumns = array(
|
173 |
-
'folder' => __( 'Folder', 'Folder' )
|
174 |
-
);
|
175 |
-
$columns = array_merge( $columns, $myCustomColumns );
|
176 |
-
return $columns;
|
177 |
-
}
|
178 |
-
add_filter( 'manage_posts_columns', 'add_folder_posttype_column' );
|
179 |
-
|
180 |
-
function add_folder_posttype_column_content( $column_name, $post_id ) {
|
181 |
-
if ( $column_name == 'folder' ) {
|
182 |
-
$getType = get_post_type($post_id);
|
183 |
-
if ($getType == 'page') {
|
184 |
-
$ter = wp_get_post_terms($post_id, 'folder' );
|
185 |
-
} else {
|
186 |
-
$ter = wp_get_post_terms($post_id, $getType.'_folder' );
|
187 |
-
}
|
188 |
-
$count = count($ter);
|
189 |
-
|
190 |
-
if ($ter && is_wp_error($ter) === false) {
|
191 |
-
foreach ($ter as $key => $term) {
|
192 |
-
if ($term->name) {
|
193 |
-
if ($count === $key + 1) {
|
194 |
-
echo $term->name;
|
195 |
-
}
|
196 |
-
else {
|
197 |
-
echo $term->name.', ';
|
198 |
-
}
|
199 |
-
}
|
200 |
-
}
|
201 |
-
}
|
202 |
-
}
|
203 |
-
}
|
204 |
-
add_action( 'manage_posts_custom_column', 'add_folder_posttype_column_content', 10, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
license.txt
DELETED
@@ -1,694 +0,0 @@
|
|
1 |
-
Folders & GM Media Tags
|
2 |
-
|
3 |
-
Copyright 2015 by the contributors
|
4 |
-
|
5 |
-
This program is free software; you can redistribute it and/or modify
|
6 |
-
it under the terms of the GNU General Public License as published by
|
7 |
-
the Free Software Foundation; either version 3 of the License, or
|
8 |
-
(at your option) any later version.
|
9 |
-
|
10 |
-
This program is distributed in the hope that it will be useful,
|
11 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
-
GNU General Public License for more details.
|
14 |
-
|
15 |
-
You should have received a copy of the GNU General Public License
|
16 |
-
along with this program; if not, write to the Free Software
|
17 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
18 |
-
|
19 |
-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
20 |
-
|
21 |
-
GNU GENERAL PUBLIC LICENSE
|
22 |
-
Version 3, 29 June 2007
|
23 |
-
|
24 |
-
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
25 |
-
Everyone is permitted to copy and distribute verbatim copies
|
26 |
-
of this license document, but changing it is not allowed.
|
27 |
-
|
28 |
-
Preamble
|
29 |
-
|
30 |
-
The GNU General Public License is a free, copyleft license for
|
31 |
-
software and other kinds of works.
|
32 |
-
|
33 |
-
The licenses for most software and other practical works are designed
|
34 |
-
to take away your freedom to share and change the works. By contrast,
|
35 |
-
the GNU General Public License is intended to guarantee your freedom to
|
36 |
-
share and change all versions of a program--to make sure it remains free
|
37 |
-
software for all its users. We, the Free Software Foundation, use the
|
38 |
-
GNU General Public License for most of our software; it applies also to
|
39 |
-
any other work released this way by its authors. You can apply it to
|
40 |
-
your programs, too.
|
41 |
-
|
42 |
-
When we speak of free software, we are referring to freedom, not
|
43 |
-
price. Our General Public Licenses are designed to make sure that you
|
44 |
-
have the freedom to distribute copies of free software (and charge for
|
45 |
-
them if you wish), that you receive source code or can get it if you
|
46 |
-
want it, that you can change the software or use pieces of it in new
|
47 |
-
free programs, and that you know you can do these things.
|
48 |
-
|
49 |
-
To protect your rights, we need to prevent others from denying you
|
50 |
-
these rights or asking you to surrender the rights. Therefore, you have
|
51 |
-
certain responsibilities if you distribute copies of the software, or if
|
52 |
-
you modify it: responsibilities to respect the freedom of others.
|
53 |
-
|
54 |
-
For example, if you distribute copies of such a program, whether
|
55 |
-
gratis or for a fee, you must pass on to the recipients the same
|
56 |
-
freedoms that you received. You must make sure that they, too, receive
|
57 |
-
or can get the source code. And you must show them these terms so they
|
58 |
-
know their rights.
|
59 |
-
|
60 |
-
Developers that use the GNU GPL protect your rights with two steps:
|
61 |
-
(1) assert copyright on the software, and (2) offer you this License
|
62 |
-
giving you legal permission to copy, distribute and/or modify it.
|
63 |
-
|
64 |
-
For the developers' and authors' protection, the GPL clearly explains
|
65 |
-
that there is no warranty for this free software. For both users' and
|
66 |
-
authors' sake, the GPL requires that modified versions be marked as
|
67 |
-
changed, so that their problems will not be attributed erroneously to
|
68 |
-
authors of previous versions.
|
69 |
-
|
70 |
-
Some devices are designed to deny users access to install or run
|
71 |
-
modified versions of the software inside them, although the manufacturer
|
72 |
-
can do so. This is fundamentally incompatible with the aim of
|
73 |
-
protecting users' freedom to change the software. The systematic
|
74 |
-
pattern of such abuse occurs in the area of products for individuals to
|
75 |
-
use, which is precisely where it is most unacceptable. Therefore, we
|
76 |
-
have designed this version of the GPL to prohibit the practice for those
|
77 |
-
products. If such problems arise substantially in other domains, we
|
78 |
-
stand ready to extend this provision to those domains in future versions
|
79 |
-
of the GPL, as needed to protect the freedom of users.
|
80 |
-
|
81 |
-
Finally, every program is threatened constantly by software patents.
|
82 |
-
States should not allow patents to restrict development and use of
|
83 |
-
software on general-purpose computers, but in those that do, we wish to
|
84 |
-
avoid the special danger that patents applied to a free program could
|
85 |
-
make it effectively proprietary. To prevent this, the GPL assures that
|
86 |
-
patents cannot be used to render the program non-free.
|
87 |
-
|
88 |
-
The precise terms and conditions for copying, distribution and
|
89 |
-
modification follow.
|
90 |
-
|
91 |
-
TERMS AND CONDITIONS
|
92 |
-
|
93 |
-
0. Definitions.
|
94 |
-
|
95 |
-
"This License" refers to version 3 of the GNU General Public License.
|
96 |
-
|
97 |
-
"Copyright" also means copyright-like laws that apply to other kinds of
|
98 |
-
works, such as semiconductor masks.
|
99 |
-
|
100 |
-
"The Program" refers to any copyrightable work licensed under this
|
101 |
-
License. Each licensee is addressed as "you". "Licensees" and
|
102 |
-
"recipients" may be individuals or organizations.
|
103 |
-
|
104 |
-
To "modify" a work means to copy from or adapt all or part of the work
|
105 |
-
in a fashion requiring copyright permission, other than the making of an
|
106 |
-
exact copy. The resulting work is called a "modified version" of the
|
107 |
-
earlier work or a work "based on" the earlier work.
|
108 |
-
|
109 |
-
A "covered work" means either the unmodified Program or a work based
|
110 |
-
on the Program.
|
111 |
-
|
112 |
-
To "propagate" a work means to do anything with it that, without
|
113 |
-
permission, would make you directly or secondarily liable for
|
114 |
-
infringement under applicable copyright law, except executing it on a
|
115 |
-
computer or modifying a private copy. Propagation includes copying,
|
116 |
-
distribution (with or without modification), making available to the
|
117 |
-
public, and in some countries other activities as well.
|
118 |
-
|
119 |
-
To "convey" a work means any kind of propagation that enables other
|
120 |
-
parties to make or receive copies. Mere interaction with a user through
|
121 |
-
a computer network, with no transfer of a copy, is not conveying.
|
122 |
-
|
123 |
-
An interactive user interface displays "Appropriate Legal Notices"
|
124 |
-
to the extent that it includes a convenient and prominently visible
|
125 |
-
feature that (1) displays an appropriate copyright notice, and (2)
|
126 |
-
tells the user that there is no warranty for the work (except to the
|
127 |
-
extent that warranties are provided), that licensees may convey the
|
128 |
-
work under this License, and how to view a copy of this License. If
|
129 |
-
the interface presents a list of user commands or options, such as a
|
130 |
-
menu, a prominent item in the list meets this criterion.
|
131 |
-
|
132 |
-
1. Source Code.
|
133 |
-
|
134 |
-
The "source code" for a work means the preferred form of the work
|
135 |
-
for making modifications to it. "Object code" means any non-source
|
136 |
-
form of a work.
|
137 |
-
|
138 |
-
A "Standard Interface" means an interface that either is an official
|
139 |
-
standard defined by a recognized standards body, or, in the case of
|
140 |
-
interfaces specified for a particular programming language, one that
|
141 |
-
is widely used among developers working in that language.
|
142 |
-
|
143 |
-
The "System Libraries" of an executable work include anything, other
|
144 |
-
than the work as a whole, that (a) is included in the normal form of
|
145 |
-
packaging a Major Component, but which is not part of that Major
|
146 |
-
Component, and (b) serves only to enable use of the work with that
|
147 |
-
Major Component, or to implement a Standard Interface for which an
|
148 |
-
implementation is available to the public in source code form. A
|
149 |
-
"Major Component", in this context, means a major essential component
|
150 |
-
(kernel, window system, and so on) of the specific operating system
|
151 |
-
(if any) on which the executable work runs, or a compiler used to
|
152 |
-
produce the work, or an object code interpreter used to run it.
|
153 |
-
|
154 |
-
The "Corresponding Source" for a work in object code form means all
|
155 |
-
the source code needed to generate, install, and (for an executable
|
156 |
-
work) run the object code and to modify the work, including scripts to
|
157 |
-
control those activities. However, it does not include the work's
|
158 |
-
System Libraries, or general-purpose tools or generally available free
|
159 |
-
programs which are used unmodified in performing those activities but
|
160 |
-
which are not part of the work. For example, Corresponding Source
|
161 |
-
includes interface definition files associated with source files for
|
162 |
-
the work, and the source code for shared libraries and dynamically
|
163 |
-
linked subprograms that the work is specifically designed to require,
|
164 |
-
such as by intimate data communication or control flow between those
|
165 |
-
subprograms and other parts of the work.
|
166 |
-
|
167 |
-
The Corresponding Source need not include anything that users
|
168 |
-
can regenerate automatically from other parts of the Corresponding
|
169 |
-
Source.
|
170 |
-
|
171 |
-
The Corresponding Source for a work in source code form is that
|
172 |
-
same work.
|
173 |
-
|
174 |
-
2. Basic Permissions.
|
175 |
-
|
176 |
-
All rights granted under this License are granted for the term of
|
177 |
-
copyright on the Program, and are irrevocable provided the stated
|
178 |
-
conditions are met. This License explicitly affirms your unlimited
|
179 |
-
permission to run the unmodified Program. The output from running a
|
180 |
-
covered work is covered by this License only if the output, given its
|
181 |
-
content, constitutes a covered work. This License acknowledges your
|
182 |
-
rights of fair use or other equivalent, as provided by copyright law.
|
183 |
-
|
184 |
-
You may make, run and propagate covered works that you do not
|
185 |
-
convey, without conditions so long as your license otherwise remains
|
186 |
-
in force. You may convey covered works to others for the sole purpose
|
187 |
-
of having them make modifications exclusively for you, or provide you
|
188 |
-
with facilities for running those works, provided that you comply with
|
189 |
-
the terms of this License in conveying all material for which you do
|
190 |
-
not control copyright. Those thus making or running the covered works
|
191 |
-
for you must do so exclusively on your behalf, under your direction
|
192 |
-
and control, on terms that prohibit them from making any copies of
|
193 |
-
your copyrighted material outside their relationship with you.
|
194 |
-
|
195 |
-
Conveying under any other circumstances is permitted solely under
|
196 |
-
the conditions stated below. Sublicensing is not allowed; section 10
|
197 |
-
makes it unnecessary.
|
198 |
-
|
199 |
-
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
200 |
-
|
201 |
-
No covered work shall be deemed part of an effective technological
|
202 |
-
measure under any applicable law fulfilling obligations under article
|
203 |
-
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
204 |
-
similar laws prohibiting or restricting circumvention of such
|
205 |
-
measures.
|
206 |
-
|
207 |
-
When you convey a covered work, you waive any legal power to forbid
|
208 |
-
circumvention of technological measures to the extent such circumvention
|
209 |
-
is effected by exercising rights under this License with respect to
|
210 |
-
the covered work, and you disclaim any intention to limit operation or
|
211 |
-
modification of the work as a means of enforcing, against the work's
|
212 |
-
users, your or third parties' legal rights to forbid circumvention of
|
213 |
-
technological measures.
|
214 |
-
|
215 |
-
4. Conveying Verbatim Copies.
|
216 |
-
|
217 |
-
You may convey verbatim copies of the Program's source code as you
|
218 |
-
receive it, in any medium, provided that you conspicuously and
|
219 |
-
appropriately publish on each copy an appropriate copyright notice;
|
220 |
-
keep intact all notices stating that this License and any
|
221 |
-
non-permissive terms added in accord with section 7 apply to the code;
|
222 |
-
keep intact all notices of the absence of any warranty; and give all
|
223 |
-
recipients a copy of this License along with the Program.
|
224 |
-
|
225 |
-
You may charge any price or no price for each copy that you convey,
|
226 |
-
and you may offer support or warranty protection for a fee.
|
227 |
-
|
228 |
-
5. Conveying Modified Source Versions.
|
229 |
-
|
230 |
-
You may convey a work based on the Program, or the modifications to
|
231 |
-
produce it from the Program, in the form of source code under the
|
232 |
-
terms of section 4, provided that you also meet all of these conditions:
|
233 |
-
|
234 |
-
a) The work must carry prominent notices stating that you modified
|
235 |
-
it, and giving a relevant date.
|
236 |
-
|
237 |
-
b) The work must carry prominent notices stating that it is
|
238 |
-
released under this License and any conditions added under section
|
239 |
-
7. This requirement modifies the requirement in section 4 to
|
240 |
-
"keep intact all notices".
|
241 |
-
|
242 |
-
c) You must license the entire work, as a whole, under this
|
243 |
-
License to anyone who comes into possession of a copy. This
|
244 |
-
License will therefore apply, along with any applicable section 7
|
245 |
-
additional terms, to the whole of the work, and all its parts,
|
246 |
-
regardless of how they are packaged. This License gives no
|
247 |
-
permission to license the work in any other way, but it does not
|
248 |
-
invalidate such permission if you have separately received it.
|
249 |
-
|
250 |
-
d) If the work has interactive user interfaces, each must display
|
251 |
-
Appropriate Legal Notices; however, if the Program has interactive
|
252 |
-
interfaces that do not display Appropriate Legal Notices, your
|
253 |
-
work need not make them do so.
|
254 |
-
|
255 |
-
A compilation of a covered work with other separate and independent
|
256 |
-
works, which are not by their nature extensions of the covered work,
|
257 |
-
and which are not combined with it such as to form a larger program,
|
258 |
-
in or on a volume of a storage or distribution medium, is called an
|
259 |
-
"aggregate" if the compilation and its resulting copyright are not
|
260 |
-
used to limit the access or legal rights of the compilation's users
|
261 |
-
beyond what the individual works permit. Inclusion of a covered work
|
262 |
-
in an aggregate does not cause this License to apply to the other
|
263 |
-
parts of the aggregate.
|
264 |
-
|
265 |
-
6. Conveying Non-Source Forms.
|
266 |
-
|
267 |
-
You may convey a covered work in object code form under the terms
|
268 |
-
of sections 4 and 5, provided that you also convey the
|
269 |
-
machine-readable Corresponding Source under the terms of this License,
|
270 |
-
in one of these ways:
|
271 |
-
|
272 |
-
a) Convey the object code in, or embodied in, a physical product
|
273 |
-
(including a physical distribution medium), accompanied by the
|
274 |
-
Corresponding Source fixed on a durable physical medium
|
275 |
-
customarily used for software interchange.
|
276 |
-
|
277 |
-
b) Convey the object code in, or embodied in, a physical product
|
278 |
-
(including a physical distribution medium), accompanied by a
|
279 |
-
written offer, valid for at least three years and valid for as
|
280 |
-
long as you offer spare parts or customer support for that product
|
281 |
-
model, to give anyone who possesses the object code either (1) a
|
282 |
-
copy of the Corresponding Source for all the software in the
|
283 |
-
product that is covered by this License, on a durable physical
|
284 |
-
medium customarily used for software interchange, for a price no
|
285 |
-
more than your reasonable cost of physically performing this
|
286 |
-
conveying of source, or (2) access to copy the
|
287 |
-
Corresponding Source from a network server at no charge.
|
288 |
-
|
289 |
-
c) Convey individual copies of the object code with a copy of the
|
290 |
-
written offer to provide the Corresponding Source. This
|
291 |
-
alternative is allowed only occasionally and noncommercially, and
|
292 |
-
only if you received the object code with such an offer, in accord
|
293 |
-
with subsection 6b.
|
294 |
-
|
295 |
-
d) Convey the object code by offering access from a designated
|
296 |
-
place (gratis or for a charge), and offer equivalent access to the
|
297 |
-
Corresponding Source in the same way through the same place at no
|
298 |
-
further charge. You need not require recipients to copy the
|
299 |
-
Corresponding Source along with the object code. If the place to
|
300 |
-
copy the object code is a network server, the Corresponding Source
|
301 |
-
may be on a different server (operated by you or a third party)
|
302 |
-
that supports equivalent copying facilities, provided you maintain
|
303 |
-
clear directions next to the object code saying where to find the
|
304 |
-
Corresponding Source. Regardless of what server hosts the
|
305 |
-
Corresponding Source, you remain obligated to ensure that it is
|
306 |
-
available for as long as needed to satisfy these requirements.
|
307 |
-
|
308 |
-
e) Convey the object code using peer-to-peer transmission, provided
|
309 |
-
you inform other peers where the object code and Corresponding
|
310 |
-
Source of the work are being offered to the general public at no
|
311 |
-
charge under subsection 6d.
|
312 |
-
|
313 |
-
A separable portion of the object code, whose source code is excluded
|
314 |
-
from the Corresponding Source as a System Library, need not be
|
315 |
-
included in conveying the object code work.
|
316 |
-
|
317 |
-
A "User Product" is either (1) a "consumer product", which means any
|
318 |
-
tangible personal property which is normally used for personal, family,
|
319 |
-
or household purposes, or (2) anything designed or sold for incorporation
|
320 |
-
into a dwelling. In determining whether a product is a consumer product,
|
321 |
-
doubtful cases shall be resolved in favor of coverage. For a particular
|
322 |
-
product received by a particular user, "normally used" refers to a
|
323 |
-
typical or common use of that class of product, regardless of the status
|
324 |
-
of the particular user or of the way in which the particular user
|
325 |
-
actually uses, or expects or is expected to use, the product. A product
|
326 |
-
is a consumer product regardless of whether the product has substantial
|
327 |
-
commercial, industrial or non-consumer uses, unless such uses represent
|
328 |
-
the only significant mode of use of the product.
|
329 |
-
|
330 |
-
"Installation Information" for a User Product means any methods,
|
331 |
-
procedures, authorization keys, or other information required to install
|
332 |
-
and execute modified versions of a covered work in that User Product from
|
333 |
-
a modified version of its Corresponding Source. The information must
|
334 |
-
suffice to ensure that the continued functioning of the modified object
|
335 |
-
code is in no case prevented or interfered with solely because
|
336 |
-
modification has been made.
|
337 |
-
|
338 |
-
If you convey an object code work under this section in, or with, or
|
339 |
-
specifically for use in, a User Product, and the conveying occurs as
|
340 |
-
part of a transaction in which the right of possession and use of the
|
341 |
-
User Product is transferred to the recipient in perpetuity or for a
|
342 |
-
fixed term (regardless of how the transaction is characterized), the
|
343 |
-
Corresponding Source conveyed under this section must be accompanied
|
344 |
-
by the Installation Information. But this requirement does not apply
|
345 |
-
if neither you nor any third party retains the ability to install
|
346 |
-
modified object code on the User Product (for example, the work has
|
347 |
-
been installed in ROM).
|
348 |
-
|
349 |
-
The requirement to provide Installation Information does not include a
|
350 |
-
requirement to continue to provide support service, warranty, or updates
|
351 |
-
for a work that has been modified or installed by the recipient, or for
|
352 |
-
the User Product in which it has been modified or installed. Access to a
|
353 |
-
network may be denied when the modification itself materially and
|
354 |
-
adversely affects the operation of the network or violates the rules and
|
355 |
-
protocols for communication across the network.
|
356 |
-
|
357 |
-
Corresponding Source conveyed, and Installation Information provided,
|
358 |
-
in accord with this section must be in a format that is publicly
|
359 |
-
documented (and with an implementation available to the public in
|
360 |
-
source code form), and must require no special password or key for
|
361 |
-
unpacking, reading or copying.
|
362 |
-
|
363 |
-
7. Additional Terms.
|
364 |
-
|
365 |
-
"Additional permissions" are terms that supplement the terms of this
|
366 |
-
License by making exceptions from one or more of its conditions.
|
367 |
-
Additional permissions that are applicable to the entire Program shall
|
368 |
-
be treated as though they were included in this License, to the extent
|
369 |
-
that they are valid under applicable law. If additional permissions
|
370 |
-
apply only to part of the Program, that part may be used separately
|
371 |
-
under those permissions, but the entire Program remains governed by
|
372 |
-
this License without regard to the additional permissions.
|
373 |
-
|
374 |
-
When you convey a copy of a covered work, you may at your option
|
375 |
-
remove any additional permissions from that copy, or from any part of
|
376 |
-
it. (Additional permissions may be written to require their own
|
377 |
-
removal in certain cases when you modify the work.) You may place
|
378 |
-
additional permissions on material, added by you to a covered work,
|
379 |
-
for which you have or can give appropriate copyright permission.
|
380 |
-
|
381 |
-
Notwithstanding any other provision of this License, for material you
|
382 |
-
add to a covered work, you may (if authorized by the copyright holders of
|
383 |
-
that material) supplement the terms of this License with terms:
|
384 |
-
|
385 |
-
a) Disclaiming warranty or limiting liability differently from the
|
386 |
-
terms of sections 15 and 16 of this License; or
|
387 |
-
|
388 |
-
b) Requiring preservation of specified reasonable legal notices or
|
389 |
-
author attributions in that material or in the Appropriate Legal
|
390 |
-
Notices displayed by works containing it; or
|
391 |
-
|
392 |
-
c) Prohibiting misrepresentation of the origin of that material, or
|
393 |
-
requiring that modified versions of such material be marked in
|
394 |
-
reasonable ways as different from the original version; or
|
395 |
-
|
396 |
-
d) Limiting the use for publicity purposes of names of licensors or
|
397 |
-
authors of the material; or
|
398 |
-
|
399 |
-
e) Declining to grant rights under trademark law for use of some
|
400 |
-
trade names, trademarks, or service marks; or
|
401 |
-
|
402 |
-
f) Requiring indemnification of licensors and authors of that
|
403 |
-
material by anyone who conveys the material (or modified versions of
|
404 |
-
it) with contractual assumptions of liability to the recipient, for
|
405 |
-
any liability that these contractual assumptions directly impose on
|
406 |
-
those licensors and authors.
|
407 |
-
|
408 |
-
All other non-permissive additional terms are considered "further
|
409 |
-
restrictions" within the meaning of section 10. If the Program as you
|
410 |
-
received it, or any part of it, contains a notice stating that it is
|
411 |
-
governed by this License along with a term that is a further
|
412 |
-
restriction, you may remove that term. If a license document contains
|
413 |
-
a further restriction but permits relicensing or conveying under this
|
414 |
-
License, you may add to a covered work material governed by the terms
|
415 |
-
of that license document, provided that the further restriction does
|
416 |
-
not survive such relicensing or conveying.
|
417 |
-
|
418 |
-
If you add terms to a covered work in accord with this section, you
|
419 |
-
must place, in the relevant source files, a statement of the
|
420 |
-
additional terms that apply to those files, or a notice indicating
|
421 |
-
where to find the applicable terms.
|
422 |
-
|
423 |
-
Additional terms, permissive or non-permissive, may be stated in the
|
424 |
-
form of a separately written license, or stated as exceptions;
|
425 |
-
the above requirements apply either way.
|
426 |
-
|
427 |
-
8. Termination.
|
428 |
-
|
429 |
-
You may not propagate or modify a covered work except as expressly
|
430 |
-
provided under this License. Any attempt otherwise to propagate or
|
431 |
-
modify it is void, and will automatically terminate your rights under
|
432 |
-
this License (including any patent licenses granted under the third
|
433 |
-
paragraph of section 11).
|
434 |
-
|
435 |
-
However, if you cease all violation of this License, then your
|
436 |
-
license from a particular copyright holder is reinstated (a)
|
437 |
-
provisionally, unless and until the copyright holder explicitly and
|
438 |
-
finally terminates your license, and (b) permanently, if the copyright
|
439 |
-
holder fails to notify you of the violation by some reasonable means
|
440 |
-
prior to 60 days after the cessation.
|
441 |
-
|
442 |
-
Moreover, your license from a particular copyright holder is
|
443 |
-
reinstated permanently if the copyright holder notifies you of the
|
444 |
-
violation by some reasonable means, this is the first time you have
|
445 |
-
received notice of violation of this License (for any work) from that
|
446 |
-
copyright holder, and you cure the violation prior to 30 days after
|
447 |
-
your receipt of the notice.
|
448 |
-
|
449 |
-
Termination of your rights under this section does not terminate the
|
450 |
-
licenses of parties who have received copies or rights from you under
|
451 |
-
this License. If your rights have been terminated and not permanently
|
452 |
-
reinstated, you do not qualify to receive new licenses for the same
|
453 |
-
material under section 10.
|
454 |
-
|
455 |
-
9. Acceptance Not Required for Having Copies.
|
456 |
-
|
457 |
-
You are not required to accept this License in order to receive or
|
458 |
-
run a copy of the Program. Ancillary propagation of a covered work
|
459 |
-
occurring solely as a consequence of using peer-to-peer transmission
|
460 |
-
to receive a copy likewise does not require acceptance. However,
|
461 |
-
nothing other than this License grants you permission to propagate or
|
462 |
-
modify any covered work. These actions infringe copyright if you do
|
463 |
-
not accept this License. Therefore, by modifying or propagating a
|
464 |
-
covered work, you indicate your acceptance of this License to do so.
|
465 |
-
|
466 |
-
10. Automatic Licensing of Downstream Recipients.
|
467 |
-
|
468 |
-
Each time you convey a covered work, the recipient automatically
|
469 |
-
receives a license from the original licensors, to run, modify and
|
470 |
-
propagate that work, subject to this License. You are not responsible
|
471 |
-
for enforcing compliance by third parties with this License.
|
472 |
-
|
473 |
-
An "entity transaction" is a transaction transferring control of an
|
474 |
-
organization, or substantially all assets of one, or subdividing an
|
475 |
-
organization, or merging organizations. If propagation of a covered
|
476 |
-
work results from an entity transaction, each party to that
|
477 |
-
transaction who receives a copy of the work also receives whatever
|
478 |
-
licenses to the work the party's predecessor in interest had or could
|
479 |
-
give under the previous paragraph, plus a right to possession of the
|
480 |
-
Corresponding Source of the work from the predecessor in interest, if
|
481 |
-
the predecessor has it or can get it with reasonable efforts.
|
482 |
-
|
483 |
-
You may not impose any further restrictions on the exercise of the
|
484 |
-
rights granted or affirmed under this License. For example, you may
|
485 |
-
not impose a license fee, royalty, or other charge for exercise of
|
486 |
-
rights granted under this License, and you may not initiate litigation
|
487 |
-
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
488 |
-
any patent claim is infringed by making, using, selling, offering for
|
489 |
-
sale, or importing the Program or any portion of it.
|
490 |
-
|
491 |
-
11. Patents.
|
492 |
-
|
493 |
-
A "contributor" is a copyright holder who authorizes use under this
|
494 |
-
License of the Program or a work on which the Program is based. The
|
495 |
-
work thus licensed is called the contributor's "contributor version".
|
496 |
-
|
497 |
-
A contributor's "essential patent claims" are all patent claims
|
498 |
-
owned or controlled by the contributor, whether already acquired or
|
499 |
-
hereafter acquired, that would be infringed by some manner, permitted
|
500 |
-
by this License, of making, using, or selling its contributor version,
|
501 |
-
but do not include claims that would be infringed only as a
|
502 |
-
consequence of further modification of the contributor version. For
|
503 |
-
purposes of this definition, "control" includes the right to grant
|
504 |
-
patent sublicenses in a manner consistent with the requirements of
|
505 |
-
this License.
|
506 |
-
|
507 |
-
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
508 |
-
patent license under the contributor's essential patent claims, to
|
509 |
-
make, use, sell, offer for sale, import and otherwise run, modify and
|
510 |
-
propagate the contents of its contributor version.
|
511 |
-
|
512 |
-
In the following three paragraphs, a "patent license" is any express
|
513 |
-
agreement or commitment, however denominated, not to enforce a patent
|
514 |
-
(such as an express permission to practice a patent or covenant not to
|
515 |
-
sue for patent infringement). To "grant" such a patent license to a
|
516 |
-
party means to make such an agreement or commitment not to enforce a
|
517 |
-
patent against the party.
|
518 |
-
|
519 |
-
If you convey a covered work, knowingly relying on a patent license,
|
520 |
-
and the Corresponding Source of the work is not available for anyone
|
521 |
-
to copy, free of charge and under the terms of this License, through a
|
522 |
-
publicly available network server or other readily accessible means,
|
523 |
-
then you must either (1) cause the Corresponding Source to be so
|
524 |
-
available, or (2) arrange to deprive yourself of the benefit of the
|
525 |
-
patent license for this particular work, or (3) arrange, in a manner
|
526 |
-
consistent with the requirements of this License, to extend the patent
|
527 |
-
license to downstream recipients. "Knowingly relying" means you have
|
528 |
-
actual knowledge that, but for the patent license, your conveying the
|
529 |
-
covered work in a country, or your recipient's use of the covered work
|
530 |
-
in a country, would infringe one or more identifiable patents in that
|
531 |
-
country that you have reason to believe are valid.
|
532 |
-
|
533 |
-
If, pursuant to or in connection with a single transaction or
|
534 |
-
arrangement, you convey, or propagate by procuring conveyance of, a
|
535 |
-
covered work, and grant a patent license to some of the parties
|
536 |
-
receiving the covered work authorizing them to use, propagate, modify
|
537 |
-
or convey a specific copy of the covered work, then the patent license
|
538 |
-
you grant is automatically extended to all recipients of the covered
|
539 |
-
work and works based on it.
|
540 |
-
|
541 |
-
A patent license is "discriminatory" if it does not include within
|
542 |
-
the scope of its coverage, prohibits the exercise of, or is
|
543 |
-
conditioned on the non-exercise of one or more of the rights that are
|
544 |
-
specifically granted under this License. You may not convey a covered
|
545 |
-
work if you are a party to an arrangement with a third party that is
|
546 |
-
in the business of distributing software, under which you make payment
|
547 |
-
to the third party based on the extent of your activity of conveying
|
548 |
-
the work, and under which the third party grants, to any of the
|
549 |
-
parties who would receive the covered work from you, a discriminatory
|
550 |
-
patent license (a) in connection with copies of the covered work
|
551 |
-
conveyed by you (or copies made from those copies), or (b) primarily
|
552 |
-
for and in connection with specific products or compilations that
|
553 |
-
contain the covered work, unless you entered into that arrangement,
|
554 |
-
or that patent license was granted, prior to 28 March 2007.
|
555 |
-
|
556 |
-
Nothing in this License shall be construed as excluding or limiting
|
557 |
-
any implied license or other defenses to infringement that may
|
558 |
-
otherwise be available to you under applicable patent law.
|
559 |
-
|
560 |
-
12. No Surrender of Others' Freedom.
|
561 |
-
|
562 |
-
If conditions are imposed on you (whether by court order, agreement or
|
563 |
-
otherwise) that contradict the conditions of this License, they do not
|
564 |
-
excuse you from the conditions of this License. If you cannot convey a
|
565 |
-
covered work so as to satisfy simultaneously your obligations under this
|
566 |
-
License and any other pertinent obligations, then as a consequence you may
|
567 |
-
not convey it at all. For example, if you agree to terms that obligate you
|
568 |
-
to collect a royalty for further conveying from those to whom you convey
|
569 |
-
the Program, the only way you could satisfy both those terms and this
|
570 |
-
License would be to refrain entirely from conveying the Program.
|
571 |
-
|
572 |
-
13. Use with the GNU Affero General Public License.
|
573 |
-
|
574 |
-
Notwithstanding any other provision of this License, you have
|
575 |
-
permission to link or combine any covered work with a work licensed
|
576 |
-
under version 3 of the GNU Affero General Public License into a single
|
577 |
-
combined work, and to convey the resulting work. The terms of this
|
578 |
-
License will continue to apply to the part which is the covered work,
|
579 |
-
but the special requirements of the GNU Affero General Public License,
|
580 |
-
section 13, concerning interaction through a network will apply to the
|
581 |
-
combination as such.
|
582 |
-
|
583 |
-
14. Revised Versions of this License.
|
584 |
-
|
585 |
-
The Free Software Foundation may publish revised and/or new versions of
|
586 |
-
the GNU General Public License from time to time. Such new versions will
|
587 |
-
be similar in spirit to the present version, but may differ in detail to
|
588 |
-
address new problems or concerns.
|
589 |
-
|
590 |
-
Each version is given a distinguishing version number. If the
|
591 |
-
Program specifies that a certain numbered version of the GNU General
|
592 |
-
Public License "or any later version" applies to it, you have the
|
593 |
-
option of following the terms and conditions either of that numbered
|
594 |
-
version or of any later version published by the Free Software
|
595 |
-
Foundation. If the Program does not specify a version number of the
|
596 |
-
GNU General Public License, you may choose any version ever published
|
597 |
-
by the Free Software Foundation.
|
598 |
-
|
599 |
-
If the Program specifies that a proxy can decide which future
|
600 |
-
versions of the GNU General Public License can be used, that proxy's
|
601 |
-
public statement of acceptance of a version permanently authorizes you
|
602 |
-
to choose that version for the Program.
|
603 |
-
|
604 |
-
Later license versions may give you additional or different
|
605 |
-
permissions. However, no additional obligations are imposed on any
|
606 |
-
author or copyright holder as a result of your choosing to follow a
|
607 |
-
later version.
|
608 |
-
|
609 |
-
15. Disclaimer of Warranty.
|
610 |
-
|
611 |
-
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
612 |
-
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
613 |
-
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
614 |
-
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
615 |
-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
616 |
-
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
617 |
-
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
618 |
-
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
619 |
-
|
620 |
-
16. Limitation of Liability.
|
621 |
-
|
622 |
-
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
623 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
624 |
-
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
625 |
-
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
626 |
-
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
627 |
-
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
628 |
-
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
629 |
-
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
630 |
-
SUCH DAMAGES.
|
631 |
-
|
632 |
-
17. Interpretation of Sections 15 and 16.
|
633 |
-
|
634 |
-
If the disclaimer of warranty and limitation of liability provided
|
635 |
-
above cannot be given local legal effect according to their terms,
|
636 |
-
reviewing courts shall apply local law that most closely approximates
|
637 |
-
an absolute waiver of all civil liability in connection with the
|
638 |
-
Program, unless a warranty or assumption of liability accompanies a
|
639 |
-
copy of the Program in return for a fee.
|
640 |
-
|
641 |
-
END OF TERMS AND CONDITIONS
|
642 |
-
|
643 |
-
How to Apply These Terms to Your New Programs
|
644 |
-
|
645 |
-
If you develop a new program, and you want it to be of the greatest
|
646 |
-
possible use to the public, the best way to achieve this is to make it
|
647 |
-
free software which everyone can redistribute and change under these terms.
|
648 |
-
|
649 |
-
To do so, attach the following notices to the program. It is safest
|
650 |
-
to attach them to the start of each source file to most effectively
|
651 |
-
state the exclusion of warranty; and each file should have at least
|
652 |
-
the "copyright" line and a pointer to where the full notice is found.
|
653 |
-
|
654 |
-
<one line to give the program's name and a brief idea of what it does.>
|
655 |
-
Copyright © <year> <name of author>
|
656 |
-
|
657 |
-
This program is free software: you can redistribute it and/or modify
|
658 |
-
it under the terms of the GNU General Public License as published by
|
659 |
-
the Free Software Foundation, either version 3 of the License, or
|
660 |
-
(at your option) any later version.
|
661 |
-
|
662 |
-
This program is distributed in the hope that it will be useful,
|
663 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
664 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
665 |
-
GNU General Public License for more details.
|
666 |
-
|
667 |
-
You should have received a copy of the GNU General Public License
|
668 |
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
669 |
-
|
670 |
-
Also add information on how to contact you by electronic and paper mail.
|
671 |
-
|
672 |
-
If the program does terminal interaction, make it output a short
|
673 |
-
notice like this when it starts in an interactive mode:
|
674 |
-
|
675 |
-
<program> Copyright © <year> <name of author>
|
676 |
-
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
677 |
-
This is free software, and you are welcome to redistribute it
|
678 |
-
under certain conditions; type `show c' for details.
|
679 |
-
|
680 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
681 |
-
parts of the General Public License. Of course, your program's commands
|
682 |
-
might be different; for a GUI interface, you would use an "about box".
|
683 |
-
|
684 |
-
You should also get your employer (if you work as a programmer) or school,
|
685 |
-
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
686 |
-
For more information on this, and how to apply and follow the GNU GPL, see
|
687 |
-
<http://www.gnu.org/licenses/>.
|
688 |
-
|
689 |
-
The GNU General Public License does not permit incorporating your program
|
690 |
-
into proprietary programs. If your program is a subroutine library, you
|
691 |
-
may consider it more useful to permit linking proprietary applications with
|
692 |
-
the library. If this is what you want to do, use the GNU Lesser General
|
693 |
-
Public License instead of this License. But first, please read
|
694 |
-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,21 +1,77 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
-
Tags: folder, folders,
|
4 |
Requires at least: 3.0.0
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag:
|
7 |
Plugin URI: https://premio.io/downloads/folders/
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
Folders
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
== Screenshots ==
|
16 |
|
17 |
-
1.
|
18 |
-
2.
|
|
|
19 |
|
20 |
== Installation ==
|
21 |
|
@@ -25,10 +81,38 @@ Step 2: In the “Folder Settings” menu, select which post type you want folde
|
|
25 |
|
26 |
Step 3: Add new folders for your post type.
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
= 1.3.6 =
|
33 |
- Fixed error notice on admin columns.
|
34 |
|
@@ -108,9 +192,3 @@ Step 4: Either bulk edit or individually add your pages and posts into your new
|
|
108 |
|
109 |
= 1.0 =
|
110 |
- Folders Plugin Released.
|
111 |
-
|
112 |
-
== Help keep folders in development ==
|
113 |
-
|
114 |
-
Please donate to help us continue development on this plugin. [Donate Here](http://62design.co.uk/wordpress-plugins/folders/ "Donate to keep this plugin under development").
|
115 |
-
|
116 |
-
With thanks to Luke Kynaston for the banner graphic.
|
1 |
=== Plugin Name ===
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
+
Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
|
4 |
Requires at least: 3.0.0
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 2.0.1
|
7 |
Plugin URI: https://premio.io/downloads/folders/
|
8 |
|
9 |
+
Folders is a FREE WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
Folders is a WordPress plugin that enables users to quickly organize all of their Pages, Posts and Media files in folders. You can easily drag and drop items into directories and change the folders tree view (hierarchy) as you wish. Need more than 10 folders? Check out <a href="https://premio.io/downloads/folders" target="_blank" title="Folders pro plans"><strong>Folders Pro Plans</strong></a>.
|
14 |
+
|
15 |
+
= How Folders Plugin Can Help You =
|
16 |
+
|
17 |
+
There are several ways professionals are using the Folders file manager plugin to organize their WordPress content:
|
18 |
+
|
19 |
+
* Keep all of your media files organized in folders and subfolders, including photos, videos, music, main website pages and blog posts. You can also place media in multiple subfolders, such as images used on different pages.
|
20 |
+
* Web developers: keep your clients’ website pages in proper order during and after development. You can also mark a folder with a star or give it a unique name for clients to understand what is important and what they should (or shouldn't) touch.
|
21 |
+
* Bloggers: manage your own content with ease with this file manager plugin. Never get confused again – organize photos and content by topics, categories, and/or dates.
|
22 |
+
* Quickly upload pages, media, and content to your WordPress and easily organize them into directories so they’re never lost. It’s content creation and organization at its finest!
|
23 |
+
* Mark certain folders as important to quickly find the content you need for your WordPress projects and tasks. No worries of your content getting lost in a sea of directories!
|
24 |
+
|
25 |
+
Note: adding a page/post.image into a folder will not change its URL.
|
26 |
+
|
27 |
+
= So How Does it Work? =
|
28 |
+
|
29 |
+
It’s rather simple really – once you install the plugin, you can begin using it. If you’re a content creator, you can upload text, images, videos, and audio at the click of a button. Then you can organize everything you upload into neat subfolders. For instance, you can create a media folder, content folder, and image folder, then have them all organized by date. It has a drag and drop interface, making it user-friendly for everyone. It’s like having your own media library at your own disposal. You can create this media library for yourself or others – it’s perfect for website owners and content professionals!
|
30 |
+
|
31 |
+
= Here Are Some Use Cases =
|
32 |
+
|
33 |
+
Wondering how you can use this pages, posts and media library folders for your online business? Here’s are a few use cases:
|
34 |
+
|
35 |
+
Bloggers: Easily upload content for blogs, including text, photos, videos, and audio files. Then manage everything you upload by placing them in clearly labeled media library folders.
|
36 |
+
Web developers: Design websites in an organized fashion by uploading graphics, animations, site elements, and content – all packaged neatly in directories.
|
37 |
+
|
38 |
+
|
39 |
+
E-Commerce businesses: Quickly upload new products and descriptions and then place them in folders organized by categories. For example, shoes, dresses, suits, and under garments.
|
40 |
+
|
41 |
+
= FOLDERS PLUGIN FEATURES: =
|
42 |
+
|
43 |
+
* Create new folders
|
44 |
+
* Create and organize subfolders
|
45 |
+
* Drag and drop pages, posts, and media
|
46 |
+
* Drag and drop folders, change order, and hierarchy
|
47 |
+
* Bulk select images and media files and drag them to any folder
|
48 |
+
* Rename folders
|
49 |
+
* Add stars to important directories
|
50 |
+
* Simultaneously assign and organize media, pages, and posts while adding them to directories
|
51 |
+
* Place content in multiple folders at once
|
52 |
+
* Easily see subfolders within each file
|
53 |
+
* Resize folders menu
|
54 |
+
* Compatible with RTL admin panel (such as Hebrew,Arabic etc.)
|
55 |
+
* Add and remove folders menu from pages, posts, and media
|
56 |
+
* <a href="https://premio.io/downloads/folders" target="_blank" title="Folders pro plans"><strong>Upgrade to pro</strong></a> to get unlimited folders :)
|
57 |
+
|
58 |
+
= GDPR AND PRIVACY =
|
59 |
+
Folders plugin is GDPR compliant:
|
60 |
+
|
61 |
+
* We don’t store any visitor or user data
|
62 |
+
* We don’t send any data to remote servers
|
63 |
+
* Our plugin is only used to organize WordPress media library, pages, and posts
|
64 |
+
|
65 |
+
The plugin is compatible with Gutenberg, Elementor website builder, Divi, Visual Composer, WPbakery, Beaver Builder and with any WordPress theme.
|
66 |
+
|
67 |
+
Download this plugin today for free and get 10 folders to organize your WP content. Then unlock unlimited folders with the Pro Plan for max organization!
|
68 |
+
|
69 |
|
70 |
== Screenshots ==
|
71 |
|
72 |
+
1. WordPress Media Folders
|
73 |
+
2. WordPress Pages Folders
|
74 |
+
3. WordPress Posts Folders
|
75 |
|
76 |
== Installation ==
|
77 |
|
81 |
|
82 |
Step 3: Add new folders for your post type.
|
83 |
|
84 |
+
== Frequently Asked Questions ==
|
85 |
+
|
86 |
+
= Is there a time limit for the free plan? =
|
87 |
+
No. you can use the free plan as long as you want.
|
88 |
+
|
89 |
+
= Do I need any coding skills to use Folders plugin? =
|
90 |
+
No! The only code you'll need is the shortcode (don't worry, we got you covered with our shortcode builder)
|
91 |
+
|
92 |
+
= Can I use Folders plugin on more than 1 domain? =
|
93 |
+
There 2 ways to do it:
|
94 |
+
1. You can install the free Folders plugin on any website you want
|
95 |
+
2. You can buy the Pro plan that includes licenses for 5 domains, or the Agency plan that includes licenses for 20 domains.
|
96 |
+
Check out our <a href="https://premio.io/downloads/folders/" target="_blank" title="Folders plans page">plans page</a>.
|
97 |
+
|
98 |
+
= How long is my paid Folders plugin license valid for? =
|
99 |
+
Once you purchase any <a href="https://premio.io/downloads/folders/" target="_blank" title=Folders plans page">paid plan</a> of Folders, you can use it forever. Support and updates are available for 1 year. You can renew your license each year to get another year of support and updates.
|
100 |
+
|
101 |
+
= Will Folders stop working if I don’t renew my license? =
|
102 |
+
Of course NOT! 🙂
|
103 |
+
Your Folders plugin and all your settings will continue to work as before; however, you will no longer receive plugin updates including feature additions, improvements, and support.
|
104 |
+
|
105 |
+
= How do I activate my pro plan? =
|
106 |
+
Just follow our <a href="https://premio.io/wordpress-premio-pro-version-installation-guide/" target="_blank" title="WordPress installation guide">pro installation guide</a>.
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 2.0.1 =
|
111 |
+
- Brand New UI, Drag and Drop option, organize within the pages, posts and media library
|
112 |
+
|
113 |
+
= 1.3.7 =
|
114 |
+
- Fixed bugs
|
115 |
+
|
116 |
= 1.3.6 =
|
117 |
- Fixed error notice on admin columns.
|
118 |
|
192 |
|
193 |
= 1.0 =
|
194 |
- Folders Plugin Released.
|
|
|
|
|
|
|
|
|
|
|
|
templates/admin/admin-content.php
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
.ui-state-highlight {
|
3 |
+
background: transparent;
|
4 |
+
border: dashed 1px #0073AA;
|
5 |
+
width:150px;
|
6 |
+
height: 25px !important;
|
7 |
+
}
|
8 |
+
<?php
|
9 |
+
$string = "";
|
10 |
+
global $typenow;
|
11 |
+
$width = get_option("wcp_dynamic_width_for_" . $typenow);
|
12 |
+
if($width == null || empty($width)) {
|
13 |
+
$width = 292;
|
14 |
+
}
|
15 |
+
$width = $width - 40;
|
16 |
+
?>
|
17 |
+
</style>
|
18 |
+
<div id="wcp-custom-style">
|
19 |
+
<style>
|
20 |
+
<?php
|
21 |
+
$string = "";
|
22 |
+
for($i=0;$i<=15;$i++) {
|
23 |
+
$string .= " .space > .route >";
|
24 |
+
$new_width = $width - (13+(20*$i));
|
25 |
+
echo "#custom-menu > {$string} .title { width: {$new_width}px !important; } ";
|
26 |
+
}
|
27 |
+
?>
|
28 |
+
</style>
|
29 |
+
</div>
|
30 |
+
<div id="media-css">
|
31 |
+
|
32 |
+
</div>
|
33 |
+
<div id="wcp-content">
|
34 |
+
<div id="wcp-content-resize">
|
35 |
+
<div class="wcp-content">
|
36 |
+
<div class='wcp-container'>
|
37 |
+
<?php echo $form_html ?>
|
38 |
+
<?php
|
39 |
+
$optionName = $typenow."_parent_status";
|
40 |
+
$status = get_option($optionName);
|
41 |
+
global $typenow;
|
42 |
+
$title = ucfirst($typenow);
|
43 |
+
if($typenow == "page") {
|
44 |
+
$title = "Pages";
|
45 |
+
} else if($typenow == "post") {
|
46 |
+
$title = "Posts";
|
47 |
+
} else if($typenow == "attachment") {
|
48 |
+
$title = "Files";
|
49 |
+
}
|
50 |
+
?>
|
51 |
+
<div class="header-posts">
|
52 |
+
<a href="javascript:;" class="all-posts"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php echo __("All ".$title, WCP_FOLDER) ?> <span class="total-count"><?php echo $total_posts ?></span></a>
|
53 |
+
</div>
|
54 |
+
<div id="custom-menu" class="wcp-custom-menu <?php echo ($status==1)?"active":"" ?>">
|
55 |
+
<!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>-->
|
56 |
+
<ul class='space first-space' id='space_0'>
|
57 |
+
<?php echo $terms_data; ?>
|
58 |
+
</ul>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
templates/admin/general-settings.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
span.upgrade-message {
|
3 |
+
padding: 5px 10px;
|
4 |
+
background: #fff;
|
5 |
+
display: inline-block;
|
6 |
+
font-size: 14px;
|
7 |
+
color: #000;
|
8 |
+
}
|
9 |
+
a.pink, span.pink {
|
10 |
+
color: #FF5983;
|
11 |
+
text-decoration: none;
|
12 |
+
font-weight: bold;
|
13 |
+
}
|
14 |
+
#setting-form {
|
15 |
+
float: left;
|
16 |
+
width: 300px;
|
17 |
+
}
|
18 |
+
<?php if ( function_exists( 'is_rtl' ) && is_rtl() ) { ?>
|
19 |
+
#setting-form {
|
20 |
+
float: right;
|
21 |
+
}
|
22 |
+
<?php } ?>
|
23 |
+
</style>
|
24 |
+
<div class="wrap">
|
25 |
+
<h1><?php _e( 'Folders Settings', WCP_FOLDER ); ?></h1>
|
26 |
+
<form action="options.php" method="post" id="setting-form"><?php
|
27 |
+
settings_fields( 'folders_settings' );
|
28 |
+
do_settings_sections( __FILE__ );
|
29 |
+
$options = get_option('folders_settings');
|
30 |
+
?>
|
31 |
+
<table class="form-table">
|
32 |
+
<?php
|
33 |
+
$post_types = get_post_types( array( 'public' => true ), 'objects' );
|
34 |
+
$post_array = array("page", "post", "attachment");
|
35 |
+
foreach ( $post_types as $post_type ) : ?>
|
36 |
+
<?php
|
37 |
+
if ( ! $post_type->show_ui) continue;
|
38 |
+
if(in_array($post_type->name, $post_array)){
|
39 |
+
?>
|
40 |
+
<tr>
|
41 |
+
<th>
|
42 |
+
<label for="folders_<?php echo $post_type->name; ?>" ><?php echo __( 'Use folders with:', WCP_FOLDER )." ".$post_type->label; ?></label>
|
43 |
+
</th>
|
44 |
+
<td>
|
45 |
+
<input type="checkbox" id="folders_<?php echo $post_type->name; ?>" name="folders_settings[]" value="<?php echo $post_type->name; ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
|
46 |
+
</td>
|
47 |
+
</tr>
|
48 |
+
<?php
|
49 |
+
} endforeach; ?>
|
50 |
+
<tr>
|
51 |
+
<th>
|
52 |
+
<label for="folders_<?php echo $post_type->name; ?>" ><?php echo __( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<?php $val = get_option("folders_show_in_menu"); ?>
|
56 |
+
<input type="hidden" name="folders_show_in_menu" value="off" />
|
57 |
+
<input type="checkbox" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
|
58 |
+
</td>
|
59 |
+
</tr>
|
60 |
+
<tr>
|
61 |
+
<td colspan="2" style="padding: 10px 0">
|
62 |
+
<?php
|
63 |
+
$total_folders = get_option("folder_old_plugin_folder_status");
|
64 |
+
if($total_folders == false || $total_folders < 10) {
|
65 |
+
$total_folders = 10;
|
66 |
+
}
|
67 |
+
$total = WCP_Folders::get_total_term_folders();
|
68 |
+
if($total > $total_folders) {
|
69 |
+
$total_folders = $total;
|
70 |
+
}
|
71 |
+
?>
|
72 |
+
<span class="upgrade-message">You have used <?php echo "<span class='pink'>".$total."</span>/".$total_folders ?> Folders. <a class="pink" href="<?php echo admin_url("admin.php?page=wcp_folders_upgrade") ?>"><?php echo __("Upgrade", WCP_FOLDER) ?></a></span>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
</table>
|
76 |
+
<input type="hidden" name="folders_settings1[premio_folder_option]" value="yes" />
|
77 |
+
<?php submit_button(); ?>
|
78 |
+
</form>
|
79 |
+
</div>
|
templates/admin/upgrade-to-pro.php
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<link href="<?php echo WCP_FOLDER_URL ?>assets/css/admin-setting.css" type="text/css" rel="stylesheet" />
|
2 |
+
<div class="wrap">
|
3 |
+
<div class="key-table">
|
4 |
+
<div class="modal-upgrade upgrade-block" id="folder-modal">
|
5 |
+
<div class="easy-modal-inner">
|
6 |
+
<div class="modal__wrap">
|
7 |
+
<p class="udner-title">
|
8 |
+
<strong class="text-primary"><?php _e('Unlock All Features', WCP_FOLDER); ?></strong>
|
9 |
+
</p>
|
10 |
+
|
11 |
+
<div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
|
12 |
+
<div class="">
|
13 |
+
<div class="rpt_plan rpt_plan_0 ">
|
14 |
+
<div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
|
15 |
+
<div class="rpt_head rpt_head_0">
|
16 |
+
<div class="rpt_price rpt_price_0">$19</div>
|
17 |
+
<div
|
18 |
+
class="rpt_description rpt_description_0"><?php _e('For small website owners', WCP_FOLDER); ?></div>
|
19 |
+
<div style="clear:both;"></div>
|
20 |
+
</div>
|
21 |
+
<div class="rpt_features rpt_features_0">
|
22 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-0"><a
|
23 |
+
href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span
|
24 |
+
class="intool"><b></b><?php _e('Use Folders on 1 domain', WCP_FOLDER); ?></span><?php _e('1 website', WCP_FOLDER); ?>
|
25 |
+
<span
|
26 |
+
class="rpt_tooltip_plus" style="color:#0073aa !important;"> +</span></a>
|
27 |
+
</div>
|
28 |
+
<div style="color:black;" class="rpt_feature rpt_feature_1-1"><?php _e('Organize Pages, Posts and Media files', WCP_FOLDER); ?></div>
|
29 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
30 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
31 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
32 |
+
<div style="color:black;"
|
33 |
+
class="rpt_feature rpt_feature_0-6"><?php _e('Updates and support for 1 year', WCP_FOLDER); ?>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
<div style="clear:both;"></div>
|
37 |
+
<a target="_blank"
|
38 |
+
href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=1"
|
39 |
+
style="background:#0073aa"
|
40 |
+
class="rpt_foot rpt_foot_0"><?php _e('Buy now', WCP_FOLDER); ?></a></div>
|
41 |
+
<div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
|
42 |
+
<div style="text-align:left;" class="rpt_title rpt_title_1">Pro<img
|
43 |
+
class="rpt_recommended"
|
44 |
+
src="<?php echo WCP_FOLDER_URL ?>assets/images/rpt_recommended.png"
|
45 |
+
style="top: 27px;"></div>
|
46 |
+
<div class="rpt_head rpt_head_1">
|
47 |
+
<div class="rpt_price rpt_price_1">$39</div>
|
48 |
+
<div
|
49 |
+
class="rpt_description rpt_description_1"><?php _e('For businesses with multiple websites', WCP_FOLDER); ?>
|
50 |
+
</div>
|
51 |
+
<div style="clear:both;"></div>
|
52 |
+
</div>
|
53 |
+
<div class="rpt_features rpt_features_1">
|
54 |
+
<div style="color:black;" class="rpt_feature rpt_feature_1-0"><a
|
55 |
+
href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span
|
56 |
+
class="intool"><b></b><?php _e('Use Folders on 5 domains', WCP_FOLDER); ?></span><?php _e('5 website', WCP_FOLDER); ?>
|
57 |
+
<span
|
58 |
+
class="rpt_tooltip_plus" style="color:#0073aa !important;"> +</span></a>
|
59 |
+
</div>
|
60 |
+
<div style="color:black;" class="rpt_feature rpt_feature_1-1"><?php _e('Organize Pages, Posts and Media files', WCP_FOLDER); ?></div>
|
61 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
62 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
63 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
64 |
+
<div style="color:black;"
|
65 |
+
class="rpt_feature rpt_feature_0-6"><?php _e('Updates and support for 1 year', WCP_FOLDER); ?>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
<div style="clear:both;"></div>
|
69 |
+
<a target="_blank"
|
70 |
+
href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=2"
|
71 |
+
style="background:#0073aa"
|
72 |
+
class="rpt_foot rpt_foot_1"><?php _e('Buy now', WCP_FOLDER); ?></a></div>
|
73 |
+
<div class="rpt_plan rpt_plan_2 ">
|
74 |
+
<div style="text-align:left;"
|
75 |
+
class="rpt_title rpt_title_2"><?php _e('Agency', WCP_FOLDER); ?></div>
|
76 |
+
<div class="rpt_head rpt_head_2">
|
77 |
+
<div class="rpt_price rpt_price_2">$79</div>
|
78 |
+
<div
|
79 |
+
class="rpt_description rpt_description_2"><?php _e('For agencies who manage clients', WCP_FOLDER); ?></div>
|
80 |
+
<div style="clear:both;"></div>
|
81 |
+
</div>
|
82 |
+
<div class="rpt_features rpt_features_2">
|
83 |
+
<div style="color:black;" class="rpt_feature rpt_feature_2-0"><a
|
84 |
+
href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span
|
85 |
+
class="intool"><b></b><?php _e('Use Folders on 20 domains', WCP_FOLDER); ?></span><?php _e('20 website', WCP_FOLDER); ?>
|
86 |
+
<span
|
87 |
+
class="rpt_tooltip_plus" style="color:#0073aa !important;"> +</span></a>
|
88 |
+
</div>
|
89 |
+
<div style="color:black;" class="rpt_feature rpt_feature_1-1"><?php _e('Organize Pages, Posts and Media files', WCP_FOLDER); ?></div>
|
90 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
91 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
92 |
+
<div style="color:black;" class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" style="color:black;" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
93 |
+
<div style="color:black;"
|
94 |
+
class="rpt_feature rpt_feature_0-6"><?php _e('Updates and support for 1 year', WCP_FOLDER); ?>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
<div style="clear:both;"></div>
|
98 |
+
<a target="_blank"
|
99 |
+
href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=3"
|
100 |
+
style="background:#0073aa"
|
101 |
+
class="rpt_foot rpt_foot_2"><?php _e('Buy now', WCP_FOLDER); ?></a></div>
|
102 |
+
</div>
|
103 |
+
<div style="clear:both;"></div>
|
104 |
+
</div>
|
105 |
+
<div class="text-center">
|
106 |
+
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
|
107 |
+
<p class="money-guaranteed"><?php _e('30 days money back guaranteed', WCP_FOLDER); ?>
|
108 |
+
<svg width="18" height="18" viewBox="0 0 51 51" fill="none"
|
109 |
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
110 |
+
<path d="M0.212891 50.25H50.2129V0.250001H0.212891V50.25Z" fill="url(#pattern20)"/>
|
111 |
+
<defs>
|
112 |
+
<pattern id="pattern20" patternContentUnits="objectBoundingBox" width="1"
|
113 |
+
height="1">
|
114 |
+
<use xlink:href="#image20" transform="scale(0.015625)"/>
|
115 |
+
</pattern>
|
116 |
+
<image id="image20"
|
117 |
+
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAN40lEQVR4AezVA7Bk37mH4edbe3Wfc8YT27Zt22Y5tu1CbNvGvTe2VQhvbIw9c9C99/rizP7bpeStWtrN37vkv/yHE04F77jWtkVyPRZRERFlFhHLOITBGUBrQyEWM3OBLJBywBwzzJ1C6tuu+UcnlxLdOXFT3BIXxEaiBYXosRffxbsz8/8x47ST2ZZwteSBka4cYhPRIUMOySr+iC9H+N9QvoN0Moh3Xmu7kyK1S+CVxA2DEopQdKXTdUWJIMikZTO0wV/LvpTPkvlarDkVpFyHxxCPiygbuyjK30sIIZPWmia1bFoOMAg/wTNCfAKrp0lAas/A00MpRaeamKiWljqL60OdUAKNfpV5n2bSaj+Y9TP9MN+emTfBj50SwtXxyVLq1mmdWKzVYhSLi8V0KZQOSd+zdiQtH2lWc7A2zPQ5l9l6EW8K8WC0UywgtYrP4IZdVNNYsNRNbDln52xXKzZfNnQ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 |
+
</p>
|
121 |
+
</form>
|
122 |
+
<div class="payments">
|
123 |
+
<svg width="262" height="26" viewBox="0 0 262 26" fill="none"
|
124 |
+
xmlns="http://www.w3.org/2000/svg"
|
125 |
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
126 |
+
<g opacity="0.7">
|
127 |
+
<rect width="261.088" height="26" fill="black" fill-opacity="0"/>
|
128 |
+
<rect x="216" width="45.0881" height="26" fill="url(#pattern5)"/>
|
129 |
+
<rect x="162" width="45.0881" height="26" fill="url(#pattern1)"/>
|
130 |
+
<rect x="107.965" width="45.0881" height="26" fill="url(#pattern2)"/>
|
131 |
+
<rect x="53.9824" width="45.0881" height="26" fill="url(#pattern3)"/>
|
132 |
+
<rect width="45.0881" height="26" fill="url(#pattern4)"/>
|
133 |
+
</g>
|
134 |
+
<defs>
|
135 |
+
<pattern id="pattern5" patternContentUnits="objectBoundingBox" width="1" height="1">
|
136 |
+
<use xlink:href="#image5"
|
137 |
+
transform="translate(0.0216438) scale(0.0131056 0.0227273)"/>
|
138 |
+
</pattern>
|
139 |
+
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
|
140 |
+
<use xlink:href="#image1"
|
141 |
+
transform="translate(0 -0.0226231) scale(0.0136986 0.0237556)"/>
|
142 |
+
</pattern>
|
143 |
+
<pattern id="pattern2" patternContentUnits="objectBoundingBox" width="1" height="1">
|
144 |
+
<use xlink:href="#image2"
|
145 |
+
transform="translate(0 -0.0226231) scale(0.0136986 0.0237556)"/>
|
146 |
+
</pattern>
|
147 |
+
<pattern id="pattern3" patternContentUnits="objectBoundingBox" width="1" height="1">
|
148 |
+
<use xlink:href="#image3"
|
149 |
+
transform="translate(0 -0.0226231) scale(0.0136986 0.0237556)"/>
|
150 |
+
</pattern>
|
151 |
+
<pattern id="pattern4" patternContentUnits="objectBoundingBox" width="1" height="1">
|
152 |
+
<use xlink:href="#image4"
|
153 |
+
transform="translate(0 -0.0226231) scale(0.0136986 0.0237556)"/>
|
154 |
+
</pattern>
|
155 |
+
<image id="image5" width="73" height="44"
|
156 |
+
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAsCAYAAAApSpU1AAAHtUlEQVRoQ+1beUhUaxQ/k42jpTOO26RWUL4Wo40iinaooKioyDZ4LS9baFUKgldEGpHVH+VrodWkbDEsiop2+qeVFiqsRFIqo9LJcZy52qjT5ON37ruTs9zxGvVePO8BGe+93z3fOb/v9zvfuXdUQ0TU0NAQTESZ1dXVf2g0GiPOtVRr1aoVuVwua1hYWA4R/anRaOo1AMPpdGbV1dWltm3btqVi45N3TU0N6XS6v7RabRpA0thsNqterzeoCHkiYLfbbQaDwQiQtIIg1Kss8qUI2BQeHh4MkHSCINSqIMmCFAKQQgRBcKggyYIUqoIUoBD/IzcVpECblQdIdrtdlZsftACSXq8XmaSC5J9PKkgKmkIPkGw2myo3GbkZDAZRbipI8nJzg1RVVaUySYZJERERIpNUkOSZ5AbJarWqTJJhktFoFJmkgiTPJDdIlZWVipm0c+dOevXqFXt1Op2k0WhIq9VSu3btaMaMGZSYmKhgc1U2JCcnhyoqKniwy+Xiz9atW5PJZKIJEyaQ0ajs/eDx48eptLSU8Hw6YsQI9mm1Wik5OTlgIGgBIiMjRSYpBenLly80d+5cBqahoYEn8P59165dioMPFKEgCLR9+3Y3ON5jkXBqaiqFhIQETBTgZmRk8BiAmpaWRuXl5QxUz549mwdSmzZtmlze4uJiSk9P53GxsbG0YsUKqq+vp9zcXHrz5g2fX7VqFcXExNCNGzf4HNim1+upS5cuNHnyZAoKCqJTp05xkKGhoQw6zmEBDh06xOMxtkePHuwX/uPj42nixInkcDjowoULzALYokWL+PPRo0ecOO5FHh06dKCRI0cy68Cg7OxsHte7d2+aNm2ae4GlhZZL/PPnz9+YZLFYFMnt6tWrHDjYM378eJo9ezb7P3bsGAcPA4h79uxxywTnpGCSkpJo3bp1tGHDBiopKeHxGGswGOjIkSN0/fp1Bgs+wIDTp0/T169faezYsTRs2DCe9+TJk1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xxqEkixsbEikwASUA7kBADgB2OQiFwjhsQwDib5w4S4R3q0gPwgPRhksm3bNo+dCz5Q1HF/Y0l6JxRoLtwLH4il8dxKqYR70fU3CySlzpsah3qEJhC7GWzr1q0UFxfXrILa1Bw/4rosSNJK/4hJ5HzcvHmTG0k8ew0YMIAbvEBs+ZmxBPINBvpl0r8BElZIp9NxYcR8YFRTz1D/BVA+IJWXlzuww/h7BvoZAUpdL8D5FQFCztgY8HhjMpnEwg2Q8KT+K9L+ZyySEp/YFOx2+zeQysrKHHhekoqpEif/9zHo7quqqvAyUWSSCpLvkvuA9PHjRweemrE9qyYigM0FjWlcXJzIJBUkX2oAJA+5ASS8xEILr5qIAB5l8HrIg0kqSJ708AZJV1paajaZTHrpKV9lk/jm1WKx1MTHx0fxX98WFBQcTkxM/F1tAb7RA7tbSUlJbq9evVL477iTkpJ+y8vLS+/atWtyUFAQ/jvA/eq1JbDK+ztEl8tVX1RUlD9r1qyMwsLCYvElNJGWiBKICG+lxPccLdvwdbFARHjN6fwb1gNUmyMtcywAAAAASUVORK5CYII="/>
|
157 |
+
<image id="image1" width="73" height="44"
|
158 |
+
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAsCAYAAAApSpU1AAAOnElEQVRoQ9WaeYxU1RLGTw+yqciIIiru4r6L+76vGHf9Q4woUeOWhzHEkLgM2swMMw7OKIKCEsLDhURRQFFRFCHtvu8L7qAiitAug6DMy6/mfTfVh9MNvMcf792k07fPPffcqq+++qrOncmFEMIHH3zQqVgs1uVyuQEhhB6MtbW18ZV9c/7333+HqqqqkMvlVvrYZHdwvz4rVqywc75TH9bVOOf6rXM/pnl+7Xh9f417U3bgR7mjra1tUQhhfC6XG1JTU7Msx8RCodBcVVX1D5zv0aNHBkDKcQHENX+uuYx5gDzQckaAaZ4c8QByzY97IPUsradnaD1+l7umOdipQ/YoGJ988omC2pLP5wcxM1coFBZVVVVVr7/++uHXX38tuVmM0qCYFDMqZpEMjyMvZwVCJ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QUJ4F8Qa3Uvr5++SwgCxX2VIV0AOSSsMUYGsLpGKx+M8xY8YMtP/j7tmzZ5+LLrqoprq6ul+HDh2yN/eKtB7634LkU6qceMdAlAPGj/u+aG0AtGLFimKxWJw2ZcqUoQsXLpyrf4vvGELoHULoxgvKtfGg//M1+Ddk/ut/fghh+b8AuA/BT3EIayUAAAAASUVORK5CYII="/>
|
159 |
+
<image id="image2" width="73" height="44"
|
160 |
+
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAsCAYAAAApSpU1AAAIS0lEQVRoQ+2bV2xTWxaGlwnBdkhmFOoDRQQQKMADHYneBQgQRaIEEkooAoRAg+ggiugCBIgqyqX33nkBiS56r6J3AqTHTgLx6FuebTn3JrFhYIYL3tKRY59zttf59r/+tfc2WEREXC5XARGZmZ6e3sdisYTz2e/cXC5XvNVq/UNExloslgwLMDIzMxdkZWUNK1AAVoEGgYyMDMmXL9/C4ODg4UCyOByOeJvN9s8AnuwEnE5not1uDwdScHp6ekZARX+VCGqyWq0FgGR1Op3OAKScIdlsNhuQbE6n0xGAlCskewBSHkZMutlstgCkvIpVNkgOhyOQbjnQApLdbncrKQApZz0FIPkxKcwGKS0tLZBuuaRbSEiIO90CkHJPtwAkHylHugUgBSD54cwBSN8ZUmpqqs/qNnr0aImLi9N9lrJly0qTJk2kUaNG7LmIw+GQQYMGSXR0tDRr1kwuXLggS5YskRcvXkiNGjVkyJAhUqZMGY36zZs3snbtWjl27Jj2VbduXRk/fryEh4dLfHy87Ny5U+7evavXFi1aVBo0aCD169eXM2fOyPLly2XWrFlSokQJD4Hbt2/LjBkzZOTIkXLp0iU5f/68xuNyufR+zs2bN0+ePXumn0dEREjXrl2lQoUKcvbsWWnatGmuNImvYMGC7urmD6SqVatKenq61K5dWx49eiRPnjyRDh06yKJFi/TLK1WqpAG1b99erylZsqQ0b95cYUyZMkUaNmwob9++lZYtW0piYqJ06tSJdZHs3r1bDhw4IMWLF5cJEyZIcHCwAjML7sz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iygO5aIoqiBFY8CAAbJ3715Vv6908ygpKSnJZ7pRXqlETqdTDZaHpeIQNJAIkNLMqE2bNk2VwQNj1sxTkDfXkp68P3LkiJ5HDYsXL9ZUS0lJkevXr6taTKrhRajSVEmg0QfVDMB2u93jkfggxow6Ace0gkEcM2aMXgdcPif1Hz58qL5GMcitMc2JjIx0pxuQGL28cpTR5yHNNaas80rg5L+RONdx0Pjs8+fPnvu4jnMmRQBlAJiqZs5xv/d58zCmf3Of+dy7b+90M3HTF83Eyv25edHNmzfV36Kjo/2HRGcmeF+G58+1efXlDcmf7/J+0P/mXvphonzx4kVdDQAzNjbWDSkxMdGnknyZ3N/9PFaCz3748MGT6iitT58+AUhMhkktVgKkJV5oMoH0/K0hMTe7deuWvHr1SqH8+cdZ0jYbpISEBAcTPmNsf/fUySt+0oqdA9Z9NJTj7WPm3t8OEtWVhS3zOzwHAL5+1v9tILEEYc3Gope5k9lV8CdTfmlIqAa/oZSjHioUczwAfU37JSGxlmPdxgSQmTsPmZvf+APrl4FEOmHAgGG38VtVkxO0v0CKj493sLbJbZruD/n/1TWAoULhNcxxiNls0OVUpb41LrP551mW/MyQgMCCFzDMaVAMvvMjwOS0vOnVq5d7xv2zQaISUaoBw8Euw49STG5KMxuHMTExCskaFxf3Piws7B//r3QDCgqhKgEHE0YtZsXuvWvwrenztff9x/hdUVFRCin4zp07ayIiInr+6Bk3K3r2o/AVflYCCL7CT1IGSk7bJV/7gN/jeiARU2xsrP7rW0tkZGT5HTt2TI6IiOgYFBTk3sXy0by3MLz3mLjNvEeZpApQ8BUOVEKJNqr1VompKH/uz1cs3/u8y+Vy8T8BUlJSlo0YMeJf7h+4RFj68rMo23RfN+v63hH+HP2xG5csIqx+M/8NBeAWqt4h/OUAAAAASUVORK5CYII="/>
|
161 |
+
<image id="image3" width="73" height="44"
|
162 |
+
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAsCAYAAAApSpU1AAAJSUlEQVRoQ+2baWxN2x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HsmLFIXCElfMdACSr9KFsWO1YvbifsShNGImFiImJ0RUMULkyYYLkPkDnGITnMh5A8WxEn/EQeMCArZQ0ScBWUJp2zvIdgUQmli5dqkyhlIy5M1ezdDMx44vMqSKf0cf4IkqErNMX4BBmADfmkfspQcDmM8Dme4KnL334N1fG5UVSAIu+9OF7AGMltLN/8wqSVbfMJBBClnpj3jxdsnHgZR2aeX7OexgCGzxPEwANcGAbnxuH7WlQrc6X+yh3xrLah+c5AsmAAJsonbKa1SMSb2DyGYdmiLQ57bSqJaXvg12Mgz75DFJGRkY+emF1AAMSJnDt2rWW91HlBYnGIL54LZhDmaA5dubkbXz6o2+UHjFaLTcSjPZGRkYW+SRfQGJCPPDUqVNy4sQJx0Axlll50CX8DQE6AcmUMmP908FgaYC9goR3MTt6O7SGypg9fIjV8iprfFN2bdq0UbduNzDPcc3eDrftC9gkDSkpwSRfQTKMYu+EC3fSEGq2OpQaBtHqcUjpZwIKf/zEhvjKxAoHiUnCKLYJbCnwLt7oW9aEAYOMs8dDh/g3O3s0D9G2Chbjoz14KYyqEyaWCZKTQQ2jKFkYxdYE4Ssvk3gXNqecABCYOc8GFCaJiOOuoT17urJWQfMnb9jDAmC8m68sMkn/rtxwyp5nzL6WjQkQsHDOHIvACByxeTjOGnDQHRww93rTQ4AyRpH+MBSTaJIJGJQoBpOrudcJOCZuDDHuv4QmVRRI5iHGZJY2m3xvhNSqoFbkWFaT/6+AZHUy/9X7vIJECaABla0IAfSSvWlxuaWnp+fzZ+VKkP6mSGmQAtLS0jKjo6NrOd0j/UwsxPVnZGR8iIqKCtVf3yYnJyfExMSMdmoBfiaQ0KTU1NRtcXFxE/R33PHx8c0TExMXxMbGjnC5XFWsmrefCRQTy18r7teUlJSdQ4cO/S0pKemh+fmYn4hwrsnPw4r+TPprN34mw7Yhjf8w8SdsyRC5xdWxaQAAAABJRU5ErkJggg=="/>
|
163 |
+
<image id="image4" width="73" height="44"
|
164 |
+
xlink:href="data:image/png;base64,iVBORw0KGg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xNRD5ivjUAJs2bJFwVG0AodjEErxPn5wz+nTp/Xogoq7d++uZh9IM5CSk5PdSgISQRjjDGSwun0ZA6OlEVjbtm1l+PDhmh6m4TFnz55Vv2EylA4oJT8/X89zlAeA4H5gkyoopX///qo8jJl+qAivwc/oaxaBMQsKCnTTYFzOehS0gWxMwCWFPZAKCwurWRVvzwgWFBNk8nxlUkAjMO8JMgGC+/EfHFpXGe8y180uZ3zNexwUSD8Uw3Vzv/ec6WMWgbjoE0jjflSakpLiVlJjQjLBmQn5Wz3v1xzefeq+/vA3jr/7vUGYPoEoyNxfD1JBQUE1hZd3SgRC/VfsS5pSuqSmprqVBCS2XLOF/opBBxoTqcruaEH6B3L1IOXn51ezA2CwVnMTYGOgxktLS3OnG5Ao4ALdAX5loOzQFK8eSHl5edW8PjWvJH7l4BsaG2fBepDi4+P1nGM1NwGKWI5DPkqyIPnKoy6k8Nzc3OLk5OQoDp5WcxPgHXtJScmH9PT0OP3v2+zs7P9mZGRkWrvbXxJhd3v58uWJHj16/Ef/j7tTp04ZWVlZf3Ts2HFMSEhImL+jwe+gsh/nzdqcnJyzmZmZ63Nycl6avxOHikiaiLQUEfefS3/vxntkl4jk81ex/wNMbMCbbj836AAAAABJRU5ErkJggg=="/>
|
165 |
+
</defs>
|
166 |
+
</svg>
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
<div class="folder-testimonial-list">
|
170 |
+
<div class="folder-testimonial">
|
171 |
+
<div class="testimonial-image">
|
172 |
+
<img src="<?php echo WCP_FOLDER_URL ?>assets/images/client-image.jpg">
|
173 |
+
</div>
|
174 |
+
<div class="testimonial-data">
|
175 |
+
<div class="testimonial-title">A brilliant solution!</div>
|
176 |
+
<div class="testimonial-desc">I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!</div>
|
177 |
+
<div class="testimonial-author">- Trevor Jordan</div>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
<style>
|
187 |
+
</style>
|
uninstall.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/** Uninstall script for Folders Plugin **/
|
3 |
-
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
4 |
-
exit();
|
5 |
-
|
6 |
-
$option_name = 'folders_settings';
|
7 |
-
|
8 |
-
delete_option( $option_name );
|
9 |
-
|
10 |
-
delete_site_option( $option_name );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|