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

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

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