PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.2.2
Post Grid Gutenberg Blocks – PostX v1.2.2
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_3.php

Post_Grid_3.php in Post Grid Gutenberg Blocks – PostX 1.2.2, at blocks/Post_Grid_3.php

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