PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.1.1
Post Grid Gutenberg Blocks – PostX v2.1.1
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_1.php

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

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