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

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

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