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_2.php

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

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