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

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

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