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_4.php

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

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