PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.1.1
Post Grid Gutenberg Blocks – PostX v2.1.1
5.0.41 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 All 238 releases
ultimate-post / blocks / Post_Grid_5.php

Post_Grid_5.php in Post Grid Gutenberg Blocks – PostX 2.1.1, at blocks/Post_Grid_5.php

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