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

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

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