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

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

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