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

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

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