PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.2.2
Post Grid Gutenberg Blocks – PostX v1.2.2
5.0.41 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 All 238 releases
ultimate-post / blocks / Post_List_1.php

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

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