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_1.php

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

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