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

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

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