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

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

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