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 / Taxonomy.php

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

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