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

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

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