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

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

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