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

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

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