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

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

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