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

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

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