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

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

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