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

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

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