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

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

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