PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.0.7
Post Grid Gutenberg Blocks – PostX v1.0.7
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 1.0.7, at blocks/Post_List_1.php

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