PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.9.2
Post Grid Gutenberg Blocks – PostX v2.9.2
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / Post_Slider_2.php

Post_Slider_2.php in Post Grid Gutenberg Blocks – PostX 2.9.2, at blocks/Post_Slider_2.php

3,259 lines 153.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP\blocks;
3
4 defined('ABSPATH') || exit;
5
6 class Post_Slider_2 {
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false) {
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19 'previewImg' => [
20 'type' => 'string',
21 'default' => '',
22 ],
23
24 /*============================
25 General Setting
26 ============================*/
27 'slidesToShow' => [
28 'type' => 'object',
29 'default' => (object)['lg' =>'1', 'sm' =>'1', 'xs' =>'1'],
30 'style' => [
31 (object)[
32 'depends' => [
33 (object)['key'=>'fade','condition'=>'!=','value'=> true],
34 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
35 ],
36 ],
37 (object)[
38 'depends' => [
39 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
40 ],
41 ],
42 ],
43 ],
44 'autoPlay' => [
45 'type' => 'boolean',
46 'default' => true,
47 ],
48 'height' => [
49 'type' => 'object',
50 'default' => (object)['lg' =>'550', 'unit' =>'px'],
51 'style' => [
52 (object)[
53 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-slider-wrap { height: {{height}}; }'
54 ],
55 ],
56 ],
57 'slidesCenterPadding' => [
58 'type' => 'object',
59 'default' => (object)['lg'=>'160', 'sm'=>'100', 'xs'=>'50',],
60 'style' => [
61 (object)[
62 'depends' => [
63 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
64 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
65 (object)['key'=>'layout','condition'=>'!=','value'=> "slide5"],
66 (object)['key'=>'layout','condition'=>'!=','value'=> "slide6"],
67 (object)['key'=>'layout','condition'=>'!=','value'=> "slide8"],
68 ],
69 ],
70 ]
71 ],
72 'allItemScale' => [
73 'type' => 'object',
74 'default' => (object)['lg'=>'.9'],
75 'style' => [
76 (object)[
77 'depends' => [
78 (object)['key'=>'layout','condition'=>'==','value'=> "slide4"],
79 ],
80 'selector' => '{{ULTP}} .slick-slide { transition: .3s; transform: scale({{allItemScale}}) }'
81 ],
82 (object)[
83 'depends' => [
84 (object)['key'=>'layout','condition'=>'==','value'=> "slide7"],
85 ],
86 'selector' => '{{ULTP}} .slick-slide { transition: .3s; transform: scale({{allItemScale}}) }'
87 ],
88 ]
89 ],
90 'centerItemScale' => [
91 'type' => 'object',
92 'default' => (object)['lg'=>'1.12'],
93 'style' => [
94 (object)[
95 'depends' => [
96 (object)['key'=>'layout','condition'=>'==','value'=> "slide4"],
97 ],
98 'selector' => '{{ULTP}} .slick-center { transition: .3s; transform: scale({{centerItemScale}}) !important; }'
99 ],
100 (object)[
101 'depends' => [
102 (object)['key'=>'layout','condition'=>'==','value'=> "slide7"],
103 ],
104 'selector' => '{{ULTP}} .slick-center { transition: .3s; transform: scale({{centerItemScale}}) !important; }'
105 ],
106 ]
107 ],
108 'slideSpeed' => [
109 'type' => 'string',
110 'default' => '3000',
111 'style' => [
112 (object)[
113 'depends' => [
114 (object)['key'=>'autoPlay','condition'=>'==','value'=>true],
115 ]
116 ],
117 ]
118 ],
119 'sliderGap' => [
120 'type' => 'string',
121 'default' => '',
122 'style' => [
123 (object)[
124 'depends' => [
125 (object)['key' => 'layout','condition' => '!=','value' => 'slide2']
126 ],
127 'selector'=>'{{ULTP}} .ultp-block-items-wrap .slick-slide>div{ padding: 0 {{sliderGap}}px; }{{ULTP}} .ultp-block-items-wrap .slick-list{ margin: 0 -{{sliderGap}}px; }'
128 ],
129 ],
130 ],
131 'dots' => [
132 'type' => 'boolean',
133 'default' => true,
134 ],
135 'arrows' => [
136 'type' => 'boolean',
137 'default' => true,
138 ],
139 'preLoader' => [
140 'type' => 'boolean',
141 'default' => false,
142 ],
143 'fade' => [
144 'type' => 'boolean',
145 'default' => false,
146 'style' => [
147 (object)[
148 'depends' => [
149 (object)['key' => 'layout','condition' => '==','value' => 'slide2'],
150 ],
151 ],
152 (object)[
153 'depends' => [
154 (object)['key' => 'layout','condition' => '==','value' => 'slide5'],
155 ],
156 ],
157 (object)[
158 'depends' => [
159 (object)['key' => 'layout','condition' => '==','value' => 'slide6'],
160 ],
161 ],
162 (object)[
163 'depends' => [
164 (object)['key' => 'layout','condition' => '==','value' => 'slide8'],
165 ],
166 ],
167 ],
168 ],
169 'titleShow' => [
170 'type' => 'boolean',
171 'default' => true,
172 ],
173 'titleStyle' => [
174 'type' => 'string',
175 'default' => 'none',
176 ],
177 'headingShow' => [
178 'type' => 'boolean',
179 'default' => false,
180 ],
181 'excerptShow' => [
182 'type' => 'boolean',
183 'default' => false
184 ],
185 'catShow' => [
186 'type' => 'boolean',
187 'default' => true,
188 ],
189 'metaShow' => [
190 'type' => 'boolean',
191 'default' => true,
192 ],
193 'readMore' => [
194 'type' => 'boolean',
195 'default' => false,
196 ],
197 'contentTag' => [
198 'type' => 'string',
199 'default' => 'div',
200 ],
201 'openInTab' => [
202 'type' => 'boolean',
203 'default' => false,
204 ],
205 'notFoundMessage' => [
206 'type' => 'string',
207 'default' => 'No Post Found'
208 ],
209
210
211 /*============================
212 Query Setting
213 ============================*/
214 'layout' => [
215 'type' => 'string',
216 'default' => 'slide1',
217 ],
218 'queryQuick' => [
219 'type' => 'string',
220 'default' => '',
221 'style' => [
222 (object)[
223 'depends' => [
224 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
225 ]
226 ],
227 ],
228 ],
229 'queryNumPosts' => [
230 'type' => 'object',
231 'default' => (object)['lg'=>5],
232 'style' => [
233 (object)[
234 'depends' => [
235 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')]
236 ]
237 ],
238 ],
239 ],
240 'queryNumber' => [
241 'type' => 'string',
242 'default' => 5,
243 'style' => [
244 (object)[
245 'depends' => [
246 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
247 ]
248 ],
249 ],
250 ],
251 'queryType' => [
252 'type' => 'string',
253 'default' => 'post'
254 ],
255 'queryTax' => [
256 'type' => 'string',
257 'default' => 'category',
258 'style' => [
259 (object)[
260 'depends' => [
261 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
262 ]
263 ],
264 ],
265 ],
266 'queryTaxValue' => [
267 'type' => 'string',
268 'default' => '[]',
269 'style' => [
270 (object)[
271 'depends' => [
272 (object)['key' => 'queryTax','condition' => '!=','value' => ''],
273 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
274 ]
275 ],
276 ],
277 ],
278 'queryRelation' => [
279 'type' => 'string',
280 'default' => 'OR',
281 'style' => [
282 (object)[
283 'depends' => [
284 (object)['key' => 'queryTaxValue','condition' => '!=','value' => '[]'],
285 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
286 ]
287 ],
288 ],
289 ],
290 'queryOrderBy' => [
291 'type' => 'string',
292 'default' => 'date',
293 ],
294 'metaKey' => [
295 'type' => 'string',
296 'default' => 'custom_meta_key',
297 'style' => [
298 (object)[
299 'depends' => [
300 (object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num'],
301 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
302 ]
303 ],
304 ],
305 ],
306 'queryOrder' => [
307 'type' => 'string',
308 'default' => 'desc',
309 ],
310 // Include Remove from Version 2.5.4
311 'queryInclude' => [
312 'type' => 'string',
313 'default' => '',
314 ],
315 'queryExclude' => [
316 'type' => 'string',
317 'default' => '[]',
318 'style' => [
319 (object)[
320 'depends' => [
321 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
322 ]
323 ],
324 ],
325 ],
326 'queryAuthor' => [
327 'type' => 'string',
328 'default' => '[]',
329 'style' => [
330 (object)[
331 'depends' => [
332 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
333 ]
334 ],
335 ],
336 ],
337 'queryOffset' => [
338 'type' => 'string',
339 'default' => '0',
340 'style' => [
341 (object)[
342 'depends' => [
343 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
344 ]
345 ],
346 ],
347 ],
348 'queryExcludeTerm' => [
349 'type' => 'string',
350 'default' => '[]',
351 'style' => [
352 (object)[
353 'depends' => [
354 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
355 ]
356 ],
357 ],
358 ],
359 'queryExcludeAuthor' => [
360 'type' => 'string',
361 'default' => '[]',
362 'style' => [
363 (object)[
364 'depends' => [
365 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
366 ]
367 ],
368 ],
369 ],
370 'querySticky' => [
371 'type' => 'boolean',
372 'default' => true,
373 'style' => [
374 (object)[
375 'depends' => [
376 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
377 ]
378 ],
379 ],
380 ],
381 'queryUnique' => [
382 'type' => 'string',
383 'default' => '',
384 'style' => [
385 (object)[
386 'depends' => [
387 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
388 ]
389 ],
390 ],
391 ],
392 'queryPosts' => [
393 'type' => 'string',
394 'default' => '[]',
395 'style' => [
396 (object)[
397 'depends' => [
398 (object)['key' => 'queryType','condition' => '==','value' => 'posts']
399 ]
400 ],
401 ],
402 ],
403 'queryCustomPosts' => [
404 'type' => 'string',
405 'default' => '[]',
406 'style' => [
407 (object)[
408 'depends' => [
409 (object)['key' => 'queryType','condition' => '==','value' => 'customPosts']
410 ]
411 ],
412 ],
413 ],
414
415
416 /*============================
417 Arrow Style
418 ============================*/
419 'arrowStyle' => [
420 'type' => 'string',
421 'default' => 'leftAngle2#rightAngle2',
422 'style' => [
423 (object)[
424 'depends' => [
425 (object)['key'=>'arrows','condition'=>'==','value'=>true],
426 ],
427 ],
428 ]
429 ],
430 'arrowSize' => [
431 'type' => 'object',
432 'default' => (object)['lg' =>'80', 'unit' =>'px'],
433 'style' => [
434 (object)[
435 'depends' => [
436 (object)['key'=>'arrows','condition'=>'==','value'=>true],
437 ],
438 'selector' => '{{ULTP}} .slick-next svg, {{ULTP}} .slick-prev svg { width:{{arrowSize}}; }'
439 ],
440 ]
441 ],
442 'arrowWidth' => [
443 'type' => 'object',
444 'default' => (object)['lg' =>'60', 'unit' =>'px'],
445 'style' => [
446 (object)[
447 'depends' => [
448 (object)['key'=>'arrows','condition'=>'==','value'=>true],
449 ],
450 'selector' => '{{ULTP}} .slick-arrow { width:{{arrowWidth}}; }'
451 ],
452 ]
453 ],
454 'arrowHeight' => [
455 'type' => 'object',
456 'default' => (object)['lg' =>'60', 'unit' =>'px'],
457 'style' => [
458 (object)[
459 'depends' => [
460 (object)['key'=>'arrows','condition'=>'==','value'=>true],
461 ],
462 'selector' => '{{ULTP}} .slick-arrow { height:{{arrowHeight}}; } {{ULTP}} .slick-arrow { line-height:{{arrowHeight}}; }'
463 ],
464 ]
465 ],
466 'arrowPos' => [
467 'type' => 'string',
468 'default' => 'left',
469 'style' => [
470 (object)[
471 'depends' => [
472 (object)['key'=>'layout','condition'=>'==','value'=> "slide6"],
473 ],
474 ],
475 (object)[
476 'depends' => [
477 (object)['key'=>'layout','condition'=>'==','value'=> "slide5"],
478 ],
479 ],
480 (object)[
481 'depends' => [
482 (object)['key'=>'layout','condition'=>'==','value'=> "slide8"],
483 ],
484 ],
485 ],
486 ],
487 'arrowVartical' => [
488 'type' => 'object',
489 'default' => (object)['lg' =>'45', 'sm' =>'16', 'xs' =>'0','unit' =>'px'],
490 'style' => [
491 (object)[
492 'depends' => [
493 (object)['key'=>'arrows','condition'=>'==','value'=>true],
494 (object)['key'=>'layout','condition'=>'!=','value'=> "slide5"],
495 (object)['key'=>'layout','condition'=>'!=','value'=> "slide8"],
496 (object)['key'=>'layout','condition'=>'!=','value'=> "slide6"],
497 ],
498 'selector' => '{{ULTP}} .slick-next { right:{{arrowVartical}}; } {{ULTP}} .slick-prev { left:{{arrowVartical}}; }'
499 ],
500 (object)[
501 'depends' => [
502 (object)['key'=>'arrows','condition'=>'==','value'=>true],
503 (object)['key'=>'layout','condition'=>'==','value'=> "slide5"],
504 ],
505 'selector' => '{{ULTP}} .slick-next { top:{{arrowVartical}}; } {{ULTP}} .slick-prev { top:{{arrowVartical}}; }'
506 ],
507 (object)[
508 'depends' => [
509 (object)['key'=>'arrows','condition'=>'==','value'=>true],
510 (object)['key'=>'layout','condition'=>'==','value'=> "slide6"],
511 ],
512 'selector' => '{{ULTP}} .slick-next { top:{{arrowVartical}}; } {{ULTP}} .slick-prev { top:{{arrowVartical}}; }'
513 ],
514 (object)[
515 'depends' => [
516 (object)['key'=>'arrows','condition'=>'==','value'=>true],
517 (object)['key'=>'layout','condition'=>'==','value'=> "slide7"],
518 ],
519 'selector' => '{{ULTP}} .slick-next { top:{{arrowVartical}}; } {{ULTP}} .slick-prev { top:{{arrowVartical}}; }'
520 ],
521 (object)[
522 'depends' => [
523 (object)['key'=>'arrows','condition'=>'==','value'=>true],
524 (object)['key'=>'layout','condition'=>'==','value'=> "slide8"],
525 ],
526 'selector' => '{{ULTP}} .slick-next { top:{{arrowVartical}}; } {{ULTP}} .slick-prev { top:{{arrowVartical}}; }'
527 ],
528 ]
529 ],
530 'prevArrowPos' => [
531 'type' => 'object',
532 'default' => (object)['lg' =>'', 'unit' =>'px'],
533 'style' => [
534 (object)[
535 'depends' => [
536 (object)['key'=>'layout','condition'=>'==','value'=> 'slide5'],
537 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
538 ],
539 'selector' => '{{ULTP}} .slick-prev { left: unset !important; right: {{prevArrowPos}} !important; }'
540 ],
541 (object)[
542 'depends' => [
543 (object)['key'=>'layout','condition'=>'==','value'=> 'slide6'],
544 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
545 ],
546 'selector' => '{{ULTP}} .slick-prev { left: unset !important; right: {{prevArrowPos}} !important; }'
547 ],
548 (object)[
549 'depends' => [
550 (object)['key'=>'layout','condition'=>'==','value'=> 'slide8'],
551 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
552 ],
553 'selector' => '{{ULTP}} .slick-prev { left: unset !important; right: {{prevArrowPos}} !important; }'
554 ],
555 (object)[
556 'depends' => [
557 (object)['key'=>'layout','condition'=>'==','value'=> 'slide7'],
558 ],
559 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
560 ],
561
562 (object)[
563 'depends' => [
564 (object)['key'=>'layout','condition'=>'==','value'=> 'slide7'],
565 ],
566 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
567 ],
568 (object)[
569 'depends' => [
570 (object)['key'=>'layout','condition'=>'==','value'=> 'slide5'],
571 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
572 ],
573 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
574 ],
575 (object)[
576 'depends' => [
577 (object)['key'=>'layout','condition'=>'==','value'=> 'slide6'],
578 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
579 ],
580 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
581 ],
582 (object)[
583 'depends' => [
584 (object)['key'=>'layout','condition'=>'==','value'=> 'slide8'],
585 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
586 ],
587 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
588 ],
589 // (object)[
590 // 'depends' => [
591 // (object)['key'=>'layout','condition'=>'==','value'=> 'slide7'],
592 // (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
593 // ],
594 // 'selector' => '{{ULTP}} .slick-prev { right: unset !important; left: {{prevArrowPos}} !important; }'
595 // ],
596 ]
597 ],
598 'nextArrowPos' => [
599 'type' => 'object',
600 'default' => (object)['lg' =>'60', 'unit' =>'px'],
601 'style' => [
602 (object)[
603 'depends' => [
604 (object)['key'=>'layout','condition'=>'==','value'=> 'slide5'],
605 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
606 ],
607 'selector' => '{{ULTP}} .slick-next { left: unset !important; right: {{nextArrowPos}} !important; }'
608 ],
609 (object)[
610 'depends' => [
611 (object)['key'=>'layout','condition'=>'==','value'=> 'slide6'],
612 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
613 ],
614 'selector' => '{{ULTP}} .slick-next { left: unset !important; right: {{nextArrowPos}} !important; }'
615 ],
616 (object)[
617 'depends' => [
618 (object)['key'=>'layout','condition'=>'==','value'=> 'slide8'],
619 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'right'],
620 ],
621 'selector' => '{{ULTP}} .slick-next { left: unset !important; right: {{nextArrowPos}} !important; }'
622 ],
623 (object)[
624 'depends' => [
625 (object)['key'=>'layout','condition'=>'==','value'=> 'slide7'],
626 ],
627 'selector' => '{{ULTP}} .slick-next { left: unset !important; right: {{nextArrowPos}} !important; }'
628 ],
629 (object)[
630 'depends' => [
631 (object)['key'=>'layout','condition'=>'==','value'=> 'slide5'],
632 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
633 ],
634 'selector' => '{{ULTP}} .slick-next { right: unset !important; left: {{nextArrowPos}} !important; }'
635 ],
636 (object)[
637 'depends' => [
638 (object)['key'=>'layout','condition'=>'==','value'=> 'slide6'],
639 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
640 ],
641 'selector' => '{{ULTP}} .slick-next { right: unset !important; left: {{nextArrowPos}} !important; }'
642 ],
643 (object)[
644 'depends' => [
645 (object)['key'=>'layout','condition'=>'==','value'=> 'slide8'],
646 (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
647 ],
648 'selector' => '{{ULTP}} .slick-next { right: unset !important; left: {{nextArrowPos}} !important; }'
649 ],
650 // (object)[
651 // 'depends' => [
652 // (object)['key'=>'layout','condition'=>'==','value'=> 'slide7'],
653 // (object)['key'=>'arrowPos','condition'=>'==','value'=> 'left'],
654 // ],
655 // 'selector' => '{{ULTP}} .slick-next { right: unset !important; left: {{nextArrowPos}} !important; }'
656 // ],
657 ]
658 ],
659 'arrowColor' => [
660 'type' => 'string',
661 'default' => '#000',
662 'style' => [
663 (object)[
664 'depends' => [
665 (object)['key'=>'arrows','condition'=>'==','value'=>true],
666 ],
667 'selector'=>'{{ULTP}} .slick-arrow:before { color:{{arrowColor}}; } {{ULTP}} .slick-arrow svg { fill:{{arrowColor}}; }'
668 ],
669 ],
670 ],
671 'arrowHoverColor' => [
672 'type' => 'string',
673 'default' => '#000',
674 'style' => [
675 (object)[
676 'depends' => [
677 (object)['key'=>'arrows','condition'=>'==','value'=>true],
678 ],
679 'selector'=>'{{ULTP}} .slick-arrow:hover:before { color:{{arrowHoverColor}}; } {{ULTP}} .slick-arrow:hover svg { fill:{{arrowHoverColor}}; }'
680 ],
681 ],
682 ],
683 'arrowBg' => [
684 'type' => 'string',
685 'default' => '',
686 'style' => [
687 (object)[
688 'depends' => [
689 (object)['key'=>'arrows','condition'=>'==','value'=>true],
690 ],
691 'selector'=>'{{ULTP}} .slick-arrow { background:{{arrowBg}}; }'
692 ],
693 ],
694 ],
695 'arrowHoverBg' => [
696 'type' => 'string',
697 'default' => '',
698 'style' => [
699 (object)[
700 'depends' => [
701 (object)['key'=>'arrows','condition'=>'==','value'=>true],
702 ],
703 'selector'=>'{{ULTP}} .slick-arrow:hover { background:{{arrowHoverBg}}; }'
704 ],
705 ],
706 ],
707 'arrowBorder' => [
708 'type' => 'object',
709 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
710 'style' => [
711 (object)[
712 'depends' => [
713 (object)['key'=>'arrows','condition'=>'==','value'=>true],
714 ],
715 'selector'=>'{{ULTP}} .slick-arrow'
716 ],
717 ],
718 ],
719 'arrowHoverBorder' => [
720 'type' => 'object',
721 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
722 'style' => [
723 (object)[
724 'depends' => [
725 (object)['key'=>'arrows','condition'=>'==','value'=>true],
726 ],
727 'selector'=>'{{ULTP}} .slick-arrow:hover'
728 ],
729 ],
730 ],
731 'arrowRadius' => [
732 'type' => 'object',
733 'default' => (object)['lg' =>(object)['top' => '0','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
734 'style' => [
735 (object)[
736 'depends' => [
737 (object)['key'=>'arrows','condition'=>'==','value'=>true],
738 ],
739 'selector'=>'{{ULTP}} .slick-arrow { border-radius: {{arrowRadius}}; }'
740 ],
741 ],
742 ],
743 'arrowHoverRadius' => [
744 'type' => 'object',
745 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left' => '50','right' => '50', 'unit' =>'px']],
746 'style' => [
747 (object)[
748 'depends' => [
749 (object)['key'=>'arrows','condition'=>'==','value'=>true],
750 ],
751 'selector'=>'{{ULTP}} .slick-arrow:hover{ border-radius: {{arrowHoverRadius}}; }'
752 ],
753 ],
754 ],
755 'arrowShadow' => [
756 'type' => 'object',
757 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
758 'style' => [
759 (object)[
760 'depends' => [
761 (object)['key'=>'arrows','condition'=>'==','value'=>true],
762 ],
763 'selector'=>'{{ULTP}} .slick-arrow'
764 ],
765 ],
766 ],
767 'arrowHoverShadow' => [
768 'type' => 'object',
769 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
770 'style' => [
771 (object)[
772 'depends' => [
773 (object)['key'=>'arrows','condition'=>'==','value'=>true],
774 ],
775 'selector'=>'{{ULTP}} .slick-arrow:hover'
776 ],
777 ],
778 ],
779
780
781 /*============================
782 Heading Style
783 ============================*/
784 'headingText' => [
785 'type' => 'string',
786 'default' => 'Post Slider #1',
787 ],
788 'headingURL' => [
789 'type' => 'string',
790 'default' => '',
791 ],
792 'headingBtnText' => [
793 'type' => 'string',
794 'default' => 'View More',
795 'style' => [
796 (object)[
797 'depends' => [
798 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
799 ],
800 ],
801 ],
802 ],
803 'headingStyle' => [
804 'type' => 'string',
805 'default' => 'style9',
806 ],
807 'headingTag' => [
808 'type' => 'string',
809 'default' => 'h2',
810 ],
811 'headingAlign' => [
812 'type' => 'string',
813 'default' => 'left',
814 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']]
815 ],
816 'headingTypo' => [
817 'type' => 'object',
818 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => '', 'family'=>'','weight'=>'700'],
819 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
820 ],
821 'headingColor' => [
822 'type' => 'string',
823 'default' => '#0e1523',
824 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
825 ],
826 'headingBorderBottomColor' => [
827 'type' => 'string',
828 'default' => '#0e1523',
829 'style' => [
830 (object)[
831 'depends' => [
832 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
833 ],
834 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
835 ],
836 (object)[
837 'depends' => [
838 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
839 ],
840 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
841 ],
842 (object)[
843 'depends' => [
844 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
845 ],
846 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
847 ],
848 (object)[
849 'depends' => [
850 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
851 ],
852 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { background-color: {{headingBorderBottomColor}}; }'
853 ],
854 (object)[
855 'depends' => [
856 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
857 ],
858 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
859 ],
860 (object)[
861 'depends' => [
862 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
863 ],
864 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
865 ],
866 (object)[
867 'depends' => [
868 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
869 ],
870 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
871 ],
872 (object)[
873 'depends' => [
874 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
875 ],
876 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
877 ],
878 (object)[
879 'depends' => [
880 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
881 ],
882 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
883 ],
884 (object)[
885 'depends' => [
886 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
887 ],
888 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
889 ],
890 (object)[
891 'depends' => [
892 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
893 ],
894 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
895 ],
896 (object)[
897 'depends' => [
898 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
899 ],
900 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
901 ],
902 (object)[
903 'depends' => [
904 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
905 ],
906 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
907 ],
908 (object)[
909 'depends' => [
910 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
911 ],
912 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
913 ],
914 ],
915 ],
916 'headingBorderBottomColor2' => [
917 'type' => 'string',
918 'default' => '#e5e5e5',
919 'style' => [
920 (object)[
921 'depends' => [
922 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
923 ],
924 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
925 ],
926 (object)[
927 'depends' => [
928 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
929 ],
930 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
931 ],
932 (object)[
933 'depends' => [
934 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
935 ],
936 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
937 ],
938 (object)[
939 'depends' => [
940 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
941 ],
942 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
943 ],
944 ],
945 ],
946 'headingBg' => [
947 'type' => 'string',
948 'default' => '#037fff',
949 'style' => [
950 (object)[
951 'depends' => [
952 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
953 ],
954 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
955 ],
956 (object)[
957 'depends' => [
958 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
959 ],
960 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
961 ],
962 (object)[
963 'depends' => [
964 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
965 ],
966 'selector'=>'{{ULTP}} .ultp-heading-inner span, {{ULTP}} .ultp-heading-inner span:after { background-color:{{headingBg}}; }'
967 ],
968 (object)[
969 'depends' => [
970 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
971 ],
972 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
973 ],
974 (object)[
975 'depends' => [
976 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
977 ],
978 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
979 ],
980 (object)[
981 'depends' => [
982 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
983 ],
984 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
985 ],
986 (object)[
987 'depends' => [
988 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
989 ],
990 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
991 ],
992 (object)[
993 'depends' => [
994 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
995 ],
996 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
997 ],
998 ],
999 ],
1000 'headingBg2' => [
1001 'type' => 'string',
1002 'default' => '#e5e5e5',
1003 'style' => [
1004 (object)[
1005 'depends' => [
1006 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
1007 ],
1008 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
1009 ],
1010 ],
1011 ],
1012 'headingBtnTypo' => [
1013 'type' => 'object',
1014 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
1015 'style' => [
1016 (object)[
1017 'depends' => [
1018 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
1019 ],
1020 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn'
1021 ],
1022 ],
1023 ],
1024 'headingBtnColor' => [
1025 'type' => 'string',
1026 'default' => '#037fff',
1027 'style' => [
1028 (object)[
1029 'depends' => [
1030 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
1031 ],
1032 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
1033 ],
1034 ],
1035 ],
1036 'headingBtnHoverColor' => [
1037 'type' => 'string',
1038 'default' => '#0a31da',
1039 'style' => [
1040 (object)[
1041 'depends' => [
1042 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
1043 ],
1044 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
1045 ],
1046 ],
1047 ],
1048
1049 'headingBorder' => [
1050 'type' => 'string',
1051 'default' => '3',
1052 'style' => [
1053 (object)[
1054 'depends' => [
1055 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
1056 ],
1057 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
1058 ],
1059 (object)[
1060 'depends' => [
1061 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
1062 ],
1063 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
1064 ],
1065 (object)[
1066 'depends' => [
1067 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
1068 ],
1069 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
1070 ],
1071 (object)[
1072 'depends' => [
1073 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
1074 ],
1075 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { height:{{headingBorder}}px; }'
1076 ],
1077 (object)[
1078 'depends' => [
1079 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
1080 ],
1081 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
1082 ],
1083 (object)[
1084 'depends' => [
1085 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
1086 ],
1087 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
1088 ],
1089 (object)[
1090 'depends' => [
1091 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
1092 ],
1093 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
1094 ],
1095 (object)[
1096 'depends' => [
1097 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
1098 ],
1099 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
1100 ],
1101 (object)[
1102 'depends' => [
1103 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
1104 ],
1105 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
1106 ],
1107 (object)[
1108 'depends' => [
1109 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
1110 ],
1111 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
1112 ],
1113 (object)[
1114 'depends' => [
1115 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
1116 ],
1117 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
1118 ],
1119 (object)[
1120 'depends' => [
1121 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
1122 ],
1123 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
1124 ],
1125 (object)[
1126 'depends' => [
1127 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
1128 ],
1129 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
1130 ],
1131 (object)[
1132 'depends' => [
1133 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
1134 ],
1135 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
1136 ],
1137 ],
1138 ],
1139 'headingSpacing' => [
1140 'type' => 'object',
1141 'default' => (object)['lg'=>20, 'unit'=>'px'],
1142 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
1143 ],
1144
1145 'headingRadius' => [
1146 'type' => 'object',
1147 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
1148 'style' => [
1149 (object)[
1150 'depends' => [
1151 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
1152 ],
1153 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
1154 ],
1155 (object)[
1156 'depends' => [
1157 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
1158 ],
1159 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
1160 ],
1161 (object)[
1162 'depends' => [
1163 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
1164 ],
1165 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
1166 ],
1167 (object)[
1168 'depends' => [
1169 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
1170 ],
1171 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
1172 ],
1173 (object)[
1174 'depends' => [
1175 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
1176 ],
1177 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
1178 ],
1179 (object)[
1180 'depends' => [
1181 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
1182 ],
1183 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
1184 ],
1185 (object)[
1186 'depends' => [
1187 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
1188 ],
1189 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
1190 ],
1191 (object)[
1192 'depends' => [
1193 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
1194 ],
1195 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
1196 ],
1197 ]
1198 ],
1199 'headingPadding' => [
1200 'type' => 'object',
1201 'default' => (object)['lg' =>(object)['unit' =>'px']],
1202 'style' => [
1203 (object)[
1204 'depends' => [
1205 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
1206 ],
1207 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1208 ],
1209 (object)[
1210 'depends' => [
1211 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
1212 ],
1213 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1214 ],
1215 (object)[
1216 'depends' => [
1217 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
1218 ],
1219 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1220 ],
1221 (object)[
1222 'depends' => [
1223 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
1224 ],
1225 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1226 ],
1227 (object)[
1228 'depends' => [
1229 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
1230 ],
1231 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1232 ],
1233 (object)[
1234 'depends' => [
1235 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
1236 ],
1237 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1238 ],
1239 (object)[
1240 'depends' => [
1241 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
1242 ],
1243 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1244 ],
1245 (object)[
1246 'depends' => [
1247 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
1248 ],
1249 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1250 ],
1251 (object)[
1252 'depends' => [
1253 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
1254 ],
1255 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1256 ],
1257 (object)[
1258 'depends' => [
1259 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
1260 ],
1261 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1262 ],
1263 (object)[
1264 'depends' => [
1265 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
1266 ],
1267 'selector'=>'{{ULTP}} .ultp-heading-inner span { padding:{{headingPadding}}; }'
1268 ],
1269 ]
1270 ],
1271 'subHeadingShow' => [
1272 'type' => 'boolean',
1273 'default' => false,
1274 ],
1275 'subHeadingText' => [
1276 'type' => 'string',
1277 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
1278 'style' => [
1279 (object)[
1280 'depends' => [
1281 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1282 ],
1283 ],
1284 ],
1285 ],
1286 'subHeadingTypo' => [
1287 'type' => 'object',
1288 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'16', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => '','family'=>'','weight'=>'500'],
1289 'style' => [
1290 (object)[
1291 'depends' => [
1292 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1293 ],
1294 'selector'=>'{{ULTP}} .ultp-sub-heading div'
1295 ],
1296 ],
1297 ],
1298 'subHeadingColor' => [
1299 'type' => 'string',
1300 'default' => '#989898',
1301 'style' => [
1302 (object)[
1303 'depends' => [
1304 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1305 ],
1306 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
1307 ],
1308 ],
1309 ],
1310 'subHeadingSpacing' => [
1311 'type' => 'object',
1312 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
1313 'style' => [
1314 (object)[
1315 'depends' => [
1316 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1317 ],
1318 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
1319 ],
1320 ],
1321 ],
1322
1323
1324 /*============================
1325 Content Wrap Style
1326 ============================*/
1327 'contentVerticalPosition' => [
1328 'type' => 'string',
1329 'default' => 'bottomPosition',
1330 'style' => [
1331 (object)[
1332 'depends' => [
1333 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'topPosition'],
1334 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1335 ],
1336 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }'
1337 ],
1338 (object)[
1339 'depends' => [
1340 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'middlePosition'],
1341 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1342 ],
1343 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }'
1344 ],
1345 (object)[
1346 'depends' => [
1347 (object)['key'=>'contentVerticalPosition','condition'=>'==','value'=>'bottomPosition'],
1348 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1349 ],
1350 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }'
1351 ],
1352 ]
1353 ],
1354 'contentHorizontalPosition' => [
1355 'type' => 'string',
1356 'default' => 'centerPosition',
1357 'style' => [
1358 (object)[
1359 'depends' => [
1360 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'leftPosition'],
1361 (object)['key'=>'layout','condition'=>'!=','value'=>'slide2'],
1362 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1363 ],
1364 'selector'=>'{{ULTP}} .ultp-block-content-leftPosition { justify-content:flex-start; }'
1365 ],
1366 (object)[
1367 'depends' => [
1368 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'centerPosition'],
1369 (object)['key'=>'layout','condition'=>'!=','value'=>'slide2'],
1370 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1371 ],
1372 'selector'=>'{{ULTP}} .ultp-block-content-centerPosition { justify-content:center; }'
1373 ],
1374 (object)[
1375 'depends' => [
1376 (object)['key'=>'contentHorizontalPosition','condition'=>'==','value'=>'rightPosition'],
1377 (object)['key'=>'layout','condition'=>'!=','value'=>'slide2'],
1378 (object)['key'=>'layout','condition'=>'!=','value'=>'slide3'],
1379 ],
1380 'selector'=>'{{ULTP}} .ultp-block-content-rightPosition { justify-content:flex-end; }'
1381 ],
1382 ]
1383 ],
1384 'contentAlign' => [
1385 'type' => 'string',
1386 'default' => "center",
1387 'style' => [
1388 (object)[
1389 'depends' => [
1390 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1391 ],
1392 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1393 ],
1394 (object)[
1395 'depends' => [
1396 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1397 ],
1398 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1399 ],
1400 (object)[
1401 'depends' => [
1402 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1403 ],
1404 'selector'=>'{{ULTP}} .ultp-block-content-inner { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}'
1405 ],
1406 ],
1407 ],
1408
1409 'contenWraptWidth' => [
1410 'type' => 'object',
1411 'default' => (object)['lg'=>'100','unit' =>'%'],
1412 'style' => [
1413 (object)[
1414 'depends' => [
1415 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1416 ],
1417 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-content { width:{{contenWraptWidth}}; }'
1418 ],
1419 (object)[
1420 'depends' => [
1421 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1422 ],
1423 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-content { width:{{contenWraptWidth}}; }'
1424 ],
1425 (object)[
1426 'depends' => [
1427 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1428 ],
1429 'selector' => '{{ULTP}} .ultp-block-content .ultp-block-content-inner { width:{{contenWraptWidth}}; }'
1430 ],
1431 ]
1432 ],
1433 'contenWraptHeight' => [
1434 'type' => 'object',
1435 'default' => (object)['lg'=>''],
1436 'style' => [
1437 (object)[
1438 'depends' => [
1439 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1440 ],
1441 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-content { height:{{contenWraptHeight}}; }'
1442 ],
1443 (object)[
1444 'depends' => [
1445 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1446 ],
1447 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-content { height:{{contenWraptHeight}} !important; }'
1448 ],
1449 (object)[
1450 'depends' => [
1451 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1452 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1453 ],
1454 'selector' => '{{ULTP}} .ultp-block-slider-wrap .ultp-block-content .ultp-block-content-inner { height:{{contenWraptHeight}} !important; }'
1455 ],
1456 ]
1457 ],
1458 'slideBgBlur' => [
1459 'type' => 'string',
1460 'default' => '',
1461 'style' => [
1462 (object)[
1463 'depends' => [
1464 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1465 ],
1466 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content { backdrop-filter: blur({{slideBgBlur}}px); }'
1467 ],
1468 (object)[
1469 'depends' => [
1470 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1471 ],
1472 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content { backdrop-filter: blur({{slideBgBlur}}px); }'
1473 ],
1474 (object)[
1475 'depends' => [
1476 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1477 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1478 ],
1479 'selector'=>'{{ULTP}} .ultp-block-content-inner { backdrop-filter: blur({{slideBgBlur}}px);}'
1480 ],
1481 ]
1482 ],
1483 'contentWrapBg' => [
1484 'type' => 'string',
1485 'default' => '#00000069',
1486 'style' => [
1487 (object)[
1488 'depends' => [
1489 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1490 ],
1491 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content { background:{{contentWrapBg}}; }'
1492 ],
1493 (object)[
1494 'depends' => [
1495 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1496 ],
1497 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content { background:{{contentWrapBg}}; }'
1498 ],
1499 (object)[
1500 'depends' => [
1501 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1502 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1503 ],
1504 'selector'=>'{{ULTP}} .ultp-block-content-inner { background:{{contentWrapBg}}; }'
1505 ],
1506 ],
1507 ],
1508 'contentWrapHoverBg' => [
1509 'type' => 'string',
1510 'default' => '#00000069',
1511 'style' => [
1512 (object)[
1513 'depends' => [
1514 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1515 ],
1516 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content:hover { background:{{contentWrapHoverBg}}; }'
1517 ],
1518 (object)[
1519 'depends' => [
1520 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1521 ],
1522 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content:hover { background:{{contentWrapHoverBg}}; }'
1523 ],
1524 (object)[
1525 'depends' => [
1526 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1527 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1528 ],
1529 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover { background:{{contentWrapHoverBg}}; }'
1530 ],
1531 ],
1532 ],
1533 'contentWrapBorder' => [
1534 'type' => 'object',
1535 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1536 'style' => [
1537 (object)[
1538 'depends' => [
1539 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1540 ],
1541 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content'
1542 ],
1543 (object)[
1544 'depends' => [
1545 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1546 ],
1547 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content'
1548 ],
1549 (object)[
1550 'depends' => [
1551 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1552 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1553 ],
1554 'selector'=>'{{ULTP}} .ultp-block-content-inner'
1555 ],
1556 ],
1557 ],
1558 'contentWrapHoverBorder' => [
1559 'type' => 'object',
1560 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1561 'style' => [
1562 (object)[
1563 'depends' => [
1564 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1565 ],
1566 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content:hover'
1567 ],
1568 (object)[
1569 'depends' => [
1570 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1571 ],
1572 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content:hover'
1573 ],
1574 (object)[
1575 'depends' => [
1576 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1577 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1578 ],
1579 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
1580 ],
1581 ],
1582 ],
1583 'contentWrapRadius' => [
1584 'type' => 'object',
1585 'default' => (object)['lg' =>(object)['top' => '6','bottom' => '6', 'left' => '6', 'right' => '6', 'unit' =>'px']],
1586 'style' => [
1587 (object)[
1588 'depends' => [
1589 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1590 ],
1591 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content { border-radius:{{contentWrapRadius}}; }'
1592 ],
1593 (object)[
1594 'depends' => [
1595 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1596 ],
1597 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content { border-radius:{{contentWrapRadius}}; }'
1598 ],
1599 (object)[
1600 'depends' => [
1601 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1602 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1603 ],
1604 'selector'=>'{{ULTP}} .ultp-block-content-inner { border-radius: {{contentWrapRadius}}; }'
1605 ],
1606 ],
1607 ],
1608 'contentWrapHoverRadius' => [
1609 'type' => 'object',
1610 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left' => '', 'right' => '', 'unit' =>'px']],
1611 'style' => [
1612 (object)[
1613 'depends' => [
1614 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1615 ],
1616 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content:hover{ border-radius: {{contentWrapHoverRadius}}; }'
1617 ],
1618 (object)[
1619 'depends' => [
1620 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1621 ],
1622 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content:hover{ border-radius: {{contentWrapHoverRadius}}; }'
1623 ],
1624 (object)[
1625 'depends' => [
1626 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1627 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1628 ],
1629 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover{ border-radius: {{contentWrapHoverRadius}}; }'
1630 ],
1631 ],
1632 ],
1633 'contentWrapShadow' => [
1634 'type' => 'object',
1635 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 5, 'bottom' => 15, 'left' => 0],'color' => 'rgba(0,0,0,0.15)'],
1636 'style' => [
1637 (object)[
1638 'depends' => [
1639 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1640 ],
1641 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content'
1642 ],
1643 (object)[
1644 'depends' => [
1645 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1646 ],
1647 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content'
1648 ],
1649 (object)[
1650 'depends' => [
1651 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1652 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1653 ],
1654 'selector'=>'{{ULTP}} .ultp-block-content-inner'
1655 ],
1656 ],
1657 ],
1658 'contentWrapHoverShadow' => [
1659 'type' => 'object',
1660 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 0, 'right' => 10, 'bottom' => 25, 'left' => 0],'color' => 'rgba(0,0,0,0.25)'],
1661 'style' => [
1662 (object)[
1663 'depends' => [
1664 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1665 ],
1666 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content'
1667 ],
1668 (object)[
1669 'depends' => [
1670 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1671 ],
1672 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content'
1673 ],
1674 (object)[
1675 'depends' => [
1676 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1677 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1678 ],
1679 'selector'=>'{{ULTP}} .ultp-block-content-inner:hover'
1680 ],
1681 ],
1682 ],
1683
1684 'contentWrapPadding' => [
1685 'type' => 'object',
1686 'default' => (object)['lg' =>(object)['top' => '27','bottom' => '27', 'left'=>'','right'=>'', 'unit' =>'px']],
1687 'style' => [
1688 (object)[
1689 'depends' => [
1690 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1691 ],
1692 'selector' => '{{ULTP}} .ultp-slide-slide2 .ultp-block-content { padding: {{contentWrapPadding}}; }'
1693 ],
1694 (object)[
1695 'depends' => [
1696 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1697 ],
1698 'selector' => '{{ULTP}} .ultp-slide-slide3 .ultp-block-content { padding: {{contentWrapPadding}}; }'
1699 ],
1700 (object)[
1701 'depends' => [
1702 (object)['key'=>'layout','condition'=>'!=','value'=> "slide2"],
1703 (object)['key'=>'layout','condition'=>'!=','value'=> "slide3"],
1704 ],
1705 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{contentWrapPadding}}; }'
1706 ],
1707 ],
1708 ],
1709 'slideWrapMargin' => [
1710 'type' => 'object',
1711 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50', 'left'=>'50','right'=>'50', 'unit' =>'px']],
1712 'style' => [
1713 (object)[
1714 'depends' => [
1715 (object)['key'=>'layout','condition'=>'==','value'=> "slide6"],
1716 ],
1717 'selector' => '{{ULTP}} .ultp-block-content { margin: {{slideWrapMargin}}; }'
1718 ],
1719 (object)[
1720 'depends' => [
1721 (object)['key'=>'layout','condition'=>'==','value'=> "slide7"],
1722 ],
1723 'selector' => '{{ULTP}} .ultp-block-content { margin: {{slideWrapMargin}}; }'
1724 ],
1725 (object)[
1726 'depends' => [
1727 (object)['key'=>'layout','condition'=>'==','value'=> "slide8"],
1728 ],
1729 'selector' => '{{ULTP}} .ultp-block-content { margin: {{slideWrapMargin}}; }'
1730 ],
1731 ],
1732 ],
1733
1734
1735 /*============================
1736 Image Style
1737 ============================*/
1738 'imageShow' => [
1739 'type' => 'boolean',
1740 'default' => true,
1741 ],
1742 'imgCrop' => [
1743 'type' => 'string',
1744 'default' => 'full',
1745 ],
1746 'imgOverlay' => [
1747 'type' => 'boolean',
1748 'default' => false,
1749 ],
1750 'imgBgbrightness' => [
1751 'type' => 'string',
1752 'default' => '',
1753 'style' => [
1754 (object)[
1755 'selector' => '{{ULTP}} .ultp-block-image { filter: brightness({{imgBgbrightness}}); }'
1756 ],
1757 ]
1758 ],
1759 'imgBgBlur' => [
1760 'type' => 'string',
1761 'default' => '',
1762 'style' => [
1763 (object)[
1764 'selector' => '{{ULTP}} .ultp-block-image > a { filter: blur({{imgBgBlur}}px);}'
1765 ],
1766 ]
1767 ],
1768 'imgOverlayType' => [
1769 'type' => 'string',
1770 'default' => 'default',
1771 'style' => [
1772 (object)[
1773 'depends' => [
1774 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1775 ]
1776 ],
1777 ]
1778 ],
1779 'overlayColor' => [
1780 'type' => 'object',
1781 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1782 'style' => [
1783 (object)[
1784 'depends' => [
1785 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1786 ],
1787 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1788 ],
1789 ],
1790 ],
1791 'imgOpacity' => [
1792 'type' => 'string',
1793 'default' => .7,
1794 'style' => [
1795 (object)[
1796 'depends' => [
1797 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1798 ],
1799 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1800 ],
1801 ],
1802 ],
1803 'imgHeight' => [
1804 'type' => 'object',
1805 'default' => (object)['lg'=>''],
1806 'style' => [
1807 (object)[
1808 'depends' => [
1809 (object)['key'=>'layout','condition'=>'==','value'=> "slide3"],
1810 ],
1811 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-image-inner { height:{{imgHeight}} !important; }'
1812 ],
1813 (object)[
1814 'depends' => [
1815 (object)['key'=>'layout','condition'=>'==','value'=> "slide6"],
1816 ],
1817 'selector' => '{{ULTP}} .ultp-block-item .ultp-block-slider-wrap > .ultp-block-image-inner { height:{{imgHeight}} !important; }'
1818 ],
1819 ]
1820 ],
1821 'imgWidth' => [
1822 'type' => 'object',
1823 'default' => (object)['lg'=>'', 'unit'=>'%'],
1824 'style' => [
1825 (object)[
1826 'depends' => [
1827 (object)['key'=>'layout','condition'=>'==','value'=> "slide2"],
1828 ],
1829 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-image-inner { width:{{imgWidth}} !important; }'
1830 ],
1831 (object)[
1832 'depends' => [
1833 (object)['key'=>'layout','condition'=>'==','value'=> "slide7"],
1834 ],
1835 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-image-inner { width:{{imgWidth}} !important; }'
1836 ],
1837 (object)[
1838 'depends' => [
1839 (object)['key'=>'layout','condition'=>'==','value'=> "slide6"],
1840 ],
1841 'selector' => '{{ULTP}} .ultp-block-slider-wrap > .ultp-block-image-inner { width:{{imgWidth}} !important; }'
1842 ],
1843 ]
1844 ],
1845 'imgGrayScale' => [
1846 'type' => 'object',
1847 'default' => (object)['lg' =>'0', 'ulg' =>'%', 'unit' =>'%'],
1848 'style' => [
1849 (object)[
1850 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }'
1851 ],
1852 ],
1853 ],
1854 'imgHoverGrayScale' => [
1855 'type' => 'object',
1856 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1857 'style' => [
1858 (object)[
1859 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }'
1860 ],
1861 ],
1862 ],
1863 'imgRadius' => [
1864 'type' => 'object',
1865 'default' => (object)['lg' =>'', 'unit' =>'px'],
1866 'style' => [
1867 (object)[
1868 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1869 ],
1870 ],
1871 ],
1872 'imgHoverRadius' => [
1873 'type' => 'object',
1874 'default' => (object)['lg' =>'', 'unit' =>'px'],
1875 'style' => [
1876 (object)[
1877 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1878 ],
1879 ],
1880 ],
1881 'imgShadow' => [
1882 'type' => 'object',
1883 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1884 'style' => [
1885 (object)[
1886 'selector'=>'{{ULTP}} .ultp-block-image'
1887 ],
1888 ],
1889 ],
1890 'imgHoverShadow' => [
1891 'type' => 'object',
1892 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1893 'style' => [
1894 (object)[
1895 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1896 ],
1897 ],
1898 ],
1899 'fallbackEnable' => [
1900 'type' => 'boolean',
1901 'default' => true,
1902 'style' => [
1903 (object)[
1904 'depends' => [
1905 (object)['key'=>'imageShow','condition'=>'==','value'=> true],
1906 ],
1907 ],
1908 ],
1909 ],
1910 'fallbackImg' => [
1911 'type' => 'object',
1912 'default' => '',
1913 'style' => [
1914 (object)[
1915 'depends' => [
1916 (object)['key'=>'imageShow','condition'=>'==','value'=> true],
1917 (object)['key'=>'fallbackEnable','condition'=>'==','value'=> true],
1918 ],
1919 ],
1920 ],
1921 ],
1922 'imgSrcset' => [
1923 'type' => 'boolean',
1924 'default' => false,
1925 ],
1926 'imgLazy' => [
1927 'type' => 'boolean',
1928 'default' => false,
1929 ],
1930
1931
1932 /*============================
1933 Dot Setting/Style
1934 ============================*/
1935 'dotWidth' => [
1936 'type' => 'object',
1937 'default' => (object)['lg' =>'5', 'unit' =>'px'],
1938 'style' => [
1939 (object)[
1940 'depends' => [
1941 (object)['key'=>'dots','condition'=>'==','value'=>true],
1942 ],
1943 'selector' => '{{ULTP}} .slick-dots li button { width:{{dotWidth}}; }'
1944 ],
1945 ]
1946 ],
1947 'dotHeight' => [
1948 'type' => 'object',
1949 'default' => (object)['lg' =>'5', 'unit' =>'px'],
1950 'style' => [
1951 (object)[
1952 'depends' => [
1953 (object)['key'=>'dots','condition'=>'==','value'=>true],
1954 ],
1955 'selector' => '{{ULTP}} .slick-dots li button { height:{{dotHeight}}; }'
1956 ],
1957 ]
1958 ],
1959 'dotHoverWidth' => [
1960 'type' => 'object',
1961 'default' => (object)['lg' =>'8', 'unit' =>'px'],
1962 'style' => [
1963 (object)[
1964 'depends' => [
1965 (object)['key'=>'dots','condition'=>'==','value'=>true],
1966 ],
1967 'selector' => '{{ULTP}} .slick-dots li.slick-active button { width:{{dotHoverWidth}}; }'
1968 ],
1969 ]
1970 ],
1971 'dotHoverHeight' => [
1972 'type' => 'object',
1973 'default' => (object)['lg' =>'8', 'unit' =>'px'],
1974 'style' => [
1975 (object)[
1976 'depends' => [
1977 (object)['key'=>'dots','condition'=>'==','value'=>true],
1978 ],
1979 'selector' => '{{ULTP}} .slick-dots li.slick-active button { height:{{dotHoverHeight}}; }'
1980 ],
1981 ]
1982 ],
1983 'dotSpace' => [
1984 'type' => 'object',
1985 'default' => (object)['lg' =>'4', 'unit' =>'px'],
1986 'style' => [
1987 (object)[
1988 'depends' => [
1989 (object)['key'=>'dots','condition'=>'==','value'=>true],
1990 ],
1991 'selector' => '{{ULTP}} .slick-dots { padding: 0 {{dotSpace}}; } {{ULTP}} .slick-dots li button { margin: 0 {{dotSpace}}; }'
1992 ],
1993 ]
1994 ],
1995 'dotVartical' => [
1996 'type' => 'object',
1997 'default' => (object)['lg' =>'-20', 'unit' =>'px'],
1998 'style' => [
1999 (object)[
2000 'depends' => [
2001 (object)['key'=>'dots','condition'=>'==','value'=>true],
2002 ],
2003 'selector' => '{{ULTP}} .slick-dots { bottom:{{dotVartical}}; }'
2004 ],
2005 ]
2006 ],
2007 'dotHorizontal' => [
2008 'type' => 'object',
2009 'default' => (object)['lg'=>''],
2010 'style' => [
2011 (object)[
2012 'depends' => [
2013 (object)['key'=>'dots','condition'=>'==','value'=>true],
2014 ],
2015 'selector' => '{{ULTP}} .slick-dots { left:{{dotHorizontal}}; }'
2016 ],
2017 ]
2018 ],
2019 'dotBg' => [
2020 'type' => 'string',
2021 'default' => '#9b9b9b',
2022 'style' => [
2023 (object)[
2024 'depends' => [
2025 (object)['key'=>'dots','condition'=>'==','value'=>true],
2026 ],
2027 'selector'=>'{{ULTP}} .slick-dots li button { background:{{dotBg}}; }'
2028 ],
2029 ],
2030 ],
2031 'dotHoverBg' => [
2032 'type' => 'string',
2033 'default' => '#9b9b9b',
2034 'style' => [
2035 (object)[
2036 'depends' => [
2037 (object)['key'=>'dots','condition'=>'==','value'=>true],
2038 ],
2039 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { background:{{dotHoverBg}}; }'
2040 ],
2041 ],
2042 ],
2043 'dotBorder' => [
2044 'type' => 'object',
2045 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2046 'style' => [
2047 (object)[
2048 'depends' => [
2049 (object)['key'=>'dots','condition'=>'==','value'=>true],
2050 ],
2051 'selector'=>'{{ULTP}} .slick-dots li button'
2052 ],
2053 ],
2054 ],
2055 'dotHoverBorder' => [
2056 'type' => 'object',
2057 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2058 'style' => [
2059 (object)[
2060 'depends' => [
2061 (object)['key'=>'dots','condition'=>'==','value'=>true],
2062 ],
2063 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
2064 ],
2065 ],
2066 ],
2067 'dotRadius' => [
2068 'type' => 'object',
2069 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
2070 'style' => [
2071 (object)[
2072 'depends' => [
2073 (object)['key'=>'dots','condition'=>'==','value'=>true],
2074 ],
2075 'selector'=>'{{ULTP}} .slick-dots li button { border-radius: {{dotRadius}}; }'
2076 ],
2077 ],
2078 ],
2079 'dotHoverRadius' => [
2080 'type' => 'object',
2081 'default' => (object)['lg' =>(object)['top' => '50','bottom' => '50','left' => '50','right' => '50', 'unit' =>'px']],
2082 'style' => [
2083 (object)[
2084 'depends' => [
2085 (object)['key'=>'dots','condition'=>'==','value'=>true],
2086 ],
2087 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button { border-radius: {{dotHoverRadius}}; }'
2088 ],
2089 ],
2090 ],
2091 'dotShadow' => [
2092 'type' => 'object',
2093 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2094 'style' => [
2095 (object)[
2096 'depends' => [
2097 (object)['key'=>'dots','condition'=>'==','value'=>true],
2098 ],
2099 'selector'=>'{{ULTP}} .slick-dots li button'
2100 ],
2101 ],
2102 ],
2103 'dotHoverShadow' => [
2104 'type' => 'object',
2105 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2106 'style' => [
2107 (object)[
2108 'depends' => [
2109 (object)['key'=>'dots','condition'=>'==','value'=>true],
2110 ],
2111 'selector'=>'{{ULTP}} .slick-dots li button:hover, {{ULTP}} .slick-dots li.slick-active button'
2112 ],
2113 ],
2114 ],
2115
2116
2117 /*============================
2118 Read more Setting/Style
2119 ============================*/
2120 'readMoreText' => [
2121 'type' => 'string',
2122 'default' => ''
2123 ],
2124 'readMoreIcon' => [
2125 'type' => 'string',
2126 'default' => 'rightArrowLg',
2127 ],
2128 'readMoreTypo' => [
2129 'type' => 'object',
2130 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => '', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
2131 'style' => [
2132 (object)[
2133 'depends' => [
2134 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2135 ],
2136 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2137 ],
2138 ],
2139 ],
2140 'readMoreIconSize' => [
2141 'type' => 'object',
2142 'default' => (object)['lg' =>'', 'unit' =>'px'],
2143 'style' => [
2144 (object)[
2145 'depends' => [
2146 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2147 ],
2148 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2149 ],
2150 ]
2151 ],
2152 'readMoreColor' => [
2153 'type' => 'string',
2154 'default' => '#000',
2155 'style' => [
2156 (object)[
2157 'depends' => [
2158 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2159 ],
2160 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2161 ],
2162 ],
2163 ],
2164 'readMoreBgColor' => [
2165 'type' => 'object',
2166 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => '#037fff'],
2167 'style' => [
2168 (object)[
2169 'depends' => [
2170 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2171 ],
2172 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2173 ],
2174 ],
2175 ],
2176 'readMoreBorder' => [
2177 'type' => 'object',
2178 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2179 'style' => [
2180 (object)[
2181 'depends' => [
2182 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2183 ],
2184 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2185 ],
2186 ],
2187 ],
2188 'readMoreRadius' => [
2189 'type' => 'object',
2190 'default' => (object)['lg' =>'', 'unit' =>'px'],
2191 'style' => [
2192 (object)[
2193 'depends' => [
2194 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2195 ],
2196 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2197 ],
2198 ],
2199 ],
2200 'readMoreHoverColor' => [
2201 'type' => 'string',
2202 'default' => '#037fff',
2203 'style' => [
2204 (object)[
2205 'depends' => [
2206 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2207 ],
2208 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2209 ],
2210 ],
2211 ],
2212 'readMoreBgHoverColor' => [
2213 'type' => 'object',
2214 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0c32d8'],
2215 'style' => [
2216 (object)[
2217 'depends' => [
2218 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2219 ],
2220 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2221 ],
2222 ],
2223 ],
2224 'readMoreHoverBorder' => [
2225 'type' => 'object',
2226 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2227 'style' => [
2228 (object)[
2229 'depends' => [
2230 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2231 ],
2232 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2233 ],
2234 ],
2235 ],
2236 'readMoreHoverRadius' => [
2237 'type' => 'object',
2238 'default' => (object)['lg' =>'', 'unit' =>'px'],
2239 'style' => [
2240 (object)[
2241 'depends' => [
2242 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2243 ],
2244 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2245 ],
2246 ],
2247 ],
2248 'readMoreSacing' => [
2249 'type' => 'object',
2250 'default' => (object)['lg' =>(object)['top' => 30,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2251 'style' => [
2252 (object)[
2253 'depends' => [
2254 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2255 ],
2256 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2257 ],
2258 ],
2259 ],
2260 'readMorePadding' => [
2261 'type' => 'object',
2262 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2263 'style' => [
2264 (object)[
2265 'depends' => [
2266 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2267 ],
2268 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2269 ],
2270 ],
2271 ],
2272
2273
2274 /*============================
2275 Title Setting/Style
2276 ============================*/
2277 'titleTag' => [
2278 'type' => 'string',
2279 'default' => 'h3',
2280 ],
2281 'titlePosition' => [
2282 'type' => 'boolean',
2283 'default' => true,
2284 ],
2285 'titleColor' => [
2286 'type' => 'string',
2287 'default' => '#fff',
2288 'style' => [
2289 (object)[
2290 'depends' => [
2291 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
2292 ],
2293 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title a { color:{{titleColor}} !important; }'
2294 ],
2295 ],
2296 ],
2297 'titleHoverColor' => [
2298 'type' => 'string',
2299 'default' => 'rgba(107,107,107,1)',
2300 'style' => [
2301 (object)[
2302 'depends' => [
2303 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
2304 ],
2305 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
2306 ],
2307 ],
2308 ],
2309 'titleTypo' => [
2310 'type' => 'object',
2311 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'24', 'unit'=>'px'], 'height'=>(object)['lg'=>'36', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'300', 'transform' => 'uppercase'],
2312 'style' => [
2313 (object)[
2314 'depends' => [
2315 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
2316 ],
2317 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title, {{ULTP}} .ultp-block-item .ultp-block-content .ultp-block-title a'
2318 ],
2319 ],
2320 ],
2321 'titlePadding' => [
2322 'type' => 'object',
2323 'default' => (object)['lg'=>(object)['top'=> 0,'bottom'=> 0, 'unit'=>'px']],
2324 'style' => [
2325 (object)[
2326 'depends' => [
2327 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
2328 ],
2329 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
2330 ],
2331 ],
2332 ],
2333 'titleLength' => [
2334 'type' => 'string',
2335 'default' => 0,
2336 ],
2337 'titleBackground' => [
2338 'type' => 'string',
2339 'default' => '',
2340 'style' => [
2341 (object)[
2342 'depends' => [
2343 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
2344 ],
2345 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-title a{ padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color:{{titleBackground}}; }'
2346 ],
2347 ],
2348 ],
2349
2350 'titleAnimColor' => [
2351 'type' => 'string',
2352 'default' => 'black',
2353 'style' => [
2354 (object)[
2355 'depends' => [
2356 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1']
2357 ],
2358 'selector'=>'{{ULTP}} .ultp-title-style1 a {
2359 cursor: pointer;
2360 text-decoration: none;
2361 display: inline;
2362 padding-bottom: 2px;
2363 transition: all 0.35s linear !important;
2364 background: linear-gradient(
2365 to bottom,
2366 {{titleAnimColor}} 0%,
2367 {{titleAnimColor}} 98%
2368 );
2369 background-size: 0px 2px;
2370 background-repeat: no-repeat;
2371 background-position: left 100%;
2372 }'
2373 ],
2374 (object)[
2375 'depends' => [
2376 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2']
2377 ],
2378 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover {
2379 border-bottom:none;
2380 padding-bottom: 2px;
2381 background-position:0 100%;
2382 background-repeat: repeat;
2383 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
2384 }'
2385 ],
2386 (object)[
2387 'depends' => [
2388 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3']
2389 ],
2390 'selector'=>'{{ULTP}} .ultp-title-style3 a {
2391 text-decoration: none;
2392 $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s;
2393 position: relative;
2394 transition: all 0.35s ease-out;
2395 padding-bottom: 3px;
2396 border-bottom:none;
2397 padding-bottom: 2px;
2398 background-position:0 100%;
2399 background-repeat: repeat;
2400 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
2401 }'
2402 ],
2403 (object)[
2404 'depends' => [
2405 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4']
2406 ],
2407 'selector'=>'{{ULTP}} .ultp-title-style4 a {
2408 cursor: pointer;
2409 font-weight: 600;
2410 text-decoration: none;
2411 display: inline;
2412 padding-bottom: 2px;
2413 transition: all 0.3s linear !important;
2414 background: linear-gradient(
2415 to bottom,
2416 {{titleAnimColor}} 0%,
2417 {{titleAnimColor}} 98%
2418 );
2419 background-size: 100% 2px;
2420 background-repeat: no-repeat;
2421 background-position: left 100%;
2422 }'
2423 ] ,
2424 (object)[
2425 'depends' => [
2426 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
2427 ],
2428 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{
2429 text-decoration: none;
2430 transition: all 0.35s ease-out;
2431 border-bottom:none;
2432 padding-bottom: 2px;
2433 background-position:0 100%;
2434 background-repeat: repeat;
2435 background-size:auto;
2436 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
2437 } '
2438 ],
2439 (object)[
2440 'depends' => [
2441 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
2442 ],
2443 'selector'=>'{{ULTP}} .ultp-title-style5 a {
2444 cursor: pointer;
2445 text-decoration: none;
2446 display: inline;
2447 padding-bottom: 2px;
2448 transition: all 0.3s linear !important;
2449 background: linear-gradient(
2450 to bottom,
2451 {{titleAnimColor}} 0%,
2452 {{titleAnimColor}} 98%
2453 );
2454 background-size: 100% 2px;
2455 background-repeat: no-repeat;
2456 background-position: left 100%;
2457 }'
2458 ],
2459 (object)[
2460 'depends' => [
2461 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6']
2462 ],
2463 'selector'=>'{{ULTP}} .ultp-title-style6 a{
2464 background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
2465 background-repeat: no-repeat;
2466 background-size: 100% 2px;
2467 background-position: 0 88%;
2468 transition: background-size 0.15s ease-in;
2469 padding: 5px 5px;
2470 }'
2471 ],
2472 (object)[
2473 'depends' => [
2474 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7']
2475 ],
2476 'selector'=>'{{ULTP}} .ultp-title-style7 a {
2477 cursor: pointer;
2478 text-decoration: none;
2479 display: inline;
2480 padding-bottom: 2px;
2481 transition: all 0.3s linear !important;
2482 background: linear-gradient(
2483 to bottom,
2484 {{titleAnimColor}} 0%,
2485 {{titleAnimColor}} 98%
2486 );
2487 background-size: 0px 2px;
2488 background-repeat: no-repeat;
2489 background-position: right 100%;
2490 } '
2491 ],
2492 (object)[
2493 'depends' => [
2494 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8']
2495 ],
2496 'selector'=>'{{ULTP}} .ultp-title-style8 a {
2497 cursor: pointer;
2498 text-decoration: none;
2499 display: inline;
2500 padding-bottom: 2px;
2501 transition: all 0.3s linear !important;
2502 background: linear-gradient(
2503 to bottom,
2504 {{titleAnimColor}} 0%,
2505 {{titleAnimColor}} 98%
2506 );
2507 background-size: 0px 2px;
2508 background-repeat: no-repeat;
2509 background-position: center 100%;
2510 } '
2511 ],
2512 (object)[
2513 'depends' => [
2514 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9']
2515 ],
2516 'selector'=>'{{ULTP}} .ultp-title-style9 a {
2517 background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
2518 background-repeat: no-repeat;
2519 background-size: 100% 10px;
2520 background-position: 0 88%;
2521 transition: 0.3s ease-in;
2522 padding: 3px 5px;
2523 } '
2524 ]
2525 ],
2526 ],
2527
2528
2529 /*============================
2530 Meta Setting/Style
2531 ============================*/
2532 'metaPosition' => [
2533 'type' => 'string',
2534 'default' => 'top',
2535 ],
2536 'metaStyle' => [
2537 'type' => 'string',
2538 'default' => 'noIcon',
2539 ],
2540 'authorLink' => [
2541 'type' => 'boolean',
2542 'default' => true,
2543 ],
2544 'metaSeparator' => [
2545 'type' => 'string',
2546 'default' => 'dot',
2547 ],
2548 'metaList' => [
2549 'type' => 'string',
2550 'default' => '["metaAuthor","metaDate"]',
2551 ],
2552 'metaMinText' => [
2553 'type' => 'string',
2554 'default' => 'min read',
2555 ],
2556 'metaAuthorPrefix' => [
2557 'type' => 'string',
2558 'default' => '',
2559 ],
2560 'metaDateFormat' => [
2561 'type' => 'string',
2562 'default' => 'j M Y',
2563 ],
2564 'metaTypo' => [
2565 'type' => 'object',
2566 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'weight' => '300','decoration' => 'none','family'=>''],
2567 'style' => [
2568 (object)[
2569 'depends' => [
2570 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2571 ],
2572 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
2573 ],
2574 ],
2575 ],
2576 'metaColor' => [
2577 'type' => 'string',
2578 'default' => '#FFFFFFA8',
2579 'style' => [
2580 (object)[
2581 'depends' => [
2582 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2583 ],
2584 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
2585 ],
2586 ],
2587 ],
2588 'metaHoverColor' => [
2589 'type' => 'string',
2590 'default' => '#a5a5a5',
2591 'style' => [
2592 (object)[
2593 'depends' => [
2594 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2595 ],
2596 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover , {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover a { color: {{metaHoverColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover svg { fill: {{metaHoverColor}}; }'
2597 ],
2598 ],
2599 ],
2600 'metaSpacing' => [
2601 'type' => 'object',
2602 'default' => (object)['lg' =>'10', 'unit' =>'px'],
2603 'style' => [
2604 (object)[
2605 'depends' => [
2606 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2607 ],
2608 'selector'=>'{{ULTP}} .ultp-block-meta span { margin-right:{{metaSpacing}}; } {{ULTP}} .ultp-block-meta span { padding-left: {{metaSpacing}}; }'
2609 ],
2610 ],
2611 ],
2612 'metaMargin' => [
2613 'type' => 'object',
2614 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
2615 'style' => [
2616 (object)[
2617 'depends' => [
2618 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2619 ],
2620 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
2621 ],
2622 ],
2623 ],
2624 'metaPadding' => [
2625 'type' => 'object',
2626 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
2627 'style' => [
2628 (object)[
2629 'depends' => [
2630 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2631 ],
2632 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
2633 ],
2634 ],
2635 ],
2636 'metaBorder' => [
2637 'type' => 'object',
2638 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
2639 'style' => [
2640 (object)[
2641 'depends' => [
2642 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2643 ],
2644 'selector'=>'{{ULTP}} .ultp-block-meta'
2645 ],
2646 ],
2647 ],
2648 'metaBg' => [
2649 'type' => 'string',
2650 'default' => '',
2651 'style' => [
2652 (object)[
2653 'depends' => [
2654 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
2655 ],
2656 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
2657 ],
2658 ],
2659 ],
2660
2661
2662 /*============================
2663 Category Setting/Style
2664 ============================*/
2665 'maxTaxonomy'=> [
2666 'type' => 'string',
2667 'default' => '30',
2668 ],
2669 'taxonomy' => [
2670 'type' => 'string',
2671 'default' => 'category'
2672 ],
2673 'catStyle' => [
2674 'type' => 'string',
2675 'default' => 'classic',
2676 ],
2677 'catPosition' => [
2678 'type' => 'string',
2679 'default' => 'aboveTitle',
2680 ],
2681 'customCatColor' => [
2682 'type' => 'boolean',
2683 'default' => false,
2684 ],
2685 'seperatorLink' => [
2686 'type' => 'string',
2687 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
2688 'style' => [
2689 (object)[
2690 'depends' => [
2691 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
2692 ]
2693 ]
2694 ]
2695 ],
2696 'onlyCatColor' => [
2697 'type' => 'boolean',
2698 'default' => false,
2699 'style' => [
2700 (object)[
2701 'depends' => [
2702 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
2703 ]
2704 ]
2705 ]
2706 ],
2707 'catLineWidth' => [
2708 'type' => 'object',
2709 'default' => (object)['lg'=>'20'],
2710 'style' => [
2711 (object)[
2712 'depends' => [
2713 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
2714 ],
2715 'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before { width:{{catLineWidth}}px; }'
2716 ],
2717 ]
2718 ],
2719 'catLineSpacing' => [
2720 'type' => 'object',
2721 'default' => (object)['lg'=>'30'],
2722 'style' => [
2723 (object)[
2724 'depends' => [
2725 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
2726 ],
2727 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
2728 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
2729 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
2730 ],
2731 ]
2732 ],
2733 'catLineColor' => [
2734 'type' => 'string',
2735 'default' => '#000',
2736 'style' => [
2737 (object)[
2738 'depends' => [
2739 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
2740 ],
2741 'selector' => '{{ULTP}} .ultp-category-borderRight .ultp-category-in:before, {{ULTP}} .ultp-category-borderLeft .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:after, {{ULTP}} .ultp-category-borderBoth .ultp-category-in:before { background:{{catLineColor}}; }'
2742 ],
2743 ]
2744 ],
2745 'catLineHoverColor' => [
2746 'type' => 'string',
2747 'default' => '#037fff',
2748 'style' => [
2749 (object)[
2750 'depends' => [
2751 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
2752 ],
2753 'selector' => '{{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderBoth:hover .ultp-category-in:after, {{ULTP}} .ultp-category-borderLeft:hover .ultp-category-in:before, {{ULTP}} .ultp-category-borderRight:hover .ultp-category-in:before { background:{{catLineHoverColor}}; }'
2754 ],
2755 ]
2756 ],
2757 'catTypo' => [
2758 'type' => 'object',
2759 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' => 7.32, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '300', 'decoration' => 'none','family'=>'' ],
2760 'style' => [
2761 (object)[
2762 'depends' => [
2763 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2764 ],
2765 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
2766 ],
2767 ],
2768 ],
2769 'catColor' => [
2770 'type' => 'string',
2771 'default' => '#fff',
2772 'style' => [
2773 (object)[
2774 'depends' => [
2775 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2776 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
2777 ],
2778 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
2779 ],
2780 ],
2781 ],
2782 'catBgColor' => [
2783 'type' => 'object',
2784 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
2785 'style' => [
2786 (object)[
2787 'depends' => [
2788 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2789 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
2790 ],
2791 'selector'=>'{{ULTP}} .ultp-category-grid a'
2792 ],
2793 ],
2794 ],
2795 'catBorder' => [
2796 'type' => 'object',
2797 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2798 'style' => [
2799 (object)[
2800 'depends' => [
2801 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2802 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
2803 ],
2804 'selector'=>'{{ULTP}} .ultp-category-grid a'
2805 ],
2806 ],
2807 ],
2808 'catRadius' => [
2809 'type' => 'object',
2810 'default' => (object)['lg' =>'2', 'unit' =>'px'],
2811 'style' => [
2812 (object)[
2813 'depends' => [
2814 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2815 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
2816 ],
2817 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
2818 ],
2819 ],
2820 ],
2821 'catHoverColor' => [
2822 'type' => 'string',
2823 'default' => '#a5a5a5',
2824 'style' => [
2825 (object)[
2826 'depends' => [
2827 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2828 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
2829 ],
2830 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
2831 ],
2832 ],
2833 ],
2834 'catBgHoverColor' => [
2835 'type' => 'object',
2836 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
2837 'style' => [
2838 (object)[
2839 'depends' => [
2840 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2841 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
2842 ],
2843 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
2844 ],
2845 ],
2846 ],
2847 'catHoverBorder' => [
2848 'type' => 'object',
2849 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2850 'style' => [
2851 (object)[
2852 'depends' => [
2853 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2854 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
2855 ],
2856 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
2857 ],
2858 ],
2859 ],
2860 'catSacing' => [
2861 'type' => 'object',
2862 'default' => (object)['lg' =>(object)['top' => 0,'bottom' => 0,'left' => 0,'right' => 0, 'unit' =>'px']],
2863 'style' => [
2864 (object)[
2865 'depends' => [
2866 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2867 ],
2868 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
2869 ],
2870 ],
2871 ],
2872 'catPadding' => [
2873 'type' => 'object',
2874 'default' => (object)['lg' =>(object)['top' => 8,'bottom' => 6,'left' => 16,'right' => 16, 'unit' =>'px']],
2875 'style' => [
2876 (object)[
2877 'depends' => [
2878 (object)['key'=>'catShow','condition'=>'==','value'=>true],
2879 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
2880 ],
2881 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
2882 ],
2883 ],
2884 ],
2885
2886
2887 /*============================
2888 Excerpt Style
2889 ============================*/
2890 'showSeoMeta' => [
2891 'type' => 'boolean',
2892 'default'=> false
2893 ],
2894 'showFullExcerpt' => [
2895 'type' => 'boolean',
2896 'default' => false,
2897 ],
2898 'excerptLimit' => [
2899 'type' => 'string',
2900 'default' => 40,
2901 'style' => [
2902 (object)[
2903 'depends' => [
2904 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
2905 ],
2906 ],
2907 ],
2908 ],
2909 'excerptColor' => [
2910 'type' => 'string',
2911 'default' => '#fff8',
2912 'style' => [
2913 (object)[
2914 'depends' => [
2915 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
2916 ],
2917 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
2918 ],
2919 ],
2920 ],
2921 'excerptTypo' => [
2922 'type' => 'object',
2923 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>26, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2924 'style' => [
2925 (object)[
2926 'depends' => [
2927 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
2928 ],
2929 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
2930 ],
2931 ],
2932 ],
2933 'excerptPadding' => [
2934 'type' => 'object',
2935 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => '', 'unit' =>'px']],
2936 'style' => [
2937 (object)[
2938 'depends' => [
2939 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
2940 ],
2941 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
2942 ],
2943 ],
2944 ],
2945
2946
2947 /*============================
2948 Wrapper Style
2949 ============================*/
2950 'loadingColor' => [
2951 'type' => 'string',
2952 'default' => '#000',
2953 'style' => [
2954 (object)[
2955 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div , {{ULTP}} .ultp-loading .ultp-loading-spinner div { --loading-block-color: {{loadingColor}}; }'
2956 ],
2957 ],
2958 ],
2959 'wrapBg' => [
2960 'type' => 'object',
2961 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2962 'style' => [
2963 (object)[
2964 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2965 ],
2966 ],
2967 ],
2968 'wrapBorder' => [
2969 'type' => 'object',
2970 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2971 'style' => [
2972 (object)[
2973 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2974 ],
2975 ],
2976 ],
2977 'wrapShadow' => [
2978 'type' => 'object',
2979 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2980 'style' => [
2981 (object)[
2982 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2983 ],
2984 ],
2985 ],
2986 'wrapRadius' => [
2987 'type' => 'object',
2988 'default' => (object)['lg' =>'', 'unit' =>'px'],
2989 'style' => [
2990 (object)[
2991 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2992 ],
2993 ],
2994 ],
2995 'wrapHoverBackground' => [
2996 'type' => 'object',
2997 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2998 'style' => [
2999 (object)[
3000 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
3001 ],
3002 ],
3003 ],
3004 'wrapHoverBorder' => [
3005 'type' => 'object',
3006 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
3007 'style' => [
3008 (object)[
3009 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
3010 ],
3011 ],
3012 ],
3013 'wrapHoverRadius' => [
3014 'type' => 'object',
3015 'default' => (object)['lg' =>'', 'unit' =>'px'],
3016 'style' => [
3017 (object)[
3018 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
3019 ],
3020 ],
3021 ],
3022 'wrapHoverShadow' => [
3023 'type' => 'object',
3024 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
3025 'style' => [
3026 (object)[
3027 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
3028 ],
3029 ],
3030 ],
3031 'wrapMargin' => [
3032 'type' => 'object',
3033 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
3034 'style' => [
3035 (object)[
3036 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
3037 ],
3038 ],
3039 ],
3040 'wrapOuterPadding' => [
3041 'type' => 'object',
3042 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
3043 'style' => [
3044 (object)[
3045 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
3046 ],
3047 ],
3048 ],
3049 'wrapInnerPadding' => [
3050 'type' => 'object',
3051 'default' => (object)['lg' =>(object)['unit' =>'px']],
3052 'style' => [
3053 (object)[
3054 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
3055 ],
3056 ],
3057 ],
3058 'advanceId' => [
3059 'type' => 'string',
3060 'default' => '',
3061 ],
3062 'advanceZindex' => [
3063 'type' => 'string',
3064 'default' => '',
3065 'style' => [
3066 (object)[
3067 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
3068 ],
3069 ],
3070 ],
3071 'hideExtraLarge' => [
3072 'type' => 'boolean',
3073 'default' => false,
3074 'style' => [
3075 (object)[
3076 'selector' => '{{ULTP}} {display:none;}'
3077 ],
3078 ],
3079 ],
3080 'hideTablet' => [
3081 'type' => 'boolean',
3082 'default' => false,
3083 'style' => [
3084 (object)[
3085 'selector' => '{{ULTP}} {display:none;}'
3086 ],
3087 ],
3088 ],
3089 'hideMobile' => [
3090 'type' => 'boolean',
3091 'default' => false,
3092 'style' => [
3093 (object)[
3094 'selector' => '{{ULTP}} {display:none;}'
3095 ],
3096 ],
3097 ],
3098 'advanceCss' => [
3099 'type' => 'string',
3100 'default' => '',
3101 'style' => [(object)['selector' => '']],
3102 ]
3103
3104 );
3105
3106 if ($default) {
3107 $temp = array();
3108 foreach ($attributes as $key => $value) {
3109 if (isset($value['default'])) {
3110 $temp[$key] = $value['default'];
3111 }
3112 }
3113 return $temp;
3114 } else {
3115 return $attributes;
3116 }
3117 }
3118
3119 public function register() {
3120 register_block_type( 'ultimate-post/post-slider-2',
3121 array(
3122 'editor_script' => 'ultp-blocks-editor-script',
3123 'editor_style' => 'ultp-blocks-editor-css',
3124 'attributes' => $this->get_attributes(),
3125 'render_callback' => array($this, 'content')
3126 )
3127 );
3128 }
3129
3130 public function content($attr, $noAjax) {
3131 global $unique_ID;
3132 if (!$noAjax) {
3133 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
3134 $attr['paged'] = $paged ? $paged : 1;
3135 }
3136 $is_active = ultimate_post()->is_lc_active();
3137 if($is_active){
3138 $block_name = 'post-slider-2';
3139 $page_post_id = ultimate_post()->get_ID();
3140 $wraper_before = $wraper_after = $post_loop = '';
3141 $attr['queryNumber'] = ultimate_post()->get_post_number(5, $attr['queryNumber'], $attr['queryNumPosts']);
3142 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
3143 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
3144 // Dummy Img Url
3145 $dummy_url = ULTP_URL.'assets/img/ultp-fallback-img.png';
3146
3147 $slides = is_object($attr['slidesToShow']) ? json_decode(json_encode($attr['slidesToShow']),true) : $attr['slidesToShow'];
3148
3149 $centerPadd = is_object($attr['slidesCenterPadding']) ? json_decode(json_encode($attr['slidesCenterPadding']),true) : $attr['slidesCenterPadding'];
3150 if ($recent_posts->have_posts() ) {
3151 $wraper_before .= '<div '.($attr['advanceId']?'id="'.$attr['advanceId'].'" ':'').' class="wp-block-ultimate-post-'.$block_name.' ultp-block-'.$attr["blockId"].''.(isset($attr["align"])? ' align' .$attr["align"]:'').''.(isset($attr["className"])?' '.$attr["className"]:'').'">';
3152 $wraper_before .= '<div class="ultp-block-wrapper">';
3153 if ($attr['headingShow']) {
3154 $wraper_before .= '<div class="ultp-heading-filter">';
3155 $wraper_before .= '<div class="ultp-heading-filter-in">';
3156 include ULTP_PATH.'blocks/template/heading.php';
3157 $wraper_before .= '</div>';
3158 $wraper_before .= '</div>';
3159 }
3160 $wraper_before .= '<div class="ultp-block-items-wrap ultp-slide-'.$attr['layout'].'" data-layout="'.$attr['layout'].'" data-arrows="'.$attr['arrows'].'" data-dots="'.$attr['dots'].'" data-autoplay="'.$attr['autoPlay'].'" data-slidespeed="'.$attr['slideSpeed'].'" data-fade="'.$attr['fade'].'" data-slidelg="'.(isset($slides['lg'])?$slides['lg']:1).'" data-slidesm="'.(isset($slides['sm'])?$slides['sm']:1).'" data-slidexs="'.(isset($slides['xs']) ? $slides['xs']:1).'"
3161 data-paddlg="'.(isset($centerPadd["lg"]) ? $centerPadd["lg"] : 100 ).'" data-paddsm="'.(isset($centerPadd["sm"]) ? $centerPadd["sm"] : 100 ).'" data-paddxs="'.(isset($centerPadd["xs"]) ? $centerPadd['xs'] : 50).'">';
3162 $idx = $noAjax ? 1 : 0;
3163 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
3164
3165 include ULTP_PATH.'blocks/template/data.php';
3166
3167 if ($attr['queryUnique']) {
3168 $unique_ID[$attr['queryUnique']][] = $post_id;
3169 }
3170
3171 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
3172 if($attr['preLoader']) {
3173 $post_loop .= '<div class="ultp-post-slider-loader-container">';
3174 $post_loop .= ultimate_post()->loading();
3175 $post_loop .= '</div>';
3176 }
3177 $post_loop .= '<div>';
3178 $post_loop .= '<div class="ultp-block-slider-wrap">';
3179
3180 $post_loop .= '<div class="ultp-block-image-inner">';
3181 if ($attr['imageShow']) {
3182 if($post_thumb_id || $attr['fallbackEnable']) {
3183 $post_loop .= '<div class="ultp-block-image '.($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"].' ultp-block-image-'.$attr["imgOverlayType"].$idx : '' ).'">';
3184 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3185 // Post Image Id
3186 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3187 // Post Image
3188 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3189 $post_loop .= ultimate_post()->get_image($block_img_id, $attr['imgCrop'], '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3190 } else {
3191 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3192 }
3193 $post_loop .= '</a></div>'; //.ultp-block-image
3194 }
3195 }
3196 $post_loop .= '</div>'; //.ultp-block-image-inner
3197
3198 $post_loop .= '<div class="ultp-block-content ultp-block-content-'.$attr['contentVerticalPosition'].' ultp-block-content-'.$attr['contentHorizontalPosition'].'">';
3199 $post_loop .= '<div class="ultp-block-content-inner">';
3200
3201 include ULTP_PATH.'blocks/template/category.php';
3202 $post_loop .= $category;
3203
3204 if ($title && $attr['titleShow'] && $attr['titlePosition']) {
3205 include ULTP_PATH.'blocks/template/title.php';
3206 }
3207
3208 if ($attr['metaPosition'] =='top' ) {
3209 include ULTP_PATH.'blocks/template/meta.php';
3210 }
3211
3212 if ($title && $attr['titleShow'] && !$attr['titlePosition']) {
3213 include ULTP_PATH.'blocks/template/title.php';
3214 }
3215
3216 if ($attr['excerptShow']) {
3217 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
3218 }
3219
3220 if ($attr['readMore']) {
3221 $post_loop .= '<div class="ultp-block-readmore"><a aria-label="'.$title.'" href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : esc_html__( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>';
3222 }
3223
3224 if ($attr['metaPosition'] =='bottom' ) {
3225 include ULTP_PATH.'blocks/template/meta.php';
3226 }
3227
3228 $post_loop .= '</div>'; //.ultp-block-content-inner
3229 $post_loop .= '</div>'; //.ultp-block-content
3230
3231 $post_loop .= '</div>'; //.ultp-block-slider-wrap
3232 $post_loop .= '</div>'; //div
3233 $post_loop .= '</'.$attr['contentTag'].'>'; //.ultp-block-item
3234
3235 endwhile;
3236
3237 $wraper_after .= '</div>'; //.ultp-block-items-wrap
3238
3239 if ($attr['arrows']) {
3240 $wraper_after .= '<div class="ultp-slick-nav" style="display:none">';
3241 $nav = explode('#', $attr['arrowStyle']);
3242 $wraper_after .= '<div class="ultp-slick-prev"><div class="slick-arrow slick-prev">'.ultimate_post()->svg_icon($nav[0]).'</div></div>';
3243 $wraper_after .= '<div class="ultp-slick-next"><div class="slick-arrow slick-next">'.ultimate_post()->svg_icon($nav[1]).'</div></div>';
3244 $wraper_after .= '</div>';
3245 }
3246
3247 $wraper_after .= '</div>'; //.ultp-block-wrapper
3248 $wraper_after .= '</div>'; //.wp-block-ultimate-post-post-slider-2
3249
3250 wp_reset_query();
3251 }else {
3252 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
3253 }
3254
3255 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
3256 }
3257 }
3258
3259 }