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

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

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