PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.1
Post Grid Gutenberg Blocks – PostX v2.2.1
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_Module_1.php

Post_Module_1.php in Post Grid Gutenberg Blocks – PostX 2.2.1, at blocks/Post_Module_1.php

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