PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.2.2
Post Grid Gutenberg Blocks – PostX v1.2.2
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 / Taxonomy.php

Taxonomy.php in Post Grid Gutenberg Blocks – PostX 1.2.2, at blocks/Taxonomy.php

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