PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.8
Post Grid Gutenberg Blocks – PostX v2.2.8
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.8, at blocks/Post_Module_1.php

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