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

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

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