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

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

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