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

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

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