PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
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_4.php

Post_List_4.php in Post Grid Gutenberg Blocks – PostX 2.2.5, at blocks/Post_List_4.php

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