PluginProbe
Post Grid Gutenberg Blocks – PostX / 1.0.7
Post Grid Gutenberg Blocks – PostX v1.0.7
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 1.0.7, at blocks/Post_Grid_3.php

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