PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
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_Grid_6.php

Post_Grid_6.php in Post Grid Gutenberg Blocks – PostX 2.2.5, at blocks/Post_Grid_6.php

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