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

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

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