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

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

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