PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.0.7
Post Grid Gutenberg Blocks – PostX v1.0.7
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / Post_Grid_2.php

Post_Grid_2.php in Post Grid Gutenberg Blocks – PostX 1.0.7, at blocks/Post_Grid_2.php

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