Version Description
- Fixed: Fixed issue related to self hosted videos in Media Grid widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 4.4.4 |
Comparing to | |
See all releases |
Code changes from version 4.4.3 to 4.4.4
- premium-addons-for-elementor.php +2 -2
- readme.txt +5 -1
- widgets/premium-grid.php +3294 -3282
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
Plugin Name: Premium Addons for Elementor
|
4 |
Â
Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
|
5 |
Â
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 4.4.
|
7 |
Â
Elementor tested up to: 3.3.1
|
8 |
Â
Elementor Pro tested up to: 3.3.4
|
9 |
Â
Author: Leap13
|
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
18 |
Â
}
|
19 |
Â
|
20 |
Â
// Define Constants.
|
21 |
-
define( 'PREMIUM_ADDONS_VERSION', '4.4.
|
22 |
Â
define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
|
23 |
Â
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
24 |
Â
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
3 |
Â
Plugin Name: Premium Addons for Elementor
|
4 |
Â
Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
|
5 |
Â
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 4.4.4
|
7 |
Â
Elementor tested up to: 3.3.1
|
8 |
Â
Elementor Pro tested up to: 3.3.4
|
9 |
Â
Author: Leap13
|
18 |
Â
}
|
19 |
Â
|
20 |
Â
// Define Constants.
|
21 |
+
define( 'PREMIUM_ADDONS_VERSION', '4.4.4' );
|
22 |
Â
define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
|
23 |
Â
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
24 |
Â
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
|
|
5 |
Â
Requires at least: 5.0
|
6 |
Â
Tested Up To: 5.8
|
7 |
Â
Requires PHP: 5.4
|
8 |
-
Stable Tag: 4.4.
|
9 |
Â
License: GPL v3.0
|
10 |
Â
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
Â
|
@@ -195,6 +195,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
195 |
Â
|
196 |
Â
== Changelog ==
|
197 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
198 |
Â
= 4.4.3 =
|
199 |
Â
|
200 |
Â
- Tweak: Added Justify option to Content Alignment in Blog widget.
|
5 |
Â
Requires at least: 5.0
|
6 |
Â
Tested Up To: 5.8
|
7 |
Â
Requires PHP: 5.4
|
8 |
+
Stable Tag: 4.4.4
|
9 |
Â
License: GPL v3.0
|
10 |
Â
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
Â
|
195 |
Â
|
196 |
Â
== Changelog ==
|
197 |
Â
|
198 |
+
= 4.4.4 =
|
199 |
+
|
200 |
+
- Fixed: Fixed issue related to self hosted videos in Media Grid widget.
|
201 |
+
|
202 |
Â
= 4.4.3 =
|
203 |
Â
|
204 |
Â
- Tweak: Added Justify option to Content Alignment in Blog widget.
|
widgets/premium-grid.php
CHANGED
@@ -1,3282 +1,3294 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Premium Media Grid.
|
4 |
-
*/
|
5 |
-
|
6 |
-
namespace PremiumAddons\Widgets;
|
7 |
-
|
8 |
-
// Elementor Classes.
|
9 |
-
use Elementor\Modules\DynamicTags\Module as TagsModule;
|
10 |
-
use Elementor\Widget_Base;
|
11 |
-
use Elementor\Utils;
|
12 |
-
use Elementor\Embed;
|
13 |
-
use Elementor\Control_Media;
|
14 |
-
use Elementor\Controls_Manager;
|
15 |
-
use Elementor\Icons_Manager;
|
16 |
-
use Elementor\Repeater;
|
17 |
-
use Elementor\Core\Schemes\Color;
|
18 |
-
use Elementor\Core\Schemes\Typography;
|
19 |
-
use Elementor\Group_Control_Border;
|
20 |
-
use Elementor\Group_Control_Typography;
|
21 |
-
use Elementor\Group_Control_Css_Filter;
|
22 |
-
use Elementor\Group_Control_Text_Shadow;
|
23 |
-
use Elementor\Group_Control_Box_Shadow;
|
24 |
-
use Elementor\Group_Control_Background;
|
25 |
-
use Elementor\Group_Control_Image_Size;
|
26 |
-
|
27 |
-
// PremiumAddons Classes.
|
28 |
-
use PremiumAddons\Includes\Helper_Functions;
|
29 |
-
use PremiumAddons\Includes\Premium_Template_Tags;
|
30 |
-
|
31 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
32 |
-
exit;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Class Premium_Grid
|
37 |
-
*/
|
38 |
-
class Premium_Grid extends Widget_Base {
|
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 |
-
$this->
|
428 |
-
'
|
429 |
-
array(
|
430 |
-
'label'
|
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 |
-
|
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 |
-
$this->
|
1126 |
-
'
|
1127 |
-
array(
|
1128 |
-
'label'
|
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 |
-
$this->
|
1232 |
-
'
|
1233 |
-
array(
|
1234 |
-
'label'
|
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 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
'
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
'
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
'
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
'
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
'
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
'
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
'
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
'
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
'
|
1635 |
-
'
|
1636 |
-
'
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
),
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
'
|
1657 |
-
'
|
1658 |
-
'
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
);
|
1672 |
-
|
1673 |
-
$this->
|
1674 |
-
'
|
1675 |
-
array(
|
1676 |
-
'label'
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
'
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
'
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
);
|
1765 |
-
|
1766 |
-
$this->
|
1767 |
-
'
|
1768 |
-
array(
|
1769 |
-
'label'
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
'
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
'
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
);
|
1884 |
-
|
1885 |
-
$this->
|
1886 |
-
'
|
1887 |
-
array(
|
1888 |
-
'label'
|
1889 |
-
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
'
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
1938 |
-
);
|
1939 |
-
|
1940 |
-
$this->
|
1941 |
-
'
|
1942 |
-
array(
|
1943 |
-
'label'
|
1944 |
-
|
1945 |
-
|
1946 |
-
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
'
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
);
|
1990 |
-
|
1991 |
-
$this->
|
1992 |
-
'
|
1993 |
-
array(
|
1994 |
-
'label'
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
'
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
-
'
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
2084 |
-
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
);
|
2103 |
-
|
2104 |
-
$this->
|
2105 |
-
'
|
2106 |
-
array(
|
2107 |
-
'label'
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
2144 |
-
|
2145 |
-
|
2146 |
-
'
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
'
|
2156 |
-
|
2157 |
-
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
'
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
'
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
);
|
2212 |
-
|
2213 |
-
$this->
|
2214 |
-
'
|
2215 |
-
array(
|
2216 |
-
'label'
|
2217 |
-
|
2218 |
-
|
2219 |
-
|
2220 |
-
|
2221 |
-
|
2222 |
-
|
2223 |
-
|
2224 |
-
|
2225 |
-
|
2226 |
-
|
2227 |
-
|
2228 |
-
|
2229 |
-
|
2230 |
-
|
2231 |
-
|
2232 |
-
|
2233 |
-
|
2234 |
-
|
2235 |
-
|
2236 |
-
|
2237 |
-
|
2238 |
-
|
2239 |
-
'
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
2243 |
-
|
2244 |
-
|
2245 |
-
|
2246 |
-
|
2247 |
-
|
2248 |
-
'
|
2249 |
-
|
2250 |
-
|
2251 |
-
|
2252 |
-
|
2253 |
-
|
2254 |
-
|
2255 |
-
|
2256 |
-
'
|
2257 |
-
|
2258 |
-
|
2259 |
-
|
2260 |
-
|
2261 |
-
|
2262 |
-
|
2263 |
-
|
2264 |
-
|
2265 |
-
|
2266 |
-
|
2267 |
-
|
2268 |
-
|
2269 |
-
|
2270 |
-
|
2271 |
-
|
2272 |
-
|
2273 |
-
|
2274 |
-
|
2275 |
-
|
2276 |
-
'
|
2277 |
-
|
2278 |
-
|
2279 |
-
|
2280 |
-
|
2281 |
-
|
2282 |
-
|
2283 |
-
|
2284 |
-
|
2285 |
-
|
2286 |
-
|
2287 |
-
|
2288 |
-
|
2289 |
-
|
2290 |
-
|
2291 |
-
|
2292 |
-
|
2293 |
-
|
2294 |
-
|
2295 |
-
|
2296 |
-
|
2297 |
-
|
2298 |
-
|
2299 |
-
|
2300 |
-
|
2301 |
-
|
2302 |
-
|
2303 |
-
|
2304 |
-
|
2305 |
-
|
2306 |
-
|
2307 |
-
|
2308 |
-
|
2309 |
-
|
2310 |
-
|
2311 |
-
|
2312 |
-
|
2313 |
-
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
|
2320 |
-
|
2321 |
-
|
2322 |
-
|
2323 |
-
|
2324 |
-
|
2325 |
-
|
2326 |
-
|
2327 |
-
|
2328 |
-
|
2329 |
-
|
2330 |
-
|
2331 |
-
|
2332 |
-
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
2338 |
-
|
2339 |
-
|
2340 |
-
|
2341 |
-
|
2342 |
-
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
2355 |
-
|
2356 |
-
|
2357 |
-
|
2358 |
-
|
2359 |
-
|
2360 |
-
|
2361 |
-
*
|
2362 |
-
*
|
2363 |
-
*
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
2395 |
-
|
2396 |
-
|
2397 |
-
|
2398 |
-
|
2399 |
-
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
|
2409 |
-
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
|
2418 |
-
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
-
|
2432 |
-
|
2433 |
-
|
2434 |
-
|
2435 |
-
|
2436 |
-
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
2441 |
-
|
2442 |
-
|
2443 |
-
|
2444 |
-
|
2445 |
-
|
2446 |
-
|
2447 |
-
|
2448 |
-
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
|
2453 |
-
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
2465 |
-
|
2466 |
-
|
2467 |
-
|
2468 |
-
|
2469 |
-
|
2470 |
-
|
2471 |
-
|
2472 |
-
|
2473 |
-
|
2474 |
-
|
2475 |
-
$
|
2476 |
-
|
2477 |
-
if ( 'yes' === $
|
2478 |
-
|
2479 |
-
|
2480 |
-
|
2481 |
-
|
2482 |
-
|
2483 |
-
|
2484 |
-
|
2485 |
-
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
2489 |
-
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
2496 |
-
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
2500 |
-
|
2501 |
-
$
|
2502 |
-
|
2503 |
-
|
2504 |
-
|
2505 |
-
|
2506 |
-
|
2507 |
-
|
2508 |
-
|
2509 |
-
|
2510 |
-
|
2511 |
-
|
2512 |
-
|
2513 |
-
|
2514 |
-
|
2515 |
-
|
2516 |
-
|
2517 |
-
|
2518 |
-
'
|
2519 |
-
|
2520 |
-
|
2521 |
-
|
2522 |
-
|
2523 |
-
|
2524 |
-
|
2525 |
-
|
2526 |
-
|
2527 |
-
|
2528 |
-
|
2529 |
-
$
|
2530 |
-
|
2531 |
-
|
2532 |
-
|
2533 |
-
|
2534 |
-
|
2535 |
-
|
2536 |
-
|
2537 |
-
|
2538 |
-
|
2539 |
-
|
2540 |
-
|
2541 |
-
|
2542 |
-
|
2543 |
-
|
2544 |
-
|
2545 |
-
|
2546 |
-
|
2547 |
-
|
2548 |
-
|
2549 |
-
|
2550 |
-
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
'
|
2555 |
-
|
2556 |
-
|
2557 |
-
|
2558 |
-
|
2559 |
-
|
2560 |
-
|
2561 |
-
|
2562 |
-
|
2563 |
-
|
2564 |
-
|
2565 |
-
|
2566 |
-
|
2567 |
-
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
-
|
2607 |
-
?>
|
2608 |
-
|
2609 |
-
|
2610 |
-
|
2611 |
-
|
2612 |
-
|
2613 |
-
|
2614 |
-
|
2615 |
-
|
2616 |
-
|
2617 |
-
|
2618 |
-
|
2619 |
-
|
2620 |
-
|
2621 |
-
|
2622 |
-
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
2626 |
-
|
2627 |
-
|
2628 |
-
|
2629 |
-
|
2630 |
-
|
2631 |
-
|
2632 |
-
|
2633 |
-
|
2634 |
-
|
2635 |
-
|
2636 |
-
|
2637 |
-
|
2638 |
-
|
2639 |
-
|
2640 |
-
|
2641 |
-
|
2642 |
-
|
2643 |
-
|
2644 |
-
|
2645 |
-
|
2646 |
-
|
2647 |
-
|
2648 |
-
|
2649 |
-
|
2650 |
-
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
-
|
2655 |
-
|
2656 |
-
|
2657 |
-
|
2658 |
-
|
2659 |
-
|
2660 |
-
|
2661 |
-
|
2662 |
-
|
2663 |
-
|
2664 |
-
|
2665 |
-
|
2666 |
-
|
2667 |
-
|
2668 |
-
|
2669 |
-
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
-
|
2684 |
-
|
2685 |
-
|
2686 |
-
|
2687 |
-
|
2688 |
-
|
2689 |
-
|
2690 |
-
|
2691 |
-
|
2692 |
-
|
2693 |
-
|
2694 |
-
|
2695 |
-
|
2696 |
-
|
2697 |
-
|
2698 |
-
|
2699 |
-
|
2700 |
-
|
2701 |
-
|
2702 |
-
endif;
|
2703 |
-
if (
|
2704 |
-
|
2705 |
-
|
2706 |
-
|
2707 |
-
|
2708 |
-
|
2709 |
-
|
2710 |
-
|
2711 |
-
|
2712 |
-
|
2713 |
-
|
2714 |
-
|
2715 |
-
|
2716 |
-
$
|
2717 |
-
|
2718 |
-
|
2719 |
-
|
2720 |
-
|
2721 |
-
|
2722 |
-
|
2723 |
-
|
2724 |
-
|
2725 |
-
|
2726 |
-
|
2727 |
-
|
2728 |
-
|
2729 |
-
|
2730 |
-
|
2731 |
-
|
2732 |
-
|
2733 |
-
|
2734 |
-
|
2735 |
-
|
2736 |
-
|
2737 |
-
|
2738 |
-
$
|
2739 |
-
|
2740 |
-
|
2741 |
-
|
2742 |
-
|
2743 |
-
|
2744 |
-
|
2745 |
-
|
2746 |
-
|
2747 |
-
|
2748 |
-
|
2749 |
-
|
2750 |
-
|
2751 |
-
|
2752 |
-
|
2753 |
-
|
2754 |
-
|
2755 |
-
|
2756 |
-
|
2757 |
-
|
2758 |
-
|
2759 |
-
|
2760 |
-
|
2761 |
-
);
|
2762 |
-
|
2763 |
-
|
2764 |
-
|
2765 |
-
|
2766 |
-
|
2767 |
-
|
2768 |
-
|
2769 |
-
|
2770 |
-
|
2771 |
-
|
2772 |
-
|
2773 |
-
|
2774 |
-
|
2775 |
-
|
2776 |
-
|
2777 |
-
|
2778 |
-
|
2779 |
-
|
2780 |
-
|
2781 |
-
|
2782 |
-
|
2783 |
-
|
2784 |
-
|
2785 |
-
|
2786 |
-
|
2787 |
-
|
2788 |
-
<?php
|
2789 |
-
|
2790 |
-
|
2791 |
-
|
2792 |
-
|
2793 |
-
|
2794 |
-
|
2795 |
-
|
2796 |
-
|
2797 |
-
|
2798 |
-
|
2799 |
-
|
2800 |
-
|
2801 |
-
|
2802 |
-
|
2803 |
-
|
2804 |
-
|
2805 |
-
|
2806 |
-
|
2807 |
-
|
2808 |
-
|
2809 |
-
|
2810 |
-
|
2811 |
-
|
2812 |
-
|
2813 |
-
|
2814 |
-
|
2815 |
-
|
2816 |
-
|
2817 |
-
|
2818 |
-
|
2819 |
-
|
2820 |
-
|
2821 |
-
|
2822 |
-
*
|
2823 |
-
*
|
2824 |
-
|
2825 |
-
|
2826 |
-
|
2827 |
-
|
2828 |
-
|
2829 |
-
|
2830 |
-
|
2831 |
-
|
2832 |
-
|
2833 |
-
|
2834 |
-
$
|
2835 |
-
|
2836 |
-
$
|
2837 |
-
|
2838 |
-
|
2839 |
-
|
2840 |
-
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
2846 |
-
|
2847 |
-
|
2848 |
-
|
2849 |
-
|
2850 |
-
|
2851 |
-
|
2852 |
-
|
2853 |
-
|
2854 |
-
|
2855 |
-
|
2856 |
-
|
2857 |
-
|
2858 |
-
|
2859 |
-
$
|
2860 |
-
|
2861 |
-
$
|
2862 |
-
|
2863 |
-
|
2864 |
-
|
2865 |
-
|
2866 |
-
|
2867 |
-
|
2868 |
-
|
2869 |
-
|
2870 |
-
|
2871 |
-
|
2872 |
-
|
2873 |
-
|
2874 |
-
|
2875 |
-
|
2876 |
-
|
2877 |
-
|
2878 |
-
|
2879 |
-
|
2880 |
-
|
2881 |
-
|
2882 |
-
|
2883 |
-
|
2884 |
-
|
2885 |
-
|
2886 |
-
|
2887 |
-
|
2888 |
-
|
2889 |
-
|
2890 |
-
|
2891 |
-
|
2892 |
-
|
2893 |
-
|
2894 |
-
|
2895 |
-
|
2896 |
-
|
2897 |
-
|
2898 |
-
|
2899 |
-
|
2900 |
-
|
2901 |
-
|
2902 |
-
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
-
|
2907 |
-
|
2908 |
-
*
|
2909 |
-
|
2910 |
-
|
2911 |
-
|
2912 |
-
|
2913 |
-
|
2914 |
-
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
2918 |
-
|
2919 |
-
|
2920 |
-
$
|
2921 |
-
|
2922 |
-
$
|
2923 |
-
|
2924 |
-
$
|
2925 |
-
|
2926 |
-
$
|
2927 |
-
|
2928 |
-
|
2929 |
-
|
2930 |
-
|
2931 |
-
|
2932 |
-
|
2933 |
-
|
2934 |
-
|
2935 |
-
|
2936 |
-
|
2937 |
-
|
2938 |
-
|
2939 |
-
|
2940 |
-
|
2941 |
-
|
2942 |
-
|
2943 |
-
|
2944 |
-
|
2945 |
-
|
2946 |
-
|
2947 |
-
|
2948 |
-
|
2949 |
-
|
2950 |
-
|
2951 |
-
|
2952 |
-
|
2953 |
-
|
2954 |
-
|
2955 |
-
|
2956 |
-
|
2957 |
-
|
2958 |
-
|
2959 |
-
|
2960 |
-
|
2961 |
-
|
2962 |
-
|
2963 |
-
|
2964 |
-
|
2965 |
-
|
2966 |
-
'
|
2967 |
-
|
2968 |
-
|
2969 |
-
|
2970 |
-
|
2971 |
-
|
2972 |
-
|
2973 |
-
|
2974 |
-
|
2975 |
-
|
2976 |
-
|
2977 |
-
|
2978 |
-
|
2979 |
-
|
2980 |
-
|
2981 |
-
|
2982 |
-
|
2983 |
-
|
2984 |
-
|
2985 |
-
|
2986 |
-
|
2987 |
-
|
2988 |
-
|
2989 |
-
|
2990 |
-
|
2991 |
-
|
2992 |
-
|
2993 |
-
|
2994 |
-
|
2995 |
-
|
2996 |
-
|
2997 |
-
|
2998 |
-
|
2999 |
-
|
3000 |
-
|
3001 |
-
|
3002 |
-
|
3003 |
-
|
3004 |
-
|
3005 |
-
|
3006 |
-
|
3007 |
-
|
3008 |
-
|
3009 |
-
|
3010 |
-
|
3011 |
-
|
3012 |
-
|
3013 |
-
|
3014 |
-
|
3015 |
-
|
3016 |
-
|
3017 |
-
|
3018 |
-
|
3019 |
-
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
|
3027 |
-
|
3028 |
-
|
3029 |
-
|
3030 |
-
|
3031 |
-
|
3032 |
-
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
3036 |
-
|
3037 |
-
|
3038 |
-
|
3039 |
-
|
3040 |
-
|
3041 |
-
|
3042 |
-
|
3043 |
-
|
3044 |
-
|
3045 |
-
|
3046 |
-
|
3047 |
-
|
3048 |
-
|
3049 |
-
|
3050 |
-
|
3051 |
-
|
3052 |
-
|
3053 |
-
|
3054 |
-
|
3055 |
-
|
3056 |
-
|
3057 |
-
|
3058 |
-
|
3059 |
-
|
3060 |
-
|
3061 |
-
|
3062 |
-
|
3063 |
-
$
|
3064 |
-
|
3065 |
-
|
3066 |
-
|
3067 |
-
|
3068 |
-
|
3069 |
-
|
3070 |
-
|
3071 |
-
|
3072 |
-
|
3073 |
-
|
3074 |
-
|
3075 |
-
|
3076 |
-
|
3077 |
-
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
'
|
3082 |
-
|
3083 |
-
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
3088 |
-
|
3089 |
-
|
3090 |
-
|
3091 |
-
|
3092 |
-
|
3093 |
-
|
3094 |
-
|
3095 |
-
|
3096 |
-
|
3097 |
-
}
|
3098 |
-
|
3099 |
-
|
3100 |
-
|
3101 |
-
|
3102 |
-
|
3103 |
-
|
3104 |
-
|
3105 |
-
|
3106 |
-
|
3107 |
-
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
-
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
|
3121 |
-
|
3122 |
-
|
3123 |
-
|
3124 |
-
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
3134 |
-
|
3135 |
-
|
3136 |
-
|
3137 |
-
|
3138 |
-
|
3139 |
-
|
3140 |
-
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
|
3145 |
-
|
3146 |
-
|
3147 |
-
|
3148 |
-
|
3149 |
-
|
3150 |
-
|
3151 |
-
|
3152 |
-
|
3153 |
-
|
3154 |
-
|
3155 |
-
|
3156 |
-
|
3157 |
-
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
-
|
3162 |
-
|
3163 |
-
|
3164 |
-
|
3165 |
-
|
3166 |
-
|
3167 |
-
|
3168 |
-
|
3169 |
-
|
3170 |
-
|
3171 |
-
|
3172 |
-
|
3173 |
-
|
3174 |
-
|
3175 |
-
|
3176 |
-
|
3177 |
-
|
3178 |
-
|
3179 |
-
|
3180 |
-
|
3181 |
-
|
3182 |
-
|
3183 |
-
|
3184 |
-
|
3185 |
-
|
3186 |
-
|
3187 |
-
|
3188 |
-
|
3189 |
-
|
3190 |
-
|
3191 |
-
|
3192 |
-
|
3193 |
-
|
3194 |
-
$video_params
|
3195 |
-
|
3196 |
-
|
3197 |
-
|
3198 |
-
|
3199 |
-
|
3200 |
-
|
3201 |
-
|
3202 |
-
|
3203 |
-
|
3204 |
-
|
3205 |
-
|
3206 |
-
|
3207 |
-
|
3208 |
-
|
3209 |
-
|
3210 |
-
|
3211 |
-
|
3212 |
-
|
3213 |
-
|
3214 |
-
|
3215 |
-
|
3216 |
-
|
3217 |
-
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
|
3225 |
-
|
3226 |
-
'
|
3227 |
-
|
3228 |
-
|
3229 |
-
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
-
|
3235 |
-
|
3236 |
-
|
3237 |
-
|
3238 |
-
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
-
|
3243 |
-
|
3244 |
-
|
3245 |
-
|
3246 |
-
|
3247 |
-
|
3248 |
-
|
3249 |
-
|
3250 |
-
|
3251 |
-
|
3252 |
-
|
3253 |
-
|
3254 |
-
|
3255 |
-
|
3256 |
-
|
3257 |
-
|
3258 |
-
|
3259 |
-
|
3260 |
-
|
3261 |
-
|
3262 |
-
|
3263 |
-
|
3264 |
-
|
3265 |
-
|
3266 |
-
|
3267 |
-
|
3268 |
-
|
3269 |
-
|
3270 |
-
|
3271 |
-
|
3272 |
-
|
3273 |
-
|
3274 |
-
|
3275 |
-
|
3276 |
-
|
3277 |
-
|
3278 |
-
|
3279 |
-
|
3280 |
-
|
3281 |
-
|
3282 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Premium Media Grid.
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace PremiumAddons\Widgets;
|
7 |
+
|
8 |
+
// Elementor Classes.
|
9 |
+
use Elementor\Modules\DynamicTags\Module as TagsModule;
|
10 |
+
use Elementor\Widget_Base;
|
11 |
+
use Elementor\Utils;
|
12 |
+
use Elementor\Embed;
|
13 |
+
use Elementor\Control_Media;
|
14 |
+
use Elementor\Controls_Manager;
|
15 |
+
use Elementor\Icons_Manager;
|
16 |
+
use Elementor\Repeater;
|
17 |
+
use Elementor\Core\Schemes\Color;
|
18 |
+
use Elementor\Core\Schemes\Typography;
|
19 |
+
use Elementor\Group_Control_Border;
|
20 |
+
use Elementor\Group_Control_Typography;
|
21 |
+
use Elementor\Group_Control_Css_Filter;
|
22 |
+
use Elementor\Group_Control_Text_Shadow;
|
23 |
+
use Elementor\Group_Control_Box_Shadow;
|
24 |
+
use Elementor\Group_Control_Background;
|
25 |
+
use Elementor\Group_Control_Image_Size;
|
26 |
+
|
27 |
+
// PremiumAddons Classes.
|
28 |
+
use PremiumAddons\Includes\Helper_Functions;
|
29 |
+
use PremiumAddons\Includes\Premium_Template_Tags;
|
30 |
+
|
31 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
32 |
+
exit;
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Class Premium_Grid
|
37 |
+
*/
|
38 |
+
class Premium_Grid extends Widget_Base {
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Check for Self Hosted Videos
|
42 |
+
*
|
43 |
+
* @var is_self_hosted
|
44 |
+
*/
|
45 |
+
private static $check_self_hosted = false;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Retrieve Widget Name.
|
49 |
+
*
|
50 |
+
* @since 1.0.0
|
51 |
+
* @access public
|
52 |
+
*/
|
53 |
+
public function get_name() {
|
54 |
+
return 'premium-img-gallery';
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Get Elementor Helper Instance.
|
59 |
+
*
|
60 |
+
* @since 1.0.0
|
61 |
+
* @access public
|
62 |
+
*/
|
63 |
+
public function getTemplateInstance() {
|
64 |
+
$this->template_instance = Premium_Template_Tags::getInstance();
|
65 |
+
return $this->template_instance;
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Retrieve Widget Title.
|
70 |
+
*
|
71 |
+
* @since 1.0.0
|
72 |
+
* @access public
|
73 |
+
*/
|
74 |
+
public function get_title() {
|
75 |
+
return sprintf( '%1$s %2$s', Helper_Functions::get_prefix(), __( 'Media Grid', 'premium-addons-for-elementor' ) );
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Retrieve Widget Icon.
|
80 |
+
*
|
81 |
+
* @since 1.0.0
|
82 |
+
* @access public
|
83 |
+
*
|
84 |
+
* @return string widget icon.
|
85 |
+
*/
|
86 |
+
public function get_icon() {
|
87 |
+
return 'pa-grid-icon';
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Retrieve Widget Dependent CSS.
|
92 |
+
*
|
93 |
+
* @since 1.0.0
|
94 |
+
* @access public
|
95 |
+
*
|
96 |
+
* @return array CSS style handles.
|
97 |
+
*/
|
98 |
+
public function get_style_depends() {
|
99 |
+
return array(
|
100 |
+
'pa-prettyphoto',
|
101 |
+
'premium-addons',
|
102 |
+
);
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Retrieve Widget Dependent JS.
|
107 |
+
*
|
108 |
+
* @since 1.0.0
|
109 |
+
* @access public
|
110 |
+
*
|
111 |
+
* @return array JS script handles.
|
112 |
+
*/
|
113 |
+
public function get_script_depends() {
|
114 |
+
return array(
|
115 |
+
'imagesloaded',
|
116 |
+
'prettyPhoto-js',
|
117 |
+
'isotope-js',
|
118 |
+
'premium-addons',
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* Widget preview refresh button.
|
124 |
+
*
|
125 |
+
* @since 1.0.0
|
126 |
+
* @access public
|
127 |
+
*/
|
128 |
+
public function is_reload_preview_required() {
|
129 |
+
return true;
|
130 |
+
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Retrieve Widget Categories.
|
134 |
+
*
|
135 |
+
* @since 1.5.1
|
136 |
+
* @access public
|
137 |
+
*
|
138 |
+
* @return array Widget categories.
|
139 |
+
*/
|
140 |
+
public function get_categories() {
|
141 |
+
return array( 'premium-elements' );
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Retrieve Widget Keywords.
|
146 |
+
*
|
147 |
+
* @since 1.0.0
|
148 |
+
* @access public
|
149 |
+
*
|
150 |
+
* @return string Widget keywords.
|
151 |
+
*/
|
152 |
+
public function get_keywords() {
|
153 |
+
return array( 'layout', 'gallery', 'image', 'video', 'portfolio', 'visual', 'masonry' );
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Retrieve Widget Support URL.
|
158 |
+
*
|
159 |
+
* @access public
|
160 |
+
*
|
161 |
+
* @return string support URL.
|
162 |
+
*/
|
163 |
+
public function get_custom_help_url() {
|
164 |
+
return 'https://premiumaddons.com/support/';
|
165 |
+
}
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Register Media Grid controls.
|
169 |
+
*
|
170 |
+
* @since 2.1.0
|
171 |
+
* @access protected
|
172 |
+
*/
|
173 |
+
protected function register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
|
174 |
+
|
175 |
+
$this->start_controls_section(
|
176 |
+
'premium_gallery_general',
|
177 |
+
array(
|
178 |
+
'label' => __( 'Layout', 'premium-addons-for-elementor' ),
|
179 |
+
|
180 |
+
)
|
181 |
+
);
|
182 |
+
|
183 |
+
$this->add_control(
|
184 |
+
'premium_gallery_img_size_select',
|
185 |
+
array(
|
186 |
+
'label' => __( 'Grid Layout', 'premium-addons-for-elementor' ),
|
187 |
+
'type' => Controls_Manager::SELECT,
|
188 |
+
'options' => array(
|
189 |
+
'fitRows' => __( 'Even', 'premium-addons-for-elementor' ),
|
190 |
+
'masonry' => __( 'Masonry', 'premium-addons-for-elementor' ),
|
191 |
+
'metro' => __( 'Metro', 'premium-addons-for-elementor' ),
|
192 |
+
),
|
193 |
+
'default' => 'fitRows',
|
194 |
+
)
|
195 |
+
);
|
196 |
+
|
197 |
+
$this->add_responsive_control(
|
198 |
+
'pemium_gallery_even_img_height',
|
199 |
+
array(
|
200 |
+
'label' => __( 'Height', 'premium-addons-for-elementor' ),
|
201 |
+
'label_block' => true,
|
202 |
+
'size_units' => array( 'px', 'em', 'vh' ),
|
203 |
+
'type' => Controls_Manager::SLIDER,
|
204 |
+
'range' => array(
|
205 |
+
'px' => array(
|
206 |
+
'min' => 1,
|
207 |
+
'max' => 500,
|
208 |
+
),
|
209 |
+
'em' => array(
|
210 |
+
'min' => 1,
|
211 |
+
'max' => 50,
|
212 |
+
),
|
213 |
+
),
|
214 |
+
'render_type' => 'template',
|
215 |
+
'condition' => array(
|
216 |
+
'premium_gallery_img_size_select' => 'fitRows',
|
217 |
+
),
|
218 |
+
'selectors' => array(
|
219 |
+
'{{WRAPPER}} .pa-gallery-img-container img' => 'height: {{SIZE}}{{UNIT}}',
|
220 |
+
),
|
221 |
+
)
|
222 |
+
);
|
223 |
+
|
224 |
+
$this->add_control(
|
225 |
+
'premium_gallery_images_fit',
|
226 |
+
array(
|
227 |
+
'label' => __( 'Images Fit', 'premium-addons-for-elementor' ),
|
228 |
+
'type' => Controls_Manager::SELECT,
|
229 |
+
'options' => array(
|
230 |
+
'fill' => __( 'Fill', 'premium-addons-for-elementor' ),
|
231 |
+
'cover' => __( 'Cover', 'premium-addons-for-elementor' ),
|
232 |
+
),
|
233 |
+
'default' => 'fill',
|
234 |
+
'selectors' => array(
|
235 |
+
'{{WRAPPER}} .pa-gallery-img-container img' => 'object-fit: {{VALUE}}',
|
236 |
+
),
|
237 |
+
'condition' => array(
|
238 |
+
'premium_gallery_img_size_select' => array( 'metro', 'fitRows' ),
|
239 |
+
),
|
240 |
+
)
|
241 |
+
);
|
242 |
+
|
243 |
+
$this->add_group_control(
|
244 |
+
Group_Control_Image_Size::get_type(),
|
245 |
+
array(
|
246 |
+
'name' => 'thumbnail',
|
247 |
+
'default' => 'full',
|
248 |
+
)
|
249 |
+
);
|
250 |
+
|
251 |
+
$this->add_responsive_control(
|
252 |
+
'premium_gallery_column_number',
|
253 |
+
array(
|
254 |
+
'label' => __( 'Columns', 'premium-addons-for-elementor' ),
|
255 |
+
'label_block' => true,
|
256 |
+
'type' => Controls_Manager::SELECT,
|
257 |
+
'desktop_default' => '50%',
|
258 |
+
'tablet_default' => '100%',
|
259 |
+
'mobile_default' => '100%',
|
260 |
+
'options' => array(
|
261 |
+
'100%' => __( '1 Column', 'premium-addons-for-elementor' ),
|
262 |
+
'50%' => __( '2 Columns', 'premium-addons-for-elementor' ),
|
263 |
+
'33.330%' => __( '3 Columns', 'premium-addons-for-elementor' ),
|
264 |
+
'25%' => __( '4 Columns', 'premium-addons-for-elementor' ),
|
265 |
+
'20%' => __( '5 Columns', 'premium-addons-for-elementor' ),
|
266 |
+
'16.66%' => __( '6 Columns', 'premium-addons-for-elementor' ),
|
267 |
+
'8.33%' => __( '12 Columns', 'premium-addons-for-elementor' ),
|
268 |
+
),
|
269 |
+
'condition' => array(
|
270 |
+
'premium_gallery_img_size_select!' => 'metro',
|
271 |
+
),
|
272 |
+
'selectors' => array(
|
273 |
+
'{{WRAPPER}} .premium-img-gallery-masonry div.premium-gallery-item, {{WRAPPER}} .premium-img-gallery-fitRows div.premium-gallery-item' => 'width: {{VALUE}};',
|
274 |
+
),
|
275 |
+
'render_type' => 'template',
|
276 |
+
)
|
277 |
+
);
|
278 |
+
|
279 |
+
$this->add_control(
|
280 |
+
'premium_gallery_load_more',
|
281 |
+
array(
|
282 |
+
'label' => __( 'Load More Button', 'premium-addons-for-elementor' ),
|
283 |
+
'description' => __( 'Requires number of images larger than 6', 'premium-addons-for-elementor' ),
|
284 |
+
'type' => Controls_Manager::SWITCHER,
|
285 |
+
)
|
286 |
+
);
|
287 |
+
|
288 |
+
$this->add_control(
|
289 |
+
'premium_gallery_load_more_text',
|
290 |
+
array(
|
291 |
+
'label' => __( 'Button Text', 'premium-addons-for-elementor' ),
|
292 |
+
'type' => Controls_Manager::TEXT,
|
293 |
+
'default' => __( 'Load More', 'premium-addons-for-elementor' ),
|
294 |
+
'dynamic' => array( 'active' => true ),
|
295 |
+
'condition' => array(
|
296 |
+
'premium_gallery_load_more' => 'yes',
|
297 |
+
),
|
298 |
+
)
|
299 |
+
);
|
300 |
+
|
301 |
+
$this->add_control(
|
302 |
+
'premium_gallery_load_minimum',
|
303 |
+
array(
|
304 |
+
'label' => __( 'Initial Number of Images', 'premium-addons-for-elementor' ),
|
305 |
+
'type' => Controls_Manager::NUMBER,
|
306 |
+
'description' => __( 'Set the minimum number of images before showing load more button', 'premium-addons-for-elementor' ),
|
307 |
+
'default' => 6,
|
308 |
+
'condition' => array(
|
309 |
+
'premium_gallery_load_more' => 'yes',
|
310 |
+
),
|
311 |
+
)
|
312 |
+
);
|
313 |
+
|
314 |
+
$this->add_control(
|
315 |
+
'premium_gallery_load_click_number',
|
316 |
+
array(
|
317 |
+
'label' => __( 'Images to Show', 'premium-addons-for-elementor' ),
|
318 |
+
'type' => Controls_Manager::NUMBER,
|
319 |
+
'description' => __( 'Set the minimum number of images to show with each click', 'premium-addons-for-elementor' ),
|
320 |
+
'default' => 6,
|
321 |
+
'condition' => array(
|
322 |
+
'premium_gallery_load_more' => 'yes',
|
323 |
+
),
|
324 |
+
)
|
325 |
+
);
|
326 |
+
|
327 |
+
$this->add_responsive_control(
|
328 |
+
'premium_gallery_load_more_align',
|
329 |
+
array(
|
330 |
+
'label' => __( 'Button Alignment', 'premium-addons-for-elementor' ),
|
331 |
+
'type' => Controls_Manager::CHOOSE,
|
332 |
+
'options' => array(
|
333 |
+
'left' => array(
|
334 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
335 |
+
'icon' => 'fa fa-align-left',
|
336 |
+
),
|
337 |
+
'center' => array(
|
338 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
339 |
+
'icon' => 'fa fa-align-center',
|
340 |
+
),
|
341 |
+
'right' => array(
|
342 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
343 |
+
'icon' => 'fa fa-align-right',
|
344 |
+
),
|
345 |
+
),
|
346 |
+
'default' => 'center',
|
347 |
+
'selectors' => array(
|
348 |
+
'{{WRAPPER}} .premium-gallery-load-more' => 'text-align: {{VALUE}};',
|
349 |
+
),
|
350 |
+
'condition' => array(
|
351 |
+
'premium_gallery_load_more' => 'yes',
|
352 |
+
),
|
353 |
+
)
|
354 |
+
);
|
355 |
+
|
356 |
+
$this->add_control(
|
357 |
+
'gradient_layer',
|
358 |
+
array(
|
359 |
+
'label' => __( 'Gradient Layer', 'premium-addons-for-elementor' ),
|
360 |
+
'description' => __( 'Adds a gradient color on top of the grid container', 'premium-addons-for-elementor' ),
|
361 |
+
'type' => Controls_Manager::SWITCHER,
|
362 |
+
'condition' => array(
|
363 |
+
'premium_gallery_load_more' => 'yes',
|
364 |
+
),
|
365 |
+
)
|
366 |
+
);
|
367 |
+
|
368 |
+
$this->add_group_control(
|
369 |
+
Group_Control_Background::get_type(),
|
370 |
+
array(
|
371 |
+
'name' => 'gradient_color',
|
372 |
+
'types' => array( 'gradient' ),
|
373 |
+
'selector' => '{{WRAPPER}} .premium-gallery-gradient-layer',
|
374 |
+
'condition' => array(
|
375 |
+
'premium_gallery_load_more' => 'yes',
|
376 |
+
'gradient_layer' => 'yes',
|
377 |
+
),
|
378 |
+
)
|
379 |
+
);
|
380 |
+
|
381 |
+
$this->add_responsive_control(
|
382 |
+
'gradient_height',
|
383 |
+
array(
|
384 |
+
'label' => __( 'Height', 'premium-addons-for-elementor' ),
|
385 |
+
'label_block' => true,
|
386 |
+
'size_units' => array( 'px', 'em', '%' ),
|
387 |
+
'type' => Controls_Manager::SLIDER,
|
388 |
+
'range' => array(
|
389 |
+
'px' => array(
|
390 |
+
'min' => 1,
|
391 |
+
'max' => 300,
|
392 |
+
),
|
393 |
+
'em' => array(
|
394 |
+
'min' => 1,
|
395 |
+
'max' => 30,
|
396 |
+
),
|
397 |
+
),
|
398 |
+
'condition' => array(
|
399 |
+
'premium_gallery_load_more' => 'yes',
|
400 |
+
'gradient_layer' => 'yes',
|
401 |
+
),
|
402 |
+
'selectors' => array(
|
403 |
+
'{{WRAPPER}} .premium-gallery-gradient-layer' => 'height: {{SIZE}}{{UNIT}}',
|
404 |
+
),
|
405 |
+
)
|
406 |
+
);
|
407 |
+
|
408 |
+
$this->add_responsive_control(
|
409 |
+
'gradient_position',
|
410 |
+
array(
|
411 |
+
'label' => __( 'Position', 'premium-addons-for-elementor' ),
|
412 |
+
'label_block' => true,
|
413 |
+
'size_units' => array( 'px', 'em', '%' ),
|
414 |
+
'type' => Controls_Manager::SLIDER,
|
415 |
+
'condition' => array(
|
416 |
+
'premium_gallery_load_more' => 'yes',
|
417 |
+
'gradient_layer' => 'yes',
|
418 |
+
),
|
419 |
+
'selectors' => array(
|
420 |
+
'{{WRAPPER}} .premium-gallery-gradient-layer' => 'bottom: {{SIZE}}{{UNIT}}',
|
421 |
+
),
|
422 |
+
)
|
423 |
+
);
|
424 |
+
|
425 |
+
$this->end_controls_section();
|
426 |
+
|
427 |
+
$this->start_controls_section(
|
428 |
+
'premium_gallery_cats',
|
429 |
+
array(
|
430 |
+
'label' => __( 'Categories', 'premium-addons-for-elementor' ),
|
431 |
+
)
|
432 |
+
);
|
433 |
+
|
434 |
+
$this->add_control(
|
435 |
+
'premium_gallery_filter',
|
436 |
+
array(
|
437 |
+
'label' => __( 'Filter Tabs', 'premium-addons-for-elementor' ),
|
438 |
+
'type' => Controls_Manager::SWITCHER,
|
439 |
+
'default' => 'yes',
|
440 |
+
)
|
441 |
+
);
|
442 |
+
|
443 |
+
$condition = array( 'premium_gallery_filter' => 'yes' );
|
444 |
+
|
445 |
+
$this->add_control(
|
446 |
+
'premium_gallery_first_cat_switcher',
|
447 |
+
array(
|
448 |
+
'label' => __( 'First Category', 'premium-addons-for-elementor' ),
|
449 |
+
'type' => Controls_Manager::SWITCHER,
|
450 |
+
'default' => 'yes',
|
451 |
+
'condition' => $condition,
|
452 |
+
)
|
453 |
+
);
|
454 |
+
|
455 |
+
$this->add_control(
|
456 |
+
'premium_gallery_first_cat_label',
|
457 |
+
array(
|
458 |
+
'label' => __( 'First Category Label', 'premium-addons-for-elementor' ),
|
459 |
+
'type' => Controls_Manager::TEXT,
|
460 |
+
'default' => __( 'All', 'premium-addons-for-elementor' ),
|
461 |
+
'dynamic' => array( 'active' => true ),
|
462 |
+
'condition' => array_merge(
|
463 |
+
array(
|
464 |
+
'premium_gallery_first_cat_switcher' => 'yes',
|
465 |
+
),
|
466 |
+
$condition
|
467 |
+
),
|
468 |
+
)
|
469 |
+
);
|
470 |
+
|
471 |
+
$repeater = new REPEATER();
|
472 |
+
|
473 |
+
$repeater->add_control(
|
474 |
+
'premium_gallery_img_cat',
|
475 |
+
array(
|
476 |
+
'label' => __( 'Category', 'premium-addons-for-elementor' ),
|
477 |
+
'type' => Controls_Manager::TEXT,
|
478 |
+
'dynamic' => array( 'active' => true ),
|
479 |
+
)
|
480 |
+
);
|
481 |
+
|
482 |
+
$repeater->add_control(
|
483 |
+
'premium_gallery_img_cat_rotation',
|
484 |
+
array(
|
485 |
+
'label' => __( 'Rotation Degrees', 'premium-addons-for-elementor' ),
|
486 |
+
'type' => Controls_Manager::NUMBER,
|
487 |
+
'description' => __( 'Set rotation value in degrees', 'premium-addons-for-elementor' ),
|
488 |
+
'min' => -180,
|
489 |
+
'max' => 180,
|
490 |
+
'selectors' => array(
|
491 |
+
'{{WRAPPER}} {{CURRENT_ITEM}}' => 'transform: rotate({{VALUE}}deg);',
|
492 |
+
),
|
493 |
+
)
|
494 |
+
);
|
495 |
+
|
496 |
+
$this->add_control(
|
497 |
+
'premium_gallery_cats_content',
|
498 |
+
array(
|
499 |
+
'label' => __( 'Categories', 'premium-addons-for-elementor' ),
|
500 |
+
'type' => Controls_Manager::REPEATER,
|
501 |
+
'default' => array(
|
502 |
+
array(
|
503 |
+
'premium_gallery_img_cat' => 'Category 1',
|
504 |
+
),
|
505 |
+
array(
|
506 |
+
'premium_gallery_img_cat' => 'Category 2',
|
507 |
+
),
|
508 |
+
),
|
509 |
+
'fields' => $repeater->get_controls(),
|
510 |
+
'title_field' => '{{{ premium_gallery_img_cat }}}',
|
511 |
+
'condition' => $condition,
|
512 |
+
)
|
513 |
+
);
|
514 |
+
|
515 |
+
$this->add_control(
|
516 |
+
'premium_gallery_active_cat',
|
517 |
+
array(
|
518 |
+
'label' => __( 'Active Category Index', 'premium-addons-for-elementor' ),
|
519 |
+
'type' => Controls_Manager::NUMBER,
|
520 |
+
'default' => 0,
|
521 |
+
'min' => 0,
|
522 |
+
'condition' => $condition,
|
523 |
+
|
524 |
+
)
|
525 |
+
);
|
526 |
+
|
527 |
+
$this->add_control(
|
528 |
+
'active_cat_notice',
|
529 |
+
array(
|
530 |
+
'raw' => __( 'Please note categories are zero indexed, so if you need the first category to be active, you need to set the value to 0', 'premium-addons-for-elementor' ),
|
531 |
+
'type' => Controls_Manager::RAW_HTML,
|
532 |
+
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
533 |
+
'condition' => $condition,
|
534 |
+
)
|
535 |
+
);
|
536 |
+
|
537 |
+
$this->add_control(
|
538 |
+
'premium_gallery_shuffle',
|
539 |
+
array(
|
540 |
+
'label' => __( 'Shuffle Images on Filter Click', 'premium-addons-for-elementor' ),
|
541 |
+
'type' => Controls_Manager::SWITCHER,
|
542 |
+
'condition' => array_merge(
|
543 |
+
array(
|
544 |
+
'premium_gallery_filter' => 'yes',
|
545 |
+
),
|
546 |
+
$condition
|
547 |
+
),
|
548 |
+
)
|
549 |
+
);
|
550 |
+
|
551 |
+
$this->add_responsive_control(
|
552 |
+
'premium_gallery_filters_align',
|
553 |
+
array(
|
554 |
+
'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
|
555 |
+
'type' => Controls_Manager::CHOOSE,
|
556 |
+
'options' => array(
|
557 |
+
'flex-start' => array(
|
558 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
559 |
+
'icon' => 'fa fa-align-left',
|
560 |
+
),
|
561 |
+
'center' => array(
|
562 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
563 |
+
'icon' => 'fa fa-align-center',
|
564 |
+
),
|
565 |
+
'flex-end' => array(
|
566 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
567 |
+
'icon' => 'fa fa-align-right',
|
568 |
+
),
|
569 |
+
),
|
570 |
+
'default' => 'center',
|
571 |
+
'selectors' => array(
|
572 |
+
'{{WRAPPER}} .premium-img-gallery-filter' => 'justify-content: {{VALUE}}',
|
573 |
+
),
|
574 |
+
'condition' => $condition,
|
575 |
+
)
|
576 |
+
);
|
577 |
+
|
578 |
+
$this->add_control(
|
579 |
+
'url_flag',
|
580 |
+
array(
|
581 |
+
'label' => __( 'URL Flag', 'premium-addons-for-elementor' ),
|
582 |
+
'type' => Controls_Manager::TEXT,
|
583 |
+
'default' => 'cat',
|
584 |
+
'description' => __( 'This is used to link categories from different pages. For example: premiumaddons.com/grid-widget-for-elementor-page-builder?cat=2', 'premium-addons-for-elementor' ),
|
585 |
+
'label_block' => true,
|
586 |
+
'condition' => $condition,
|
587 |
+
)
|
588 |
+
);
|
589 |
+
|
590 |
+
$this->end_controls_section();
|
591 |
+
|
592 |
+
$this->start_controls_section(
|
593 |
+
'premium_gallery_content',
|
594 |
+
array(
|
595 |
+
'label' => __( 'Images/Videos', 'premium-addons-for-elementor' ),
|
596 |
+
)
|
597 |
+
);
|
598 |
+
|
599 |
+
$img_repeater = new REPEATER();
|
600 |
+
|
601 |
+
$img_repeater->add_control(
|
602 |
+
'premium_gallery_img',
|
603 |
+
array(
|
604 |
+
'label' => __( 'Upload Image', 'premium-addons-for-elementor' ),
|
605 |
+
'type' => Controls_Manager::MEDIA,
|
606 |
+
'dynamic' => array( 'active' => true ),
|
607 |
+
'default' => array(
|
608 |
+
'url' => Utils::get_placeholder_image_src(),
|
609 |
+
),
|
610 |
+
)
|
611 |
+
);
|
612 |
+
|
613 |
+
$img_repeater->add_responsive_control(
|
614 |
+
'premium_gallery_image_cell',
|
615 |
+
array(
|
616 |
+
'label' => __( 'Width', 'premium-addons-for-elementor' ),
|
617 |
+
'description' => __( 'Works only when layout set to Metro', 'premium-addons-for-elementor' ),
|
618 |
+
'label_block' => true,
|
619 |
+
'default' => array(
|
620 |
+
'unit' => 'px',
|
621 |
+
'size' => 4,
|
622 |
+
),
|
623 |
+
'type' => Controls_Manager::SLIDER,
|
624 |
+
'range' => array(
|
625 |
+
'px' => array(
|
626 |
+
'min' => 1,
|
627 |
+
'max' => 12,
|
628 |
+
),
|
629 |
+
),
|
630 |
+
'render_type' => 'template',
|
631 |
+
)
|
632 |
+
);
|
633 |
+
|
634 |
+
$img_repeater->add_responsive_control(
|
635 |
+
'premium_gallery_image_vcell',
|
636 |
+
array(
|
637 |
+
'label' => __( 'Height', 'premium-addons-for-elementor' ),
|
638 |
+
'description' => __( 'Works only when layout set to \'Metro\'', 'premium-addons-for-elementor' ),
|
639 |
+
'label_block' => true,
|
640 |
+
'type' => Controls_Manager::SLIDER,
|
641 |
+
'default' => array(
|
642 |
+
'unit' => 'px',
|
643 |
+
'size' => 4,
|
644 |
+
),
|
645 |
+
'range' => array(
|
646 |
+
'px' => array(
|
647 |
+
'min' => 1,
|
648 |
+
'max' => 12,
|
649 |
+
),
|
650 |
+
),
|
651 |
+
'render_type' => 'template',
|
652 |
+
)
|
653 |
+
);
|
654 |
+
|
655 |
+
$img_repeater->add_control(
|
656 |
+
'premium_gallery_video',
|
657 |
+
array(
|
658 |
+
'label' => __( 'Video', 'premium-addons-for-elementor' ),
|
659 |
+
'type' => Controls_Manager::SWITCHER,
|
660 |
+
'return_value' => 'true',
|
661 |
+
)
|
662 |
+
);
|
663 |
+
|
664 |
+
$img_repeater->add_control(
|
665 |
+
'premium_gallery_video_type',
|
666 |
+
array(
|
667 |
+
'label' => __( 'Type', 'premium-addons-for-elementor' ),
|
668 |
+
'type' => Controls_Manager::SELECT,
|
669 |
+
'options' => array(
|
670 |
+
'youtube' => __( 'YouTube', 'premium-addons-for-elementor' ),
|
671 |
+
'vimeo' => __( 'Vimeo', 'premium-addons-for-elementor' ),
|
672 |
+
'hosted' => __( 'Self Hosted', 'premium-addons-for-elementor' ),
|
673 |
+
),
|
674 |
+
'label_block' => true,
|
675 |
+
'default' => 'youtube',
|
676 |
+
'condition' => array(
|
677 |
+
'premium_gallery_video' => 'true',
|
678 |
+
),
|
679 |
+
)
|
680 |
+
);
|
681 |
+
|
682 |
+
$img_repeater->add_control(
|
683 |
+
'premium_gallery_video_url',
|
684 |
+
array(
|
685 |
+
'label' => __( 'Video URL', 'premium-addons-for-elementor' ),
|
686 |
+
'type' => Controls_Manager::TEXT,
|
687 |
+
'label_block' => true,
|
688 |
+
'dynamic' => array(
|
689 |
+
'active' => true,
|
690 |
+
'categories' => array(
|
691 |
+
TagsModule::POST_META_CATEGORY,
|
692 |
+
TagsModule::URL_CATEGORY,
|
693 |
+
),
|
694 |
+
),
|
695 |
+
'condition' => array(
|
696 |
+
'premium_gallery_video' => 'true',
|
697 |
+
'premium_gallery_video_type!' => 'hosted',
|
698 |
+
),
|
699 |
+
)
|
700 |
+
);
|
701 |
+
|
702 |
+
$img_repeater->add_control(
|
703 |
+
'premium_gallery_video_self',
|
704 |
+
array(
|
705 |
+
'label' => __( 'Select Video', 'premium-addons-for-elementor' ),
|
706 |
+
'type' => Controls_Manager::MEDIA,
|
707 |
+
'dynamic' => array(
|
708 |
+
'active' => true,
|
709 |
+
'categories' => array(
|
710 |
+
TagsModule::POST_META_CATEGORY,
|
711 |
+
TagsModule::URL_CATEGORY,
|
712 |
+
),
|
713 |
+
),
|
714 |
+
'media_type' => 'video',
|
715 |
+
'condition' => array(
|
716 |
+
'premium_gallery_video' => 'true',
|
717 |
+
'premium_gallery_video_type' => 'hosted',
|
718 |
+
),
|
719 |
+
)
|
720 |
+
);
|
721 |
+
|
722 |
+
$img_repeater->add_control(
|
723 |
+
'premium_gallery_video_self_url',
|
724 |
+
array(
|
725 |
+
'label' => __( 'Remote Video URL', 'premium-addons-for-elementor' ),
|
726 |
+
'type' => Controls_Manager::TEXT,
|
727 |
+
'dynamic' => array(
|
728 |
+
'active' => true,
|
729 |
+
),
|
730 |
+
'label_block' => true,
|
731 |
+
'condition' => array(
|
732 |
+
'premium_gallery_video' => 'true',
|
733 |
+
'premium_gallery_video_type' => 'hosted',
|
734 |
+
),
|
735 |
+
)
|
736 |
+
);
|
737 |
+
|
738 |
+
$img_repeater->add_control(
|
739 |
+
'premium_gallery_video_controls',
|
740 |
+
array(
|
741 |
+
'label' => __( 'Controls', 'premium-addons-for-elementor' ),
|
742 |
+
'type' => Controls_Manager::SWITCHER,
|
743 |
+
'return_value' => 'true',
|
744 |
+
'default' => 'true',
|
745 |
+
'condition' => array(
|
746 |
+
'premium_gallery_video' => 'true',
|
747 |
+
),
|
748 |
+
)
|
749 |
+
);
|
750 |
+
|
751 |
+
$img_repeater->add_control(
|
752 |
+
'premium_gallery_video_mute',
|
753 |
+
array(
|
754 |
+
'label' => __( 'Mute', 'premium-addons-for-elementor' ),
|
755 |
+
'type' => Controls_Manager::SWITCHER,
|
756 |
+
'return_value' => 'true',
|
757 |
+
'condition' => array(
|
758 |
+
'premium_gallery_video' => 'true',
|
759 |
+
),
|
760 |
+
)
|
761 |
+
);
|
762 |
+
|
763 |
+
$img_repeater->add_control(
|
764 |
+
'premium_gallery_video_loop',
|
765 |
+
array(
|
766 |
+
'label' => __( 'Loop', 'premium-addons-for-elementor' ),
|
767 |
+
'type' => Controls_Manager::SWITCHER,
|
768 |
+
'return_value' => 'true',
|
769 |
+
'condition' => array(
|
770 |
+
'premium_gallery_video' => 'true',
|
771 |
+
),
|
772 |
+
)
|
773 |
+
);
|
774 |
+
|
775 |
+
$img_repeater->add_control(
|
776 |
+
'premmium_gallery_img_info',
|
777 |
+
array(
|
778 |
+
'label' => __( 'Get Title/Description From Media Library', 'premium-addons-for-elementor' ),
|
779 |
+
'type' => Controls_Manager::SWITCHER,
|
780 |
+
)
|
781 |
+
);
|
782 |
+
|
783 |
+
$img_repeater->add_control(
|
784 |
+
'premium_gallery_img_name',
|
785 |
+
array(
|
786 |
+
'label' => __( 'Title', 'premium-addons-for-elementor' ),
|
787 |
+
'type' => Controls_Manager::TEXT,
|
788 |
+
'dynamic' => array( 'active' => true ),
|
789 |
+
'label_block' => true,
|
790 |
+
'condition' => array(
|
791 |
+
'premmium_gallery_img_info!' => 'yes',
|
792 |
+
),
|
793 |
+
)
|
794 |
+
);
|
795 |
+
|
796 |
+
$img_repeater->add_control(
|
797 |
+
'premium_gallery_img_desc',
|
798 |
+
array(
|
799 |
+
'label' => __( 'Description', 'premium-addons-for-elementor' ),
|
800 |
+
'type' => Controls_Manager::TEXTAREA,
|
801 |
+
'dynamic' => array( 'active' => true ),
|
802 |
+
'label_block' => true,
|
803 |
+
'condition' => array(
|
804 |
+
'premmium_gallery_img_info!' => 'yes',
|
805 |
+
),
|
806 |
+
)
|
807 |
+
);
|
808 |
+
|
809 |
+
$img_repeater->add_control(
|
810 |
+
'premium_gallery_img_category',
|
811 |
+
array(
|
812 |
+
'label' => __( 'Category', 'premium-addons-for-elementor' ),
|
813 |
+
'type' => Controls_Manager::TEXT,
|
814 |
+
'description' => __( 'To assign for multiple categories, separate by a comma \',\'', 'premium-addons-for-elementor' ),
|
815 |
+
'dynamic' => array( 'active' => true ),
|
816 |
+
)
|
817 |
+
);
|
818 |
+
|
819 |
+
$img_repeater->add_control(
|
820 |
+
'premium_gallery_img_link_type',
|
821 |
+
array(
|
822 |
+
'label' => __( 'Link Type', 'premium-addons-for-elementor' ),
|
823 |
+
'type' => Controls_Manager::SELECT,
|
824 |
+
'options' => array(
|
825 |
+
'url' => __( 'URL', 'premium-addons-for-elementor' ),
|
826 |
+
'link' => __( 'Existing Page', 'premium-addons-for-elementor' ),
|
827 |
+
),
|
828 |
+
'default' => 'url',
|
829 |
+
'label_block' => true,
|
830 |
+
'condition' => array(
|
831 |
+
'premium_gallery_video!' => 'true',
|
832 |
+
),
|
833 |
+
)
|
834 |
+
);
|
835 |
+
|
836 |
+
$img_repeater->add_control(
|
837 |
+
'premium_gallery_img_link',
|
838 |
+
array(
|
839 |
+
'label' => __( 'Link', 'premium-addons-for-elementor' ),
|
840 |
+
'type' => Controls_Manager::URL,
|
841 |
+
'dynamic' => array( 'active' => true ),
|
842 |
+
'placeholder' => 'https://premiumaddons.com/',
|
843 |
+
'label_block' => true,
|
844 |
+
'condition' => array(
|
845 |
+
'premium_gallery_img_link_type' => 'url',
|
846 |
+
'premium_gallery_video!' => 'true',
|
847 |
+
),
|
848 |
+
)
|
849 |
+
);
|
850 |
+
|
851 |
+
$img_repeater->add_control(
|
852 |
+
'premium_gallery_img_existing',
|
853 |
+
array(
|
854 |
+
'label' => __( 'Existing Page', 'premium-addons-for-elementor' ),
|
855 |
+
'type' => Controls_Manager::SELECT2,
|
856 |
+
'options' => $this->getTemplateInstance()->get_all_posts(),
|
857 |
+
'condition' => array(
|
858 |
+
'premium_gallery_img_link_type' => 'link',
|
859 |
+
),
|
860 |
+
'multiple' => false,
|
861 |
+
'separator' => 'after',
|
862 |
+
'label_block' => true,
|
863 |
+
'condition' => array(
|
864 |
+
'premium_gallery_img_link_type' => 'link',
|
865 |
+
'premium_gallery_video!' => 'true',
|
866 |
+
),
|
867 |
+
)
|
868 |
+
);
|
869 |
+
|
870 |
+
$img_repeater->add_control(
|
871 |
+
'premium_gallery_link_whole',
|
872 |
+
array(
|
873 |
+
'label' => __( 'Whole Image Link', 'premium-addons-for-elementor' ),
|
874 |
+
'type' => Controls_Manager::SWITCHER,
|
875 |
+
'condition' => array(
|
876 |
+
'premium_gallery_video!' => 'true',
|
877 |
+
),
|
878 |
+
)
|
879 |
+
);
|
880 |
+
|
881 |
+
$img_repeater->add_control(
|
882 |
+
'premium_gallery_lightbox_whole',
|
883 |
+
array(
|
884 |
+
'label' => __( 'Whole Image Lightbox', 'premium-addons-for-elementor' ),
|
885 |
+
'type' => Controls_Manager::SWITCHER,
|
886 |
+
'condition' => array(
|
887 |
+
'premium_gallery_video!' => 'true',
|
888 |
+
),
|
889 |
+
)
|
890 |
+
);
|
891 |
+
|
892 |
+
$this->add_control(
|
893 |
+
'premium_gallery_img_content',
|
894 |
+
array(
|
895 |
+
'label' => __( 'Images', 'premium-addons-for-elementor' ),
|
896 |
+
'type' => Controls_Manager::REPEATER,
|
897 |
+
'default' => array(
|
898 |
+
array(
|
899 |
+
'premium_gallery_img_name' => 'Image #1',
|
900 |
+
'premium_gallery_img_category' => 'Category 1',
|
901 |
+
),
|
902 |
+
array(
|
903 |
+
'premium_gallery_img_name' => 'Image #2',
|
904 |
+
'premium_gallery_img_category' => 'Category 2',
|
905 |
+
),
|
906 |
+
),
|
907 |
+
'fields' => $img_repeater->get_controls(),
|
908 |
+
'title_field' => '{{{ "" !== premium_gallery_img_name ? premium_gallery_img_name : "Image" }}} - {{{ "" !== premium_gallery_img_category ? premium_gallery_img_category : "No Categories" }}}',
|
909 |
+
)
|
910 |
+
);
|
911 |
+
|
912 |
+
$this->add_control(
|
913 |
+
'premium_gallery_shuffle_onload',
|
914 |
+
array(
|
915 |
+
'label' => __( 'Shuffle Images on Page Load', 'premium-addons-for-elementor' ),
|
916 |
+
'type' => Controls_Manager::SWITCHER,
|
917 |
+
)
|
918 |
+
);
|
919 |
+
|
920 |
+
$this->add_control(
|
921 |
+
'premium_gallery_yt_thumbnail_size',
|
922 |
+
array(
|
923 |
+
'label' => __( 'Youtube Videos Thumbnail Size', 'premium-addons-for-elementor' ),
|
924 |
+
'type' => Controls_Manager::SELECT,
|
925 |
+
'options' => array(
|
926 |
+
'maxresdefault' => __( 'Maximum Resolution', 'premium-addons-for-elementor' ),
|
927 |
+
'hqdefault' => __( 'High Quality', 'premium-addons-for-elementor' ),
|
928 |
+
'mqdefault' => __( 'Medium Quality', 'premium-addons-for-elementor' ),
|
929 |
+
'sddefault' => __( 'Standard Quality', 'premium-addons-for-elementor' ),
|
930 |
+
),
|
931 |
+
'default' => 'maxresdefault',
|
932 |
+
'label_block' => true,
|
933 |
+
)
|
934 |
+
);
|
935 |
+
|
936 |
+
$this->end_controls_section();
|
937 |
+
|
938 |
+
$this->start_controls_section(
|
939 |
+
'premium_gallery_grid_settings',
|
940 |
+
array(
|
941 |
+
'label' => __( 'Display Options', 'premium-addons-for-elementor' ),
|
942 |
+
|
943 |
+
)
|
944 |
+
);
|
945 |
+
|
946 |
+
$this->add_responsive_control(
|
947 |
+
'premium_gallery_gap',
|
948 |
+
array(
|
949 |
+
'label' => __( 'Image Gap', 'premium-addons-for-elementor' ),
|
950 |
+
'type' => Controls_Manager::SLIDER,
|
951 |
+
'size_units' => array( 'px', '%', 'em' ),
|
952 |
+
'range' => array(
|
953 |
+
'px' => array(
|
954 |
+
'min' => 0,
|
955 |
+
'max' => 200,
|
956 |
+
),
|
957 |
+
),
|
958 |
+
'selectors' => array(
|
959 |
+
'{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}}',
|
960 |
+
),
|
961 |
+
)
|
962 |
+
);
|
963 |
+
|
964 |
+
$this->add_control(
|
965 |
+
'premium_gallery_img_style',
|
966 |
+
array(
|
967 |
+
'label' => __( 'Skin', 'premium-addons-for-elementor' ),
|
968 |
+
'type' => Controls_Manager::SELECT,
|
969 |
+
'description' => __( 'Choose a layout style for the gallery', 'premium-addons-for-elementor' ),
|
970 |
+
'options' => array(
|
971 |
+
'default' => __( 'Style 1', 'premium-addons-for-elementor' ),
|
972 |
+
'style1' => __( 'Style 2', 'premium-addons-for-elementor' ),
|
973 |
+
'style2' => __( 'Style 3', 'premium-addons-for-elementor' ),
|
974 |
+
'style3' => __( 'Style 4', 'premium-addons-for-elementor' ),
|
975 |
+
),
|
976 |
+
'default' => 'default',
|
977 |
+
'separator' => 'before',
|
978 |
+
'label_block' => true,
|
979 |
+
)
|
980 |
+
);
|
981 |
+
|
982 |
+
$this->add_control(
|
983 |
+
'premium_grid_style_notice',
|
984 |
+
array(
|
985 |
+
'raw' => __( 'Style 4 works only with Even / Masonry Layout', 'premium-addons-for-elementor' ),
|
986 |
+
'type' => Controls_Manager::RAW_HTML,
|
987 |
+
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
988 |
+
'condition' => array(
|
989 |
+
'premium_gallery_img_style' => 'style3',
|
990 |
+
'premium_gallery_img_size_select' => 'metro',
|
991 |
+
),
|
992 |
+
)
|
993 |
+
);
|
994 |
+
|
995 |
+
$this->add_responsive_control(
|
996 |
+
'premium_gallery_style1_border_border',
|
997 |
+
array(
|
998 |
+
'label' => __( 'Height', 'premium-addons-for-elementor' ),
|
999 |
+
'type' => Controls_Manager::SLIDER,
|
1000 |
+
'range' => array(
|
1001 |
+
'px' => array(
|
1002 |
+
'min' => 0,
|
1003 |
+
'max' => 700,
|
1004 |
+
),
|
1005 |
+
),
|
1006 |
+
'label_block' => true,
|
1007 |
+
'selectors' => array(
|
1008 |
+
'{{WRAPPER}} .pa-gallery-img.style1 .premium-gallery-caption' => 'bottom: {{SIZE}}px;',
|
1009 |
+
),
|
1010 |
+
'condition' => array(
|
1011 |
+
'premium_gallery_img_style' => 'style1',
|
1012 |
+
),
|
1013 |
+
)
|
1014 |
+
);
|
1015 |
+
|
1016 |
+
$this->add_control(
|
1017 |
+
'premium_gallery_img_effect',
|
1018 |
+
array(
|
1019 |
+
'label' => __( 'Hover Effect', 'premium-addons-for-elementor' ),
|
1020 |
+
'type' => Controls_Manager::SELECT,
|
1021 |
+
'description' => __( 'Choose a hover effect for the image', 'premium-addons-for-elementor' ),
|
1022 |
+
'options' => array(
|
1023 |
+
'none' => __( 'None', 'premium-addons-for-elementor' ),
|
1024 |
+
'zoomin' => __( 'Zoom In', 'premium-addons-for-elementor' ),
|
1025 |
+
'zoomout' => __( 'Zoom Out', 'premium-addons-for-elementor' ),
|
1026 |
+
'scale' => __( 'Scale', 'premium-addons-for-elementor' ),
|
1027 |
+
'gray' => __( 'Grayscale', 'premium-addons-for-elementor' ),
|
1028 |
+
'blur' => __( 'Blur', 'premium-addons-for-elementor' ),
|
1029 |
+
'bright' => __( 'Bright', 'premium-addons-for-elementor' ),
|
1030 |
+
'sepia' => __( 'Sepia', 'premium-addons-for-elementor' ),
|
1031 |
+
'trans' => __( 'Translate', 'premium-addons-for-elementor' ),
|
1032 |
+
),
|
1033 |
+
'default' => 'zoomin',
|
1034 |
+
'label_block' => true,
|
1035 |
+
'separator' => 'after',
|
1036 |
+
)
|
1037 |
+
);
|
1038 |
+
|
1039 |
+
$this->add_control(
|
1040 |
+
'premium_gallery_links_icon',
|
1041 |
+
array(
|
1042 |
+
'label' => __( 'Links Icon', 'premium-addons-for-elementor' ),
|
1043 |
+
'type' => Controls_Manager::ICONS,
|
1044 |
+
'default' => array(
|
1045 |
+
'library' => 'fa-solid',
|
1046 |
+
'value' => 'fas fa-link',
|
1047 |
+
),
|
1048 |
+
)
|
1049 |
+
);
|
1050 |
+
|
1051 |
+
$this->add_control(
|
1052 |
+
'premium_gallery_videos_heading',
|
1053 |
+
array(
|
1054 |
+
'label' => __( 'Videos', 'premium-addons-for-elementor' ),
|
1055 |
+
'type' => Controls_Manager::HEADING,
|
1056 |
+
'separator' => 'before',
|
1057 |
+
)
|
1058 |
+
);
|
1059 |
+
|
1060 |
+
$this->add_control(
|
1061 |
+
'premium_gallery_video_icon',
|
1062 |
+
array(
|
1063 |
+
'label' => __( 'Always Show Play Icon', 'premium-addons-for-elementor' ),
|
1064 |
+
'type' => Controls_Manager::SWITCHER,
|
1065 |
+
'return_value' => 'true',
|
1066 |
+
'default' => 'true',
|
1067 |
+
'condition' => array(
|
1068 |
+
'premium_gallery_img_style!' => 'style2',
|
1069 |
+
),
|
1070 |
+
|
1071 |
+
)
|
1072 |
+
);
|
1073 |
+
|
1074 |
+
$this->add_control(
|
1075 |
+
'premium_gallery_videos_icon',
|
1076 |
+
array(
|
1077 |
+
'label' => __( 'Videos Play Icon', 'premium-addons-for-elementor' ),
|
1078 |
+
'type' => Controls_Manager::ICONS,
|
1079 |
+
'default' => array(
|
1080 |
+
'library' => 'fa-solid',
|
1081 |
+
'value' => 'fas fa-play',
|
1082 |
+
),
|
1083 |
+
)
|
1084 |
+
);
|
1085 |
+
|
1086 |
+
$this->add_control(
|
1087 |
+
'premium_gallery_rtl_mode',
|
1088 |
+
array(
|
1089 |
+
'label' => __( 'RTL Mode', 'premium-addons-for-elementor' ),
|
1090 |
+
'description' => __( 'This option moves the origin of the grid to the right side. Useful for RTL direction sites', 'premium-addons-for-elementor' ),
|
1091 |
+
'type' => Controls_Manager::SWITCHER,
|
1092 |
+
'separator' => 'before',
|
1093 |
+
)
|
1094 |
+
);
|
1095 |
+
|
1096 |
+
$this->add_responsive_control(
|
1097 |
+
'premium_gallery_content_align',
|
1098 |
+
array(
|
1099 |
+
'label' => __( 'Content Alignment', 'premium-addons-for-elementor' ),
|
1100 |
+
'type' => Controls_Manager::CHOOSE,
|
1101 |
+
'options' => array(
|
1102 |
+
'left' => array(
|
1103 |
+
'title' => __( 'Left', 'premium-addons-for-elementor' ),
|
1104 |
+
'icon' => 'fa fa-align-left',
|
1105 |
+
),
|
1106 |
+
'center' => array(
|
1107 |
+
'title' => __( 'Center', 'premium-addons-for-elementor' ),
|
1108 |
+
'icon' => 'fa fa-align-center',
|
1109 |
+
),
|
1110 |
+
'right' => array(
|
1111 |
+
'title' => __( 'Right', 'premium-addons-for-elementor' ),
|
1112 |
+
'icon' => 'fa fa-align-right',
|
1113 |
+
),
|
1114 |
+
),
|
1115 |
+
'default' => 'center',
|
1116 |
+
'separator' => 'before',
|
1117 |
+
'selectors' => array(
|
1118 |
+
'{{WRAPPER}} .premium-gallery-caption' => 'text-align: {{VALUE}};',
|
1119 |
+
),
|
1120 |
+
)
|
1121 |
+
);
|
1122 |
+
|
1123 |
+
$this->end_controls_section();
|
1124 |
+
|
1125 |
+
$this->start_controls_section(
|
1126 |
+
'premium_gallery_lightbox_section',
|
1127 |
+
array(
|
1128 |
+
'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
|
1129 |
+
)
|
1130 |
+
);
|
1131 |
+
|
1132 |
+
$this->add_control(
|
1133 |
+
'premium_gallery_light_box',
|
1134 |
+
array(
|
1135 |
+
'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
|
1136 |
+
'type' => Controls_Manager::SWITCHER,
|
1137 |
+
'default' => 'yes',
|
1138 |
+
'separator' => 'before',
|
1139 |
+
)
|
1140 |
+
);
|
1141 |
+
|
1142 |
+
$this->add_control(
|
1143 |
+
'premium_gallery_lightbox_type',
|
1144 |
+
array(
|
1145 |
+
'label' => __( 'Lightbox Style', 'premium-addons-for-elementor' ),
|
1146 |
+
'type' => Controls_Manager::SELECT,
|
1147 |
+
'default' => 'default',
|
1148 |
+
'options' => array(
|
1149 |
+
'default' => __( 'PrettyPhoto', 'premium-addons-for-elementor' ),
|
1150 |
+
'yes' => __( 'Elementor', 'premium-addons-for-elementor' ),
|
1151 |
+
'no' => __( 'Other Lightbox Plugin', 'premium-addons-for-elementor' ),
|
1152 |
+
),
|
1153 |
+
'condition' => array(
|
1154 |
+
'premium_gallery_light_box' => 'yes',
|
1155 |
+
),
|
1156 |
+
)
|
1157 |
+
);
|
1158 |
+
|
1159 |
+
$this->add_control(
|
1160 |
+
'lightbox_show_title',
|
1161 |
+
array(
|
1162 |
+
'label' => __( 'Show Image Title', 'premium-addons-for-elementor' ),
|
1163 |
+
'type' => Controls_Manager::SWITCHER,
|
1164 |
+
'default' => 'yes',
|
1165 |
+
'condition' => array(
|
1166 |
+
'premium_gallery_light_box' => 'yes',
|
1167 |
+
'premium_gallery_lightbox_type' => 'yes',
|
1168 |
+
),
|
1169 |
+
)
|
1170 |
+
);
|
1171 |
+
|
1172 |
+
$this->add_control(
|
1173 |
+
'premium_gallery_lightbox_doc',
|
1174 |
+
array(
|
1175 |
+
'raw' => __( 'Please note Elementor lightbox style is always applied on videos.', 'premium-addons-for-elementor' ),
|
1176 |
+
'type' => Controls_Manager::RAW_HTML,
|
1177 |
+
'content_classes' => 'editor-pa-doc',
|
1178 |
+
)
|
1179 |
+
);
|
1180 |
+
|
1181 |
+
$this->add_control(
|
1182 |
+
'premium_gallery_lightbox_theme',
|
1183 |
+
array(
|
1184 |
+
'label' => __( 'Lightbox Theme', 'premium-addons-for-elementor' ),
|
1185 |
+
'type' => Controls_Manager::SELECT,
|
1186 |
+
'options' => array(
|
1187 |
+
'pp_default' => __( 'Default', 'premium-addons-for-elementor' ),
|
1188 |
+
'light_rounded' => __( 'Light Rounded', 'premium-addons-for-elementor' ),
|
1189 |
+
'dark_rounded' => __( 'Dark Rounded', 'premium-addons-for-elementor' ),
|
1190 |
+
'light_square' => __( 'Light Square', 'premium-addons-for-elementor' ),
|
1191 |
+
'dark_square' => __( 'Dark Square', 'premium-addons-for-elementor' ),
|
1192 |
+
'facebook' => __( 'Facebook', 'premium-addons-for-elementor' ),
|
1193 |
+
),
|
1194 |
+
'default' => 'pp_default',
|
1195 |
+
'condition' => array(
|
1196 |
+
'premium_gallery_light_box' => 'yes',
|
1197 |
+
'premium_gallery_lightbox_type' => 'default',
|
1198 |
+
),
|
1199 |
+
)
|
1200 |
+
);
|
1201 |
+
|
1202 |
+
$this->add_control(
|
1203 |
+
'premium_gallery_overlay_gallery',
|
1204 |
+
array(
|
1205 |
+
'label' => __( 'Overlay Gallery Images', 'premium-addons-for-elementor' ),
|
1206 |
+
'type' => Controls_Manager::SWITCHER,
|
1207 |
+
'condition' => array(
|
1208 |
+
'premium_gallery_light_box' => 'yes',
|
1209 |
+
'premium_gallery_lightbox_type' => 'default',
|
1210 |
+
),
|
1211 |
+
)
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
$this->add_control(
|
1215 |
+
'premium_gallery_lightbox_icon',
|
1216 |
+
array(
|
1217 |
+
'label' => __( 'Lightbox Icon', 'premium-addons-for-elementor' ),
|
1218 |
+
'type' => Controls_Manager::ICONS,
|
1219 |
+
'default' => array(
|
1220 |
+
'library' => 'fa-solid',
|
1221 |
+
'value' => 'fas fa-search',
|
1222 |
+
),
|
1223 |
+
'condition' => array(
|
1224 |
+
'premium_gallery_light_box' => 'yes',
|
1225 |
+
),
|
1226 |
+
)
|
1227 |
+
);
|
1228 |
+
|
1229 |
+
$this->end_controls_section();
|
1230 |
+
|
1231 |
+
$this->start_controls_section(
|
1232 |
+
'premium_gallery_responsive_section',
|
1233 |
+
array(
|
1234 |
+
'label' => __( 'Responsive', 'premium-addons-for-elementor' ),
|
1235 |
+
)
|
1236 |
+
);
|
1237 |
+
|
1238 |
+
$this->add_control(
|
1239 |
+
'premium_gallery_responsive_switcher',
|
1240 |
+
array(
|
1241 |
+
'label' => __( 'Responsive Controls', 'premium-addons-for-elementor' ),
|
1242 |
+
'type' => Controls_Manager::SWITCHER,
|
1243 |
+
'description' => __( 'If the content text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor' ),
|
1244 |
+
)
|
1245 |
+
);
|
1246 |
+
|
1247 |
+
$this->add_control(
|
1248 |
+
'premium_gallery_min_range',
|
1249 |
+
array(
|
1250 |
+
'label' => __( 'Minimum Size', 'premium-addons-for-elementor' ),
|
1251 |
+
'type' => Controls_Manager::NUMBER,
|
1252 |
+
'description' => __( 'Note: minimum size for extra small screens is 1px.', 'premium-addons-for-elementor' ),
|
1253 |
+
'default' => 1,
|
1254 |
+
'condition' => array(
|
1255 |
+
'premium_gallery_responsive_switcher' => 'yes',
|
1256 |
+
),
|
1257 |
+
)
|
1258 |
+
);
|
1259 |
+
|
1260 |
+
$this->add_control(
|
1261 |
+
'premium_gallery_max_range',
|
1262 |
+
array(
|
1263 |
+
'label' => __( 'Maximum Size', 'premium-addons-for-elementor' ),
|
1264 |
+
'type' => Controls_Manager::NUMBER,
|
1265 |
+
'description' => __( 'Note: maximum size for extra small screens is 767px.', 'premium-addons-for-elementor' ),
|
1266 |
+
'default' => 767,
|
1267 |
+
'condition' => array(
|
1268 |
+
'premium_gallery_responsive_switcher' => 'yes',
|
1269 |
+
),
|
1270 |
+
)
|
1271 |
+
);
|
1272 |
+
|
1273 |
+
$this->end_controls_section();
|
1274 |
+
|
1275 |
+
$this->start_controls_section(
|
1276 |
+
'section_pa_docs',
|
1277 |
+
array(
|
1278 |
+
'label' => __( 'Helpful Documentations', 'premium-addons-for-elementor' ),
|
1279 |
+
)
|
1280 |
+
);
|
1281 |
+
|
1282 |
+
$docs = array(
|
1283 |
+
'https://premiumaddons.com/docs/grid-widget-tutorial' => __( 'Getting started »', 'premium-addons-for-elementor' ),
|
1284 |
+
'https://premiumaddons.com/docs/how-to-assign-an-image-to-multiple-categories' => __( 'How to assign a grid item to multiple categories »', 'premium-addons-for-elementor' ),
|
1285 |
+
'https://premiumaddons.com/docs/how-to-link-categories-in-elementor-gallery-widget/' => __( 'How To Link Categories In Media Grid Widget »', 'premium-addons-for-elementor' ),
|
1286 |
+
'https://premiumaddons.com/docs/how-to-open-a-popup-lightbox-through-a-grid-image' => __( 'How to open an Elementor popup/lightbox using a grid item »', 'premium-addons-for-elementor' ),
|
1287 |
+
'https://premiumaddons.com/docs/how-to-solve-media-grid-and-tabs-widgets-conflict/' => __( 'How to Solve Media Grid and Tabs Widgets Conflict »', 'premium-addons-for-elementor' ),
|
1288 |
+
);
|
1289 |
+
|
1290 |
+
$doc_index = 1;
|
1291 |
+
foreach ( $docs as $url => $title ) {
|
1292 |
+
|
1293 |
+
$doc_url = Helper_Functions::get_campaign_link( $url, 'editor-page', 'wp-editor', 'get-support' );
|
1294 |
+
|
1295 |
+
$this->add_control(
|
1296 |
+
'doc_' . $doc_index,
|
1297 |
+
array(
|
1298 |
+
'type' => Controls_Manager::RAW_HTML,
|
1299 |
+
'raw' => sprintf( '<a href="%s" target="_blank">%s</a>', $doc_url, $title ),
|
1300 |
+
'content_classes' => 'editor-pa-doc',
|
1301 |
+
)
|
1302 |
+
);
|
1303 |
+
|
1304 |
+
$doc_index++;
|
1305 |
+
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
$this->end_controls_section();
|
1309 |
+
|
1310 |
+
$this->start_controls_section(
|
1311 |
+
'premium_gallery_general_style',
|
1312 |
+
array(
|
1313 |
+
'label' => __( 'General', 'premium-addons-for-elementor' ),
|
1314 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1315 |
+
)
|
1316 |
+
);
|
1317 |
+
|
1318 |
+
$this->add_group_control(
|
1319 |
+
Group_Control_Background::get_type(),
|
1320 |
+
array(
|
1321 |
+
'name' => 'premium_gallery_general_background',
|
1322 |
+
'types' => array( 'classic', 'gradient' ),
|
1323 |
+
'selector' => '{{WRAPPER}} .premium-img-gallery',
|
1324 |
+
)
|
1325 |
+
);
|
1326 |
+
|
1327 |
+
$this->add_group_control(
|
1328 |
+
Group_Control_Border::get_type(),
|
1329 |
+
array(
|
1330 |
+
'name' => 'premium_gallery_general_border',
|
1331 |
+
'selector' => '{{WRAPPER}} .premium-img-gallery',
|
1332 |
+
)
|
1333 |
+
);
|
1334 |
+
|
1335 |
+
$this->add_control(
|
1336 |
+
'premium_gallery_general_border_radius',
|
1337 |
+
array(
|
1338 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1339 |
+
'type' => Controls_Manager::SLIDER,
|
1340 |
+
'size_units' => array( 'px', '%', 'em' ),
|
1341 |
+
'selectors' => array(
|
1342 |
+
'{{WRAPPER}} .premium-img-gallery' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1343 |
+
),
|
1344 |
+
)
|
1345 |
+
);
|
1346 |
+
|
1347 |
+
$this->add_group_control(
|
1348 |
+
Group_Control_Box_Shadow::get_type(),
|
1349 |
+
array(
|
1350 |
+
'name' => 'premium_gallery_general_box_shadow',
|
1351 |
+
'selector' => '{{WRAPPER}} .premium-img-gallery',
|
1352 |
+
)
|
1353 |
+
);
|
1354 |
+
|
1355 |
+
$this->add_responsive_control(
|
1356 |
+
'premium_gallery_general_margin',
|
1357 |
+
array(
|
1358 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
1359 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1360 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1361 |
+
'selectors' => array(
|
1362 |
+
'{{WRAPPER}} .premium-img-gallery' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1363 |
+
),
|
1364 |
+
)
|
1365 |
+
);
|
1366 |
+
|
1367 |
+
$this->add_responsive_control(
|
1368 |
+
'premium_gallery_general_padding',
|
1369 |
+
array(
|
1370 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
1371 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1372 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1373 |
+
'selectors' => array(
|
1374 |
+
'{{WRAPPER}} .premium-img-gallery' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1375 |
+
),
|
1376 |
+
)
|
1377 |
+
);
|
1378 |
+
|
1379 |
+
$this->end_controls_section();
|
1380 |
+
|
1381 |
+
$this->start_controls_section(
|
1382 |
+
'premium_gallery_img_style_section',
|
1383 |
+
array(
|
1384 |
+
'label' => __( 'Image', 'premium-addons-for-elementor' ),
|
1385 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1386 |
+
)
|
1387 |
+
);
|
1388 |
+
|
1389 |
+
$this->add_control(
|
1390 |
+
'premium_gallery_icons_style_overlay',
|
1391 |
+
array(
|
1392 |
+
'label' => __( 'Hover Overlay Color', 'premium-addons-for-elementor' ),
|
1393 |
+
'type' => Controls_Manager::COLOR,
|
1394 |
+
'selectors' => array(
|
1395 |
+
'{{WRAPPER}} .pa-gallery-img:not(.style2):hover .pa-gallery-icons-wrapper, {{WRAPPER}} .pa-gallery-img .pa-gallery-icons-caption-container, {{WRAPPER}} .pa-gallery-img:hover .pa-gallery-icons-caption-container' => 'background-color: {{VALUE}};',
|
1396 |
+
),
|
1397 |
+
)
|
1398 |
+
);
|
1399 |
+
|
1400 |
+
$this->add_group_control(
|
1401 |
+
Group_Control_Border::get_type(),
|
1402 |
+
array(
|
1403 |
+
'name' => 'premium_gallery_img_border',
|
1404 |
+
'selector' => '{{WRAPPER}} .pa-gallery-img-container',
|
1405 |
+
)
|
1406 |
+
);
|
1407 |
+
|
1408 |
+
$this->add_control(
|
1409 |
+
'premium_gallery_img_border_radius',
|
1410 |
+
array(
|
1411 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1412 |
+
'type' => Controls_Manager::SLIDER,
|
1413 |
+
'size_units' => array( 'px', '%', 'em' ),
|
1414 |
+
'selectors' => array(
|
1415 |
+
'{{WRAPPER}} .pa-gallery-img-container' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1416 |
+
),
|
1417 |
+
)
|
1418 |
+
);
|
1419 |
+
|
1420 |
+
$this->add_group_control(
|
1421 |
+
Group_Control_Box_Shadow::get_type(),
|
1422 |
+
array(
|
1423 |
+
'label' => __( 'Shadow', 'premium-addons-for-elementor' ),
|
1424 |
+
'name' => 'premium_gallery_img_box_shadow',
|
1425 |
+
'selector' => '{{WRAPPER}} .pa-gallery-img-container',
|
1426 |
+
'condition' => array(
|
1427 |
+
'premium_gallery_img_style!' => 'style1',
|
1428 |
+
),
|
1429 |
+
)
|
1430 |
+
);
|
1431 |
+
|
1432 |
+
$this->add_group_control(
|
1433 |
+
Group_Control_Css_Filter::get_type(),
|
1434 |
+
array(
|
1435 |
+
'name' => 'css_filters',
|
1436 |
+
'selector' => '{{WRAPPER}} .pa-gallery-img-container img',
|
1437 |
+
)
|
1438 |
+
);
|
1439 |
+
|
1440 |
+
$this->add_group_control(
|
1441 |
+
Group_Control_Css_Filter::get_type(),
|
1442 |
+
array(
|
1443 |
+
'label' => __( 'Hover CSS Filters', 'premium-addons-for-elementor' ),
|
1444 |
+
'name' => 'hover_css_filters',
|
1445 |
+
'selector' => '{{WRAPPER}} .premium-gallery-item:hover img',
|
1446 |
+
)
|
1447 |
+
);
|
1448 |
+
|
1449 |
+
$this->add_responsive_control(
|
1450 |
+
'premium_gallery_img_margin',
|
1451 |
+
array(
|
1452 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
1453 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1454 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1455 |
+
'selectors' => array(
|
1456 |
+
'{{WRAPPER}} .pa-gallery-img-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1457 |
+
),
|
1458 |
+
)
|
1459 |
+
);
|
1460 |
+
|
1461 |
+
$this->add_responsive_control(
|
1462 |
+
'premium_gallery_img_padding',
|
1463 |
+
array(
|
1464 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
1465 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1466 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1467 |
+
'selectors' => array(
|
1468 |
+
'{{WRAPPER}} .pa-gallery-img-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1469 |
+
),
|
1470 |
+
)
|
1471 |
+
);
|
1472 |
+
|
1473 |
+
$this->end_controls_section();
|
1474 |
+
|
1475 |
+
$this->start_controls_section(
|
1476 |
+
'premium_gallery_content_style',
|
1477 |
+
array(
|
1478 |
+
'label' => __( 'Title / Description', 'premium-addons-for-elementor' ),
|
1479 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1480 |
+
)
|
1481 |
+
);
|
1482 |
+
|
1483 |
+
$this->add_control(
|
1484 |
+
'premium_gallery_title_heading',
|
1485 |
+
array(
|
1486 |
+
'label' => __( 'Title', 'premium-addons-for-elementor' ),
|
1487 |
+
'type' => Controls_Manager::HEADING,
|
1488 |
+
)
|
1489 |
+
);
|
1490 |
+
|
1491 |
+
$this->add_control(
|
1492 |
+
'premium_gallery_title_color',
|
1493 |
+
array(
|
1494 |
+
'label' => __( 'Color', 'premium-addons-for-elementor' ),
|
1495 |
+
'type' => Controls_Manager::COLOR,
|
1496 |
+
'scheme' => array(
|
1497 |
+
'type' => Color::get_type(),
|
1498 |
+
'value' => Color::COLOR_2,
|
1499 |
+
),
|
1500 |
+
'selectors' => array(
|
1501 |
+
'{{WRAPPER}} .premium-gallery-img-name, {{WRAPPER}} .premium-gallery-img-name a' => 'color: {{VALUE}};',
|
1502 |
+
),
|
1503 |
+
)
|
1504 |
+
);
|
1505 |
+
|
1506 |
+
$this->add_group_control(
|
1507 |
+
Group_Control_Typography::get_type(),
|
1508 |
+
array(
|
1509 |
+
'name' => 'premium_gallery_title_typo',
|
1510 |
+
'scheme' => Typography::TYPOGRAPHY_1,
|
1511 |
+
'selector' => '{{WRAPPER}} .premium-gallery-img-name, {{WRAPPER}} .premium-gallery-img-name a',
|
1512 |
+
)
|
1513 |
+
);
|
1514 |
+
|
1515 |
+
$this->add_control(
|
1516 |
+
'premium_gallery_description_heading',
|
1517 |
+
array(
|
1518 |
+
'label' => __( 'Description', 'premium-addons-for-elementor' ),
|
1519 |
+
'type' => Controls_Manager::HEADING,
|
1520 |
+
'separator' => 'before',
|
1521 |
+
)
|
1522 |
+
);
|
1523 |
+
|
1524 |
+
$this->add_control(
|
1525 |
+
'premium_gallery_description_color',
|
1526 |
+
array(
|
1527 |
+
'label' => __( 'Color', 'premium-addons-for-elementor' ),
|
1528 |
+
'type' => Controls_Manager::COLOR,
|
1529 |
+
'scheme' => array(
|
1530 |
+
'type' => Color::get_type(),
|
1531 |
+
'value' => Color::COLOR_3,
|
1532 |
+
),
|
1533 |
+
'selectors' => array(
|
1534 |
+
'{{WRAPPER}} .premium-gallery-img-desc, {{WRAPPER}} .premium-gallery-img-desc a' => 'color: {{VALUE}};',
|
1535 |
+
),
|
1536 |
+
)
|
1537 |
+
);
|
1538 |
+
|
1539 |
+
$this->add_group_control(
|
1540 |
+
Group_Control_Typography::get_type(),
|
1541 |
+
array(
|
1542 |
+
'name' => 'premium_gallery_description_typo',
|
1543 |
+
'scheme' => Typography::TYPOGRAPHY_1,
|
1544 |
+
'selector' => '{{WRAPPER}} .premium-gallery-img-desc, {{WRAPPER}} .premium-gallery-img-desc a',
|
1545 |
+
)
|
1546 |
+
);
|
1547 |
+
|
1548 |
+
$this->add_group_control(
|
1549 |
+
Group_Control_Background::get_type(),
|
1550 |
+
array(
|
1551 |
+
'name' => 'premium_gallery_content_background',
|
1552 |
+
'types' => array( 'classic', 'gradient' ),
|
1553 |
+
'selector' => '{{WRAPPER}} .premium-gallery-caption',
|
1554 |
+
'separator' => 'before',
|
1555 |
+
)
|
1556 |
+
);
|
1557 |
+
|
1558 |
+
$this->add_group_control(
|
1559 |
+
Group_Control_Border::get_type(),
|
1560 |
+
array(
|
1561 |
+
'name' => 'premium_gallery_content_border',
|
1562 |
+
'selector' => '{{WRAPPER}} .premium-gallery-caption',
|
1563 |
+
)
|
1564 |
+
);
|
1565 |
+
|
1566 |
+
$this->add_control(
|
1567 |
+
'premium_gallery_content_border_radius',
|
1568 |
+
array(
|
1569 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1570 |
+
'type' => Controls_Manager::SLIDER,
|
1571 |
+
'size_units' => array( 'px', '%', 'em' ),
|
1572 |
+
'selectors' => array(
|
1573 |
+
'{{WRAPPER}} .premium-gallery-caption' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1574 |
+
),
|
1575 |
+
)
|
1576 |
+
);
|
1577 |
+
|
1578 |
+
$this->add_group_control(
|
1579 |
+
Group_Control_Text_Shadow::get_type(),
|
1580 |
+
array(
|
1581 |
+
'label' => __( 'Shadow', 'premium-addons-for-elementor' ),
|
1582 |
+
'name' => 'premium_gallery_content_shadow',
|
1583 |
+
'selector' => '{{WRAPPER}} .premium-gallery-caption',
|
1584 |
+
)
|
1585 |
+
);
|
1586 |
+
|
1587 |
+
$this->add_group_control(
|
1588 |
+
Group_Control_Box_Shadow::get_type(),
|
1589 |
+
array(
|
1590 |
+
'name' => 'premium_gallery_content_box_shadow',
|
1591 |
+
'selector' => '{{WRAPPER}} .premium-gallery-caption',
|
1592 |
+
)
|
1593 |
+
);
|
1594 |
+
|
1595 |
+
$this->add_responsive_control(
|
1596 |
+
'premium_gallery_content_margin',
|
1597 |
+
array(
|
1598 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
1599 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1600 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1601 |
+
'selectors' => array(
|
1602 |
+
'{{WRAPPER}} .premium-gallery-caption' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1603 |
+
),
|
1604 |
+
)
|
1605 |
+
);
|
1606 |
+
|
1607 |
+
$this->add_responsive_control(
|
1608 |
+
'premium_gallery_content_padding',
|
1609 |
+
array(
|
1610 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
1611 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1612 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1613 |
+
'selectors' => array(
|
1614 |
+
'{{WRAPPER}} .premium-gallery-caption' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
1615 |
+
),
|
1616 |
+
)
|
1617 |
+
);
|
1618 |
+
|
1619 |
+
$this->end_controls_section();
|
1620 |
+
|
1621 |
+
$this->start_controls_section(
|
1622 |
+
'premium_gallery_icons_style',
|
1623 |
+
array(
|
1624 |
+
'label' => __( 'Icons', 'premium-addons-for-elementor' ),
|
1625 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1626 |
+
)
|
1627 |
+
);
|
1628 |
+
|
1629 |
+
$this->add_responsive_control(
|
1630 |
+
'premium_gallery_style1_icons_position',
|
1631 |
+
array(
|
1632 |
+
'label' => __( 'Position', 'premium-addons-for-elementor' ),
|
1633 |
+
'type' => Controls_Manager::SLIDER,
|
1634 |
+
'size_units' => array( 'px', '%', 'em' ),
|
1635 |
+
'range' => array(
|
1636 |
+
'px' => array(
|
1637 |
+
'min' => 0,
|
1638 |
+
'max' => 300,
|
1639 |
+
),
|
1640 |
+
),
|
1641 |
+
'label_block' => true,
|
1642 |
+
'selectors' => array(
|
1643 |
+
'{{WRAPPER}} .pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container' => 'top: {{SIZE}}{{UNIT}};',
|
1644 |
+
),
|
1645 |
+
'condition' => array(
|
1646 |
+
'premium_gallery_img_style!' => 'style2',
|
1647 |
+
),
|
1648 |
+
)
|
1649 |
+
);
|
1650 |
+
|
1651 |
+
$this->add_responsive_control(
|
1652 |
+
'premium_gallery_icons_size',
|
1653 |
+
array(
|
1654 |
+
'label' => __( 'Size', 'premium-addons-for-elementor' ),
|
1655 |
+
'type' => Controls_Manager::SLIDER,
|
1656 |
+
'size_units' => array( 'px', 'em' ),
|
1657 |
+
'range' => array(
|
1658 |
+
'px' => array(
|
1659 |
+
'min' => 1,
|
1660 |
+
'max' => 50,
|
1661 |
+
),
|
1662 |
+
),
|
1663 |
+
'label_block' => true,
|
1664 |
+
'selectors' => array(
|
1665 |
+
'{{WRAPPER}} .pa-gallery-icons-inner-container i, {{WRAPPER}} .pa-gallery-icons-caption-cell i' => 'font-size: {{SIZE}}{{UNIT}}',
|
1666 |
+
'{{WRAPPER}} .pa-gallery-icons-inner-container svg, {{WRAPPER}} .pa-gallery-icons-caption-cell svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}}',
|
1667 |
+
),
|
1668 |
+
)
|
1669 |
+
);
|
1670 |
+
|
1671 |
+
$this->start_controls_tabs( 'premium_gallery_icons_style_tabs' );
|
1672 |
+
|
1673 |
+
$this->start_controls_tab(
|
1674 |
+
'premium_gallery_icons_style_normal',
|
1675 |
+
array(
|
1676 |
+
'label' => __( 'Normal', 'premium-addons-for-elementor' ),
|
1677 |
+
)
|
1678 |
+
);
|
1679 |
+
|
1680 |
+
$this->add_control(
|
1681 |
+
'premium_gallery_icons_style_color',
|
1682 |
+
array(
|
1683 |
+
'label' => __( 'Color', 'premium-addons-for-elementor' ),
|
1684 |
+
'type' => Controls_Manager::COLOR,
|
1685 |
+
'scheme' => array(
|
1686 |
+
'type' => Color::get_type(),
|
1687 |
+
'value' => Color::COLOR_1,
|
1688 |
+
),
|
1689 |
+
'selectors' => array(
|
1690 |
+
'{{WRAPPER}} .pa-gallery-magnific-image i, {{WRAPPER}} .pa-gallery-img-link i' => 'color: {{VALUE}};',
|
1691 |
+
'{{WRAPPER}} .pa-gallery-magnific-image svg, {{WRAPPER}} .pa-gallery-img-link svg' => 'fill: {{VALUE}};',
|
1692 |
+
),
|
1693 |
+
)
|
1694 |
+
);
|
1695 |
+
|
1696 |
+
$this->add_control(
|
1697 |
+
'premium_gallery_icons_style_background',
|
1698 |
+
array(
|
1699 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
1700 |
+
'type' => Controls_Manager::COLOR,
|
1701 |
+
'scheme' => array(
|
1702 |
+
'type' => Color::get_type(),
|
1703 |
+
'value' => Color::COLOR_2,
|
1704 |
+
),
|
1705 |
+
'selectors' => array(
|
1706 |
+
'{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'background-color: {{VALUE}};',
|
1707 |
+
),
|
1708 |
+
)
|
1709 |
+
);
|
1710 |
+
|
1711 |
+
$this->add_group_control(
|
1712 |
+
Group_Control_Border::get_type(),
|
1713 |
+
array(
|
1714 |
+
'name' => 'premium_gallery_icons_style_border',
|
1715 |
+
'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
|
1716 |
+
)
|
1717 |
+
);
|
1718 |
+
|
1719 |
+
$this->add_control(
|
1720 |
+
'premium_gallery_icons_style_border_radius',
|
1721 |
+
array(
|
1722 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1723 |
+
'type' => Controls_Manager::SLIDER,
|
1724 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1725 |
+
'selectors' => array(
|
1726 |
+
'{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1727 |
+
),
|
1728 |
+
)
|
1729 |
+
);
|
1730 |
+
|
1731 |
+
$this->add_group_control(
|
1732 |
+
Group_Control_Box_Shadow::get_type(),
|
1733 |
+
array(
|
1734 |
+
'label' => __( 'Shadow', 'premium-addons-for-elementor' ),
|
1735 |
+
'name' => 'premium_gallery_icons_style_shadow',
|
1736 |
+
'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
|
1737 |
+
)
|
1738 |
+
);
|
1739 |
+
|
1740 |
+
$this->add_responsive_control(
|
1741 |
+
'premium_gallery_icons_style_margin',
|
1742 |
+
array(
|
1743 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
1744 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1745 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1746 |
+
'selectors' => array(
|
1747 |
+
'{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1748 |
+
),
|
1749 |
+
)
|
1750 |
+
);
|
1751 |
+
|
1752 |
+
$this->add_responsive_control(
|
1753 |
+
'premium_gallery_icons_style_padding',
|
1754 |
+
array(
|
1755 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
1756 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1757 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1758 |
+
'selectors' => array(
|
1759 |
+
'{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1760 |
+
),
|
1761 |
+
)
|
1762 |
+
);
|
1763 |
+
|
1764 |
+
$this->end_controls_tab();
|
1765 |
+
|
1766 |
+
$this->start_controls_tab(
|
1767 |
+
'premium_gallery_icons_style_hover',
|
1768 |
+
array(
|
1769 |
+
'label' => __( 'Hover', 'premium-addons-for-elementor' ),
|
1770 |
+
)
|
1771 |
+
);
|
1772 |
+
|
1773 |
+
$this->add_control(
|
1774 |
+
'premium_gallery_icons_style_color_hover',
|
1775 |
+
array(
|
1776 |
+
'label' => __( 'Color', 'premium-addons-for-elementor' ),
|
1777 |
+
'type' => Controls_Manager::COLOR,
|
1778 |
+
'scheme' => array(
|
1779 |
+
'type' => Color::get_type(),
|
1780 |
+
'value' => Color::COLOR_1,
|
1781 |
+
),
|
1782 |
+
'selectors' => array(
|
1783 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover i, {{WRAPPER}} .pa-gallery-img-link:hover i' => 'color: {{VALUE}}',
|
1784 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover svg, {{WRAPPER}} .pa-gallery-img-link:hover svg' => 'fill: {{VALUE}}',
|
1785 |
+
),
|
1786 |
+
)
|
1787 |
+
);
|
1788 |
+
|
1789 |
+
$this->add_control(
|
1790 |
+
'premium_gallery_icons_style_background_hover',
|
1791 |
+
array(
|
1792 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
1793 |
+
'type' => Controls_Manager::COLOR,
|
1794 |
+
'scheme' => array(
|
1795 |
+
'type' => Color::get_type(),
|
1796 |
+
'value' => Color::COLOR_2,
|
1797 |
+
),
|
1798 |
+
'selectors' => array(
|
1799 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'background-color: {{VALUE}};',
|
1800 |
+
),
|
1801 |
+
)
|
1802 |
+
);
|
1803 |
+
|
1804 |
+
$this->add_group_control(
|
1805 |
+
Group_Control_Border::get_type(),
|
1806 |
+
array(
|
1807 |
+
'name' => 'premium_gallery_icons_style_border_hover',
|
1808 |
+
'selector' => '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
|
1809 |
+
)
|
1810 |
+
);
|
1811 |
+
|
1812 |
+
$this->add_control(
|
1813 |
+
'premium_gallery_icons_style_border_radius_hover',
|
1814 |
+
array(
|
1815 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1816 |
+
'type' => Controls_Manager::SLIDER,
|
1817 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1818 |
+
'selectors' => array(
|
1819 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1820 |
+
),
|
1821 |
+
)
|
1822 |
+
);
|
1823 |
+
|
1824 |
+
$this->add_group_control(
|
1825 |
+
Group_Control_Box_Shadow::get_type(),
|
1826 |
+
array(
|
1827 |
+
'label' => __( 'Shadow', 'premium-addons-for-elementor' ),
|
1828 |
+
'name' => 'premium_gallery_icons_style_shadow_hover',
|
1829 |
+
'selector' => '{{WRAPPER}} {{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
|
1830 |
+
)
|
1831 |
+
);
|
1832 |
+
|
1833 |
+
$this->add_responsive_control(
|
1834 |
+
'premium_gallery_icons_style_margin_hover',
|
1835 |
+
array(
|
1836 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
1837 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1838 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1839 |
+
'selectors' => array(
|
1840 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1841 |
+
),
|
1842 |
+
)
|
1843 |
+
);
|
1844 |
+
|
1845 |
+
$this->add_responsive_control(
|
1846 |
+
'premium_gallery_icons_style_padding_hover',
|
1847 |
+
array(
|
1848 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
1849 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1850 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1851 |
+
'selectors' => array(
|
1852 |
+
'{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1853 |
+
),
|
1854 |
+
)
|
1855 |
+
);
|
1856 |
+
|
1857 |
+
$this->end_controls_tab();
|
1858 |
+
|
1859 |
+
$this->end_controls_tabs();
|
1860 |
+
|
1861 |
+
$this->end_controls_section();
|
1862 |
+
|
1863 |
+
$this->start_controls_section(
|
1864 |
+
'premium_gallery_filter_style',
|
1865 |
+
array(
|
1866 |
+
'label' => __( 'Filter', 'premium-addons-for-elementor' ),
|
1867 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
1868 |
+
'condition' => array(
|
1869 |
+
'premium_gallery_filter' => 'yes',
|
1870 |
+
),
|
1871 |
+
)
|
1872 |
+
);
|
1873 |
+
|
1874 |
+
$this->add_group_control(
|
1875 |
+
Group_Control_Typography::get_type(),
|
1876 |
+
array(
|
1877 |
+
'name' => 'premium_gallery_filter_typo',
|
1878 |
+
'scheme' => Typography::TYPOGRAPHY_1,
|
1879 |
+
'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
|
1880 |
+
)
|
1881 |
+
);
|
1882 |
+
|
1883 |
+
$this->start_controls_tabs( 'premium_gallery_filters' );
|
1884 |
+
|
1885 |
+
$this->start_controls_tab(
|
1886 |
+
'premium_gallery_filters_normal',
|
1887 |
+
array(
|
1888 |
+
'label' => __( 'Normal', 'premium-addons-for-elementor' ),
|
1889 |
+
)
|
1890 |
+
);
|
1891 |
+
|
1892 |
+
$this->add_control(
|
1893 |
+
'premium_gallery_filter_color',
|
1894 |
+
array(
|
1895 |
+
'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
|
1896 |
+
'type' => Controls_Manager::COLOR,
|
1897 |
+
'scheme' => array(
|
1898 |
+
'type' => Color::get_type(),
|
1899 |
+
'value' => Color::COLOR_2,
|
1900 |
+
),
|
1901 |
+
'selectors' => array(
|
1902 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category span' => 'color: {{VALUE}};',
|
1903 |
+
),
|
1904 |
+
)
|
1905 |
+
);
|
1906 |
+
|
1907 |
+
$this->add_control(
|
1908 |
+
'premium_gallery_background_color',
|
1909 |
+
array(
|
1910 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
1911 |
+
'type' => Controls_Manager::COLOR,
|
1912 |
+
'selectors' => array(
|
1913 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'background-color: {{VALUE}};',
|
1914 |
+
),
|
1915 |
+
)
|
1916 |
+
);
|
1917 |
+
|
1918 |
+
$this->add_group_control(
|
1919 |
+
Group_Control_Border::get_type(),
|
1920 |
+
array(
|
1921 |
+
'name' => 'premium_gallery_filter_border',
|
1922 |
+
'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
|
1923 |
+
)
|
1924 |
+
);
|
1925 |
+
|
1926 |
+
$this->add_control(
|
1927 |
+
'premium_gallery_filter_border_radius',
|
1928 |
+
array(
|
1929 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1930 |
+
'type' => Controls_Manager::SLIDER,
|
1931 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1932 |
+
'selectors' => array(
|
1933 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1934 |
+
),
|
1935 |
+
)
|
1936 |
+
);
|
1937 |
+
|
1938 |
+
$this->end_controls_tab();
|
1939 |
+
|
1940 |
+
$this->start_controls_tab(
|
1941 |
+
'premium_gallery_filters_hover',
|
1942 |
+
array(
|
1943 |
+
'label' => __( 'Hover', 'premium-addons-for-elementor' ),
|
1944 |
+
)
|
1945 |
+
);
|
1946 |
+
|
1947 |
+
$this->add_control(
|
1948 |
+
'premium_gallery_filter_hover_color',
|
1949 |
+
array(
|
1950 |
+
'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
|
1951 |
+
'type' => Controls_Manager::COLOR,
|
1952 |
+
'selectors' => array(
|
1953 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a:hover span' => 'color: {{VALUE}};',
|
1954 |
+
),
|
1955 |
+
)
|
1956 |
+
);
|
1957 |
+
|
1958 |
+
$this->add_control(
|
1959 |
+
'premium_gallery_background_hover_color',
|
1960 |
+
array(
|
1961 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
1962 |
+
'type' => Controls_Manager::COLOR,
|
1963 |
+
'selectors' => array(
|
1964 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a:hover' => 'background-color: {{VALUE}};',
|
1965 |
+
),
|
1966 |
+
)
|
1967 |
+
);
|
1968 |
+
|
1969 |
+
$this->add_group_control(
|
1970 |
+
Group_Control_Border::get_type(),
|
1971 |
+
array(
|
1972 |
+
'name' => 'premium_gallery_filter_border_hover',
|
1973 |
+
'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category:hover',
|
1974 |
+
)
|
1975 |
+
);
|
1976 |
+
|
1977 |
+
$this->add_control(
|
1978 |
+
'premium_gallery_filter_border_radius_hover',
|
1979 |
+
array(
|
1980 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
1981 |
+
'type' => Controls_Manager::SLIDER,
|
1982 |
+
'size_units' => array( 'px', 'em', '%' ),
|
1983 |
+
'selectors' => array(
|
1984 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category:hover' => 'border-radius: {{SIZE}}{{UNIT}};',
|
1985 |
+
),
|
1986 |
+
)
|
1987 |
+
);
|
1988 |
+
|
1989 |
+
$this->end_controls_tab();
|
1990 |
+
|
1991 |
+
$this->start_controls_tab(
|
1992 |
+
'premium_gallery_filters_active',
|
1993 |
+
array(
|
1994 |
+
'label' => __( 'Active', 'premium-addons-for-elementor' ),
|
1995 |
+
)
|
1996 |
+
);
|
1997 |
+
|
1998 |
+
$this->add_control(
|
1999 |
+
'premium_gallery_filter_active_color',
|
2000 |
+
array(
|
2001 |
+
'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
|
2002 |
+
'type' => Controls_Manager::COLOR,
|
2003 |
+
'scheme' => array(
|
2004 |
+
'type' => Color::get_type(),
|
2005 |
+
'value' => Color::COLOR_1,
|
2006 |
+
),
|
2007 |
+
'selectors' => array(
|
2008 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.active span' => 'color: {{VALUE}};',
|
2009 |
+
),
|
2010 |
+
)
|
2011 |
+
);
|
2012 |
+
|
2013 |
+
$this->add_control(
|
2014 |
+
'premium_gallery_background_active_color',
|
2015 |
+
array(
|
2016 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
2017 |
+
'type' => Controls_Manager::COLOR,
|
2018 |
+
'selectors' => array(
|
2019 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.active' => 'background-color: {{VALUE}};',
|
2020 |
+
),
|
2021 |
+
)
|
2022 |
+
);
|
2023 |
+
|
2024 |
+
$this->add_group_control(
|
2025 |
+
Group_Control_Border::get_type(),
|
2026 |
+
array(
|
2027 |
+
'name' => 'premium_gallery_filter_border_active',
|
2028 |
+
'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.active',
|
2029 |
+
)
|
2030 |
+
);
|
2031 |
+
|
2032 |
+
$this->add_control(
|
2033 |
+
'premium_gallery_filter_border_radius_active',
|
2034 |
+
array(
|
2035 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
2036 |
+
'type' => Controls_Manager::SLIDER,
|
2037 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2038 |
+
'selectors' => array(
|
2039 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.active' => 'border-radius: {{SIZE}}{{UNIT}};',
|
2040 |
+
),
|
2041 |
+
)
|
2042 |
+
);
|
2043 |
+
|
2044 |
+
$this->end_controls_tab();
|
2045 |
+
|
2046 |
+
$this->end_controls_tabs();
|
2047 |
+
|
2048 |
+
$this->add_group_control(
|
2049 |
+
Group_Control_Box_Shadow::get_type(),
|
2050 |
+
array(
|
2051 |
+
'name' => 'premium_gallery_filter_shadow',
|
2052 |
+
'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
|
2053 |
+
)
|
2054 |
+
);
|
2055 |
+
|
2056 |
+
$this->add_responsive_control(
|
2057 |
+
'premium_gallery_filter_margin',
|
2058 |
+
array(
|
2059 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
2060 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2061 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2062 |
+
'selectors' => array(
|
2063 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2064 |
+
),
|
2065 |
+
)
|
2066 |
+
);
|
2067 |
+
|
2068 |
+
$this->add_responsive_control(
|
2069 |
+
'premium_gallery_filter_padding',
|
2070 |
+
array(
|
2071 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
2072 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2073 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2074 |
+
'selectors' => array(
|
2075 |
+
'{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2076 |
+
),
|
2077 |
+
)
|
2078 |
+
);
|
2079 |
+
|
2080 |
+
$this->end_controls_section();
|
2081 |
+
|
2082 |
+
$this->start_controls_section(
|
2083 |
+
'premium_gallery_button_style_settings',
|
2084 |
+
array(
|
2085 |
+
'label' => __( 'Load More Button', 'premium-addons-for-elementor' ),
|
2086 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
2087 |
+
'condition' => array(
|
2088 |
+
'premium_gallery_load_more' => 'yes',
|
2089 |
+
),
|
2090 |
+
)
|
2091 |
+
);
|
2092 |
+
|
2093 |
+
$this->add_group_control(
|
2094 |
+
Group_Control_Typography::get_type(),
|
2095 |
+
array(
|
2096 |
+
'name' => 'premium_gallery_button_typo',
|
2097 |
+
'scheme' => Typography::TYPOGRAPHY_1,
|
2098 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn',
|
2099 |
+
)
|
2100 |
+
);
|
2101 |
+
|
2102 |
+
$this->start_controls_tabs( 'premium_gallery_button_style_tabs' );
|
2103 |
+
|
2104 |
+
$this->start_controls_tab(
|
2105 |
+
'premium_gallery_button_style_normal',
|
2106 |
+
array(
|
2107 |
+
'label' => __( 'Normal', 'premium-addons-for-elementor' ),
|
2108 |
+
)
|
2109 |
+
);
|
2110 |
+
|
2111 |
+
$this->add_control(
|
2112 |
+
'premium_gallery_button_color',
|
2113 |
+
array(
|
2114 |
+
'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
|
2115 |
+
'type' => Controls_Manager::COLOR,
|
2116 |
+
'scheme' => array(
|
2117 |
+
'type' => Color::get_type(),
|
2118 |
+
'value' => Color::COLOR_2,
|
2119 |
+
),
|
2120 |
+
'selectors' => array(
|
2121 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn' => 'color: {{VALUE}};',
|
2122 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn .premium-loader' => 'border-color: {{VALUE}};',
|
2123 |
+
),
|
2124 |
+
)
|
2125 |
+
);
|
2126 |
+
|
2127 |
+
$this->add_control(
|
2128 |
+
'premium_gallery_button_spin_color',
|
2129 |
+
array(
|
2130 |
+
'label' => __( 'Spinner Color', 'premium-addons-for-elementor' ),
|
2131 |
+
'type' => Controls_Manager::COLOR,
|
2132 |
+
'scheme' => array(
|
2133 |
+
'type' => Color::get_type(),
|
2134 |
+
'value' => Color::COLOR_2,
|
2135 |
+
),
|
2136 |
+
'selectors' => array(
|
2137 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn .premium-loader' => 'border-top-color: {{VALUE}};',
|
2138 |
+
),
|
2139 |
+
)
|
2140 |
+
);
|
2141 |
+
|
2142 |
+
$this->add_group_control(
|
2143 |
+
Group_Control_Text_Shadow::get_type(),
|
2144 |
+
array(
|
2145 |
+
'name' => 'premium_gallery_button_text_shadow',
|
2146 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn',
|
2147 |
+
)
|
2148 |
+
);
|
2149 |
+
|
2150 |
+
$this->add_group_control(
|
2151 |
+
Group_Control_Background::get_type(),
|
2152 |
+
array(
|
2153 |
+
'name' => 'premium_gallery_button_background',
|
2154 |
+
'types' => array( 'classic', 'gradient' ),
|
2155 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn',
|
2156 |
+
)
|
2157 |
+
);
|
2158 |
+
|
2159 |
+
$this->add_group_control(
|
2160 |
+
Group_Control_Border::get_type(),
|
2161 |
+
array(
|
2162 |
+
'name' => 'premium_gallery_button_border',
|
2163 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn',
|
2164 |
+
)
|
2165 |
+
);
|
2166 |
+
|
2167 |
+
$this->add_control(
|
2168 |
+
'premium_gallery_button_border_radius',
|
2169 |
+
array(
|
2170 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
2171 |
+
'type' => Controls_Manager::SLIDER,
|
2172 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2173 |
+
'selectors' => array(
|
2174 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn' => 'border-radius: {{SIZE}}{{UNIT}};',
|
2175 |
+
),
|
2176 |
+
)
|
2177 |
+
);
|
2178 |
+
|
2179 |
+
$this->add_group_control(
|
2180 |
+
Group_Control_Box_Shadow::get_type(),
|
2181 |
+
array(
|
2182 |
+
'name' => 'premium_gallery_button_box_shadow',
|
2183 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn',
|
2184 |
+
)
|
2185 |
+
);
|
2186 |
+
|
2187 |
+
$this->add_responsive_control(
|
2188 |
+
'premium_gallery_button_margin',
|
2189 |
+
array(
|
2190 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
2191 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2192 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2193 |
+
'selectors' => array(
|
2194 |
+
'{{WRAPPER}} .premium-gallery-load-more' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2195 |
+
),
|
2196 |
+
)
|
2197 |
+
);
|
2198 |
+
|
2199 |
+
$this->add_responsive_control(
|
2200 |
+
'premium_gallery_button_padding',
|
2201 |
+
array(
|
2202 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
2203 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2204 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2205 |
+
'selectors' => array(
|
2206 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2207 |
+
),
|
2208 |
+
)
|
2209 |
+
);
|
2210 |
+
|
2211 |
+
$this->end_controls_tab();
|
2212 |
+
|
2213 |
+
$this->start_controls_tab(
|
2214 |
+
'premium_gallery_button_style_hover',
|
2215 |
+
array(
|
2216 |
+
'label' => __( 'Hover', 'premium-addons-for-elementor' ),
|
2217 |
+
)
|
2218 |
+
);
|
2219 |
+
|
2220 |
+
$this->add_control(
|
2221 |
+
'premium_gallery_button_hover_color',
|
2222 |
+
array(
|
2223 |
+
'label' => __( 'Text Hover Color', 'premium-addons-for-elementor' ),
|
2224 |
+
'type' => Controls_Manager::COLOR,
|
2225 |
+
'scheme' => array(
|
2226 |
+
'type' => Color::get_type(),
|
2227 |
+
'value' => Color::COLOR_2,
|
2228 |
+
),
|
2229 |
+
'selectors' => array(
|
2230 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn:hover' => 'color: {{VALUE}};',
|
2231 |
+
),
|
2232 |
+
)
|
2233 |
+
);
|
2234 |
+
|
2235 |
+
$this->add_group_control(
|
2236 |
+
Group_Control_Text_Shadow::get_type(),
|
2237 |
+
array(
|
2238 |
+
'name' => 'premium_gallery_button_text_shadow_hover',
|
2239 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn:hover',
|
2240 |
+
)
|
2241 |
+
);
|
2242 |
+
|
2243 |
+
$this->add_group_control(
|
2244 |
+
Group_Control_Background::get_type(),
|
2245 |
+
array(
|
2246 |
+
'name' => 'premium_gallery_button_background_hover',
|
2247 |
+
'types' => array( 'classic', 'gradient' ),
|
2248 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn:hover',
|
2249 |
+
)
|
2250 |
+
);
|
2251 |
+
|
2252 |
+
$this->add_group_control(
|
2253 |
+
Group_Control_Border::get_type(),
|
2254 |
+
array(
|
2255 |
+
'name' => 'premium_gallery_button_border_hover',
|
2256 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn:hover',
|
2257 |
+
)
|
2258 |
+
);
|
2259 |
+
|
2260 |
+
$this->add_control(
|
2261 |
+
'button_border_radius_hover',
|
2262 |
+
array(
|
2263 |
+
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
|
2264 |
+
'type' => Controls_Manager::SLIDER,
|
2265 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2266 |
+
'selectors' => array(
|
2267 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn:hover' => 'border-radius: {{SIZE}}{{UNIT}};',
|
2268 |
+
),
|
2269 |
+
)
|
2270 |
+
);
|
2271 |
+
|
2272 |
+
$this->add_group_control(
|
2273 |
+
Group_Control_Box_Shadow::get_type(),
|
2274 |
+
array(
|
2275 |
+
'name' => 'premium_gallery_button_shadow_hover',
|
2276 |
+
'selector' => '{{WRAPPER}} .premium-gallery-load-more-btn:hover',
|
2277 |
+
)
|
2278 |
+
);
|
2279 |
+
|
2280 |
+
$this->add_responsive_control(
|
2281 |
+
'button_margin_hover',
|
2282 |
+
array(
|
2283 |
+
'label' => __( 'Margin', 'premium-addons-for-elementor' ),
|
2284 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2285 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2286 |
+
'selectors' => array(
|
2287 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2288 |
+
),
|
2289 |
+
)
|
2290 |
+
);
|
2291 |
+
|
2292 |
+
$this->add_responsive_control(
|
2293 |
+
'premium_gallery_button_padding_hover',
|
2294 |
+
array(
|
2295 |
+
'label' => __( 'Padding', 'premium-addons-for-elementor' ),
|
2296 |
+
'type' => Controls_Manager::DIMENSIONS,
|
2297 |
+
'size_units' => array( 'px', 'em', '%' ),
|
2298 |
+
'selectors' => array(
|
2299 |
+
'{{WRAPPER}} .premium-gallery-load-more-btn:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
2300 |
+
),
|
2301 |
+
)
|
2302 |
+
);
|
2303 |
+
|
2304 |
+
$this->end_controls_tab();
|
2305 |
+
|
2306 |
+
$this->end_controls_tabs();
|
2307 |
+
|
2308 |
+
$this->end_controls_section();
|
2309 |
+
|
2310 |
+
$this->start_controls_section(
|
2311 |
+
'section_lightbox_style',
|
2312 |
+
array(
|
2313 |
+
'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
|
2314 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
2315 |
+
'condition' => array(
|
2316 |
+
'premium_gallery_lightbox_type' => 'yes',
|
2317 |
+
),
|
2318 |
+
)
|
2319 |
+
);
|
2320 |
+
|
2321 |
+
$this->add_control(
|
2322 |
+
'lightbox_color',
|
2323 |
+
array(
|
2324 |
+
'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
|
2325 |
+
'type' => Controls_Manager::COLOR,
|
2326 |
+
'selectors' => array(
|
2327 |
+
'#elementor-lightbox-slideshow-{{ID}}' => 'background-color: {{VALUE}};',
|
2328 |
+
),
|
2329 |
+
)
|
2330 |
+
);
|
2331 |
+
|
2332 |
+
$this->add_control(
|
2333 |
+
'lightbox_ui_color',
|
2334 |
+
array(
|
2335 |
+
'label' => __( 'UI Color', 'premium-addons-for-elementor' ),
|
2336 |
+
'type' => Controls_Manager::COLOR,
|
2337 |
+
'selectors' => array(
|
2338 |
+
'#elementor-lightbox-slideshow-{{ID}} .dialog-lightbox-close-button, #elementor-lightbox-slideshow-{{ID}} .elementor-swiper-button' => 'color: {{VALUE}};',
|
2339 |
+
),
|
2340 |
+
)
|
2341 |
+
);
|
2342 |
+
|
2343 |
+
$this->add_control(
|
2344 |
+
'lightbox_ui_hover_color',
|
2345 |
+
array(
|
2346 |
+
'label' => __( 'UI Hover Color', 'premium-addons-for-elementor' ),
|
2347 |
+
'type' => Controls_Manager::COLOR,
|
2348 |
+
'selectors' => array(
|
2349 |
+
'#elementor-lightbox-slideshow-{{ID}} .dialog-lightbox-close-button:hover, #elementor-lightbox-slideshow-{{ID}} .elementor-swiper-button:hover' => 'color: {{VALUE}};',
|
2350 |
+
),
|
2351 |
+
)
|
2352 |
+
);
|
2353 |
+
|
2354 |
+
$this->end_controls_section();
|
2355 |
+
|
2356 |
+
$this->update_controls();
|
2357 |
+
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
/**
|
2361 |
+
* Filter Cats
|
2362 |
+
*
|
2363 |
+
* Formats Category to be inserted in class attribute.
|
2364 |
+
*
|
2365 |
+
* @since 2.1.0
|
2366 |
+
* @access public
|
2367 |
+
*
|
2368 |
+
* @param string $string category slug.
|
2369 |
+
*
|
2370 |
+
* @return string $cat_filtered slug filtered.
|
2371 |
+
*/
|
2372 |
+
public function filter_cats( $string ) {
|
2373 |
+
|
2374 |
+
$cat_filtered = mb_strtolower( $string );
|
2375 |
+
|
2376 |
+
if ( strpos( $cat_filtered, 'class' ) || strpos( $cat_filtered, 'src' ) ) {
|
2377 |
+
$cat_filtered = substr( $cat_filtered, strpos( $cat_filtered, '"' ) + 1 );
|
2378 |
+
$cat_filtered = strtok( $cat_filtered, '"' );
|
2379 |
+
$cat_filtered = preg_replace( '/[http:.]/', '', $cat_filtered );
|
2380 |
+
$cat_filtered = str_replace( '/', '', $cat_filtered );
|
2381 |
+
}
|
2382 |
+
|
2383 |
+
$cat_filtered = str_replace( ', ', ',', $cat_filtered );
|
2384 |
+
$cat_filtered = preg_replace( '/[\s_&@!#%]/', '-', $cat_filtered );
|
2385 |
+
$cat_filtered = str_replace( ',', ' ', $cat_filtered );
|
2386 |
+
|
2387 |
+
return $cat_filtered;
|
2388 |
+
}
|
2389 |
+
|
2390 |
+
/**
|
2391 |
+
* Render Filter Tabs on the frontend
|
2392 |
+
*
|
2393 |
+
* @since 2.1.0
|
2394 |
+
* @access protected
|
2395 |
+
*
|
2396 |
+
* @param string $first Class for the first category.
|
2397 |
+
* @param integer $active_index active category index.
|
2398 |
+
*/
|
2399 |
+
protected function render_filter_tabs( $first, $active_index ) {
|
2400 |
+
|
2401 |
+
$settings = $this->get_settings_for_display();
|
2402 |
+
|
2403 |
+
?>
|
2404 |
+
|
2405 |
+
<div class="premium-img-gallery-filter">
|
2406 |
+
<ul class="premium-gallery-cats-container">
|
2407 |
+
<?php if ( 'yes' === $settings['premium_gallery_first_cat_switcher'] ) : ?>
|
2408 |
+
<li>
|
2409 |
+
<a href="javascript:;" class="category <?php echo esc_attr( $first ); ?>" data-filter="*">
|
2410 |
+
<span><?php echo wp_kses_post( $settings['premium_gallery_first_cat_label'] ); ?></span>
|
2411 |
+
</a>
|
2412 |
+
</li>
|
2413 |
+
<?php
|
2414 |
+
endif;
|
2415 |
+
foreach ( $settings['premium_gallery_cats_content'] as $index => $category ) {
|
2416 |
+
if ( ! empty( $category['premium_gallery_img_cat'] ) ) {
|
2417 |
+
$cat_filtered = $this->filter_cats( $category['premium_gallery_img_cat'] );
|
2418 |
+
|
2419 |
+
$key = 'premium_grid_category_' . $index;
|
2420 |
+
|
2421 |
+
if ( $active_index === $index ) {
|
2422 |
+
$this->add_render_attribute( $key, 'class', 'active' );
|
2423 |
+
}
|
2424 |
+
|
2425 |
+
$this->add_render_attribute(
|
2426 |
+
$key,
|
2427 |
+
'class',
|
2428 |
+
array(
|
2429 |
+
'category',
|
2430 |
+
'elementor-repeater-item-' . $category['_id'],
|
2431 |
+
)
|
2432 |
+
);
|
2433 |
+
|
2434 |
+
$slug = sprintf( '.%s', $cat_filtered );
|
2435 |
+
|
2436 |
+
$this->add_render_attribute( $key, 'data-filter', $slug );
|
2437 |
+
?>
|
2438 |
+
<li>
|
2439 |
+
<a href="javascript:;" <?php echo wp_kses_post( $this->get_render_attribute_string( $key ) ); ?>>
|
2440 |
+
<span><?php echo wp_kses_post( $category['premium_gallery_img_cat'] ); ?></span>
|
2441 |
+
</a>
|
2442 |
+
</li>
|
2443 |
+
<?php
|
2444 |
+
}
|
2445 |
+
}
|
2446 |
+
?>
|
2447 |
+
</ul>
|
2448 |
+
</div>
|
2449 |
+
|
2450 |
+
<?php
|
2451 |
+
}
|
2452 |
+
|
2453 |
+
/**
|
2454 |
+
* Render Grid output on the frontend.
|
2455 |
+
*
|
2456 |
+
* Written in PHP and used to generate the final HTML.
|
2457 |
+
*
|
2458 |
+
* @since 2.1.0
|
2459 |
+
* @access protected
|
2460 |
+
*/
|
2461 |
+
protected function render() {
|
2462 |
+
|
2463 |
+
$settings = $this->get_settings_for_display();
|
2464 |
+
|
2465 |
+
$filter = $settings['premium_gallery_filter'];
|
2466 |
+
|
2467 |
+
$skin = $settings['premium_gallery_img_style'];
|
2468 |
+
|
2469 |
+
$layout = $settings['premium_gallery_img_size_select'];
|
2470 |
+
|
2471 |
+
$lightbox = $settings['premium_gallery_light_box'];
|
2472 |
+
|
2473 |
+
$lightbox_type = $settings['premium_gallery_lightbox_type'];
|
2474 |
+
|
2475 |
+
$show_play = $settings['premium_gallery_video_icon'];
|
2476 |
+
|
2477 |
+
if ( 'yes' === $settings['premium_gallery_responsive_switcher'] ) {
|
2478 |
+
$min_size = $settings['premium_gallery_min_range'] . 'px';
|
2479 |
+
$max_size = $settings['premium_gallery_max_range'] . 'px';
|
2480 |
+
}
|
2481 |
+
|
2482 |
+
$category = '*';
|
2483 |
+
|
2484 |
+
if ( 'yes' === $filter ) {
|
2485 |
+
|
2486 |
+
if ( ! empty( $settings['premium_gallery_active_cat'] ) || 0 === $settings['premium_gallery_active_cat'] ) {
|
2487 |
+
|
2488 |
+
if ( 'yes' !== $settings['premium_gallery_first_cat_switcher'] ) {
|
2489 |
+
$active_index = $settings['premium_gallery_active_cat'];
|
2490 |
+
$active_category = $settings['premium_gallery_cats_content'][ $active_index ]['premium_gallery_img_cat'];
|
2491 |
+
$category = '.' . $this->filter_cats( $active_category );
|
2492 |
+
$active_cat_index = $settings['premium_gallery_active_cat'];
|
2493 |
+
|
2494 |
+
} else {
|
2495 |
+
$active_cat_index = $settings['premium_gallery_active_cat'] - 1;
|
2496 |
+
}
|
2497 |
+
} else {
|
2498 |
+
$active_cat_index = 'yes' === $settings['premium_gallery_first_cat_switcher'] ? -1 : 0;
|
2499 |
+
}
|
2500 |
+
|
2501 |
+
$is_all_active = ( 0 > $active_cat_index ) ? 'active' : '';
|
2502 |
+
|
2503 |
+
}
|
2504 |
+
|
2505 |
+
if ( 'original' === $layout ) {
|
2506 |
+
$layout = 'masonry';
|
2507 |
+
} elseif ( 'one_size' === $layout ) {
|
2508 |
+
$layout = 'fitRows';
|
2509 |
+
}
|
2510 |
+
|
2511 |
+
$ltr_mode = 'yes' === $settings['premium_gallery_rtl_mode'] ? false : true;
|
2512 |
+
|
2513 |
+
$shuffle = 'yes' === $settings['premium_gallery_shuffle'] ? true : false;
|
2514 |
+
|
2515 |
+
$shuffle_onload = 'yes' === $settings['premium_gallery_shuffle_onload'] ? 'random' : 'original-order';
|
2516 |
+
|
2517 |
+
$grid_settings = array(
|
2518 |
+
'img_size' => $layout,
|
2519 |
+
'filter' => $filter,
|
2520 |
+
'theme' => $settings['premium_gallery_lightbox_theme'],
|
2521 |
+
'active_cat' => $category,
|
2522 |
+
'ltr_mode' => $ltr_mode,
|
2523 |
+
'shuffle' => $shuffle,
|
2524 |
+
'sort_by' => $shuffle_onload,
|
2525 |
+
'skin' => $skin,
|
2526 |
+
);
|
2527 |
+
|
2528 |
+
if ( 'yes' === $filter ) {
|
2529 |
+
$grid_settings['flag'] = ! empty( $settings['url_flag'] ) ? $settings['url_flag'] : 'cat';
|
2530 |
+
}
|
2531 |
+
|
2532 |
+
$load_more = 'yes' === $settings['premium_gallery_load_more'] ? true : false;
|
2533 |
+
|
2534 |
+
if ( $load_more ) {
|
2535 |
+
$minimum = ! empty( $settings['premium_gallery_load_minimum'] ) ? $settings['premium_gallery_load_minimum'] : 6;
|
2536 |
+
$click_number = ! empty( $settings['premium_gallery_load_click_number'] ) ? $settings['premium_gallery_load_click_number'] : 6;
|
2537 |
+
|
2538 |
+
$grid_settings = array_merge(
|
2539 |
+
$grid_settings,
|
2540 |
+
array(
|
2541 |
+
'load_more' => $load_more,
|
2542 |
+
'minimum' => $minimum,
|
2543 |
+
'click_images' => $click_number,
|
2544 |
+
)
|
2545 |
+
);
|
2546 |
+
}
|
2547 |
+
|
2548 |
+
if ( 'yes' === $lightbox ) {
|
2549 |
+
$grid_settings = array_merge(
|
2550 |
+
$grid_settings,
|
2551 |
+
array(
|
2552 |
+
'light_box' => $lightbox,
|
2553 |
+
'lightbox_type' => $lightbox_type,
|
2554 |
+
'overlay' => 'yes' === $settings['premium_gallery_overlay_gallery'] ? true : false,
|
2555 |
+
)
|
2556 |
+
);
|
2557 |
+
} else {
|
2558 |
+
$this->add_render_attribute(
|
2559 |
+
'grid',
|
2560 |
+
array(
|
2561 |
+
'class' => array(
|
2562 |
+
'premium-img-gallery-no-lightbox',
|
2563 |
+
),
|
2564 |
+
)
|
2565 |
+
);
|
2566 |
+
}
|
2567 |
+
|
2568 |
+
$this->add_render_attribute(
|
2569 |
+
'grid',
|
2570 |
+
array(
|
2571 |
+
'id' => 'premium-img-gallery-' . esc_attr( $this->get_id() ),
|
2572 |
+
'class' => array(
|
2573 |
+
'premium-img-gallery',
|
2574 |
+
'premium-img-gallery-' . $layout,
|
2575 |
+
$settings['premium_gallery_img_effect'],
|
2576 |
+
),
|
2577 |
+
)
|
2578 |
+
);
|
2579 |
+
|
2580 |
+
if ( $show_play ) {
|
2581 |
+
$this->add_render_attribute(
|
2582 |
+
'grid',
|
2583 |
+
array(
|
2584 |
+
'class' => array(
|
2585 |
+
'premium-gallery-icon-show',
|
2586 |
+
),
|
2587 |
+
)
|
2588 |
+
);
|
2589 |
+
}
|
2590 |
+
|
2591 |
+
$this->add_render_attribute(
|
2592 |
+
'gallery_container',
|
2593 |
+
array(
|
2594 |
+
'class' => 'premium-gallery-container',
|
2595 |
+
'data-settings' => wp_json_encode( $grid_settings ),
|
2596 |
+
)
|
2597 |
+
);
|
2598 |
+
|
2599 |
+
$this->add_render_attribute(
|
2600 |
+
'image_container',
|
2601 |
+
'class',
|
2602 |
+
array(
|
2603 |
+
'pa-gallery-img-container',
|
2604 |
+
)
|
2605 |
+
);
|
2606 |
+
|
2607 |
+
?>
|
2608 |
+
|
2609 |
+
<div <?php echo wp_kses_post( $this->get_render_attribute_string( 'grid' ) ); ?>>
|
2610 |
+
<?php
|
2611 |
+
if ( 'yes' === $filter ) :
|
2612 |
+
$this->render_filter_tabs( $is_all_active, $active_cat_index );
|
2613 |
+
endif;
|
2614 |
+
?>
|
2615 |
+
|
2616 |
+
<div <?php echo wp_kses_post( $this->get_render_attribute_string( 'gallery_container' ) ); ?>>
|
2617 |
+
|
2618 |
+
<?php if ( 'metro' === $layout ) : ?>
|
2619 |
+
<div class="grid-sizer"></div>
|
2620 |
+
<?php
|
2621 |
+
endif;
|
2622 |
+
|
2623 |
+
foreach ( $settings['premium_gallery_img_content'] as $index => $image ) :
|
2624 |
+
|
2625 |
+
$key = 'gallery_item_' . $index;
|
2626 |
+
|
2627 |
+
$this->add_render_attribute(
|
2628 |
+
$key,
|
2629 |
+
array(
|
2630 |
+
'class' => array(
|
2631 |
+
'premium-gallery-item',
|
2632 |
+
'elementor-repeater-item-' . $image['_id'],
|
2633 |
+
$this->filter_cats( $image['premium_gallery_img_category'] ),
|
2634 |
+
),
|
2635 |
+
)
|
2636 |
+
);
|
2637 |
+
|
2638 |
+
if ( $load_more && $index > $minimum - 1 ) {
|
2639 |
+
|
2640 |
+
$this->add_render_attribute( $key, 'class', 'premium-gallery-item-hidden' );
|
2641 |
+
|
2642 |
+
}
|
2643 |
+
|
2644 |
+
if ( 'metro' === $layout ) {
|
2645 |
+
|
2646 |
+
$cells = array(
|
2647 |
+
'cells' => $image['premium_gallery_image_cell']['size'],
|
2648 |
+
'vcells' => $image['premium_gallery_image_vcell']['size'],
|
2649 |
+
'cells_tablet' => $image['premium_gallery_image_cell_tablet']['size'],
|
2650 |
+
'vcells_tablet' => $image['premium_gallery_image_vcell_tablet']['size'],
|
2651 |
+
'cells_mobile' => $image['premium_gallery_image_cell_mobile']['size'],
|
2652 |
+
'vcells_mobile' => $image['premium_gallery_image_vcell_mobile']['size'],
|
2653 |
+
);
|
2654 |
+
|
2655 |
+
$this->add_render_attribute( $key, 'data-metro', wp_json_encode( $cells ) );
|
2656 |
+
}
|
2657 |
+
|
2658 |
+
if ( $image['premium_gallery_video'] ) {
|
2659 |
+
$this->add_render_attribute( $key, 'class', 'premium-gallery-video-item' );
|
2660 |
+
}
|
2661 |
+
?>
|
2662 |
+
<div <?php echo wp_kses_post( $this->get_render_attribute_string( $key ) ); ?>>
|
2663 |
+
<div class="pa-gallery-img <?php echo esc_attr( $skin ); ?>" onclick="">
|
2664 |
+
<div <?php echo wp_kses_post( $this->get_render_attribute_string( 'image_container' ) ); ?>>
|
2665 |
+
<?php
|
2666 |
+
$video_data = $this->render_grid_item( $image, $index );
|
2667 |
+
|
2668 |
+
$image['video_link'] = $video_data['link'];
|
2669 |
+
$image['video_thumb'] = $video_data['thumbnail'];
|
2670 |
+
if ( 'style3' === $skin ) :
|
2671 |
+
?>
|
2672 |
+
<div class="pa-gallery-icons-wrapper">
|
2673 |
+
<div class="pa-gallery-icons-inner-container">
|
2674 |
+
<?php $this->render_icons( $image, $index ); ?>
|
2675 |
+
</div>
|
2676 |
+
</div>
|
2677 |
+
<?php endif; ?>
|
2678 |
+
</div>
|
2679 |
+
<?php
|
2680 |
+
if ( 'style2' !== $skin ) :
|
2681 |
+
if ( 'default' === $skin || 'style1' === $skin ) :
|
2682 |
+
?>
|
2683 |
+
<div class="pa-gallery-icons-wrapper">
|
2684 |
+
<div class="pa-gallery-icons-inner-container">
|
2685 |
+
<?php $this->render_icons( $image, $index ); ?>
|
2686 |
+
</div>
|
2687 |
+
</div>
|
2688 |
+
<?php
|
2689 |
+
endif;
|
2690 |
+
$this->render_image_caption( $image );
|
2691 |
+
else :
|
2692 |
+
?>
|
2693 |
+
<div class="pa-gallery-icons-caption-container">
|
2694 |
+
<div class="pa-gallery-icons-caption-cell">
|
2695 |
+
<?php
|
2696 |
+
$this->render_icons( $image, $index );
|
2697 |
+
$this->render_image_caption( $image );
|
2698 |
+
?>
|
2699 |
+
</div>
|
2700 |
+
</div>
|
2701 |
+
<?php
|
2702 |
+
endif;
|
2703 |
+
if ( $image['premium_gallery_video'] ) :
|
2704 |
+
?>
|
2705 |
+
</div>
|
2706 |
+
</div>
|
2707 |
+
<?php
|
2708 |
+
continue;
|
2709 |
+
endif;
|
2710 |
+
if ( 'yes' === $image['premium_gallery_link_whole'] ) {
|
2711 |
+
|
2712 |
+
if ( 'url' === $image['premium_gallery_img_link_type'] && ! empty( $image['premium_gallery_img_link']['url'] ) ) {
|
2713 |
+
|
2714 |
+
$icon_link = $image['premium_gallery_img_link']['url'];
|
2715 |
+
$external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
|
2716 |
+
$no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : '';
|
2717 |
+
|
2718 |
+
?>
|
2719 |
+
<a class="pa-gallery-whole-link" href="<?php echo esc_attr( $icon_link ); ?>" <?php echo wp_kses_post( $external ); ?><?php echo wp_kses_post( $no_follow ); ?>></a>
|
2720 |
+
|
2721 |
+
<?php
|
2722 |
+
} elseif ( 'link' === $image['premium_gallery_img_link_type'] ) {
|
2723 |
+
$icon_link = get_permalink( $image['premium_gallery_img_existing'] );
|
2724 |
+
?>
|
2725 |
+
<a class="pa-gallery-whole-link" href="<?php echo esc_attr( $icon_link ); ?>"></a>
|
2726 |
+
<?php
|
2727 |
+
}
|
2728 |
+
} elseif ( 'yes' === $lightbox ) {
|
2729 |
+
|
2730 |
+
if ( 'yes' === $image['premium_gallery_lightbox_whole'] ) {
|
2731 |
+
|
2732 |
+
$lightbox_key = 'image_lightbox_' . $index;
|
2733 |
+
|
2734 |
+
$this->add_render_attribute(
|
2735 |
+
$lightbox_key,
|
2736 |
+
array(
|
2737 |
+
'class' => 'pa-gallery-whole-link',
|
2738 |
+
'href' => $image['premium_gallery_img']['url'],
|
2739 |
+
)
|
2740 |
+
);
|
2741 |
+
|
2742 |
+
if ( 'default' !== $lightbox_type ) {
|
2743 |
+
|
2744 |
+
$this->add_render_attribute(
|
2745 |
+
$lightbox_key,
|
2746 |
+
array(
|
2747 |
+
'data-elementor-open-lightbox' => $lightbox_type,
|
2748 |
+
'data-elementor-lightbox-slideshow' => count( $settings['premium_gallery_img_content'] ) > 1 ? $this->get_id() : false,
|
2749 |
+
)
|
2750 |
+
);
|
2751 |
+
|
2752 |
+
if ( 'yes' === $settings['lightbox_show_title'] ) {
|
2753 |
+
|
2754 |
+
$alt = Control_Media::get_image_alt( $image['premium_gallery_img'] );
|
2755 |
+
|
2756 |
+
$this->add_render_attribute( $lightbox_key, 'data-elementor-lightbox-title', $alt );
|
2757 |
+
|
2758 |
+
}
|
2759 |
+
} else {
|
2760 |
+
|
2761 |
+
$rel = sprintf( 'prettyPhoto[premium-grid-%s]', $this->get_id() );
|
2762 |
+
|
2763 |
+
$this->add_render_attribute(
|
2764 |
+
$lightbox_key,
|
2765 |
+
array(
|
2766 |
+
'data-rel' => $rel,
|
2767 |
+
)
|
2768 |
+
);
|
2769 |
+
}
|
2770 |
+
|
2771 |
+
?>
|
2772 |
+
|
2773 |
+
<a <?php echo wp_kses_post( $this->get_render_attribute_string( $lightbox_key ) ); ?>></a>
|
2774 |
+
|
2775 |
+
<?php
|
2776 |
+
}
|
2777 |
+
}
|
2778 |
+
?>
|
2779 |
+
</div>
|
2780 |
+
</div>
|
2781 |
+
<?php endforeach; ?>
|
2782 |
+
|
2783 |
+
<?php if ( 'yes' === $settings['gradient_layer'] ) : ?>
|
2784 |
+
<div class="premium-gallery-gradient-layer"></div>
|
2785 |
+
<?php endif; ?>
|
2786 |
+
</div>
|
2787 |
+
|
2788 |
+
<?php if ( 'yes' === $settings['premium_gallery_load_more'] ) : ?>
|
2789 |
+
<div class="premium-gallery-load-more premium-gallery-btn-hidden">
|
2790 |
+
<button class="premium-gallery-load-more-btn">
|
2791 |
+
<span><?php echo wp_kses_post( $settings['premium_gallery_load_more_text'] ); ?></span>
|
2792 |
+
<div class="premium-loader"></div>
|
2793 |
+
</button>
|
2794 |
+
</div>
|
2795 |
+
<?php endif; ?>
|
2796 |
+
|
2797 |
+
</div>
|
2798 |
+
|
2799 |
+
<?php
|
2800 |
+
if ( \Elementor\Plugin::instance()->editor->is_edit_mode() ) {
|
2801 |
+
|
2802 |
+
if ( 'metro' !== $settings['premium_gallery_img_size_select'] ) {
|
2803 |
+
$this->render_editor_script();
|
2804 |
+
}
|
2805 |
+
}
|
2806 |
+
?>
|
2807 |
+
|
2808 |
+
<?php if ( 'yes' === $settings['premium_gallery_responsive_switcher'] ) : ?>
|
2809 |
+
<style>
|
2810 |
+
@media( min-width: <?php echo esc_attr( $min_size ); ?> ) and ( max-width:<?php echo esc_attr( $max_size ); ?> ) {
|
2811 |
+
#premium-img-gallery-<?php echo esc_attr( $this->get_id() ); ?> .premium-gallery-caption {
|
2812 |
+
display: none;
|
2813 |
+
}
|
2814 |
+
}
|
2815 |
+
</style>
|
2816 |
+
<?php endif; ?>
|
2817 |
+
|
2818 |
+
<?php
|
2819 |
+
}
|
2820 |
+
|
2821 |
+
/**
|
2822 |
+
* Render Grid Image
|
2823 |
+
*
|
2824 |
+
* Written in PHP and used to generate the final HTML for image.
|
2825 |
+
*
|
2826 |
+
* @since 3.6.4
|
2827 |
+
* @access protected
|
2828 |
+
*
|
2829 |
+
* @param array $item image repeater item.
|
2830 |
+
* @param integer $index item index.
|
2831 |
+
*/
|
2832 |
+
protected function render_grid_item( $item, $index ) {
|
2833 |
+
|
2834 |
+
$settings = $this->get_settings();
|
2835 |
+
|
2836 |
+
$image_src = $item['premium_gallery_img']['url'];
|
2837 |
+
$image_id = attachment_url_to_postid( $image_src );
|
2838 |
+
|
2839 |
+
$settings['image_data'] = Helper_Functions::get_image_data( $image_id, $item['premium_gallery_img']['url'], $settings['thumbnail_size'] );
|
2840 |
+
|
2841 |
+
$is_video = $item['premium_gallery_video'];
|
2842 |
+
|
2843 |
+
$alt = Control_Media::get_image_alt( $item['premium_gallery_img'] );
|
2844 |
+
|
2845 |
+
$key = 'image_' . $index;
|
2846 |
+
|
2847 |
+
$image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'image_data' );
|
2848 |
+
|
2849 |
+
if ( $is_video ) {
|
2850 |
+
|
2851 |
+
$type = $item['premium_gallery_video_type'];
|
2852 |
+
|
2853 |
+
if ( 'hosted' !== $type ) {
|
2854 |
+
$embed_params = $this->get_embed_params( $item );
|
2855 |
+
$link = Embed::get_embed_url( $item['premium_gallery_video_url'], $embed_params );
|
2856 |
+
|
2857 |
+
if ( empty( $image_html ) ) {
|
2858 |
+
|
2859 |
+
$video_props = Embed::get_video_properties( $link );
|
2860 |
+
$id = $video_props['video_id'];
|
2861 |
+
$type = $video_props['provider'];
|
2862 |
+
$size = '';
|
2863 |
+
if ( 'youtube' === $type ) {
|
2864 |
+
$size = $settings['premium_gallery_yt_thumbnail_size'];
|
2865 |
+
}
|
2866 |
+
$image_src = Helper_Functions::get_video_thumbnail( $id, $type, $size );
|
2867 |
+
|
2868 |
+
$image_html = '<img src="' . esc_url( $image_src ) . '">';
|
2869 |
+
}
|
2870 |
+
} else {
|
2871 |
+
self::$check_self_hosted = true;
|
2872 |
+
$video_params = $this->get_hosted_params( $item );
|
2873 |
+
}
|
2874 |
+
}
|
2875 |
+
|
2876 |
+
// $this->add_render_attribute(
|
2877 |
+
// $key,
|
2878 |
+
// array(
|
2879 |
+
// 'class' => 'pa-gallery-image',
|
2880 |
+
// 'src' => $image_src,
|
2881 |
+
// 'alt' => $alt,
|
2882 |
+
// )
|
2883 |
+
// );
|
2884 |
+
|
2885 |
+
if ( $is_video ) {
|
2886 |
+
?>
|
2887 |
+
<div class="premium-gallery-video-wrap" data-type="<?php echo esc_attr( $item['premium_gallery_video_type'] ); ?>">
|
2888 |
+
<?php if ( 'hosted' !== $item['premium_gallery_video_type'] ) : ?>
|
2889 |
+
<div class="premium-gallery-iframe-wrap" data-src="<?php echo esc_url( $link ); ?>"></div>
|
2890 |
+
<?php
|
2891 |
+
else :
|
2892 |
+
$link = empty( $item['premium_gallery_video_self_url'] ) ? $item['premium_gallery_video_self']['url'] : $item['premium_gallery_video_self_url'];
|
2893 |
+
?>
|
2894 |
+
<video src="<?php echo esc_url( $link ); ?>" <?php echo wp_kses_post( Utils::render_html_attributes( $video_params ) ); ?>></video>
|
2895 |
+
<?php endif; ?>
|
2896 |
+
</div>
|
2897 |
+
<?php } ?>
|
2898 |
+
<?php echo $image_html; ?>
|
2899 |
+
<?php
|
2900 |
+
|
2901 |
+
return array(
|
2902 |
+
'link' => ( isset( $link ) && ! empty( $link ) ) ? $link : false,
|
2903 |
+
'thumbnail' => $image_src,
|
2904 |
+
);
|
2905 |
+
}
|
2906 |
+
|
2907 |
+
/**
|
2908 |
+
* Render Icons
|
2909 |
+
*
|
2910 |
+
* Render Lightbox and URL Icons HTML
|
2911 |
+
*
|
2912 |
+
* @since 3.6.4
|
2913 |
+
* @access protected
|
2914 |
+
*
|
2915 |
+
* @param array $item grid image repeater item.
|
2916 |
+
* @param integer $index item index.
|
2917 |
+
*/
|
2918 |
+
protected function render_icons( $item, $index ) {
|
2919 |
+
|
2920 |
+
$settings = $this->get_settings_for_display();
|
2921 |
+
|
2922 |
+
$lightbox_key = 'image_lightbox_' . $index;
|
2923 |
+
|
2924 |
+
$link_key = 'image_link_' . $index;
|
2925 |
+
|
2926 |
+
$href = $item['premium_gallery_img']['url'];
|
2927 |
+
|
2928 |
+
$lightbox = $settings['premium_gallery_light_box'];
|
2929 |
+
|
2930 |
+
$lightbox_type = $settings['premium_gallery_lightbox_type'];
|
2931 |
+
|
2932 |
+
$is_video = $item['premium_gallery_video'];
|
2933 |
+
|
2934 |
+
$id = $this->get_id();
|
2935 |
+
|
2936 |
+
if ( $is_video ) {
|
2937 |
+
|
2938 |
+
$type = $item['premium_gallery_video_type'];
|
2939 |
+
|
2940 |
+
$this->add_render_attribute(
|
2941 |
+
$lightbox_key,
|
2942 |
+
array(
|
2943 |
+
'class' => array(
|
2944 |
+
'pa-gallery-lightbox-wrap',
|
2945 |
+
'pa-gallery-video-icon',
|
2946 |
+
),
|
2947 |
+
)
|
2948 |
+
);
|
2949 |
+
|
2950 |
+
if ( 'yes' === $lightbox ) {
|
2951 |
+
|
2952 |
+
$lightbox_options = array();
|
2953 |
+
|
2954 |
+
if ( 1 === count( $settings['premium_gallery_img_content'] ) || self::$check_self_hosted ) {
|
2955 |
+
$lightbox_options = array(
|
2956 |
+
'type' => 'video',
|
2957 |
+
'videoType' => $item['premium_gallery_video_type'],
|
2958 |
+
'url' => $item['video_link'],
|
2959 |
+
'modalOptions' => array(
|
2960 |
+
'id' => 'elementor-lightbox-' . $id,
|
2961 |
+
'videoAspectRatio' => '169',
|
2962 |
+
),
|
2963 |
+
);
|
2964 |
+
|
2965 |
+
if ( 'hosted' === $type ) {
|
2966 |
+
$lightbox_options['videoParams'] = $this->get_hosted_params( $item );
|
2967 |
+
}
|
2968 |
+
}
|
2969 |
+
|
2970 |
+
$this->add_render_attribute(
|
2971 |
+
$lightbox_key,
|
2972 |
+
array(
|
2973 |
+
'data-elementor-open-lightbox' => 'yes',
|
2974 |
+
'data-elementor-lightbox' => wp_json_encode( $lightbox_options ),
|
2975 |
+
'data-elementor-lightbox-video' => $item['video_link'],
|
2976 |
+
)
|
2977 |
+
);
|
2978 |
+
|
2979 |
+
// Make sure videos slideshow is enabled only when there are no self hosted videos
|
2980 |
+
// Self hosted videos causes issue with slideshow
|
2981 |
+
if ( ! self::$check_self_hosted ) {
|
2982 |
+
$this->add_render_attribute( $lightbox_key, 'data-elementor-lightbox-slideshow', count( $settings['premium_gallery_img_content'] ) > 1 ? $this->get_id() : false );
|
2983 |
+
}
|
2984 |
+
}
|
2985 |
+
|
2986 |
+
?>
|
2987 |
+
<div>
|
2988 |
+
<a class="pa-gallery-magnific-image pa-gallery-video-icon" <?php echo wp_kses_post( $this->get_render_attribute_string( $lightbox_key ) ); ?>>
|
2989 |
+
<span>
|
2990 |
+
<?php
|
2991 |
+
Icons_Manager::render_icon( $settings['premium_gallery_videos_icon'], array( 'aria-hidden' => 'true' ) );
|
2992 |
+
?>
|
2993 |
+
</span>
|
2994 |
+
</a>
|
2995 |
+
</div>
|
2996 |
+
|
2997 |
+
<?php
|
2998 |
+
return;
|
2999 |
+
}
|
3000 |
+
|
3001 |
+
if ( 'yes' === $lightbox ) {
|
3002 |
+
|
3003 |
+
if ( 'yes' !== $item['premium_gallery_lightbox_whole'] ) {
|
3004 |
+
|
3005 |
+
$this->add_render_attribute(
|
3006 |
+
$lightbox_key,
|
3007 |
+
array(
|
3008 |
+
'class' => 'pa-gallery-magnific-image',
|
3009 |
+
'href' => $href,
|
3010 |
+
)
|
3011 |
+
);
|
3012 |
+
|
3013 |
+
if ( 'default' !== $lightbox_type ) {
|
3014 |
+
|
3015 |
+
$this->add_render_attribute(
|
3016 |
+
$lightbox_key,
|
3017 |
+
array(
|
3018 |
+
'data-elementor-open-lightbox' => $lightbox_type,
|
3019 |
+
'data-elementor-lightbox-slideshow' => count( $settings['premium_gallery_img_content'] ) > 1 ? $id : false,
|
3020 |
+
)
|
3021 |
+
);
|
3022 |
+
|
3023 |
+
if ( 'yes' === $settings['lightbox_show_title'] ) {
|
3024 |
+
|
3025 |
+
$alt = Control_Media::get_image_alt( $item['premium_gallery_img'] );
|
3026 |
+
|
3027 |
+
$this->add_render_attribute( $lightbox_key, 'data-elementor-lightbox-title', $alt );
|
3028 |
+
|
3029 |
+
}
|
3030 |
+
} else {
|
3031 |
+
|
3032 |
+
$rel = sprintf( 'prettyPhoto[premium-grid-%s]', $this->get_id() );
|
3033 |
+
|
3034 |
+
$this->add_render_attribute(
|
3035 |
+
$lightbox_key,
|
3036 |
+
array(
|
3037 |
+
'data-rel' => $rel,
|
3038 |
+
)
|
3039 |
+
);
|
3040 |
+
|
3041 |
+
}
|
3042 |
+
|
3043 |
+
?>
|
3044 |
+
|
3045 |
+
<a <?php echo wp_kses_post( $this->get_render_attribute_string( $lightbox_key ) ); ?>>
|
3046 |
+
<span>
|
3047 |
+
<?php
|
3048 |
+
Icons_Manager::render_icon( $settings['premium_gallery_lightbox_icon'], array( 'aria-hidden' => 'true' ) );
|
3049 |
+
?>
|
3050 |
+
</span>
|
3051 |
+
</a>
|
3052 |
+
<?php
|
3053 |
+
}
|
3054 |
+
}
|
3055 |
+
|
3056 |
+
if ( ! empty( $item['premium_gallery_img_link']['url'] ) || ! empty( $item['premium_gallery_img_existing'] ) ) {
|
3057 |
+
|
3058 |
+
if ( 'yes' !== $item['premium_gallery_link_whole'] ) {
|
3059 |
+
|
3060 |
+
$icon_link = '';
|
3061 |
+
|
3062 |
+
$this->add_render_attribute(
|
3063 |
+
$link_key,
|
3064 |
+
array(
|
3065 |
+
'class' => 'pa-gallery-img-link',
|
3066 |
+
)
|
3067 |
+
);
|
3068 |
+
|
3069 |
+
if ( 'url' === $item['premium_gallery_img_link_type'] && ! empty( $item['premium_gallery_img_link']['url'] ) ) {
|
3070 |
+
|
3071 |
+
$icon_link = $item['premium_gallery_img_link']['url'];
|
3072 |
+
|
3073 |
+
$external = $item['premium_gallery_img_link']['is_external'] ? '_blank' : '';
|
3074 |
+
|
3075 |
+
$no_follow = $item['premium_gallery_img_link']['nofollow'] ? 'nofollow' : '';
|
3076 |
+
|
3077 |
+
$this->add_render_attribute(
|
3078 |
+
$link_key,
|
3079 |
+
array(
|
3080 |
+
'href' => $icon_link,
|
3081 |
+
'target' => $external,
|
3082 |
+
'rel' => $no_follow,
|
3083 |
+
)
|
3084 |
+
);
|
3085 |
+
|
3086 |
+
} elseif ( 'link' === $item['premium_gallery_img_link_type'] && ! empty( $item['premium_gallery_img_existing'] ) ) {
|
3087 |
+
|
3088 |
+
$icon_link = get_permalink( $item['premium_gallery_img_existing'] );
|
3089 |
+
|
3090 |
+
$this->add_render_attribute(
|
3091 |
+
$link_key,
|
3092 |
+
array(
|
3093 |
+
'href' => $icon_link,
|
3094 |
+
)
|
3095 |
+
);
|
3096 |
+
|
3097 |
+
}
|
3098 |
+
|
3099 |
+
if ( ! empty( $icon_link ) ) {
|
3100 |
+
?>
|
3101 |
+
<a <?php echo wp_kses_post( $this->get_render_attribute_string( $link_key ) ); ?>>
|
3102 |
+
<span>
|
3103 |
+
<?php
|
3104 |
+
Icons_Manager::render_icon( $settings['premium_gallery_links_icon'], array( 'aria-hidden' => 'true' ) );
|
3105 |
+
?>
|
3106 |
+
</span>
|
3107 |
+
</a>
|
3108 |
+
<?php
|
3109 |
+
}
|
3110 |
+
}
|
3111 |
+
}
|
3112 |
+
}
|
3113 |
+
|
3114 |
+
/**
|
3115 |
+
* Render Image Caption
|
3116 |
+
*
|
3117 |
+
* Written in PHP to render the final HTML for image title and description
|
3118 |
+
*
|
3119 |
+
* @since 3.6.4
|
3120 |
+
* @access protected
|
3121 |
+
*
|
3122 |
+
* @param array $item image repeater item.
|
3123 |
+
*/
|
3124 |
+
protected function render_image_caption( $item ) {
|
3125 |
+
|
3126 |
+
$media_lib = $item['premmium_gallery_img_info'];
|
3127 |
+
|
3128 |
+
if ( 'yes' === $media_lib ) {
|
3129 |
+
$title = Control_Media::get_image_title( $item['premium_gallery_img'] );
|
3130 |
+
|
3131 |
+
$description = get_post( $item['premium_gallery_img']['id'] )->post_content;
|
3132 |
+
} else {
|
3133 |
+
$title = $item['premium_gallery_img_name'];
|
3134 |
+
|
3135 |
+
$description = $item['premium_gallery_img_desc'];
|
3136 |
+
}
|
3137 |
+
|
3138 |
+
if ( ! empty( $title ) || ! empty( $description ) ) :
|
3139 |
+
?>
|
3140 |
+
<div class="premium-gallery-caption">
|
3141 |
+
|
3142 |
+
<?php if ( ! empty( $title ) ) : ?>
|
3143 |
+
<span class="premium-gallery-img-name"><?php echo wp_kses_post( $title ); ?></span>
|
3144 |
+
<?php
|
3145 |
+
endif;
|
3146 |
+
|
3147 |
+
if ( ! empty( $description ) ) :
|
3148 |
+
?>
|
3149 |
+
<p class="premium-gallery-img-desc"><?php echo wp_kses_post( $description ); ?></p>
|
3150 |
+
<?php endif; ?>
|
3151 |
+
|
3152 |
+
</div>
|
3153 |
+
<?php
|
3154 |
+
endif;
|
3155 |
+
}
|
3156 |
+
|
3157 |
+
/**
|
3158 |
+
* Get Hosted Videos Parameters
|
3159 |
+
*
|
3160 |
+
* @since 3.7.0
|
3161 |
+
* @access private
|
3162 |
+
*
|
3163 |
+
* @param array $item image repeater item.
|
3164 |
+
*/
|
3165 |
+
private function get_hosted_params( $item ) {
|
3166 |
+
|
3167 |
+
$video_params = array();
|
3168 |
+
|
3169 |
+
if ( $item['premium_gallery_video_controls'] ) {
|
3170 |
+
$video_params['controls'] = '';
|
3171 |
+
}
|
3172 |
+
|
3173 |
+
if ( $item['premium_gallery_video_mute'] ) {
|
3174 |
+
$video_params['muted'] = 'muted';
|
3175 |
+
}
|
3176 |
+
|
3177 |
+
if ( $item['premium_gallery_video_loop'] ) {
|
3178 |
+
$video_params['loop'] = '';
|
3179 |
+
}
|
3180 |
+
|
3181 |
+
return $video_params;
|
3182 |
+
}
|
3183 |
+
|
3184 |
+
/**
|
3185 |
+
* Get embeded videos parameters
|
3186 |
+
*
|
3187 |
+
* @since 3.7.0
|
3188 |
+
* @access private
|
3189 |
+
*
|
3190 |
+
* @param array $item image repeater item.
|
3191 |
+
*/
|
3192 |
+
private function get_embed_params( $item ) {
|
3193 |
+
|
3194 |
+
$video_params = array();
|
3195 |
+
|
3196 |
+
$props = Embed::get_video_properties( $item['premium_gallery_video_url'] );
|
3197 |
+
|
3198 |
+
$video_params['loop'] = $item['premium_gallery_video_loop'] ? '1' : '0';
|
3199 |
+
|
3200 |
+
$video_params['controls'] = $item['premium_gallery_video_controls'] ? '1' : '0';
|
3201 |
+
|
3202 |
+
$key = 'youtube' === $item['premium_gallery_video_type'] ? 'mute' : 'muted';
|
3203 |
+
|
3204 |
+
$video_params['playlist'] = $props['video_id'];
|
3205 |
+
|
3206 |
+
$video_params[ $key ] = $item['premium_gallery_video_mute'] ? '1' : '0';
|
3207 |
+
|
3208 |
+
if ( 'vimeo' === $item['premium_gallery_video_type'] ) {
|
3209 |
+
$video_params['autopause'] = '0';
|
3210 |
+
}
|
3211 |
+
|
3212 |
+
return $video_params;
|
3213 |
+
}
|
3214 |
+
|
3215 |
+
/**
|
3216 |
+
* Update Controls
|
3217 |
+
*
|
3218 |
+
* @since 3.8.8
|
3219 |
+
* @access private
|
3220 |
+
*/
|
3221 |
+
private function update_controls() {
|
3222 |
+
|
3223 |
+
$this->update_responsive_control(
|
3224 |
+
'premium_gallery_img_border_radius',
|
3225 |
+
array(
|
3226 |
+
'type' => Controls_Manager::DIMENSIONS,
|
3227 |
+
'selectors' => array(
|
3228 |
+
'{{WRAPPER}} .pa-gallery-img-container, {{WRAPPER}} .pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper, {{WRAPPER}} .pa-gallery-img.style2 .pa-gallery-icons-caption-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
3229 |
+
),
|
3230 |
+
|
3231 |
+
)
|
3232 |
+
);
|
3233 |
+
|
3234 |
+
$this->update_responsive_control(
|
3235 |
+
'premium_gallery_content_border_radius',
|
3236 |
+
array(
|
3237 |
+
'type' => Controls_Manager::DIMENSIONS,
|
3238 |
+
'selectors' => array(
|
3239 |
+
'{{WRAPPER}} .premium-gallery-caption' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
|
3240 |
+
),
|
3241 |
+
|
3242 |
+
)
|
3243 |
+
);
|
3244 |
+
|
3245 |
+
}
|
3246 |
+
|
3247 |
+
/**
|
3248 |
+
* Render Editor Masonry Script.
|
3249 |
+
*
|
3250 |
+
* @since 3.12.3
|
3251 |
+
* @access protected
|
3252 |
+
*/
|
3253 |
+
protected function render_editor_script() {
|
3254 |
+
|
3255 |
+
?>
|
3256 |
+
<script type="text/javascript">
|
3257 |
+
jQuery( document ).ready( function( $ ) {
|
3258 |
+
|
3259 |
+
$( '.premium-gallery-container' ).each( function() {
|
3260 |
+
|
3261 |
+
var $node_id = '<?php echo esc_attr( $this->get_id() ); ?>',
|
3262 |
+
scope = $( '[data-id="' + $node_id + '"]' ),
|
3263 |
+
settings = $(this).data("settings"),
|
3264 |
+
selector = $(this);
|
3265 |
+
|
3266 |
+
if ( selector.closest( scope ).length < 1 ) {
|
3267 |
+
return;
|
3268 |
+
}
|
3269 |
+
|
3270 |
+
var masonryArgs = {
|
3271 |
+
// set itemSelector so .grid-sizer is not used in layout
|
3272 |
+
filter : settings.active_cat,
|
3273 |
+
itemSelector : '.premium-gallery-item',
|
3274 |
+
percentPosition : true,
|
3275 |
+
layoutMode : settings.img_size,
|
3276 |
+
};
|
3277 |
+
|
3278 |
+
var $isotopeObj = {};
|
3279 |
+
|
3280 |
+
selector.imagesLoaded( function() {
|
3281 |
+
|
3282 |
+
$isotopeObj = selector.isotope( masonryArgs );
|
3283 |
+
|
3284 |
+
selector.find('.premium-gallery-item').resize( function() {
|
3285 |
+
$isotopeObj.isotope( 'layout' );
|
3286 |
+
});
|
3287 |
+
});
|
3288 |
+
|
3289 |
+
});
|
3290 |
+
});
|
3291 |
+
</script>
|
3292 |
+
<?php
|
3293 |
+
}
|
3294 |
+
}
|