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_3.php

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

2,220 lines 101.1 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_3{
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' => 'number',
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 //--------------------------
74 // General Setting
75 //--------------------------
76 'titleShow' => [
77 'type' => 'boolean',
78 'default' => true,
79 ],
80 'headingShow' => [
81 'type' => 'boolean',
82 'default' => true,
83 ],
84 'excerptShow' => [
85 'type' => 'boolean',
86 'default' => true
87 ],
88 'catShow' => [
89 'type' => 'boolean',
90 'default' => true,
91 ],
92 'metaShow' => [
93 'type' => 'boolean',
94 'default' => true,
95 ],
96 'showImage' => [
97 'type' => 'boolean',
98 'default' => true,
99 ],
100 'filterShow' => [
101 'type' => 'boolean',
102 'default' => false,
103 ],
104 'paginationShow' => [
105 'type' => 'boolean',
106 'default' => true,
107 ],
108 'readMore' => [
109 'type' => 'boolean',
110 'default' => true,
111 ],
112
113
114 //--------------------------
115 // Heading Setting/Style
116 //--------------------------
117 'headingText' => [
118 'type' => 'string',
119 'default' => 'Post List #3',
120 ],
121 'headingURL' => [
122 'type' => 'string',
123 'default' => '',
124 ],
125 'headingBtnText' => [
126 'type' => 'string',
127 'default' => 'View More',
128 'style' => [
129 (object)[
130 'depends' => [
131 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
132 ],
133 ],
134 ],
135 ],
136 'headingStyle' => [
137 'type' => 'string',
138 'default' => 'style9',
139 ],
140 'headingTag' => [
141 'type' => 'string',
142 'default' => 'h2',
143 ],
144 'headingAlign' => [
145 'type' => 'string',
146 'default' => 'left',
147 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']]
148 ],
149 'headingTypo' => [
150 'type' => 'object',
151 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'],
152 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
153 ],
154 'headingColor' => [
155 'type' => 'string',
156 'default' => '#0e1523',
157 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
158 ],
159 'headingBorderBottomColor' => [
160 'type' => 'string',
161 'default' => '#0e1523',
162 'style' => [
163 (object)[
164 'depends' => [
165 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
166 ],
167 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
168 ],
169 (object)[
170 'depends' => [
171 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
172 ],
173 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
174 ],
175 (object)[
176 'depends' => [
177 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
178 ],
179 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
180 ],
181 (object)[
182 'depends' => [
183 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
184 ],
185 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
186 ],
187 (object)[
188 'depends' => [
189 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
190 ],
191 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
192 ],
193 (object)[
194 'depends' => [
195 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
196 ],
197 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
198 ],
199 (object)[
200 'depends' => [
201 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
202 ],
203 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
204 ],
205 (object)[
206 'depends' => [
207 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
208 ],
209 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
210 ],
211 (object)[
212 'depends' => [
213 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
214 ],
215 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
216 ],
217 (object)[
218 'depends' => [
219 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
220 ],
221 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
222 ],
223 (object)[
224 'depends' => [
225 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
226 ],
227 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
228 ],
229 (object)[
230 'depends' => [
231 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
232 ],
233 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
234 ],
235 (object)[
236 'depends' => [
237 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
238 ],
239 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
240 ],
241 (object)[
242 'depends' => [
243 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
244 ],
245 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
246 ],
247 ],
248 ],
249 'headingBorderBottomColor2' => [
250 'type' => 'string',
251 'default' => '#e5e5e5',
252 'style' => [
253 (object)[
254 'depends' => [
255 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
256 ],
257 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
258 ],
259 (object)[
260 'depends' => [
261 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
262 ],
263 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
264 ],
265 (object)[
266 'depends' => [
267 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
268 ],
269 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
270 ],
271 (object)[
272 'depends' => [
273 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
274 ],
275 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
276 ],
277 ],
278 ],
279 'headingBg' => [
280 'type' => 'string',
281 'default' => '#1740f5',
282 'style' => [
283 (object)[
284 'depends' => [
285 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
286 ],
287 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
288 ],
289 (object)[
290 'depends' => [
291 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
292 ],
293 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
294 ],
295 (object)[
296 'depends' => [
297 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
298 ],
299 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
300 ],
301 (object)[
302 'depends' => [
303 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
304 ],
305 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
306 ],
307 (object)[
308 'depends' => [
309 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
310 ],
311 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
312 ],
313 (object)[
314 'depends' => [
315 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
316 ],
317 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
318 ],
319 (object)[
320 'depends' => [
321 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
322 ],
323 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
324 ],
325 ],
326 ],
327 'headingBg2' => [
328 'type' => 'string',
329 'default' => '#e5e5e5',
330 'style' => [
331 (object)[
332 'depends' => [
333 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
334 ],
335 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
336 ],
337 ],
338 ],
339 'headingBtnTypo' => [
340 'type' => 'object',
341 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
342 'style' => [
343 (object)[
344 'depends' => [
345 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
346 ],
347 'selector'=>'{{ULTP}} .ultp-heading-btn'
348 ],
349 ],
350 ],
351 'headingBtnColor' => [
352 'type' => 'string',
353 'default' => '#1740f5',
354 'style' => [
355 (object)[
356 'depends' => [
357 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
358 ],
359 'selector'=>'{{ULTP}} .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
360 ],
361 ],
362 ],
363 'headingBtnHoverColor' => [
364 'type' => 'string',
365 'default' => '#0a31da',
366 'style' => [
367 (object)[
368 'depends' => [
369 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
370 ],
371 'selector'=>'{{ULTP}} .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
372 ],
373 ],
374 ],
375
376 'headingBorder' => [
377 'type' => 'string',
378 'default' => '3',
379 'style' => [
380 (object)[
381 'depends' => [
382 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
383 ],
384 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
385 ],
386 (object)[
387 'depends' => [
388 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
389 ],
390 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
391 ],
392 (object)[
393 'depends' => [
394 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
395 ],
396 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
397 ],
398 (object)[
399 'depends' => [
400 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
401 ],
402 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
403 ],
404 (object)[
405 'depends' => [
406 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
407 ],
408 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
409 ],
410 (object)[
411 'depends' => [
412 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
413 ],
414 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
415 ],
416 (object)[
417 'depends' => [
418 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
419 ],
420 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
421 ],
422 (object)[
423 'depends' => [
424 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
425 ],
426 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
427 ],
428 (object)[
429 'depends' => [
430 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
431 ],
432 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
433 ],
434 (object)[
435 'depends' => [
436 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
437 ],
438 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
439 ],
440 (object)[
441 'depends' => [
442 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
443 ],
444 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
445 ],
446 (object)[
447 'depends' => [
448 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
449 ],
450 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
451 ],
452 (object)[
453 'depends' => [
454 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
455 ],
456 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
457 ],
458 (object)[
459 'depends' => [
460 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
461 ],
462 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
463 ],
464 ],
465 ],
466 'headingSpacing' => [
467 'type' => 'object',
468 'default' => (object)['lg'=>30, 'unit'=>'px'],
469 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
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 // Title Setting/Style
648 //--------------------------
649 'titleTag' => [
650 'type' => 'string',
651 'default' => 'h3',
652 ],
653 'titlePosition' => [
654 'type' => 'boolean',
655 'default' => true,
656 ],
657 'titleColor' => [
658 'type' => 'string',
659 'default' => '#0e1523',
660 'style' => [
661 (object)[
662 'depends' => [
663 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
664 ],
665 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}}; }'
666 ],
667 ],
668 ],
669 'titleHoverColor' => [
670 'type' => 'string',
671 'default' => '#828282',
672 'style' => [
673 (object)[
674 'depends' => [
675 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
676 ],
677 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}}; }'
678 ],
679 ],
680 ],
681 'titleTypo' => [
682 'type' => 'object',
683 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'20', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'27', 'unit'=>'px'],'decoration'=>'none','transform' => 'capitalize','family'=>'','weight'=>'500'],
684 'style' => [
685 (object)[
686 'depends' => [
687 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
688 ],
689 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-block-item .ultp-block-title a'
690 ],
691 ],
692 ],
693 'titlePadding' => [
694 'type' => 'object',
695 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>5, 'unit'=>'px']],
696 'style' => [
697 (object)[
698 'depends' => [
699 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
700 ],
701 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
702 ],
703 ],
704 ],
705
706 //--------------------------
707 // Content Setting/Style
708 //--------------------------
709 'varticalAlign' => [
710 'type' => 'string',
711 'default' => 'middle',
712 'style' => [
713 (object)[
714 'depends' => [
715 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'],
716 ],
717 '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; }'
718 ],
719 (object)[
720 'depends' => [
721 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'],
722 ],
723 'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }'
724 ],
725 (object)[
726 'depends' => [
727 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'],
728 ],
729 '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; }'
730 ],
731 ],
732 ],
733
734 'showFullExcerpt' => [
735 'type' => 'boolean',
736 'default' => false,
737 ],
738 'excerptLimit' => [
739 'type' => 'string',
740 'default' => 30,
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' => 10,'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' => '#828282',
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' => '#1740f5',
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' =>'0', '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' => 10,'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 // Read more Setting/Style
970 //--------------------------
971 'readMoreText' => [
972 'type' => 'string',
973 'default' => ''
974 ],
975 'readMoreIcon' => [
976 'type' => 'string',
977 'default' => 'rightArrowLg',
978 ],
979 'readMoreTypo' => [
980 'type' => 'object',
981 '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'=>'' ],
982 'style' => [
983 (object)[
984 'depends' => [
985 (object)['key'=>'readMore','condition'=>'==','value'=>true],
986 ],
987 'selector'=>'{{ULTP}} .ultp-block-readmore a'
988 ],
989 ],
990 ],
991 'readMoreIconSize' => [
992 'type' => 'object',
993 'default' => (object)['lg' =>'', 'unit' =>'px'],
994 'style' => [
995 (object)[
996 'depends' => [
997 (object)['key'=>'readMore','condition'=>'==','value'=>true],
998 ],
999 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
1000 ],
1001 ]
1002 ],
1003 'readMoreColor' => [
1004 'type' => 'string',
1005 'default' => '#0d1523',
1006 'style' => [
1007 (object)[
1008 'depends' => [
1009 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1010 ],
1011 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
1012 ],
1013 ],
1014 ],
1015 'readMoreBgColor' => [
1016 'type' => 'object',
1017 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => '#000'],
1018 'style' => [
1019 (object)[
1020 'depends' => [
1021 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1022 ],
1023 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1024 ],
1025 ],
1026 ],
1027 'readMoreBorder' => [
1028 'type' => 'object',
1029 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1030 'style' => [
1031 (object)[
1032 'depends' => [
1033 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1034 ],
1035 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1036 ],
1037 ],
1038 ],
1039 'readMoreRadius' => [
1040 'type' => 'object',
1041 'default' => (object)['lg' =>'', 'unit' =>'px'],
1042 'style' => [
1043 (object)[
1044 'depends' => [
1045 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1046 ],
1047 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
1048 ],
1049 ],
1050 ],
1051 'readMoreHoverColor' => [
1052 'type' => 'string',
1053 'default' => '#1740f5',
1054 'style' => [
1055 (object)[
1056 'depends' => [
1057 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1058 ],
1059 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
1060 ],
1061 ],
1062 ],
1063 'readMoreBgHoverColor' => [
1064 'type' => 'object',
1065 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0c32d8'],
1066 'style' => [
1067 (object)[
1068 'depends' => [
1069 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1070 ],
1071 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1072 ],
1073 ],
1074 ],
1075 'readMoreHoverBorder' => [
1076 'type' => 'object',
1077 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1078 'style' => [
1079 (object)[
1080 'depends' => [
1081 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1082 ],
1083 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1084 ],
1085 ],
1086 ],
1087 'readMoreHoverRadius' => [
1088 'type' => 'object',
1089 'default' => (object)['lg' =>'', 'unit' =>'px'],
1090 'style' => [
1091 (object)[
1092 'depends' => [
1093 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1094 ],
1095 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
1096 ],
1097 ],
1098 ],
1099 'readMoreSacing' => [
1100 'type' => 'object',
1101 'default' => (object)['lg' =>(object)['top' => 25,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1102 'style' => [
1103 (object)[
1104 'depends' => [
1105 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1106 ],
1107 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
1108 ],
1109 ],
1110 ],
1111 'readMorePadding' => [
1112 'type' => 'object',
1113 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1114 'style' => [
1115 (object)[
1116 'depends' => [
1117 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1118 ],
1119 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
1120 ],
1121 ],
1122 ],
1123
1124 //--------------------------
1125 // Meta Setting/Style
1126 //--------------------------
1127 'metaPosition' => [
1128 'type' => 'string',
1129 'default' => 'top',
1130 ],
1131 'metaStyle' => [
1132 'type' => 'string',
1133 'default' => 'icon',
1134 ],
1135 'metaSeparator' => [
1136 'type' => 'string',
1137 'default' => 'dot',
1138 ],
1139 'metaList' => [
1140 'type' => 'string',
1141 'default' => '["metaAuthor","metaDate","metaRead"]',
1142 ],
1143 'metaTypo' => [
1144 'type' => 'object',
1145 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'transform' => 'capitalize', 'decoration' => 'none','family'=>''],
1146 'style' => [
1147 (object)[
1148 'depends' => [
1149 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1150 ],
1151 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-meta span a'
1152 ],
1153 ],
1154 ],
1155 'metaColor' => [
1156 'type' => 'string',
1157 'default' => '#989898',
1158 'style' => [
1159 (object)[
1160 'depends' => [
1161 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1162 ],
1163 'selector'=>'{{ULTP}} .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-meta span a { color: {{metaColor}}; }
1164 {{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
1165 ],
1166 ],
1167 ],
1168 'metaHoverColor' => [
1169 'type' => 'string',
1170 'default' => '#000',
1171 'style' => [
1172 (object)[
1173 'depends' => [
1174 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1175 ],
1176 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }'
1177 ],
1178 ],
1179 ],
1180 'metaSpacing' => [
1181 'type' => 'object',
1182 'default' => (object)['lg' =>'15', 'unit' =>'px'],
1183 'style' => [
1184 (object)[
1185 'depends' => [
1186 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1187 ],
1188 '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}}; }'
1189 ],
1190 ],
1191 ],
1192 'metaMargin' => [
1193 'type' => 'object',
1194 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '10', 'left'=>'','right'=>'', 'unit' =>'px']],
1195 'style' => [
1196 (object)[
1197 'depends' => [
1198 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1199 ],
1200 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1201 ],
1202 ],
1203 ],
1204 'metaPadding' => [
1205 'type' => 'object',
1206 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1207 'style' => [
1208 (object)[
1209 'depends' => [
1210 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1211 ],
1212 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1213 ],
1214 ],
1215 ],
1216 'metaBorder' => [
1217 'type' => 'object',
1218 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1219 'style' => [
1220 (object)[
1221 'depends' => [
1222 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1223 ],
1224 'selector'=>'{{ULTP}} .ultp-block-meta'
1225 ],
1226 ],
1227 ],
1228 'metaBg' => [
1229 'type' => 'string',
1230 'default' => '',
1231 'style' => [
1232 (object)[
1233 'depends' => [
1234 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1235 ],
1236 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1237 ],
1238 ],
1239 ],
1240
1241
1242 //--------------------------
1243 // Image Setting/Style
1244 //--------------------------
1245 'imgFlip' => [
1246 'type' => 'boolean',
1247 'default' => false,
1248 'style' => [
1249 (object)[
1250 'depends' => [
1251 (object)['key'=>'imgFlip','condition'=>'==','value'=>true],
1252 ],
1253 'selector'=>'{{ULTP}} .ultp-block-content-true .ultp-block-media, {{ULTP}} .ultp-block-content-1 .ultp-block-media { flex-direction: row-reverse; }'
1254 ]
1255 ],
1256 ],
1257 'imgCrop' => [
1258 'type' => 'string',
1259 'default' => 'ultp_layout_square',
1260 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']]
1261 ],
1262 'imgWidth' => [
1263 'type' => 'object',
1264 'default' => (object)['lg' =>'45', 'sm' =>'100', 'xs' =>'100', 'unit' =>'%' ],
1265 'style' => [
1266 (object)[
1267 'depends' => [
1268 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1269 ],
1270 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }'
1271 ],
1272 ],
1273 ],
1274 'imgHeight' => [
1275 'type' => 'object',
1276 'default' => (object)['lg' =>'', 'unit' =>'px'],
1277 'style' => [
1278 (object)[
1279 'depends' => [
1280 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1281 ],
1282 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image img {object-fit: cover; height: {{imgHeight}}; }'
1283 ],
1284 ],
1285 ],
1286 'imgAnimation' => [
1287 'type' => 'string',
1288 'default' => 'opacity',
1289 ],
1290 'imgGrayScale' => [
1291 'type' => 'object',
1292 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1293 'style' => [
1294 (object)[
1295 'depends' => [
1296 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1297 ],
1298 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1299 ],
1300 ],
1301 ],
1302 'imgHoverGrayScale' => [
1303 'type' => 'object',
1304 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1305 'style' => [
1306 (object)[
1307 'depends' => [
1308 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1309 ],
1310 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1311 ],
1312 ],
1313 ],
1314 'imgRadius' => [
1315 'type' => 'object',
1316 'default' => (object)['lg' =>'', 'unit' =>'px'],
1317 'style' => [
1318 (object)[
1319 'depends' => [
1320 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1321 ],
1322 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1323 ],
1324 ],
1325 ],
1326 'imgHoverRadius' => [
1327 'type' => 'object',
1328 'default' => (object)['lg' =>'', 'unit' =>'px'],
1329 'style' => [
1330 (object)[
1331 'depends' => [
1332 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1333 ],
1334 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1335 ],
1336 ],
1337 ],
1338 'imgShadow' => [
1339 'type' => 'object',
1340 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1341 'style' => [
1342 (object)[
1343 'depends' => [
1344 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1345 ],
1346 'selector'=>'{{ULTP}} .ultp-block-image'
1347 ],
1348 ],
1349 ],
1350 'imgHoverShadow' => [
1351 'type' => 'object',
1352 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1353 'style' => [
1354 (object)[
1355 'depends' => [
1356 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1357 ],
1358 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1359 ],
1360 ],
1361 ],
1362 'imgSpacing' => [
1363 'type' => 'object',
1364 'default' => (object)['lg'=>'20'],
1365 'style' => [
1366 (object)[
1367 'depends' => [
1368 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1369 (object)['key'=>'imgFlip','condition'=>'==','value'=>false],
1370 ],
1371 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }'
1372 ],
1373 (object)[
1374 'depends' => [
1375 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1376 (object)['key'=>'imgFlip','condition'=>'==','value'=>true],
1377 ],
1378 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }'
1379 ],
1380 ],
1381 ],
1382
1383 'imgOverlay' => [
1384 'type' => 'boolean',
1385 'default' => false,
1386 ],
1387 'imgOverlayType' => [
1388 'type' => 'string',
1389 'default' => 'default',
1390 'style' => [
1391 (object)[
1392 'depends' => [
1393 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1394 ]
1395 ],
1396 ]
1397 ],
1398 'overlayColor' => [
1399 'type' => 'object',
1400 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#0e1523'],
1401 'style' => [
1402 (object)[
1403 'depends' => [
1404 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1405 ],
1406 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1407 ],
1408 ],
1409
1410 ],
1411 'imgOpacity' => [
1412 'type' => 'number',
1413 'default' => .7,
1414 'style' => [
1415 (object)[
1416 'depends' => [
1417 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1418 ],
1419 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1420 ],
1421 ],
1422 ],
1423
1424 //--------------------------
1425 // Separator
1426 //--------------------------
1427 'separatorShow' => [
1428 'type' => 'boolean',
1429 'default' => true,
1430 ],
1431 'septColor' => [
1432 'type' => 'string',
1433 'default' => '#e5e5e5',
1434 'style' => [
1435 (object)[
1436 'depends' => [
1437 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1438 ],
1439 'selector'=>'{{ULTP}} .ultp-block-item:not(:last-of-type) { border-bottom-color:{{septColor}}; }'
1440 ],
1441 ],
1442 ],
1443 'septStyle' => [
1444 'type' => 'string',
1445 'default' => 'dashed',
1446 'style' => [
1447 (object)[
1448 'depends' => [
1449 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1450 ],
1451 'selector'=>'{{ULTP}} .ultp-block-item:not(:last-of-type) { border-bottom-style:{{septStyle}}; }'
1452 ],
1453 ],
1454 ],
1455 'septSize' => [
1456 'type' => 'string',
1457 'default' => (object)['lg'=>'1'],
1458 'style' => [
1459 (object)[
1460 'depends' => [
1461 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1462 ],
1463 'selector'=>'{{ULTP}} .ultp-block-item:not(:last-of-type) { border-bottom-width: {{septSize}}px; }'
1464 ],
1465 ],
1466 ],
1467 'septSpace' => [
1468 'type' => 'object',
1469 'default' => (object)['lg'=>'30'],
1470 'style' => [
1471 (object)[
1472 'selector'=>'{{ULTP}} .ultp-block-item:not(:last-of-type) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-block-item:not(:last-of-type) { margin-bottom: {{septSpace}}px; }'
1473 ],
1474 ],
1475 ],
1476
1477 //--------------------------
1478 // Filter Setting/Style
1479 //--------------------------
1480 'filterType' => [
1481 'type' => 'string',
1482 'default' => 'category'
1483 ],
1484 'filterCat' => [
1485 'type' => 'string',
1486 'default' => '["all"]',
1487 'style' => [
1488 (object)[
1489 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']]
1490 ],
1491 ],
1492 ],
1493 'filterTag' => [
1494 'type' => 'string',
1495 'default' => '["all"]',
1496 'style' => [
1497 (object)[
1498 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']]
1499 ],
1500 ],
1501 ],
1502 'fliterTypo' => [
1503 'type' => 'object',
1504 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
1505 'style' => [
1506 (object)[
1507 'depends' => [
1508 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1509 ],
1510 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a'
1511 ],
1512 ],
1513 ],
1514 'filterColor' => [
1515 'type' => 'string',
1516 'default' => '#0e1523',
1517 'style' => [
1518 (object)[
1519 'depends' => [
1520 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1521 ],
1522 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a { color:{{filterColor}}; }'
1523 ],
1524 ],
1525 ],
1526 'filterHoverColor' => [
1527 'type' => 'string',
1528 'default' => '#828282',
1529 'style' => [
1530 (object)[
1531 'depends' => [
1532 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1533 ],
1534 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }'
1535 ],
1536 ],
1537 ],
1538 'filterBgColor' => [
1539 'type' => 'string',
1540 'style' => [
1541 (object)[
1542 'depends' => [
1543 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1544 ],
1545 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
1546 ],
1547 ],
1548 ],
1549 'filterHoverBgColor' => [
1550 'type' => 'string',
1551 'style' => [
1552 (object)[
1553 'depends' => [
1554 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1555 ],
1556 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }'
1557 ],
1558 ],
1559 ],
1560 'filterBorder' => [
1561 'type' => 'object',
1562 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1563 'style' => [
1564 (object)[
1565 'depends' => [
1566 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1567 ],
1568 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
1569 ],
1570 ],
1571 ],
1572 'filterHoverBorder' => [
1573 'type' => 'object',
1574 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
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:hover'
1581 ],
1582 ],
1583 ],
1584 'filterRadius' => [
1585 'type' => 'object',
1586 'default' => (object)['lg' =>'', 'unit' =>'px'],
1587 'style' => [
1588 (object)[
1589 'depends' => [
1590 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1591 ],
1592 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
1593 ],
1594 ],
1595 ],
1596 'fliterSpacing' => [
1597 'type' => 'object',
1598 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
1599 'style' => [
1600 (object)[
1601 'depends' => [
1602 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1603 ],
1604 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
1605 ],
1606 ],
1607 ],
1608 'fliterPadding' => [
1609 'type' => 'object',
1610 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1611 'style' => [
1612 (object)[
1613 'depends' => [
1614 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1615 ],
1616 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }'
1617 ],
1618 ],
1619 ],
1620 'filterDropdownColor' => [
1621 'type' => 'string',
1622 'default' => '#0e1523',
1623 'style' => [
1624 (object)[
1625 'depends' => [
1626 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1627 ],
1628 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
1629 ],
1630 ],
1631 ],
1632 'filterDropdownHoverColor' => [
1633 'type' => 'string',
1634 'default' => '#1740f5',
1635 'style' => [
1636 (object)[
1637 'depends' => [
1638 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1639 ],
1640 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
1641 ],
1642 ],
1643 ],
1644 'filterDropdownBg' => [
1645 'type' => 'string',
1646 'default' => '#fff',
1647 'style' => [
1648 (object)[
1649 'depends' => [
1650 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1651 ],
1652 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
1653 ],
1654 ],
1655 ],
1656 'filterDropdownRadius' => [
1657 'type' => 'object',
1658 'default' => (object)['lg'=>'0'],
1659 'style' => [
1660 (object)[
1661 'depends' => [
1662 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1663 ],
1664 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
1665 ],
1666 ],
1667 ],
1668 'filterDropdownPadding' => [
1669 'type' => 'object',
1670 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
1671 'style' => [
1672 (object)[
1673 'depends' => [
1674 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1675 ],
1676 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
1677 ],
1678 ],
1679 ],
1680
1681 //--------------------------
1682 // Pagination Setting/Style
1683 //--------------------------
1684 'paginationType' => [
1685 'type' => 'string',
1686 'default' => 'pagination',
1687 ],
1688 'paginationNav' => [
1689 'type' => 'string',
1690 'default' => 'textArrow',
1691 'style' => [
1692 (object)[
1693 'depends' => [
1694 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
1695 ],
1696 ],
1697 ],
1698 ],
1699 'paginationAjax' => [
1700 'type' => 'boolean',
1701 'default' => true,
1702 'style' => [
1703 (object)[
1704 'depends' => [
1705 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
1706 ],
1707 ],
1708 ],
1709 ],
1710 'navPosition' => [
1711 'type' => 'string',
1712 'default' => 'topRight',
1713 'style' => [
1714 (object)[
1715 'depends' => [
1716 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1717 ],
1718 ],
1719 ],
1720 ],
1721 'pagiAlign' => [
1722 'type' => 'string',
1723 'default' => (object)['lg' =>'left'],
1724 //'style' => [(object)['selector' => '{{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-loadmore { text-align:{{pagiAlign}}; }']]
1725 // 'style' => [
1726 // (object)[
1727 // 'depends' => [
1728 // (object)['key'=>'paginationType','condition'=>'==','value'=>'loadMore'],
1729 // ],
1730 // 'selector'=>'{{ULTP}} .ultp-loadmore { text-align:{{pagiAlign}}; }'
1731 // ],
1732 // ],
1733 // 'style' => [
1734 // (object)[
1735 // 'depends' => [
1736 // (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1737 // ],
1738 // 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { text-align:{{pagiAlign}}; }'
1739 // ],
1740 // ],
1741 'style' => [
1742 (object)[
1743 'depends' => [
1744 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1745 ],
1746 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
1747 ],
1748 ],
1749 ],
1750 'pagiTypo' => [
1751 'type' => 'object',
1752 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1753 'style' => [
1754 (object)[
1755 'depends' => [
1756 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1757 ],
1758 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action'
1759 ],
1760 ],
1761
1762 ],
1763 'pagiArrowSize' => [
1764 'type' => 'object',
1765 'default' => (object)['lg'=>'14'],
1766 'style' => [
1767 (object)[
1768 'depends' => [
1769 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1770 ],
1771 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a { font-size:{{pagiArrowSize}}px; }'
1772 ],
1773 ],
1774
1775 ],
1776 'pagiColor' => [
1777 'type' => 'string',
1778 'default' => '#fff',
1779 'style' => [
1780 (object)[
1781 'depends' => [
1782 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1783 ],
1784 '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}}; }'
1785 ],
1786 ],
1787 ],
1788 'pagiBgColor' => [
1789 'type' => 'object',
1790 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1791 'style' => [
1792 (object)[
1793 'depends' => [
1794 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1795 ],
1796 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
1797 ],
1798 ],
1799 ],
1800 'pagiBorder' => [
1801 'type' => 'object',
1802 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1803 'style' => [
1804 (object)[
1805 'depends' => [
1806 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1807 ],
1808 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
1809 ],
1810 ],
1811 ],
1812 'pagiShadow' => [
1813 'type' => 'object',
1814 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1815 'style' => [
1816 (object)[
1817 'depends' => [
1818 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1819 ],
1820 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
1821 ],
1822 ],
1823 ],
1824 'pagiRadius' => [
1825 'type' => 'object',
1826 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
1827 'style' => [
1828 (object)[
1829 'depends' => [
1830 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1831 ],
1832 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
1833 ],
1834 ],
1835 ],
1836 'pagiHoverColor' => [
1837 'type' => 'string',
1838 'default' => '#fff',
1839 'style' => [
1840 (object)[
1841 'depends' => [
1842 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1843 ],
1844 '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}}; }'
1845 ],
1846 ],
1847 ],
1848 'pagiHoverbg' => [
1849 'type' => 'object',
1850 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5'],
1851 'style' => [
1852 (object)[
1853 'depends' => [
1854 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1855 ],
1856 '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'
1857 ],
1858 ],
1859 ],
1860 'pagiHoverBorder' => [
1861 'type' => 'object',
1862 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1863 'style' => [
1864 (object)[
1865 'depends' => [
1866 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1867 ],
1868 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover'
1869 ],
1870 ],
1871 ],
1872 'pagiHoverShadow' => [
1873 'type' => 'object',
1874 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1875 'style' => [
1876 (object)[
1877 'depends' => [
1878 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1879 ],
1880 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover'
1881 ],
1882 ],
1883 ],
1884 'pagiHoverRadius' => [
1885 'type' => 'object',
1886 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
1887 'style' => [
1888 (object)[
1889 'depends' => [
1890 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1891 ],
1892 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
1893 ],
1894 ],
1895 ],
1896 'pagiPadding' => [
1897 'type' => 'object',
1898 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
1899 'style' => [
1900 (object)[
1901 'depends' => [
1902 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1903 ],
1904 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
1905 ],
1906 ],
1907 ],
1908 'navMargin' => [
1909 'type' => 'object',
1910 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
1911 'style' => [
1912 (object)[
1913 'depends' => [
1914 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1915 ],
1916 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
1917 ],
1918 ],
1919 ],
1920 'pagiMargin' => [
1921 'type' => 'object',
1922 'default' => (object)['lg' =>(object)['top' => '40', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
1923 'style' => [
1924 (object)[
1925 'depends' => [
1926 (object)['key'=>'paginationType','condition'=>'!=','value'=>'navigation'],
1927 ],
1928 'selector'=>'{{ULTP}} .ultp-pagination, {{ULTP}} .ultp-loadmore { margin:{{pagiMargin}}; }'
1929 ],
1930 ],
1931 ],
1932
1933
1934 //--------------------------
1935 // Wrapper Style
1936 //--------------------------
1937 'wrapAlign' => [
1938 'type' => 'object',
1939 'default' => (object)['lg' =>'left'],
1940 'style' => [
1941 (object)[
1942 'selector'=>'{{ULTP}} .ultp-block-wrapper .ultp-block-item { text-align:{{wrapAlign}}; }'
1943 ],
1944 ],
1945 ],
1946 'wrapBg' => [
1947 'type' => 'object',
1948 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#e5e5e5'],
1949 'style' => [
1950 (object)[
1951 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1952 ],
1953 ],
1954 ],
1955 'wrapBorder' => [
1956 'type' => 'object',
1957 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1958 'style' => [
1959 (object)[
1960 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1961 ],
1962 ],
1963 ],
1964 'wrapShadow' => [
1965 'type' => 'object',
1966 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1967 'style' => [
1968 (object)[
1969 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1970 ],
1971 ],
1972 ],
1973 'wrapRadius' => [
1974 'type' => 'object',
1975 'default' => (object)['lg' =>'', 'unit' =>'px'],
1976 'style' => [
1977 (object)[
1978 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
1979 ],
1980 ],
1981 ],
1982 'wrapHoverBackground' => [
1983 'type' => 'object',
1984 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'],
1985 'style' => [
1986 (object)[
1987 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
1988 ],
1989 ],
1990 ],
1991 'wrapHoverBorder' => [
1992 'type' => 'object',
1993 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1994 'style' => [
1995 (object)[
1996 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
1997 ],
1998 ],
1999 ],
2000 'wrapHoverRadius' => [
2001 'type' => 'object',
2002 'default' => (object)['lg' =>'', 'unit' =>'px'],
2003 'style' => [
2004 (object)[
2005 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2006 ],
2007 ],
2008 ],
2009 'wrapHoverShadow' => [
2010 'type' => 'object',
2011 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2012 'style' => [
2013 (object)[
2014 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2015 ],
2016 ],
2017 ],
2018 'wrapMargin' => [
2019 'type' => 'object',
2020 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2021 'style' => [
2022 (object)[
2023 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2024 ],
2025 ],
2026 ],
2027 'wrapOuterPadding' => [
2028 'type' => 'object',
2029 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
2030 'style' => [
2031 (object)[
2032 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2033 ],
2034 ],
2035 ],
2036 'wrapInnerPadding' => [
2037 'type' => 'object',
2038 'default' => (object)['lg' =>(object)['unit' =>'px']],
2039 'style' => [
2040 (object)[
2041 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2042 ],
2043 ],
2044 ],
2045 'advanceId' => [
2046 'type' => 'string',
2047 'default' => '',
2048 ],
2049 'advanceZindex' => [
2050 'type' => 'number',
2051 'default' => '',
2052 'style' => [
2053 (object)[
2054 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}'
2055 ],
2056 ],
2057 ],
2058 'advanceCss' => [
2059 'type' => 'string',
2060 'default' => '',
2061 'style' => [(object)['selector' => '']],
2062 ]
2063 );
2064
2065 if( $default ){
2066 $temp = array();
2067 foreach ($attributes as $key => $value) {
2068 if( isset($value['default']) ){
2069 $temp[$key] = $value['default'];
2070 }
2071 }
2072 return $temp;
2073 }else{
2074 return $attributes;
2075 }
2076 }
2077
2078 public function register() {
2079 register_block_type( 'ultimate-post/post-list-3',
2080 array(
2081 'attributes' => $this->get_attributes(),
2082 'description' => __( 'Listing your post with left side image.' ),
2083 'keywords' => [__( 'grid' ), __( 'post' ), __( 'article' ), __('listing')],
2084 'render_callback' => array($this, 'content')
2085 ));
2086 }
2087
2088 public function content($attr, $noAjax) {
2089
2090 if(!$noAjax){
2091 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
2092 $attr['paged'] = $paged;
2093 }
2094
2095 $block_name = 'post-list-3';
2096 $page_post_id = get_the_ID();
2097 $wraper_before = $wraper_after = $post_loop = '';
2098 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2099 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2100
2101 if ( $recent_posts->have_posts() ) {
2102
2103 $wraper_before .= '<div '.($attr['advanceId']?'id="'.$attr['advanceId'].'" ':'').' class="wp-block-ultimate-post-'.$block_name.' ultp-block-'.$attr["blockId"].' '.(isset($attr["className"])?$attr["className"]:'').'">';
2104 $wraper_before .= '<div class="ultp-block-wrapper">';
2105
2106 // Loading
2107 $wraper_before .= ultimate_post()->loading();
2108
2109 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
2110 $wraper_before .= '<div class="ultp-heading-filter">';
2111 $wraper_before .= '<div class="ultp-heading-filter-in">';
2112
2113 // Heading
2114 include ULTP_PATH.'blocks/template/heading.php';
2115
2116 if ($attr['filterShow'] || $attr['paginationShow']) {
2117 $wraper_before .= '<div class="ultp-filter-navigation">';
2118
2119 // Filter
2120 if( $attr['filterShow'] ) {
2121 include ULTP_PATH.'blocks/template/filter.php';
2122 }
2123
2124 // Navigation
2125 if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
2126 include ULTP_PATH.'blocks/template/navigation-before.php';
2127 }
2128 $wraper_before .= '</div>';
2129 }
2130
2131 $wraper_before .= '</div>';
2132 $wraper_before .= '</div>';
2133 }
2134
2135 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.$attr['imgFlip'].'">';
2136 $idx = $noAjax ? 1 : 0;
2137 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2138
2139 include ULTP_PATH.'blocks/template/data.php';
2140
2141 include ULTP_PATH.'blocks/template/category.php';
2142
2143 $post_loop .= '<div class="ultp-block-item ultp-block-media">';
2144 if( has_post_thumbnail() && $attr['showImage'] ){
2145 $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 : '' ).'">';
2146 $post_loop .= '<a href="'.$titlelink.'"><img alt="'.$title.'" src="'.wp_get_attachment_image_url( $post_thumb_id, ($attr['imgCrop']) ).'" /></a>';
2147 if( ($attr['catPosition'] != 'aboveTitle') && $attr['catShow'] ) {
2148 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
2149 }
2150 $post_loop .= '</div>';
2151 }
2152 $post_loop .= '<div class="ultp-block-content">';
2153
2154 // Category
2155 if( ($attr['catPosition'] == 'aboveTitle') && $attr['catShow'] ) {
2156 $post_loop .= $category;
2157 }
2158
2159 // Title
2160 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1){
2161 include ULTP_PATH.'blocks/template/title.php';
2162 }
2163
2164 // Meta
2165 include ULTP_PATH.'blocks/template/meta.php';
2166
2167 // Title
2168 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0 ){
2169 include ULTP_PATH.'blocks/template/title.php';
2170 }
2171
2172 // Excerpt
2173 if( $attr['excerptShow'] ) {
2174 if ( $attr['showFullExcerpt']== 0 ) {
2175 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>';
2176 } else {
2177 $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>';
2178 }
2179 }
2180
2181 // Read More
2182 if ($attr['readMore']) {
2183 $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>';
2184 }
2185 $post_loop .= '</div>';
2186 $post_loop .= '</div>';
2187 $idx ++;
2188 endwhile;
2189
2190 if($attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
2191 $wraper_after .= '<span class="ultp-loadmore-insert-before"></span>';
2192 }
2193
2194 $wraper_after .= '</div>'; //ultp-block-items-wrap
2195
2196 // Load More
2197 if ($attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
2198 include ULTP_PATH.'blocks/template/loadmore.php';
2199 }
2200
2201 // Navigation
2202 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
2203 include ULTP_PATH.'blocks/template/navigation-after.php';
2204 }
2205
2206 // Pagination
2207 if ($attr['paginationShow'] && ($attr['paginationType'] == 'pagination')) {
2208 include ULTP_PATH.'blocks/template/pagination.php';
2209 }
2210
2211 $wraper_after .= '</div>';
2212 $wraper_after .= '</div>';
2213
2214 wp_reset_query();
2215 }
2216
2217 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2218 }
2219
2220 }