Version Description
- Fixed menu slug
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.3.13 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.3.13
- FinalTilesGalleryLite.php +1493 -1992
- admin/add-gallery.php +217 -63
- admin/adv.php +0 -0
- admin/css/style.css +113 -37
- admin/edit-gallery.php +17 -16
- admin/galleries.php +0 -45
- admin/header.php +18 -4
- admin/images/circles.jpg +0 -0
- admin/images/modula-strip.jpg +0 -0
- admin/images/modula.jpg +0 -0
- admin/include/edit-gallery.php +1183 -223
- admin/include/fields.php +1099 -0
- admin/include/image-list.php +1 -1
- admin/overview.php +3 -3
- admin/scripts/{final-tiles-grid-gallery-lite-admin.js → final-tiles-gallery-admin.js} +285 -15
- admin/support.php +9 -16
- admin/tutorial/tutorial-add-image-size.png +0 -0
- admin/tutorial/tutorial-add-image.png +0 -0
- admin/tutorial/tutorial-add-page.jpg +0 -0
- admin/tutorial/tutorial-add.png +0 -0
- admin/tutorial/tutorial-dashboard.png +0 -0
- admin/tutorial/tutorial-edit-list.jpg +0 -0
- admin/tutorial/tutorial-image-added.jpg +0 -0
- admin/tutorial/tutorial-image-edit.jpg +0 -0
- admin/tutorial/tutorial-image-panel.JPG +0 -0
- admin/tutorial/tutorial-images-tab.png +0 -0
- admin/tutorial/tutorial-tabs.jpg +0 -0
- admin/upgrade.php +0 -4
- freemius/.codeclimate.yml +0 -19
- freemius/.github/ISSUE_TEMPLATE.md +0 -29
- freemius/.travis.yml +0 -11
- freemius/assets/css/admin/dialog-boxes.css +2 -2
- freemius/assets/img/final-tiles-grid-gallery-lite.jpg +0 -0
- freemius/assets/scss/_colors.scss +10 -3
- freemius/assets/scss/_load.scss +4 -4
- freemius/assets/scss/_mixins.scss +63 -7
- freemius/assets/scss/_start.scss +3 -3
- freemius/assets/scss/_vars.scss +5 -5
- freemius/assets/scss/admin/_ajax-loader.scss +49 -0
- freemius/assets/scss/admin/_auto-install.scss +33 -0
- freemius/assets/scss/admin/_modal-common.scss +31 -0
- freemius/assets/scss/admin/connect.scss +471 -471
- freemius/assets/scss/admin/dialog-boxes.scss +3 -1
- freemius/composer.json +0 -10
- freemius/config.php +8 -0
- freemius/gulpfile.js +0 -58
- freemius/includes/class-freemius-abstract.php +45 -1
- freemius/includes/class-freemius.php +1063 -374
- freemius/includes/class-fs-logger.php +5 -3
- freemius/includes/class-fs-plugin-updater.php +272 -4
- freemius/includes/debug/class-fs-debug-bar-panel.php +1 -1
- freemius/includes/debug/debug-bar-start.php +2 -2
- freemius/includes/fs-core-functions.php +82 -47
- freemius/includes/fs-essential-functions.php +55 -41
- freemius/includes/fs-plugin-info-dialog.php +53 -53
- freemius/includes/i18n.php +537 -517
- freemius/includes/managers/class-fs-admin-menu-manager.php +156 -9
- freemius/includes/managers/class-fs-admin-notice-manager.php +312 -312
- freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +8 -8
- freemius/includes/sdk/Exceptions/EmptyArgumentException.php +8 -8
- freemius/includes/sdk/Exceptions/Exception.php +73 -73
- freemius/includes/sdk/Exceptions/InvalidArgumentException.php +7 -7
- freemius/includes/sdk/Exceptions/OAuthException.php +11 -11
- freemius/includes/sdk/Freemius.php +626 -582
- freemius/includes/sdk/FreemiusBase.php +188 -188
- freemius/languages/freemius-da_DK.mo +0 -0
- freemius/languages/freemius-da_DK.po +829 -700
- freemius/languages/freemius-en.mo +0 -0
- freemius/languages/freemius-en.po +453 -392
- freemius/languages/freemius-he.mo +0 -0
- freemius/languages/freemius-he.po +825 -695
- freemius/languages/freemius-it_IT.mo +0 -0
- freemius/languages/freemius-it_IT.po +533 -611
- freemius/languages/freemius-ja_JP.mo +0 -0
- freemius/languages/freemius-ja_JP.po +700 -571
- freemius/languages/freemius.pot +117 -112
FinalTilesGalleryLite.php
CHANGED
@@ -1,1992 +1,1493 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
Plugin
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
}
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
{
|
545 |
-
$
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
if (
|
596 |
-
$
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
{
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
$
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
$
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
$
|
960 |
-
$
|
961 |
-
$
|
962 |
-
$
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
$
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
$
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
'
|
1028 |
-
|
1029 |
-
'
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
'
|
1045 |
-
'
|
1046 |
-
'
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
'
|
1065 |
-
|
1066 |
-
'
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
'
|
1093 |
-
|
1094 |
-
|
1095 |
-
'
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
$
|
1151 |
-
$
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
),
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
),
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
),
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
),
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
)
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
"description" => "Flag this option if you don't want to group images when opened in a lightbox.",
|
1495 |
-
"default" => "F",
|
1496 |
-
"excludeFrom" => array()
|
1497 |
-
),
|
1498 |
-
"blank" => array(
|
1499 |
-
"name" => "Links target",
|
1500 |
-
"type" => "toggle",
|
1501 |
-
"description" => "Open links in a blank page.",
|
1502 |
-
"excludeFrom" => array()
|
1503 |
-
),
|
1504 |
-
"enableTwitter" => array(
|
1505 |
-
"name" => "Enable Twitter icon",
|
1506 |
-
"type" => "toggle",
|
1507 |
-
"description" => "Enable Twitter sharing.",
|
1508 |
-
"default" => "F",
|
1509 |
-
"excludeFrom" => array()
|
1510 |
-
),
|
1511 |
-
"enableFacebook" => array(
|
1512 |
-
"name" => "Enable Facebook icon",
|
1513 |
-
"type" => "toggle",
|
1514 |
-
"description" => "Enable Facebook sharing.",
|
1515 |
-
"default" => "F",
|
1516 |
-
"excludeFrom" => array()
|
1517 |
-
),
|
1518 |
-
"enableGplus" => array(
|
1519 |
-
"name" => "Enable Google Plus icon",
|
1520 |
-
"type" => "toggle",
|
1521 |
-
"description" => "Enable Google Plus sharing",
|
1522 |
-
"default" => "F",
|
1523 |
-
"excludeFrom" => array()
|
1524 |
-
),
|
1525 |
-
"enablePinterest" => array(
|
1526 |
-
"name" => "Enable Pinterest icon",
|
1527 |
-
"type" => "toggle",
|
1528 |
-
"description" => "Enable Pinterest sharing",
|
1529 |
-
"default" => "F",
|
1530 |
-
"excludeFrom" => array()
|
1531 |
-
),
|
1532 |
-
"socialIconColor" => array(
|
1533 |
-
"name" => "Color of social sharing icons",
|
1534 |
-
"type" => "color",
|
1535 |
-
"description" => "Set the color of the social sharing icons",
|
1536 |
-
"default" => "#ffffff",
|
1537 |
-
"excludeFrom" => array()
|
1538 |
-
)
|
1539 |
-
)
|
1540 |
-
),
|
1541 |
-
"Captions" => array(
|
1542 |
-
"icon" => "mdi-comment-text-outline",
|
1543 |
-
"fields" => array(
|
1544 |
-
"captionBehavior" => array(
|
1545 |
-
"name" => "Caption behavior",
|
1546 |
-
"type" => "PRO_FEATURE",
|
1547 |
-
"description" => "Captions can have two different behaviors: start hidden and shown on mouse over or viceversa.",
|
1548 |
-
"excludeFrom" => array()
|
1549 |
-
),
|
1550 |
-
"captionMobileBehavior" => array(
|
1551 |
-
"name" => "Caption mobile behavior",
|
1552 |
-
"type" => "PRO_FEATURE",
|
1553 |
-
"description" => "Caption behavior for mobile devices.",
|
1554 |
-
"excludeFrom" => array()
|
1555 |
-
),
|
1556 |
-
"captionFullHeight" => array(
|
1557 |
-
"name" => "Caption full height",
|
1558 |
-
"type" => "PRO_FEATURE",
|
1559 |
-
"description" => "Enable this option for full height captions. <strong>This is required if you want to use caption icons and caption effects other than <i>fade</i>.</strong>",
|
1560 |
-
"default" => "T",
|
1561 |
-
"excludeFrom" => array()
|
1562 |
-
),
|
1563 |
-
"captionEmpty" => array(
|
1564 |
-
"name" => "Empty captions",
|
1565 |
-
"type" => "PRO_FEATURE",
|
1566 |
-
"description" => "Choose if empty caption has to be shown. Consider that empty captions are never shown if <i>Caption full height</i> is switched off.",
|
1567 |
-
"excludeFrom" => array()
|
1568 |
-
),
|
1569 |
-
"captionIcon" => array(
|
1570 |
-
"name" => "Caption icon",
|
1571 |
-
"type" => "select",
|
1572 |
-
"description" => "Choose the icon for the captions.",
|
1573 |
-
"values" => array(
|
1574 |
-
"Icon" => array("|None", "search|Lens", "search-plus|Lens (plus)", "link|Link", "heart|Heart", "heart-o|Heart empty",
|
1575 |
-
"camera|Camera", "camera-retro|Camera retro", "picture-o|Picture", "star|Star", "star-o|Star empty",
|
1576 |
-
"sun-o|Sun", "arrows-alt|Arrows", "hand-o-right|Hand")
|
1577 |
-
),
|
1578 |
-
"excludeFrom" => array()
|
1579 |
-
),
|
1580 |
-
"customCaptionIcon" => array(
|
1581 |
-
"name" => "Custom caption icon",
|
1582 |
-
"type" => "PRO_FEATURE",
|
1583 |
-
"description" => "Use this field to insert the class of a FontAwesome icon (i.e.: fa-heart). <a href='http://fontawesome.io/icons/' target='blank'>See all available icons</a>. <strong>This value override the <i>Caption icon</i> value</strong>.",
|
1584 |
-
"excludeFrom" => array()
|
1585 |
-
),
|
1586 |
-
"captionIconColor" => array(
|
1587 |
-
"name" => "Caption icon color",
|
1588 |
-
"type" => "color",
|
1589 |
-
"description" => "Color of the icon in captions.",
|
1590 |
-
"default" => "#ffffff",
|
1591 |
-
"excludeFrom" => array()
|
1592 |
-
),
|
1593 |
-
"captionIconSize" => array(
|
1594 |
-
"name" => "Caption icon size",
|
1595 |
-
"type" => "number",
|
1596 |
-
"description" => "Size of the icon in captions.",
|
1597 |
-
"default" => 12,
|
1598 |
-
"min" => 10,
|
1599 |
-
"max" => 96,
|
1600 |
-
"mu" => "px",
|
1601 |
-
"excludeFrom" => array()
|
1602 |
-
),
|
1603 |
-
"captionFontSize" => array(
|
1604 |
-
"name" => "Caption font size",
|
1605 |
-
"type" => "number",
|
1606 |
-
"description" => "Size of the font in captions.",
|
1607 |
-
"default" => 12,
|
1608 |
-
"min" => 10,
|
1609 |
-
"max" => 96,
|
1610 |
-
"mu" => "px",
|
1611 |
-
"excludeFrom" => array()
|
1612 |
-
),
|
1613 |
-
"captionEffect" => array(
|
1614 |
-
"name" => "Caption effect",
|
1615 |
-
"type" => "PRO_FEATURE",
|
1616 |
-
"description" => "Effect used to show the captions.",
|
1617 |
-
"excludeFrom" => array()
|
1618 |
-
),
|
1619 |
-
"captionEasing" => array(
|
1620 |
-
"name" => "Caption effect easing",
|
1621 |
-
"type" => "PRO_FEATURE",
|
1622 |
-
"description" => "Easing function for the caption animation, works better with sliding animations.",
|
1623 |
-
"excludeFrom" => array()
|
1624 |
-
),
|
1625 |
-
"captionFrame" => array(
|
1626 |
-
"name" => "Caption frame",
|
1627 |
-
"type" => "toggle",
|
1628 |
-
"description" => "Add a frame around the caption",
|
1629 |
-
"default" => "F",
|
1630 |
-
"excludeFrom" => array()
|
1631 |
-
),
|
1632 |
-
"captionFrameColor" => array(
|
1633 |
-
"name" => "Caption frame color",
|
1634 |
-
"type" => "color",
|
1635 |
-
"description" => "Color of the frame around the caption",
|
1636 |
-
"default" => "#ffffff",
|
1637 |
-
"excludeFrom" => array()
|
1638 |
-
),
|
1639 |
-
"captionColor" => array(
|
1640 |
-
"name" => "Caption color",
|
1641 |
-
"type" => "color",
|
1642 |
-
"description" => "Text color of the captions.",
|
1643 |
-
"default" => "#ffffff",
|
1644 |
-
"excludeFrom" => array()
|
1645 |
-
),
|
1646 |
-
"captionEffectDuration" => array(
|
1647 |
-
"name" => "Caption effect duration",
|
1648 |
-
"type" => "text",
|
1649 |
-
"description" => "Duration of the caption animation.",
|
1650 |
-
"default" => 250,
|
1651 |
-
"mu" => "ms",
|
1652 |
-
"min" => 0,
|
1653 |
-
"max" => 1000,
|
1654 |
-
"excludeFrom" => array()
|
1655 |
-
),
|
1656 |
-
"captionBackgroundColor" => array(
|
1657 |
-
"name" => "Caption background color",
|
1658 |
-
"type" => "color",
|
1659 |
-
"description" => "Caption background color",
|
1660 |
-
"default" => "#000000",
|
1661 |
-
"excludeFrom" => array()
|
1662 |
-
),
|
1663 |
-
"captionOpacity" => array(
|
1664 |
-
"name" => "Caption opacity",
|
1665 |
-
"type" => "text",
|
1666 |
-
"description" => "Opacity of the caption, 0% means 'invisible' while 100% is a plain color without opacity.",
|
1667 |
-
"default" => 80,
|
1668 |
-
"min" => 0,
|
1669 |
-
"max" => 100,
|
1670 |
-
"mu" => "%",
|
1671 |
-
"excludeFrom" => array()
|
1672 |
-
),
|
1673 |
-
"wp_field_caption" => array(
|
1674 |
-
"name" => "WordPress caption field",
|
1675 |
-
"type" => "select",
|
1676 |
-
"description" => "WordPress field used for captions. <strong>This field is used ONLY when images are added to the gallery, </strong> however, if you want to ignore captions just set it to '<i>Don't use captions</i>'.",
|
1677 |
-
"values" => array(
|
1678 |
-
"Field" => array("none|Don't use captions", "title|Title", "caption|Caption", "description|Description")
|
1679 |
-
),
|
1680 |
-
"excludeFrom" => array("shortcode")
|
1681 |
-
),
|
1682 |
-
"wp_field_title" => array(
|
1683 |
-
"name" => "WordPress title field",
|
1684 |
-
"type" => "select",
|
1685 |
-
"description" => "WordPress field used for titles. <strong>This field is used ONLY when images are added to the gallery, </strong> however, if you want to ignore titles just set it to '<i>Don't use titles</i>'.",
|
1686 |
-
"values" => array(
|
1687 |
-
"Field" => array("none|Don't use titles", "title|Title", "description|Description")
|
1688 |
-
),
|
1689 |
-
"excludeFrom" => array("shortcode")
|
1690 |
-
),
|
1691 |
-
"recentPostsCaption" => array(
|
1692 |
-
"name" => "Recent posts caption",
|
1693 |
-
"type" => "select",
|
1694 |
-
"description" => "Field of the post used for captions when using \"Recent posts\" as source.",
|
1695 |
-
"values" => array(
|
1696 |
-
"Field" => array("none|Don't use captions", "title|Title", "excerpt|Excerpt", "auto-excerpt|Auto excerpt")
|
1697 |
-
),
|
1698 |
-
"excludeFrom" => array("shortcode")
|
1699 |
-
),
|
1700 |
-
"recentPostsCaptionAutoExcerptLength" => array(
|
1701 |
-
"name" => "Max number of words for 'Auto excerpt'",
|
1702 |
-
"type" => "text",
|
1703 |
-
"description" => "Define the max number of words of the caption when <i>Recent posts caption</i> is set to <i>Auto excerpt</i>.",
|
1704 |
-
"default" => "20",
|
1705 |
-
"excludeFrom" => array()
|
1706 |
-
),
|
1707 |
-
"captionVerticalAlignment" => array(
|
1708 |
-
"name" => "Caption Vertical Alignment",
|
1709 |
-
"type" => "select",
|
1710 |
-
"description" => "Choose the vertical alignment of the caption",
|
1711 |
-
"values" => array("Caption vertical alignment" => array("Top|Top", "Middle|Middle", "Bottom|Bottom")),
|
1712 |
-
"excludeFrom" => array()
|
1713 |
-
),
|
1714 |
-
"captionHorizontalAlignment" => array(
|
1715 |
-
"name" => "Caption Horizontal Alignment",
|
1716 |
-
"type" => "select",
|
1717 |
-
"description" => "Choose the horizontal alignment of the caption",
|
1718 |
-
"values" => array("Caption horizontal alignment" => array("Left|Left", "Center|Center", "Right|Right")),
|
1719 |
-
"excludeFrom" => array()
|
1720 |
-
),
|
1721 |
-
"titleFontSize" => array(
|
1722 |
-
"name" => "Title font size",
|
1723 |
-
"type" => "number",
|
1724 |
-
"description" => "Size of the font in captions.",
|
1725 |
-
"min" => 10,
|
1726 |
-
"max" => 96,
|
1727 |
-
"mu" => "px",
|
1728 |
-
"excludeFrom" => array()
|
1729 |
-
),
|
1730 |
-
|
1731 |
-
|
1732 |
-
)
|
1733 |
-
),
|
1734 |
-
"Hover effects" => array(
|
1735 |
-
"icon" => "mdi-file-image",
|
1736 |
-
"fields" => array(
|
1737 |
-
"hoverZoom" => array(
|
1738 |
-
"name" => "Zoom",
|
1739 |
-
"type" => "PRO_FEATURE",
|
1740 |
-
"description" => "Scale value.",
|
1741 |
-
"default" => 100,
|
1742 |
-
"min" => 0,
|
1743 |
-
"max" => 600,
|
1744 |
-
"mu" => "%",
|
1745 |
-
"excludeFrom" => array()
|
1746 |
-
),
|
1747 |
-
"hoverRotation" => array(
|
1748 |
-
"name" => "Rotation",
|
1749 |
-
"type" => "PRO_FEATURE",
|
1750 |
-
"description" => "Rotation value in degrees.",
|
1751 |
-
"min" => 0,
|
1752 |
-
"max" => 360,
|
1753 |
-
"mu" => "deg",
|
1754 |
-
"default" => 0,
|
1755 |
-
"excludeFrom" => array()
|
1756 |
-
),
|
1757 |
-
"hoverIconRotation" => array(
|
1758 |
-
"name" => "Rotate icon",
|
1759 |
-
"type" => "toggle",
|
1760 |
-
"default" => "F",
|
1761 |
-
"description" => "Enable rotation of the icon.",
|
1762 |
-
"excludeFrom" => array()
|
1763 |
-
)
|
1764 |
-
)
|
1765 |
-
),
|
1766 |
-
"Image loaded effects" => array(
|
1767 |
-
"icon" => "mdi-reload",
|
1768 |
-
"fields" => array(
|
1769 |
-
"loadedScale" => array(
|
1770 |
-
"name" => "Scale",
|
1771 |
-
"description" => "",
|
1772 |
-
"type" => "slider",
|
1773 |
-
"min" => 0,
|
1774 |
-
"max" => 200,
|
1775 |
-
"mu" => "%",
|
1776 |
-
"default" => 100,
|
1777 |
-
"excludeFrom" => array()
|
1778 |
-
),
|
1779 |
-
"loadedRotate" => array(
|
1780 |
-
"name" => "Rotate",
|
1781 |
-
"description" => "",
|
1782 |
-
"type" => "slider",
|
1783 |
-
"min" => -180,
|
1784 |
-
"max" => 180,
|
1785 |
-
"default" => 0,
|
1786 |
-
"mu" => "deg",
|
1787 |
-
"excludeFrom" => array()
|
1788 |
-
),
|
1789 |
-
"loadedHSlide" => array(
|
1790 |
-
"name" => "Horizontal slide",
|
1791 |
-
"description" => "",
|
1792 |
-
"type" => "slider",
|
1793 |
-
"min" => -100,
|
1794 |
-
"max" => 100,
|
1795 |
-
"mu" => "px",
|
1796 |
-
"default" => 0,
|
1797 |
-
"excludeFrom" => array()
|
1798 |
-
),
|
1799 |
-
"loadedVSlide" => array(
|
1800 |
-
"name" => "Vertical slide",
|
1801 |
-
"description" => "",
|
1802 |
-
"type" => "slider",
|
1803 |
-
"min" => -100,
|
1804 |
-
"max" => 100,
|
1805 |
-
"mu" => "px",
|
1806 |
-
"default" => 0,
|
1807 |
-
"excludeFrom" => array()
|
1808 |
-
)
|
1809 |
-
|
1810 |
-
)
|
1811 |
-
),
|
1812 |
-
"Style" => array(
|
1813 |
-
"icon" => "mdi-format-paint",
|
1814 |
-
"fields" => array(
|
1815 |
-
"borderSize" => array(
|
1816 |
-
"name" => "Border size",
|
1817 |
-
"type" => "number",
|
1818 |
-
"description" => "Size of the border of each image.",
|
1819 |
-
"default" => 0,
|
1820 |
-
"min" => 0,
|
1821 |
-
"max" => 10,
|
1822 |
-
"mu" => "px",
|
1823 |
-
"excludeFrom" => array()
|
1824 |
-
),
|
1825 |
-
"borderRadius" => array(
|
1826 |
-
"name" => "Border radius",
|
1827 |
-
"type" => "number",
|
1828 |
-
"description" => "Border radius of the images.",
|
1829 |
-
"default" => 0,
|
1830 |
-
"min" => 0,
|
1831 |
-
"max" => 100,
|
1832 |
-
"mu" => "px",
|
1833 |
-
"excludeFrom" => array()
|
1834 |
-
),
|
1835 |
-
"borderColor" => array(
|
1836 |
-
"name" => "Border color",
|
1837 |
-
"type" => "color",
|
1838 |
-
"description" => "Color of the border when size is greater than 0.",
|
1839 |
-
"default" => "#000000",
|
1840 |
-
"excludeFrom" => array()
|
1841 |
-
),
|
1842 |
-
"loadingBarColor" => array(
|
1843 |
-
"name" => "Loading Bar color",
|
1844 |
-
"type" => "color",
|
1845 |
-
"description" => "Color of the loading bar",
|
1846 |
-
"default" => "#000000",
|
1847 |
-
"excludeFrom" => array()
|
1848 |
-
),
|
1849 |
-
"loadingBarBackgroundColor" => array(
|
1850 |
-
"name" => "Loading Bar background color",
|
1851 |
-
"type" => "color",
|
1852 |
-
"description" => "Background color of the loading bar",
|
1853 |
-
"default" => "#cccccc",
|
1854 |
-
"excludeFrom" => array()
|
1855 |
-
),
|
1856 |
-
"shadowSize" => array(
|
1857 |
-
"name" => "Shadow size",
|
1858 |
-
"type" => "number",
|
1859 |
-
"description" => "Shadow size of the images.",
|
1860 |
-
"default" => 0,
|
1861 |
-
"min" => 0,
|
1862 |
-
"max" => 20,
|
1863 |
-
"mu" => "px",
|
1864 |
-
"excludeFrom" => array()
|
1865 |
-
),
|
1866 |
-
"shadowColor" => array(
|
1867 |
-
"name" => "Shadow color",
|
1868 |
-
"type" => "color",
|
1869 |
-
"description" => "Color of the shadow when size is greater than 0.",
|
1870 |
-
"default" => "#000000",
|
1871 |
-
"excludeFrom" => array()
|
1872 |
-
),
|
1873 |
-
"backgroundColor" => array(
|
1874 |
-
"name" => "Tile background color",
|
1875 |
-
"type" => "color",
|
1876 |
-
"description" => "Background color of tiles",
|
1877 |
-
"default" => "#fafafa",
|
1878 |
-
"excludeFrom" => array()
|
1879 |
-
)
|
1880 |
-
)
|
1881 |
-
),
|
1882 |
-
"Customizations" => array(
|
1883 |
-
"icon" => "mdi-puzzle",
|
1884 |
-
"fields" => array(
|
1885 |
-
"aClass" => array(
|
1886 |
-
"name" => "Additional CSS class on A tag",
|
1887 |
-
"type" => "text",
|
1888 |
-
"description" => "Use this field if you need to add additional CSS classes to the link that contains the image.",
|
1889 |
-
"default" => "",
|
1890 |
-
"excludeFrom" => array()
|
1891 |
-
),
|
1892 |
-
"rel" => array(
|
1893 |
-
"name" => "Value of 'rel' attribute on the link that contains the image.",
|
1894 |
-
"type" => "text",
|
1895 |
-
"description" => "Use this field if you need to add additional CSS classes to the link that contains the image. This is useful mostly to integrate the gallery with other lightbox plugins.",
|
1896 |
-
"default" => "",
|
1897 |
-
"excludeFrom" => array()
|
1898 |
-
),
|
1899 |
-
"beforeGalleryText" => array(
|
1900 |
-
"name" => "Text before gallery",
|
1901 |
-
"type" => "textarea",
|
1902 |
-
"description" => "Use this field to add text/html to be placed just before your gallery.",
|
1903 |
-
"excludeFrom" => array("shortcode")
|
1904 |
-
),
|
1905 |
-
"afterGalleryText" => array(
|
1906 |
-
"name" => "Text after gallery",
|
1907 |
-
"type" => "textarea",
|
1908 |
-
"description" => "Use this field to add text/html to be placed just after your gallery.",
|
1909 |
-
"excludeFrom" => array("shortcode")
|
1910 |
-
),
|
1911 |
-
"style" => array(
|
1912 |
-
"name" => "Custom CSS",
|
1913 |
-
"type" => "textarea",
|
1914 |
-
"description" => "<strong>Write just the code without using the <style> tag.</strong><br>List of useful selectors:<br>
|
1915 |
-
<br>
|
1916 |
-
<ul>
|
1917 |
-
<li>
|
1918 |
-
<em>.final-tiles-gallery</em> : gallery container;
|
1919 |
-
</li>
|
1920 |
-
<li>
|
1921 |
-
<em>.final-tiles-gallery .tile-inner</em> : tile content;
|
1922 |
-
</li>
|
1923 |
-
<li>
|
1924 |
-
<em>.final-tiles-gallery .tile-inner .item</em> : image of the tile;
|
1925 |
-
</li>
|
1926 |
-
<li>
|
1927 |
-
<em>.final-tiles-gallery .tile-inner .caption</em> : caption of the tile;
|
1928 |
-
</li>
|
1929 |
-
<li>
|
1930 |
-
<em>.final-tiles-gallery .ftg-filters</em> : filters container
|
1931 |
-
</li>
|
1932 |
-
<li>
|
1933 |
-
<em>.final-tiles-gallery .ftg-filters a</em> : filter
|
1934 |
-
</li>
|
1935 |
-
<li>
|
1936 |
-
<em>.final-tiles-gallery .ftg-filters a.selected</em> : selected filter
|
1937 |
-
</li>
|
1938 |
-
</ul>",
|
1939 |
-
"excludeFrom" => array("shortcode")
|
1940 |
-
),
|
1941 |
-
"script" => array(
|
1942 |
-
"name" => "Custom scripts",
|
1943 |
-
"type" => "textarea",
|
1944 |
-
"description" => "This script will be called after the gallery initialization. Useful for custom lightboxes.
|
1945 |
-
<br />
|
1946 |
-
<br />
|
1947 |
-
<strong>Write just the code without using the <script></script> tags</strong>",
|
1948 |
-
"excludeFrom" => array("shortcode")
|
1949 |
-
),
|
1950 |
-
"delay" => array(
|
1951 |
-
"name" => "Delay",
|
1952 |
-
"type" => "text",
|
1953 |
-
"description" => "Delay (in milliseconds) before firing the gallery. Sometimes it's needed to avoid conflicts with other plugins.",
|
1954 |
-
"min" => 0,
|
1955 |
-
"max" => 5000,
|
1956 |
-
"mu" => "ms",
|
1957 |
-
"default" => 0,
|
1958 |
-
"excludeFrom" => array()
|
1959 |
-
),
|
1960 |
-
"support" => array(
|
1961 |
-
"name" => "Show developer link",
|
1962 |
-
"type" => "toggle",
|
1963 |
-
"description" => "I want to support this plugin, show the developer link!",
|
1964 |
-
"default" => "F",
|
1965 |
-
"excludeFrom" => array(),
|
1966 |
-
"excludeFrom" => array()
|
1967 |
-
),
|
1968 |
-
"supportText" => array(
|
1969 |
-
"name" => "Developer link text",
|
1970 |
-
"type" => "text",
|
1971 |
-
"description" => "Text for the developer link",
|
1972 |
-
"default" => "powered by Final Tiles Grid Gallery",
|
1973 |
-
"excludeFrom" => array()
|
1974 |
-
),
|
1975 |
-
"envatoReferral" => array(
|
1976 |
-
"name" => "Envato username for referral",
|
1977 |
-
"type" => "text",
|
1978 |
-
"description" => "Enter your Envato username to earn money! Receive 30% of the first purchase or deposit of each referred user. You do not need to activate anything else, you are automatically eligible.",
|
1979 |
-
"default" => "GreenTreeLabs",
|
1980 |
-
"excludeFrom" => array()
|
1981 |
-
)
|
1982 |
-
)
|
1983 |
-
)
|
1984 |
-
);
|
1985 |
-
}
|
1986 |
-
}
|
1987 |
-
|
1988 |
-
if (class_exists("FinalTiles_GalleryLite")) {
|
1989 |
-
global $ob_FinalTiles_GalleryLite;
|
1990 |
-
$ob_FinalTiles_GalleryLite = new FinalTiles_GalleryLite();
|
1991 |
-
}
|
1992 |
-
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Plugin Name: Final Tiles Grid Gallery
|
5 |
+
* Plugin URI: https://www.final-tiles-gallery.com
|
6 |
+
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
+
* Author: Green Tree Labs
|
8 |
+
* Version: 3.3.13
|
9 |
+
* Author URI: https://www.greentreelabs.net
|
10 |
+
*
|
11 |
+
* @fs_premium_only /lightbox-pro/
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
define( 'FTGVERSION', '3.3.13' );
|
15 |
+
/*
|
16 |
+
Changelog:
|
17 |
+
3.3.13
|
18 |
+
Fixed menu slug
|
19 |
+
3.3.12
|
20 |
+
Lite version code merged with premium
|
21 |
+
3.3.10
|
22 |
+
Bug fix (wrong behaviour on mobile with columns layout)
|
23 |
+
3.3.9
|
24 |
+
Extended support for PHP versions
|
25 |
+
3.3.8
|
26 |
+
Bug fix (Woocommerce categories were ignored)
|
27 |
+
3.3.7
|
28 |
+
Bug fix (Youtube videos not showing in lightboxes)
|
29 |
+
3.3.6
|
30 |
+
Bug fix (Vimeo videos not showing in lightboxes)
|
31 |
+
3.3.5
|
32 |
+
Enhanced compatibility with EverlightBox
|
33 |
+
3.3.4
|
34 |
+
Bug fix (woocommerce 3.1.x galleries not working)
|
35 |
+
Admin UI minor fixes
|
36 |
+
3.3.3
|
37 |
+
Bug fix (wrong behaviour of captions on mobile devices)
|
38 |
+
3.3.2
|
39 |
+
Bug fix (videos not using the masonry layout)
|
40 |
+
3.3.1
|
41 |
+
Bug fix (videos not visible)
|
42 |
+
3.3.0
|
43 |
+
Use gallery options inside shortcode
|
44 |
+
Enhanced backend UI
|
45 |
+
Added new caption behaviours
|
46 |
+
Fix FitVid conflicts
|
47 |
+
Added Hover effects and Image loaded effects presets
|
48 |
+
Added hover effect duration
|
49 |
+
Added new feature: disable grid size below given screen width
|
50 |
+
Added title and description to LightGallery
|
51 |
+
3.2.9
|
52 |
+
Added support for EverlightBox
|
53 |
+
Renamed get_image_sizes function to avoid conflicts
|
54 |
+
3.2.8
|
55 |
+
Minor Bug fix
|
56 |
+
3.2.7
|
57 |
+
Minor Bug fix
|
58 |
+
3.2.6
|
59 |
+
Bug fix
|
60 |
+
New feature: choose image size for lightbox
|
61 |
+
3.2.5
|
62 |
+
SwipeBox now supports filters
|
63 |
+
Download the full size from LighGallery
|
64 |
+
Ajax loading (beta)
|
65 |
+
3.2.4
|
66 |
+
Bug fix
|
67 |
+
3.2.3
|
68 |
+
Bug fix
|
69 |
+
3.2.2
|
70 |
+
Bug fix
|
71 |
+
3.2.1
|
72 |
+
Bug fix
|
73 |
+
3.2.0
|
74 |
+
Lightbox groups
|
75 |
+
Hidden images
|
76 |
+
3.1.32
|
77 |
+
Added date filter to media panel
|
78 |
+
Added support to Enhanced Media Panel
|
79 |
+
Lazy loading with multiple image loading
|
80 |
+
Pre-selected filter
|
81 |
+
3.1.31
|
82 |
+
Enhanced compatibility with other plugins and themes by adding data-class attribute on images
|
83 |
+
3.1.30
|
84 |
+
Fixed jQuery issue
|
85 |
+
3.1.29
|
86 |
+
Minor bug fix
|
87 |
+
3.1.28
|
88 |
+
Bug fix
|
89 |
+
3.1.27
|
90 |
+
Alt tag
|
91 |
+
3.1.26
|
92 |
+
Bug fix
|
93 |
+
3.1.25
|
94 |
+
Bug fix
|
95 |
+
3.1.24
|
96 |
+
Bug fix
|
97 |
+
3.1.23
|
98 |
+
Fixed bug occuring with Lazy load + Filters
|
99 |
+
3.1.22
|
100 |
+
Lazy load
|
101 |
+
3.1.21
|
102 |
+
New layout Masonry
|
103 |
+
3.1.20
|
104 |
+
Max number of posts for "Recent posts" galleries
|
105 |
+
3.1.19
|
106 |
+
Open videos in lightbox
|
107 |
+
3.1.18
|
108 |
+
Admin panel enhancements
|
109 |
+
Fixed issue about Magnific Popup being loaded even when not needed
|
110 |
+
3.1.17
|
111 |
+
New lightbox added: Lightgallery
|
112 |
+
Fixed minor bug in Custom CSS (removed slashes)
|
113 |
+
3.1.16
|
114 |
+
Fixed bug in 'Recent posts' galleries, now it's possible to link posts
|
115 |
+
3.1.15
|
116 |
+
Added new lightbox: LightGallery
|
117 |
+
3.1.14
|
118 |
+
Import/Export features, Set title font size, select images by filter (backend), choose mobile lightbox
|
119 |
+
3.1.13
|
120 |
+
Fixed issue with some lightboxes on pages with more than one gallery
|
121 |
+
3.1.12
|
122 |
+
Solved conflicts with FitVids
|
123 |
+
3.1.11
|
124 |
+
[Backend] edit gallery by clicking the tile
|
125 |
+
3.1.10
|
126 |
+
Bug fix
|
127 |
+
3.1.9
|
128 |
+
Load gallery with a selected filter, choose to reload page after clicking a filter,
|
129 |
+
choose gallery from text editor, load scripts from footer for enhanced page load
|
130 |
+
3.1.8
|
131 |
+
Updated material design fonts
|
132 |
+
3.1.7
|
133 |
+
Fix grid size 0
|
134 |
+
3.1.6
|
135 |
+
Minor bug fix
|
136 |
+
3.1.5
|
137 |
+
Image loaded effects
|
138 |
+
3.1.4
|
139 |
+
Bug fix
|
140 |
+
3.1.3
|
141 |
+
Set a custom label for "All" filter, Choose size of images in admin panel, Loading bar color, Loading bar background color, Caption font size, Sequential image loading
|
142 |
+
3.1.2
|
143 |
+
PrettyPhoto security fix
|
144 |
+
3.1.1
|
145 |
+
Minor bug fix
|
146 |
+
3.1.0
|
147 |
+
New Backoffice
|
148 |
+
Wizard
|
149 |
+
WooCommerce products
|
150 |
+
New caption styles
|
151 |
+
Earn money with referral
|
152 |
+
3.0.21
|
153 |
+
Bug fix
|
154 |
+
3.0.20
|
155 |
+
Support for Social Gallery plugin by EpicPlugins
|
156 |
+
3.0.19
|
157 |
+
Bug fix
|
158 |
+
3.0.18
|
159 |
+
Posts galleries can use lightboxes
|
160 |
+
3.0.17
|
161 |
+
Bug fix
|
162 |
+
3.0.16
|
163 |
+
Filters available with recent posts
|
164 |
+
3.0.15
|
165 |
+
bug fix
|
166 |
+
3.1.14
|
167 |
+
New customization fields: before gallery text and after gallery text
|
168 |
+
3.0.13
|
169 |
+
Removed unused gallery properties
|
170 |
+
Read "Description" field from media panel
|
171 |
+
Added delay control
|
172 |
+
3.0.12
|
173 |
+
minor bug fix
|
174 |
+
3.0.11
|
175 |
+
Image width and height attributes are now ignored
|
176 |
+
3.0.10
|
177 |
+
Added compatibility with Cherry themes
|
178 |
+
3.0.9
|
179 |
+
Minor bug fix
|
180 |
+
3.0.8
|
181 |
+
Minor bug fix
|
182 |
+
3.0.7
|
183 |
+
Minor bug fix
|
184 |
+
3.0.6
|
185 |
+
Added filters in media panel
|
186 |
+
3.0.5
|
187 |
+
Minor bug fix
|
188 |
+
3.0.4
|
189 |
+
Minor bug fix
|
190 |
+
3.0.3
|
191 |
+
Bug fix
|
192 |
+
3.0.2
|
193 |
+
Bug fix
|
194 |
+
3.0.1
|
195 |
+
Bug fix
|
196 |
+
3.0
|
197 |
+
New grid layout algorithm
|
198 |
+
Video support, reverse order option
|
199 |
+
Automatic gallery with recent posts, toggle HTML compression, caption behavior on mobile devices, custom caption icon, update to FontAwesone 4.1.0
|
200 |
+
2.1.10
|
201 |
+
Lazy loading
|
202 |
+
2.1.9
|
203 |
+
Fixed issue with single quote character in captions
|
204 |
+
2.1.8
|
205 |
+
Re-activated html compression
|
206 |
+
2.1.7
|
207 |
+
Fixed notice messages
|
208 |
+
2.1.6
|
209 |
+
Magnific Popup and Lightbox now work with gallery filters
|
210 |
+
2.1.5
|
211 |
+
New feature: dynamic image size factor
|
212 |
+
2.1.4
|
213 |
+
New fields: CSS class and REL on A tag
|
214 |
+
2.1.3
|
215 |
+
Social icons bug fix
|
216 |
+
|
217 |
+
2.1.2
|
218 |
+
Show empty captions
|
219 |
+
Inverted captions (visible then hidden on mouse over)
|
220 |
+
Icons in captions
|
221 |
+
Admin redesign UI
|
222 |
+
Enable/Disable effects on mouse over
|
223 |
+
Caption auto height
|
224 |
+
Set color of social sharing icons
|
225 |
+
Fixed captions
|
226 |
+
Loading progress bar
|
227 |
+
Minor bugs fixes
|
228 |
+
Page with support request instructions
|
229 |
+
Page with instructions
|
230 |
+
*/
|
231 |
+
if ( !function_exists( 'ftg_fs' ) ) {
|
232 |
+
// Create a helper function for easy SDK access.
|
233 |
+
function ftg_fs()
|
234 |
+
{
|
235 |
+
global $ftg_fs ;
|
236 |
+
|
237 |
+
if ( !isset( $ftg_fs ) ) {
|
238 |
+
// Include Freemius SDK.
|
239 |
+
require_once dirname( __FILE__ ) . '/freemius/start.php';
|
240 |
+
$ftg_fs = fs_dynamic_init( array(
|
241 |
+
'id' => '1002',
|
242 |
+
'slug' => 'final-tiles-grid-gallery-lite',
|
243 |
+
'type' => 'plugin',
|
244 |
+
'public_key' => 'pk_d0e075b84d491d510a1d0a21087af',
|
245 |
+
'is_premium' => false,
|
246 |
+
'is_premium_only' => false,
|
247 |
+
'has_addons' => false,
|
248 |
+
'has_paid_plans' => true,
|
249 |
+
'menu' => array(
|
250 |
+
'slug' => 'ftg-lite-gallery-admin',
|
251 |
+
'contact' => false,
|
252 |
+
'support' => false,
|
253 |
+
),
|
254 |
+
'is_live' => true,
|
255 |
+
) );
|
256 |
+
}
|
257 |
+
|
258 |
+
return $ftg_fs;
|
259 |
+
}
|
260 |
+
|
261 |
+
}
|
262 |
+
// Init Freemius.
|
263 |
+
ftg_fs();
|
264 |
+
// Signal that SDK was initiated.
|
265 |
+
do_action( 'ftg_fs_loaded' );
|
266 |
+
if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
267 |
+
class FinalTiles_Gallery
|
268 |
+
{
|
269 |
+
private $defaultValues = array(
|
270 |
+
'aClass' => '',
|
271 |
+
'afterGalleryText' => '',
|
272 |
+
'allFilterLabel' => 'All',
|
273 |
+
'ajaxLoading' => 'F',
|
274 |
+
'backgroundColor' => 'transparent',
|
275 |
+
'beforeGalleryText' => '',
|
276 |
+
'blank' => 'F',
|
277 |
+
'borderColor' => 'transparent',
|
278 |
+
'borderRadius' => 0,
|
279 |
+
'borderSize' => 0,
|
280 |
+
'captionBackgroundColor' => '#000000',
|
281 |
+
'captionBehavior' => 'none',
|
282 |
+
'captionColor' => '#ffffff',
|
283 |
+
'captionEasing' => 'linear',
|
284 |
+
'captionEffect' => 'slide-from-bottom',
|
285 |
+
'captionEffectDuration' => 250,
|
286 |
+
'captionEmpty' => 'hide',
|
287 |
+
'captionFontSize' => 12,
|
288 |
+
'captionFrame' => 'F',
|
289 |
+
'captionFrameColor' => '#ffffff',
|
290 |
+
'captionHorizontalAlignment' => 'center',
|
291 |
+
'captionIcon' => 'zoom',
|
292 |
+
'captionIconColor' => '#ffffff',
|
293 |
+
'captionIconSize' => 12,
|
294 |
+
'captionMobileBehavior' => 'desktop',
|
295 |
+
'captionOpacity' => 80,
|
296 |
+
'captionPosition' => 'inside',
|
297 |
+
'captionVerticalAlignment' => 'middle',
|
298 |
+
'columns' => 4,
|
299 |
+
'columnsPhoneLandscape' => 3,
|
300 |
+
'columnsPhonePortrait' => 2,
|
301 |
+
'columnsTabletLandscape' => 4,
|
302 |
+
'columnsTabletPortrait' => 3,
|
303 |
+
'compressHTML' => 'T',
|
304 |
+
'customCaptionIcon' => '',
|
305 |
+
'defaultFilter' => '',
|
306 |
+
'defaultSize' => 'medium',
|
307 |
+
'delay' => 0,
|
308 |
+
'disableLightboxGroups' => 'F',
|
309 |
+
'enableFacebook' => 'F',
|
310 |
+
'enableGplus' => 'F',
|
311 |
+
'enablePinterest' => 'F',
|
312 |
+
'enableTwitter' => 'F',
|
313 |
+
'enlargeImages' => 'T',
|
314 |
+
'envatoReferral' => 'GreenTreeLabs',
|
315 |
+
'filterClick' => 'F',
|
316 |
+
'filters' => '',
|
317 |
+
'gridCellSize' => 25,
|
318 |
+
'gridCellSizeDisabledBelow' => 800,
|
319 |
+
'hoverDuration' => 250,
|
320 |
+
'hoverIconRotation' => 'F',
|
321 |
+
'hoverRotation' => 0,
|
322 |
+
'hoverZoom' => 100,
|
323 |
+
'imageSizeFactor' => 90,
|
324 |
+
'imageSizeFactorCustom' => '',
|
325 |
+
'imageSizeFactorPhoneLandscape' => 60,
|
326 |
+
'imageSizeFactorPhonePortrait' => 50,
|
327 |
+
'imageSizeFactorTabletLandscape' => 80,
|
328 |
+
'imageSizeFactorTabletPortrait' => 70,
|
329 |
+
'imagesOrder' => 'user',
|
330 |
+
'layout' => 'final',
|
331 |
+
'lazyLoad' => false,
|
332 |
+
'lightbox' => 'lightbox2',
|
333 |
+
'lightboxImageSize' => 'large',
|
334 |
+
'loadedDuration' => 500,
|
335 |
+
'loadedEasing' => 'ease-out',
|
336 |
+
'loadedHSlide' => 0,
|
337 |
+
'loadedRotateY' => 0,
|
338 |
+
'loadedRotateX' => 0,
|
339 |
+
'loadedScaleY' => 100,
|
340 |
+
'loadedScaleX' => 100,
|
341 |
+
'loadedVSlide' => 0,
|
342 |
+
'loadingBarBackgroundColor' => '#fff',
|
343 |
+
'loadingBarColor' => '#666',
|
344 |
+
'loadMethod' => 'sequential',
|
345 |
+
'margin' => 10,
|
346 |
+
'max_posts' => 0,
|
347 |
+
'minTileWidth' => '250',
|
348 |
+
'mobileLightbox' => 'lightbox',
|
349 |
+
'post_types' => '',
|
350 |
+
'recentPostsCaption' => 'title',
|
351 |
+
'recentPostsCaptionAutoExcerptLength' => 20,
|
352 |
+
'rel' => '',
|
353 |
+
'reverseOrder' => false,
|
354 |
+
'script' => '',
|
355 |
+
'shadowColor' => '#cccccc',
|
356 |
+
'shadowSize' => 0,
|
357 |
+
'socialIconColor' => '#ffffff',
|
358 |
+
'socialIconPosition' => 'bottom',
|
359 |
+
'socialIconStyle' => 'none',
|
360 |
+
'source' => 'images',
|
361 |
+
'style' => '',
|
362 |
+
'support' => 'F',
|
363 |
+
'supportText' => 'Powered by Final Tiles Grid Gallery',
|
364 |
+
'tilesPerPage' => 0,
|
365 |
+
'titleFontSize' => 14,
|
366 |
+
'width' => '100%',
|
367 |
+
'wp_field_caption' => 'description',
|
368 |
+
'wp_field_title' => 'title',
|
369 |
+
) ;
|
370 |
+
//Constructor
|
371 |
+
public function __construct()
|
372 |
+
{
|
373 |
+
$this->plugin_name = plugin_basename( __FILE__ );
|
374 |
+
$this->define_constants();
|
375 |
+
$this->setupFields();
|
376 |
+
$this->define_db_tables();
|
377 |
+
$this->FinalTilesdb = $this->create_db_conn();
|
378 |
+
register_activation_hook( __FILE__, array( $this, 'activation' ) );
|
379 |
+
add_filter( 'widget_text', 'do_shortcode' );
|
380 |
+
add_action( 'plugins_loaded', array( $this, 'create_textdomain' ) );
|
381 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'add_gallery_scripts' ) );
|
382 |
+
//add_action( 'admin_init', array($this,'gallery_admin_init') );
|
383 |
+
add_action( 'admin_menu', array( $this, 'add_gallery_admin_menu' ) );
|
384 |
+
add_shortcode( 'FinalTilesGallery', array( $this, 'gallery_shortcode_handler' ) );
|
385 |
+
add_action( 'wp_ajax_save_gallery', array( $this, 'save_gallery' ) );
|
386 |
+
add_action( 'wp_ajax_add_new_gallery', array( $this, 'add_new_gallery' ) );
|
387 |
+
add_action( 'wp_ajax_delete_gallery', array( $this, 'delete_gallery' ) );
|
388 |
+
add_action( 'wp_ajax_clone_gallery', array( $this, 'clone_gallery' ) );
|
389 |
+
add_action( 'wp_ajax_save_image', array( $this, 'save_image' ) );
|
390 |
+
add_action( 'wp_ajax_add_image', array( $this, 'add_image' ) );
|
391 |
+
add_action( 'wp_ajax_save_video', array( $this, 'save_video' ) );
|
392 |
+
add_action( 'wp_ajax_sort_images', array( $this, 'sort_images' ) );
|
393 |
+
add_action( 'wp_ajax_delete_image', array( $this, 'delete_image' ) );
|
394 |
+
add_action( 'wp_ajax_assign_filters', array( $this, 'assign_filters' ) );
|
395 |
+
add_action( 'wp_ajax_assign_group', array( $this, 'assign_group' ) );
|
396 |
+
add_action( 'wp_ajax_toggle_visibility', array( $this, 'toggle_visibility' ) );
|
397 |
+
add_action( 'wp_ajax_refresh_gallery', array( $this, 'refresh_gallery' ) );
|
398 |
+
add_action( 'wp_ajax_get_gallery_configuration', array( $this, 'get_configuration' ) );
|
399 |
+
add_action( 'wp_ajax_update_gallery_configuration', array( $this, 'update_configuration' ) );
|
400 |
+
add_action( 'wp_ajax_get_image_size_url', array( $this, 'get_image_size_url' ) );
|
401 |
+
add_filter( 'mce_buttons', array( $this, 'editor_button' ) );
|
402 |
+
add_filter( 'mce_external_plugins', array( $this, 'register_editor_plugin' ) );
|
403 |
+
add_action( 'wp_ajax_ftg_shortcode_editor', array( $this, 'ftg_shortcode_editor' ) );
|
404 |
+
add_filter(
|
405 |
+
'plugin_row_meta',
|
406 |
+
array( $this, 'register_links' ),
|
407 |
+
10,
|
408 |
+
2
|
409 |
+
);
|
410 |
+
add_action( 'wp_ajax_load_chunk', array( $this, 'load_chunk' ) );
|
411 |
+
add_action( 'wp_ajax_nopriv_load_chunk', array( $this, 'load_chunk' ) );
|
412 |
+
$this->resetFields();
|
413 |
+
}
|
414 |
+
|
415 |
+
private function resetFields()
|
416 |
+
{
|
417 |
+
$keys = array(
|
418 |
+
'name',
|
419 |
+
'hiddenFor',
|
420 |
+
'type',
|
421 |
+
'description',
|
422 |
+
'default',
|
423 |
+
'min',
|
424 |
+
'max',
|
425 |
+
'mu',
|
426 |
+
'excludeFrom'
|
427 |
+
);
|
428 |
+
foreach ( $this->fields as $tab_name => $tab ) {
|
429 |
+
foreach ( $tab['fields'] as $key => $field ) {
|
430 |
+
//print_r($field);
|
431 |
+
foreach ( $keys as $kk ) {
|
432 |
+
if ( !array_key_exists( $kk, $field ) ) {
|
433 |
+
$this->fields[$tab_name]['fields'][$key][$kk] = '';
|
434 |
+
}
|
435 |
+
}
|
436 |
+
}
|
437 |
+
}
|
438 |
+
}
|
439 |
+
|
440 |
+
public function register_links( $links, $file )
|
441 |
+
{
|
442 |
+
$base = plugin_basename( __FILE__ );
|
443 |
+
|
444 |
+
if ( $file == $base ) {
|
445 |
+
$links[] = '<a href="admin.php?page=ftg-lite-gallery-admin" title="Final Tiles Grid Gallery Dashboard">Dashboard</a>';
|
446 |
+
$links[] = '<a href="https://www.greentreelabs.net" title="GreenTreeLabs website">GreenTreeLabs</a>';
|
447 |
+
$links[] = '<a href="https://twitter.com/greentreelabs" title="@GreenTreeLabs on Twitter">Twitter</a>';
|
448 |
+
$links[] = '<a href="https://www.facebook.com/greentreelabs" title="GreenTreeLabs on Facebook">Facebook</a>';
|
449 |
+
$links[] = '<a href="https://www.google.com/+GreentreelabsNetjs" title="GreenTreeLabs on Google+">Google+</a>';
|
450 |
+
}
|
451 |
+
|
452 |
+
return $links;
|
453 |
+
}
|
454 |
+
|
455 |
+
public function create_db_tables()
|
456 |
+
{
|
457 |
+
include_once WP_PLUGIN_DIR . '/final-tiles-grid-gallery-lite/lib/install-db.php';
|
458 |
+
install_db();
|
459 |
+
}
|
460 |
+
|
461 |
+
public function activation()
|
462 |
+
{
|
463 |
+
}
|
464 |
+
|
465 |
+
//Define textdomain
|
466 |
+
public function create_textdomain()
|
467 |
+
{
|
468 |
+
$plugin_dir = basename( dirname( __FILE__ ) );
|
469 |
+
load_plugin_textdomain( 'final-tiles-gallery', false, dirname( plugin_basename( __FILE__ ) ) . '/lib/languages/' );
|
470 |
+
}
|
471 |
+
|
472 |
+
//Define constants
|
473 |
+
public function define_constants()
|
474 |
+
{
|
475 |
+
if ( !defined( 'FINALTILESGALLERY_PLUGIN_BASENAME' ) ) {
|
476 |
+
define( 'FINALTILESGALLERY_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
477 |
+
}
|
478 |
+
if ( !defined( 'FINALTILESGALLERY_PLUGIN_NAME' ) ) {
|
479 |
+
define( 'FINALTILESGALLERY_PLUGIN_NAME', trim( dirname( FINALTILESGALLERY_PLUGIN_BASENAME ), '/' ) );
|
480 |
+
}
|
481 |
+
if ( !defined( 'FINALTILESGALLERY_PLUGIN_DIR' ) ) {
|
482 |
+
define( 'FINALTILESGALLERY_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . FINALTILESGALLERY_PLUGIN_NAME );
|
483 |
+
}
|
484 |
+
}
|
485 |
+
|
486 |
+
//Define DB tables
|
487 |
+
public function define_db_tables()
|
488 |
+
{
|
489 |
+
global $wpdb ;
|
490 |
+
$wpdb->FinalTilesGalleries = $wpdb->prefix . 'FinalTiles_gallery';
|
491 |
+
$wpdb->FinalTilesImages = $wpdb->prefix . 'FinalTiles_gallery_images';
|
492 |
+
}
|
493 |
+
|
494 |
+
public function create_db_conn()
|
495 |
+
{
|
496 |
+
require 'lib/db-class.php';
|
497 |
+
$FinalTilesdb = FinalTilesDB::getInstance();
|
498 |
+
return $FinalTilesdb;
|
499 |
+
}
|
500 |
+
|
501 |
+
public function editor_button( $buttons )
|
502 |
+
{
|
503 |
+
array_push( $buttons, 'separator', 'ftg_shortcode_editor' );
|
504 |
+
return $buttons;
|
505 |
+
}
|
506 |
+
|
507 |
+
public function register_editor_plugin( $plugin_array )
|
508 |
+
{
|
509 |
+
$plugin_array['ftg_shortcode_editor'] = plugins_url( '/admin/scripts/editor-plugin.js', __FILE__ );
|
510 |
+
return $plugin_array;
|
511 |
+
}
|
512 |
+
|
513 |
+
public function ftg_shortcode_editor()
|
514 |
+
{
|
515 |
+
$css_path = plugins_url( 'assets/css/admin.css', __FILE__ );
|
516 |
+
$admin_url = admin_url();
|
517 |
+
$galleries = $this->FinalTilesdb->getGalleries();
|
518 |
+
//load all galleries
|
519 |
+
include 'admin/include/tinymce-galleries.php';
|
520 |
+
wp_die();
|
521 |
+
}
|
522 |
+
|
523 |
+
public function attachment_fields_to_edit( $form, $post )
|
524 |
+
{
|
525 |
+
$form['ftg_link'] = array(
|
526 |
+
'label' => 'Link <small>FTG</small>',
|
527 |
+
'input' => 'text',
|
528 |
+
'value' => get_post_meta( $post->ID, '_ftg_link', true ),
|
529 |
+
'helps' => '',
|
530 |
+
);
|
531 |
+
$form['ftg_target'] = array(
|
532 |
+
'label' => '_blank <small>FTG</small>',
|
533 |
+
'input' => 'html',
|
534 |
+
'html' => "<input type='checkbox' name='attachments[{$post->ID}][ftg_target]' id='attachments[{$post->ID}][ftg_target]' value='_mblank' " . (( get_post_meta( $post->ID, '_ftg_target', true ) == '_mblank' ? 'checked' : '' )) . ' />',
|
535 |
+
);
|
536 |
+
return $form;
|
537 |
+
}
|
538 |
+
|
539 |
+
public function attachment_fields_to_save( $post, $attachment )
|
540 |
+
{
|
541 |
+
if ( isset( $attachment['ftg_link'] ) ) {
|
542 |
+
update_post_meta( $post['ID'], '_ftg_link', $attachment['ftg_link'] );
|
543 |
+
}
|
544 |
+
if ( isset( $attachment['ftg_target'] ) ) {
|
545 |
+
update_post_meta( $post['ID'], '_ftg_target', $attachment['ftg_target'] );
|
546 |
+
}
|
547 |
+
return $post;
|
548 |
+
}
|
549 |
+
|
550 |
+
//Delete gallery
|
551 |
+
public function delete_gallery()
|
552 |
+
{
|
553 |
+
if ( check_admin_referer( 'FinalTiles_gallery', 'FinalTiles_gallery' ) ) {
|
554 |
+
$this->FinalTilesdb->deleteGallery( intval( $_POST['id'] ) );
|
555 |
+
}
|
556 |
+
die;
|
557 |
+
}
|
558 |
+
|
559 |
+
public function update_configuration()
|
560 |
+
{
|
561 |
+
|
562 |
+
if ( check_admin_referer( 'FinalTiles_gallery', 'FinalTiles_gallery' ) ) {
|
563 |
+
$id = $_POST['galleryId'];
|
564 |
+
$config = stripslashes( $_POST['config'] );
|
565 |
+
$this->FinalTilesdb->update_config( $id, $config );
|
566 |
+
}
|
567 |
+
|
568 |
+
die;
|
569 |
+
}
|
570 |
+
|
571 |
+
public function get_configuration()
|
572 |
+
{
|
573 |
+
|
574 |
+
if ( check_admin_referer( 'FinalTiles_gallery', 'FinalTiles_gallery' ) ) {
|
575 |
+
$id = $_POST['galleryId'];
|
576 |
+
$gallery = $this->FinalTilesdb->getGalleryConfig( $id );
|
577 |
+
echo $gallery ;
|
578 |
+
}
|
579 |
+
|
580 |
+
die;
|
581 |
+
}
|
582 |
+
|
583 |
+
public function get_image_size_url()
|
584 |
+
{
|
585 |
+
if ( check_admin_referer( 'FinalTiles_gallery', 'FinalTiles_gallery' ) ) {
|
586 |
+
echo wp_get_attachment_image_url( $_POST['id'], $_POST['size'], false ) ;
|
587 |
+
}
|
588 |
+
die;
|
589 |
+
}
|
590 |
+
|
591 |
+
//Clone gallery
|
592 |
+
public function clone_gallery()
|
593 |
+
{
|
594 |
+
|
595 |
+
if ( check_admin_referer( 'FinalTiles_gallery', 'FinalTiles_gallery' ) ) {
|
596 |
+
$sourceId = intval( $_POST['id'] );
|
597 |
+
$g = $this->FinalTilesdb->getGalleryById( $sourceId, true );
|
598 |
+
$g['name'] .= ' (copy)';
|
599 |
+
$this->FinalTilesdb->addGallery( $g );
|
600 |
+
$id = $this->FinalTilesdb->getNewGalleryId();
|
601 |
+
$images = $this->FinalTilesdb->getImagesByGalleryId( $sourceId );
|
602 |
+
|