PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.0.7
Post Grid Gutenberg Blocks – PostX v1.0.7
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 1.0.7, at blocks/Post_Grid_4.php

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