PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.3.1
Post Grid Gutenberg Blocks – PostX v2.3.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_2.php

Post_Module_2.php in Post Grid Gutenberg Blocks – PostX 2.3.1, at blocks/Post_Module_2.php

2,531 lines 117.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ULTP\blocks;
3
4 defined('ABSPATH') || exit;
5
6 class Post_Module_2{
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false){
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19
20 //--------------------------
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-module2 { margin: 0 -{{columnGridGap}};} {{ULTP}} .ultp-block-post-module2 .ultp-big-post-module2, {{ULTP}} .ultp-block-post-module2 .ultp-small-post-module2 { padding: 0 {{columnGridGap}};} {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
138 ],
139 ],
140 ],
141 'largeHeight' => [
142 'type' => 'object',
143 'default' => (object)['lg' =>'450', 'unit' =>'px'],
144 'style' => [
145 (object)[
146 'selector'=>'{{ULTP}} .ultp-big-post-module2 .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 #2',
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' => '#037fff',
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' => '#037fff',
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' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', '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-module2 .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-big-post-module2 .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-module2 .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-title a'
749 ],
750 ],
751 ],
752 'titlePadding' => [
753 'type' => 'object',
754 'default' => (object)['lg'=>(object)['top'=>5,'bottom'=>5, 'unit'=>'px']],
755 'style' => [
756 (object)[
757 'depends' => [
758 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
759 ],
760 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
761 ],
762 ],
763 ],
764
765 //--------------------------
766 // Content Setting/Style
767 //--------------------------
768
769 'varticalAlign' => [
770 'type' => 'string',
771 'default' => 'middle',
772 'style' => [
773 (object)[
774 'depends' => [
775 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'top'],
776 ],
777 '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; }'
778 ],
779 (object)[
780 'depends' => [
781 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'middle'],
782 ],
783 'selector'=>'{{ULTP}} .ultp-block-content-middle .ultp-block-content { -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center; }'
784 ],
785 (object)[
786 'depends' => [
787 (object)['key'=>'varticalAlign','condition'=>'==','value'=>'bottom'],
788 ],
789 '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; }'
790 ],
791 ],
792 ],
793
794 'showSmallExcerpt' => [
795 'type' => 'boolean',
796 'default'=> false,
797 ],
798 'showFullExcerpt' => [
799 'type' => 'boolean',
800 'default' => false,
801 ],
802 'excerptLimit' => [
803 'type' => 'string',
804 'default' => 20,
805 'style' => [
806 (object)[
807 'depends' => [
808 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false],
809 ],
810 ],
811 ],
812 ],
813 'excerptColor' => [
814 'type' => 'string',
815 'default' => '#777',
816 'style' => [
817 (object)[
818 'depends' => [
819 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
820 ],
821 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
822 ],
823 ],
824 ],
825 'excerptTypo' => [
826 'type' => 'object',
827 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
828 'style' => [
829 (object)[
830 'depends' => [
831 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
832 ],
833 'selector'=>'{{ULTP}} .ultp-block-excerpt'
834 ],
835 ],
836 ],
837 'excerptPadding' => [
838 'type' => 'object',
839 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => '', 'unit' =>'px']],
840 'style' => [
841 (object)[
842 'depends' => [
843 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
844 ],
845 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
846 ],
847 ],
848 ],
849
850 //--------------------------
851 // Count Style Setting/Style
852 //--------------------------
853 'counterTypo' => [
854 'type' => 'object',
855 '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'=>'' ],
856 'style' => [
857 (object)[
858 'depends' => [
859 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
860 ],
861 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
862 ],
863 ],
864 ],
865 'counterColor' => [
866 'type' => 'string',
867 'default' => '#828282',
868 'style' => [
869 (object)[
870 'depends' => [
871 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
872 ],
873 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { color:{{counterColor}}; }'
874 ],
875 ]
876 ],
877 'counterBgColor' => [
878 'type' => 'object',
879 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
880 'style' => [
881 (object)[
882 'depends' => [
883 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
884 ],
885 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
886 ],
887 ],
888 ],
889 'counterWidth' => [
890 'type' => 'string',
891 'default' => '',
892 'style' => [
893 (object)[
894 'depends' => [
895 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
896 ],
897 'selector' => '{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { width:{{counterWidth}}px; }'
898 ],
899 ]
900 ],
901 'counterHeight' => [
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-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { height:{{counterHeight}}px; }'
910 ],
911 ]
912 ],
913 'counterBorder' => [
914 'type' => 'object',
915 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
916 'style' => [
917 (object)[
918 'depends' => [
919 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
920 ],
921 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before'
922 ],
923 ],
924 ],
925 'counterRadius' => [
926 'type' => 'object',
927 'default' => (object)['lg' =>'', 'unit' =>'px'],
928 'style' => [
929 (object)[
930 'depends' => [
931 (object)['key'=>'layout','condition'=>'==','value'=>['layout4', 'layout5']],
932 ],
933 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout5 .ultp-small-post-module2 .ultp-block-item::before, {{ULTP}}.wp-block-ultimate-post-post-module-2 .ultp-layout4 .ultp-small-post-module2 .ultp-block-content::before { border-radius:{{counterRadius}}; }'
934 ],
935 ],
936 ],
937
938 //--------------------------
939 // Category Setting/Style
940 //--------------------------
941 'showSmallCat' => [
942 'type' => 'boolean',
943 'default' => false,
944 ],
945 'catStyle' => [
946 'type' => 'string',
947 'default' => 'classic',
948 ],
949 'catPosition' => [
950 'type' => 'string',
951 'default' => 'aboveTitle',
952 ],
953 'customCatColor' => [
954 'type' => 'boolean',
955 'default' => false,
956 ],
957 'seperatorLink' => [
958 'type' => 'string',
959 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
960 'style' => [
961 (object)[
962 'depends' => [
963 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
964 ]
965 ]
966 ]
967 ],
968 'onlyCatColor' => [
969 'type' => 'boolean',
970 'default' => false,
971 'style' => [
972 (object)[
973 'depends' => [
974 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
975 ]
976 ]
977 ]
978 ],
979 'catLineWidth' => [
980 'type' => 'object',
981 'default' => (object)['lg'=>'20'],
982 'style' => [
983 (object)[
984 'depends' => [
985 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
986 ],
987 '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; }'
988 ],
989 ]
990 ],
991 'catLineSpacing' => [
992 'type' => 'object',
993 'default' => (object)['lg'=>'30'],
994 'style' => [
995 (object)[
996 'depends' => [
997 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
998 ],
999 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1000 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1001 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1002 ],
1003 ]
1004 ],
1005 'catLineColor' => [
1006 'type' => 'string',
1007 'default' => '#828282',
1008 'style' => [
1009 (object)[
1010 'depends' => [
1011 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1012 ],
1013 '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}}; }'
1014 ],
1015 ]
1016 ],
1017 'catLineHoverColor' => [
1018 'type' => 'string',
1019 'default' => '#037fff',
1020 'style' => [
1021 (object)[
1022 'depends' => [
1023 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1024 ],
1025 '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}}; }'
1026 ],
1027 ]
1028 ],
1029 'catTypo' => [
1030 'type' => 'object',
1031 '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'=>'' ],
1032 'style' => [
1033 (object)[
1034 'depends' => [
1035 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1036 ],
1037 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1038 ],
1039 ],
1040 ],
1041 'catColor' => [
1042 'type' => 'string',
1043 'default' => '#037fff',
1044 'style' => [
1045 (object)[
1046 'depends' => [
1047 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1048 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1049 ],
1050 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1051 ],
1052 ],
1053 ],
1054 'catBgColor' => [
1055 'type' => 'object',
1056 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1057 'style' => [
1058 (object)[
1059 'depends' => [
1060 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1061 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1062 ],
1063 'selector'=>'{{ULTP}} .ultp-category-grid a'
1064 ],
1065 ],
1066 ],
1067 'catBorder' => [
1068 'type' => 'object',
1069 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1070 'style' => [
1071 (object)[
1072 'depends' => [
1073 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1074 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1075 ],
1076 'selector'=>'{{ULTP}} .ultp-category-grid a'
1077 ],
1078 ],
1079 ],
1080 'catRadius' => [
1081 'type' => 'object',
1082 'default' => (object)['lg' =>'', 'unit' =>'px'],
1083 'style' => [
1084 (object)[
1085 'depends' => [
1086 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1087 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1088 ],
1089 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1090 ],
1091 ],
1092 ],
1093 'catHoverColor' => [
1094 'type' => 'string',
1095 'default' => '#828282',
1096 'style' => [
1097 (object)[
1098 'depends' => [
1099 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1100 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1101 ],
1102 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1103 ],
1104 ],
1105 ],
1106 'catBgHoverColor' => [
1107 'type' => 'object',
1108 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
1109 'style' => [
1110 (object)[
1111 'depends' => [
1112 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1113 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1114 ],
1115 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1116 ],
1117 ],
1118 ],
1119 'catHoverBorder' => [
1120 'type' => 'object',
1121 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1122 'style' => [
1123 (object)[
1124 'depends' => [
1125 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1126 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1127 ],
1128 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1129 ],
1130 ],
1131 ],
1132 'catSacing' => [
1133 'type' => 'object',
1134 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1135 'style' => [
1136 (object)[
1137 'depends' => [
1138 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1139 ],
1140 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1141 ],
1142 ],
1143 ],
1144 'catPadding' => [
1145 'type' => 'object',
1146 'default' => (object)['lg' =>(object)['unit' =>'px']],
1147 'style' => [
1148 (object)[
1149 'depends' => [
1150 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1151 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1152 ],
1153 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1154 ],
1155 ],
1156 ],
1157
1158 //--------------------------
1159 // Meta Setting/Style
1160 //--------------------------
1161 'showSmallMeta' => [
1162 'type' => 'boolean',
1163 'default' => true,
1164 ],
1165 'metaPosition' => [
1166 'type' => 'string',
1167 'default' => 'top',
1168 ],
1169 'metaStyle' => [
1170 'type' => 'string',
1171 'default' => 'icon',
1172 ],
1173 'metaSeparator' => [
1174 'type' => 'string',
1175 'default' => 'dot',
1176 ],
1177 'metaList' => [
1178 'type' => 'string',
1179 'default' => '["metaAuthor","metaDate","metaRead"]',
1180 ],
1181 'metaListSmall' => [
1182 'type' => 'string',
1183 'default' => '["metaAuthor","metaDate"]',
1184 ],
1185 'metaTypo' => [
1186 'type' => 'object',
1187 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1188 'style' => [
1189 (object)[
1190 'depends' => [
1191 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1192 ],
1193 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1194 ],
1195 ],
1196 ],
1197 'metaColor' => [
1198 'type' => 'string',
1199 'default' => '#989898',
1200 'style' => [
1201 (object)[
1202 'depends' => [
1203 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1204 ],
1205 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
1206 ],
1207 ],
1208 ],
1209 'metaHoverColor' => [
1210 'type' => 'string',
1211 'default' => '#000',
1212 'style' => [
1213 (object)[
1214 'depends' => [
1215 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1216 ],
1217 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }'
1218 ],
1219 ],
1220 ],
1221 'metaSpacing' => [
1222 'type' => 'object',
1223 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1224 'style' => [
1225 (object)[
1226 'depends' => [
1227 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1228 ],
1229 '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}}; }'
1230 ],
1231 ],
1232 ],
1233 'metaMargin' => [
1234 'type' => 'object',
1235 'default' => (object)['lg' =>(object)['top' => '','bottom' => '0', 'left'=>'','right'=>'', 'unit' =>'px']],
1236 'style' => [
1237 (object)[
1238 'depends' => [
1239 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1240 ],
1241 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1242 ],
1243 ],
1244 ],
1245 'metaPadding' => [
1246 'type' => 'object',
1247 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1248 'style' => [
1249 (object)[
1250 'depends' => [
1251 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1252 ],
1253 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1254 ],
1255 ],
1256 ],
1257 'metaBorder' => [
1258 'type' => 'object',
1259 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1260 'style' => [
1261 (object)[
1262 'depends' => [
1263 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1264 ],
1265 'selector'=>'{{ULTP}} .ultp-block-meta'
1266 ],
1267 ],
1268 ],
1269 'metaBg' => [
1270 'type' => 'string',
1271 'default' => '',
1272 'style' => [
1273 (object)[
1274 'depends' => [
1275 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1276 ],
1277 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1278 ],
1279 ],
1280 ],
1281
1282
1283 //--------------------------
1284 // Inner Content Setting/Style
1285 //--------------------------
1286 'contentAlign' => [
1287 'type' => 'string',
1288 'default' => "left",
1289 'style' => [
1290 (object)[
1291 'depends' => [
1292 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1293 ],
1294 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
1295 ],
1296 (object)[
1297 'depends' => [
1298 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1299 ],
1300 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
1301 ],
1302 (object)[
1303 'depends' => [
1304 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1305 ],
1306 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}'
1307 ],
1308 ],
1309 ],
1310 'contentWrapBg' => [
1311 'type' => 'string',
1312 'default' => '',
1313 'style' => [
1314 (object)[
1315 'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }'
1316 ],
1317 ],
1318 ],
1319 'contentWrapHoverBg' => [
1320 'type' => 'string',
1321 'style' => [
1322 (object)[
1323 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }'
1324 ],
1325 ],
1326 ],
1327 'contentWrapBorder' => [
1328 'type' => 'object',
1329 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1330 'style' => [
1331 (object)[
1332 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1333 ],
1334 ],
1335 ],
1336 'contentWrapHoverBorder' => [
1337 'type' => 'object',
1338 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1339 'style' => [
1340 (object)[
1341 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1342 ],
1343 ],
1344 ],
1345 'contentWrapRadius' => [
1346 'type' => 'object',
1347 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1348 'style' => [
1349 (object)[
1350 'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }'
1351 ],
1352 ],
1353 ],
1354 'contentWrapHoverRadius' => [
1355 'type' => 'object',
1356 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1357 'style' => [
1358 (object)[
1359 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }'
1360 ],
1361 ],
1362 ],
1363 'contentWrapShadow' => [
1364 'type' => 'object',
1365 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1366 'style' => [
1367 (object)[
1368 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1369 ],
1370 ],
1371 ],
1372 'contentWrapHoverShadow' => [
1373 'type' => 'object',
1374 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1375 'style' => [
1376 (object)[
1377 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1378 ],
1379 ],
1380 ],
1381
1382 'contentWrapInnerPadding' => [
1383 'type' => 'object',
1384 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1385 'style' => [
1386 (object)[
1387 'selector'=>'{{ULTP}} .ultp-block-content { padding: {{contentWrapInnerPadding}}; }'
1388 ],
1389 ],
1390 ],
1391 'contentWrapPadding' => [
1392 'type' => 'object',
1393 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1394 'style' => [
1395 (object)[
1396 'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }'
1397 ],
1398 ],
1399 ],
1400
1401
1402 //--------------------------
1403 // Image Setting/Style
1404 //--------------------------
1405 'columnFlip' => [
1406 'type' => 'boolean',
1407 'default' => false,
1408 ],
1409 'imgCrop' => [
1410 'type' => 'string',
1411 'default' => 'full',
1412 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']]
1413 ],
1414 'imgCropSmall' => [
1415 'type' => 'string',
1416 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1417 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => 'true']]
1418 ],
1419 'imgWidth' => [
1420 'type' => 'object',
1421 'default' => (object)['lg' =>'80', 'sm' =>'65', 'xs' =>'', 'unit' =>'px'],
1422 'style' => [
1423 (object)[
1424 'depends' => [
1425 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1426 ],
1427 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; }'
1428 ],
1429 ],
1430 ],
1431 'imgHeight' => [
1432 'type' => 'object',
1433 'default' => (object)['lg' =>'', 'unit' =>'px'],
1434 'style' => [
1435 (object)[
1436 'depends' => [
1437 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1438 ],
1439 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image img {object-fit: cover; height: {{imgHeight}}; }'
1440 ],
1441 ],
1442 ],
1443 'imgAnimation' => [
1444 'type' => 'string',
1445 'default' => 'opacity',
1446 ],
1447 'imgGrayScale' => [
1448 'type' => 'object',
1449 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1450 'style' => [
1451 (object)[
1452 'depends' => [
1453 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1454 ],
1455 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1456 ],
1457 ],
1458 ],
1459 'imgHoverGrayScale' => [
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-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1468 ],
1469 ],
1470 ],
1471 'imgRadius' => [
1472 'type' => 'object',
1473 'default' => (object)['lg' =>'', 'unit' =>'px'],
1474 'style' => [
1475 (object)[
1476 'depends' => [
1477 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1478 ],
1479 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1480 ],
1481 ],
1482 ],
1483 'imgHoverRadius' => [
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-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1492 ],
1493 ],
1494 ],
1495 'imgShadow' => [
1496 'type' => 'object',
1497 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1498 'style' => [
1499 (object)[
1500 'depends' => [
1501 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1502 ],
1503 'selector'=>'{{ULTP}} .ultp-block-image'
1504 ],
1505 ],
1506 ],
1507 'imgHoverShadow' => [
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-item:hover .ultp-block-image'
1516 ],
1517 ],
1518 ],
1519 'imgSpacing' => [
1520 'type' => 'object',
1521 'default' => (object)['lg'=>'20'],
1522 'style' => [
1523 (object)[
1524 'depends' => [
1525 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1526 (object)['key'=>'layout','condition'=>'!=','value'=>'layout2'],
1527 ],
1528 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-right: 0; margin-left: {{imgSpacing}}px; }'
1529 ],
1530 (object)[
1531 'depends' => [
1532 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1533 (object)['key'=>'layout','condition'=>'==','value'=>'layout2'],
1534 ],
1535 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-left: {{imgSpacing}}px; } .rtl {{ULTP}} .ultp-small-post-module2 .ultp-block-item .ultp-block-image { margin-left: 0; margin-right: {{imgSpacing}}px; }'
1536 ],
1537 ],
1538 ],
1539 'imgOverlay' => [
1540 'type' => 'boolean',
1541 'default' => false,
1542 ],
1543 'imgOverlayType' => [
1544 'type' => 'string',
1545 'default' => 'default',
1546 'style' => [
1547 (object)[
1548 'depends' => [
1549 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1550 ]
1551 ],
1552 ]
1553 ],
1554 'overlayColor' => [
1555 'type' => 'object',
1556 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1557 'style' => [
1558 (object)[
1559 'depends' => [
1560 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1561 ],
1562 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1563 ],
1564 ],
1565
1566 ],
1567 'imgOpacity' => [
1568 'type' => 'string',
1569 'default' => .7,
1570 'style' => [
1571 (object)[
1572 'depends' => [
1573 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1574 ],
1575 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1576 ],
1577 ],
1578 ],
1579
1580 //--------------------------
1581 // Separator
1582 //--------------------------
1583 'separatorShow' => [
1584 'type' => 'boolean',
1585 'default' => false,
1586 ],
1587 'septColor' => [
1588 'type' => 'string',
1589 'default' => '#e5e5e5',
1590 'style' => [
1591 (object)[
1592 'depends' => [
1593 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1594 ],
1595 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-color:{{septColor}}; }'
1596 ],
1597 ],
1598 ],
1599 'septStyle' => [
1600 'type' => 'string',
1601 'default' => 'dashed',
1602 'style' => [
1603 (object)[
1604 'depends' => [
1605 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1606 ],
1607 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-style:{{septStyle}}; }'
1608 ],
1609 ],
1610 ],
1611 'septSize' => [
1612 'type' => 'string',
1613 'default' => (object)['lg'=>'1'],
1614 'style' => [
1615 (object)[
1616 'depends' => [
1617 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
1618 ],
1619 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { border-bottom-width: {{septSize}}px; }'
1620 ],
1621 ],
1622 ],
1623 'septSpace' => [
1624 'type' => 'object',
1625 'default' => (object)['lg'=>'15'],
1626 'style' => [
1627 (object)[
1628 'selector'=>'{{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { padding-bottom: {{septSpace}}px; } {{ULTP}} .ultp-small-post-module2 .ultp-block-item:not(:last-child) { margin-bottom: {{septSpace}}px; }'
1629 ],
1630 ],
1631 ],
1632
1633 //--------------------------
1634 // Read more Setting/Style
1635 //--------------------------
1636 'showSmallBtn' => [
1637 'type' => 'boolean',
1638 'default' => false,
1639 ],
1640 'readMoreText' => [
1641 'type' => 'string',
1642 'default' => ''
1643 ],
1644 'readMoreIcon' => [
1645 'type' => 'string',
1646 'default' => 'rightArrowLg',
1647 ],
1648 'readMoreTypo' => [
1649 'type' => 'object',
1650 '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'=>'' ],
1651 'style' => [
1652 (object)[
1653 'depends' => [
1654 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1655 ],
1656 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
1657 ],
1658 ],
1659 ],
1660 'readMoreIconSize' => [
1661 'type' => 'object',
1662 'default' => (object)['lg' =>'', 'unit' =>'px'],
1663 'style' => [
1664 (object)[
1665 'depends' => [
1666 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1667 ],
1668 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
1669 ],
1670 ]
1671 ],
1672 'readMoreColor' => [
1673 'type' => 'string',
1674 'default' => '#0d1523',
1675 'style' => [
1676 (object)[
1677 'depends' => [
1678 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1679 ],
1680 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
1681 ],
1682 ],
1683 ],
1684 'readMoreBgColor' => [
1685 'type' => 'object',
1686 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
1687 'style' => [
1688 (object)[
1689 'depends' => [
1690 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1691 ],
1692 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1693 ],
1694 ],
1695 ],
1696 'readMoreBorder' => [
1697 'type' => 'object',
1698 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
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 'readMoreRadius' => [
1709 'type' => 'object',
1710 'default' => (object)['lg' =>'', 'unit' =>'px'],
1711 'style' => [
1712 (object)[
1713 'depends' => [
1714 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1715 ],
1716 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
1717 ],
1718 ],
1719 ],
1720 'readMoreHoverColor' => [
1721 'type' => 'string',
1722 'default' => '#0c32d8',
1723 'style' => [
1724 (object)[
1725 'depends' => [
1726 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1727 ],
1728 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
1729 ],
1730 ],
1731 ],
1732 'readMoreBgHoverColor' => [
1733 'type' => 'object',
1734 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
1735 'style' => [
1736 (object)[
1737 'depends' => [
1738 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1739 ],
1740 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1741 ],
1742 ],
1743 ],
1744 'readMoreHoverBorder' => [
1745 'type' => 'object',
1746 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
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 'readMoreHoverRadius' => [
1757 'type' => 'object',
1758 'default' => (object)['lg' =>'', 'unit' =>'px'],
1759 'style' => [
1760 (object)[
1761 'depends' => [
1762 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1763 ],
1764 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
1765 ],
1766 ],
1767 ],
1768 'readMoreSacing' => [
1769 'type' => 'object',
1770 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1771 'style' => [
1772 (object)[
1773 'depends' => [
1774 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1775 ],
1776 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
1777 ],
1778 ],
1779 ],
1780 'readMorePadding' => [
1781 'type' => 'object',
1782 'default' => (object)['lg' =>(object)['top' => '','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 a { padding:{{readMorePadding}}; }'
1789 ],
1790 ],
1791 ],
1792
1793 //--------------------------
1794 // Filter Setting/Style
1795 //--------------------------
1796 'filterType' => [
1797 'type' => 'string',
1798 'default' => 'category'
1799 ],
1800 'filterText' => [
1801 'type' => 'string',
1802 'default' => 'all'
1803 ],
1804 'filterValue' => [
1805 'type' => 'string',
1806 'default' => '[]',
1807 'style' => [
1808 (object)[
1809 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
1810 ],
1811 ],
1812 ],
1813 'filterCat' => [ // for compatibility
1814 'type' => 'string',
1815 'default' => '[]'
1816 ],
1817 'filterTag' => [ // for compatibility
1818 'type' => 'string',
1819 'default' => '[]'
1820 ],
1821 'fliterTypo' => [
1822 'type' => 'object',
1823 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
1824 'style' => [
1825 (object)[
1826 'depends' => [
1827 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1828 ],
1829 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
1830 ],
1831 ],
1832 ],
1833 'filterColor' => [
1834 'type' => 'string',
1835 'default' => '#0e1523',
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 { color:{{filterColor}}; }'
1842 ],
1843 ],
1844 ],
1845 'filterHoverColor' => [
1846 'type' => 'string',
1847 'default' => '#828282',
1848 'style' => [
1849 (object)[
1850 'depends' => [
1851 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1852 ],
1853 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-navigation .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-navigation .ultp-filter-navigation .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }'
1854 ],
1855 ],
1856 ],
1857 'filterBgColor' => [
1858 'type' => 'string',
1859 'style' => [
1860 (object)[
1861 'depends' => [
1862 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1863 ],
1864 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
1865 ],
1866 ],
1867 ],
1868 'filterHoverBgColor' => [
1869 'type' => 'string',
1870 'style' => [
1871 (object)[
1872 'depends' => [
1873 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1874 ],
1875 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }'
1876 ],
1877 ],
1878 ],
1879 'filterBorder' => [
1880 'type' => 'object',
1881 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
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'
1888 ],
1889 ],
1890 ],
1891 'filterHoverBorder' => [
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:hover'
1900 ],
1901 ],
1902 ],
1903 'filterRadius' => [
1904 'type' => 'object',
1905 'default' => (object)['lg' =>'', 'unit' =>'px'],
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 { border-radius:{{filterRadius}}; }'
1912 ],
1913 ],
1914 ],
1915 'fliterSpacing' => [
1916 'type' => 'object',
1917 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
1918 'style' => [
1919 (object)[
1920 'depends' => [
1921 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1922 ],
1923 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
1924 ],
1925 ],
1926 ],
1927 'fliterPadding' => [
1928 'type' => 'object',
1929 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1930 'style' => [
1931 (object)[
1932 'depends' => [
1933 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1934 ],
1935 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }'
1936 ],
1937 ],
1938 ],
1939 'filterDropdownColor' => [
1940 'type' => 'string',
1941 'default' => '#0e1523',
1942 'style' => [
1943 (object)[
1944 'depends' => [
1945 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1946 ],
1947 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
1948 ],
1949 ],
1950 ],
1951 'filterDropdownHoverColor' => [
1952 'type' => 'string',
1953 'default' => '#037fff',
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:hover { color:{{filterDropdownHoverColor}}; }'
1960 ],
1961 ],
1962 ],
1963 'filterDropdownBg' => [
1964 'type' => 'string',
1965 'default' => '#fff',
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 { background:{{filterDropdownBg}}; }'
1972 ],
1973 ],
1974 ],
1975 'filterDropdownRadius' => [
1976 'type' => 'object',
1977 'default' => (object)['lg'=>'0'],
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 { border-radius:{{filterDropdownRadius}}; }'
1984 ],
1985 ],
1986 ],
1987 'filterDropdownPadding' => [
1988 'type' => 'object',
1989 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
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 { padding:{{filterDropdownPadding}}; }'
1996 ],
1997 ],
1998 ],
1999
2000
2001 //--------------------------
2002 // Pagination Setting/Style
2003 //--------------------------
2004 'paginationType' => [
2005 'type' => 'string',
2006 'default' => 'navigation',
2007 ],
2008 'paginationNav' => [
2009 'type' => 'string',
2010 'default' => 'textArrow',
2011 'style' => [
2012 (object)[
2013 'depends' => [
2014 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2015 ],
2016 ],
2017 ],
2018 ],
2019 'navPosition' => [
2020 'type' => 'string',
2021 'default' => 'topRight',
2022 'style' => [
2023 (object)[
2024 'depends' => [
2025 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2026 ],
2027 ],
2028 ],
2029 ],
2030 'pagiAlign' => [
2031 'type' => 'object',
2032 'default' => (object)['lg' =>'left'],
2033 'style' => [
2034 (object)[
2035 'depends' => [
2036 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2037 ],
2038 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2039 ],
2040 ],
2041 ],
2042 'pagiTypo' => [
2043 'type' => 'object',
2044 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2045 'style' => [
2046 (object)[
2047 'depends' => [
2048 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2049 ],
2050 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-loadmore-action'
2051 ],
2052 ],
2053
2054 ],
2055 'pagiArrowSize' => [
2056 'type' => 'object',
2057 'default' => (object)['lg'=>'14'],
2058 'style' => [
2059 (object)[
2060 'depends' => [
2061 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2062 ],
2063 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2064 ],
2065 ],
2066 ],
2067 'pagiColor' => [
2068 'type' => 'string',
2069 'default' => '#fff',
2070 'style' => [
2071 (object)[
2072 'depends' => [
2073 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2074 ],
2075 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-block-wrapper .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}}; }'
2076 ],
2077 ],
2078 ],
2079 'pagiBgColor' => [
2080 'type' => 'object',
2081 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
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'
2088 ],
2089 ],
2090 ],
2091 'pagiBorder' => [
2092 'type' => 'object',
2093 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
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-action'
2100 ],
2101 ],
2102 ],
2103 'pagiShadow' => [
2104 'type' => 'object',
2105 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
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 'pagiRadius' => [
2116 'type' => 'object',
2117 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
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 { border-radius:{{pagiRadius}}; }'
2124 ],
2125 ],
2126 ],
2127 'pagiHoverColor' => [
2128 'type' => 'string',
2129 'default' => '#fff',
2130 'style' => [
2131 (object)[
2132 'depends' => [
2133 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2134 ],
2135 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-block-wrapper .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}};}}'
2136 ],
2137 ],
2138 ],
2139 'pagiHoverbg' => [
2140 'type' => 'object',
2141 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2142 'style' => [
2143 (object)[
2144 'depends' => [
2145 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2146 ],
2147 '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}} }'
2148 ],
2149 ],
2150 ],
2151 'pagiHoverBorder' => [
2152 'type' => 'object',
2153 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
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-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover'
2160 ],
2161 ],
2162 ],
2163 'pagiHoverShadow' => [
2164 'type' => 'object',
2165 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
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 'pagiHoverRadius' => [
2176 'type' => 'object',
2177 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2178 'style' => [
2179 (object)[
2180 'depends' => [
2181 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2182 ],
2183 '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}}; }'
2184 ],
2185 ],
2186 ],
2187 'pagiPadding' => [
2188 'type' => 'object',
2189 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2190 'style' => [
2191 (object)[
2192 'depends' => [
2193 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2194 ],
2195 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2196 ],
2197 ],
2198 ],
2199 'navMargin' => [
2200 'type' => 'object',
2201 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2202 'style' => [
2203 (object)[
2204 'depends' => [
2205 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2206 ],
2207 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2208 ],
2209 ],
2210 ],
2211
2212
2213 //--------------------------
2214 // Wrapper Style
2215 //--------------------------
2216 'loadingColor' => [
2217 'type' => 'string',
2218 'default' => '#000',
2219 'style' => [
2220 (object)[
2221 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2222 ],
2223 ],
2224 ],
2225 'wrapBg' => [
2226 'type' => 'object',
2227 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2228 'style' => [
2229 (object)[
2230 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2231 ],
2232 ],
2233 ],
2234 'wrapBorder' => [
2235 'type' => 'object',
2236 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2237 'style' => [
2238 (object)[
2239 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2240 ],
2241 ],
2242 ],
2243 'wrapShadow' => [
2244 'type' => 'object',
2245 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2246 'style' => [
2247 (object)[
2248 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2249 ],
2250 ],
2251 ],
2252 'wrapRadius' => [
2253 'type' => 'object',
2254 'default' => (object)['lg' =>'', 'unit' =>'px'],
2255 'style' => [
2256 (object)[
2257 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2258 ],
2259 ],
2260 ],
2261 'wrapHoverBackground' => [
2262 'type' => 'object',
2263 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2264 'style' => [
2265 (object)[
2266 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2267 ],
2268 ],
2269 ],
2270 'wrapHoverBorder' => [
2271 'type' => 'object',
2272 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2273 'style' => [
2274 (object)[
2275 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2276 ],
2277 ],
2278 ],
2279 'wrapHoverRadius' => [
2280 'type' => 'object',
2281 'default' => (object)['lg' =>'', 'unit' =>'px'],
2282 'style' => [
2283 (object)[
2284 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2285 ],
2286 ],
2287 ],
2288 'wrapHoverShadow' => [
2289 'type' => 'object',
2290 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2291 'style' => [
2292 (object)[
2293 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2294 ],
2295 ],
2296 ],
2297 'wrapMargin' => [
2298 'type' => 'object',
2299 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2300 'style' => [
2301 (object)[
2302 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2303 ],
2304 ],
2305 ],
2306 'wrapOuterPadding' => [
2307 'type' => 'object',
2308 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2309 'style' => [
2310 (object)[
2311 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2312 ],
2313 ],
2314 ],
2315 'wrapInnerPadding' => [
2316 'type' => 'object',
2317 'default' => (object)['lg' =>(object)['unit' =>'px']],
2318 'style' => [
2319 (object)[
2320 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2321 ],
2322 ],
2323 ],
2324 'advanceId' => [
2325 'type' => 'string',
2326 'default' => '',
2327 ],
2328 'advanceZindex' => [
2329 'type' => 'number',
2330 'default' => '',
2331 'style' => [
2332 (object)[
2333 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}'
2334 ],
2335 ],
2336 ],
2337 'hideExtraLarge' => [
2338 'type' => 'boolean',
2339 'default' => false,
2340 'style' => [
2341 (object)[
2342 'selector' => '{{ULTP}} {display:none;}'
2343 ],
2344 ],
2345 ],
2346 'hideDesktop' => [
2347 'type' => 'boolean',
2348 'default' => false,
2349 'style' => [
2350 (object)[
2351 'selector' => '{{ULTP}} {display:none;}'
2352 ],
2353 ],
2354 ],
2355 'hideTablet' => [
2356 'type' => 'boolean',
2357 'default' => false,
2358 'style' => [
2359 (object)[
2360 'selector' => '{{ULTP}} {display:none;}'
2361 ],
2362 ],
2363 ],
2364 'hideMobile' => [
2365 'type' => 'boolean',
2366 'default' => false,
2367 'style' => [
2368 (object)[
2369 'selector' => '{{ULTP}} {display:none;}'
2370 ],
2371 ],
2372 ],
2373 'advanceCss' => [
2374 'type' => 'string',
2375 'default' => '',
2376 'style' => [(object)['selector' => '']],
2377 ]
2378 );
2379
2380 if( $default ){
2381 $temp = array();
2382 foreach ($attributes as $key => $value) {
2383 if( isset($value['default']) ){
2384 $temp[$key] = $value['default'];
2385 }
2386 }
2387 return $temp;
2388 }else{
2389 return $attributes;
2390 }
2391 }
2392
2393 public function register() {
2394 register_block_type( 'ultimate-post/post-module-2',
2395 array(
2396 'title' => __('Post Module #2', 'ultimate-post'),
2397 'attributes' => $this->get_attributes(),
2398 'render_callback' => array($this, 'content')
2399 )
2400 );
2401 }
2402
2403 public function content($attr, $noAjax) {
2404
2405 if(!$noAjax){
2406 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2407 $attr['paged'] = $paged ? $paged : 1;
2408 }
2409
2410 $block_name = 'post-module-2';
2411 $page_post_id = get_the_ID();
2412 $wraper_before = $wraper_after = $post_loop = '';
2413 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2414 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2415
2416 if ($recent_posts->have_posts()) {
2417
2418 $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"]:'').'">';
2419 $wraper_before .= '<div class="ultp-block-wrapper">';
2420
2421 // Loading
2422 $wraper_before .= ultimate_post()->loading();
2423
2424 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
2425 $wraper_before .= '<div class="ultp-heading-filter">';
2426 $wraper_before .= '<div class="ultp-heading-filter-in">';
2427
2428 // Heading
2429 include ULTP_PATH.'blocks/template/heading.php';
2430
2431 if ($attr['filterShow'] || $attr['paginationShow']) {
2432 $wraper_before .= '<div class="ultp-filter-navigation">';
2433 // Filter
2434 if($attr['filterShow']) {
2435 include ULTP_PATH.'blocks/template/filter.php';
2436 }
2437 // Navigation
2438 if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
2439 include ULTP_PATH.'blocks/template/navigation-before.php';
2440 }
2441 $wraper_before .= '</div>';
2442 }
2443
2444 $wraper_before .= '</div>';
2445 $wraper_before .= '</div>';
2446 }
2447
2448 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-post-module2 ultp-block-content-'.$attr['varticalAlign'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').' ultp-'.$attr['layout'].'">';
2449 $idx = 0; // $idx = $noAjax ? 1 : 0;
2450 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2451
2452 include ULTP_PATH.'blocks/template/data.php';
2453
2454 include ULTP_PATH.'blocks/template/category.php';
2455
2456 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
2457
2458 $post_loop .= '<div class="ultp-block-content-wrap">';
2459 if( has_post_thumbnail() && $attr['showImage'] ){
2460 $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 : '' ).'">';
2461 if ($idx == 0) {
2462 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCrop'], '', $title).'</a>';
2463 } else {
2464 if(($attr['layout'] == 'layout2') || ($attr['layout'] === 'layout3') || ($attr['layout'] === 'layout5')){
2465 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.ultimate_post()->get_image($post_thumb_id, $attr['imgCropSmall'], '', $title).'</a>';
2466 }
2467 }
2468 if( ($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
2469 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
2470 }
2471 $post_loop .= '</div>';
2472 }
2473 $post_loop .= '<div class="ultp-block-content">';
2474 // Category
2475 if(($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
2476 $post_loop .= $category;
2477 }
2478 // Title
2479 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
2480 include ULTP_PATH.'blocks/template/title.php';
2481 }
2482 // Meta
2483 if( $attr['metaPosition'] =='top' ) {
2484 include ULTP_PATH.'blocks/template/meta.php';
2485 }
2486 // Title
2487 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
2488 include ULTP_PATH.'blocks/template/title.php';
2489 }
2490 // Excerpt
2491 if(($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
2492 if ( $attr['showFullExcerpt']== 0 ) {
2493 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>';
2494 } else {
2495 $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>';
2496 }
2497 }
2498 // Read More
2499 if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
2500 $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>';
2501 }
2502 // Bottom
2503 if( $attr['metaPosition'] =='bottom' ) {
2504 include ULTP_PATH.'blocks/template/meta.php';
2505 }
2506 $post_loop .= '</div>';
2507 $post_loop .= '</div>';
2508 $post_loop .= '</'.$attr['contentTag'].'>';
2509
2510 if($idx == 0) {
2511 $bigloop = $post_loop;
2512 $post_loop = '';
2513 }
2514
2515 $idx ++;
2516 endwhile;
2517
2518 $bigloop = '<div class="ultp-big-post-module2">'.$bigloop.'</div>';
2519 $post_loop = $bigloop.'<div class="ultp-small-post-module2">'.$post_loop.'</div>';
2520
2521 $wraper_after .= '</div>';//ultp-block-items-wrap
2522 $wraper_after .= '</div>';
2523 $wraper_after .= '</div>';
2524
2525 wp_reset_query();
2526 }
2527
2528 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2529 }
2530
2531 }