PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.6.4
Post Grid Gutenberg Blocks – PostX v2.6.4
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_3.php

Post_List_3.php in Post Grid Gutenberg Blocks – PostX 2.6.4, at blocks/Post_List_3.php

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