PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.9.2
Post Grid Gutenberg Blocks – PostX v2.9.2
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.9.2, at blocks/Post_Grid_1.php

3,168 lines 148.1 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 'previewImg' => [
18 'type' => 'string',
19 'default' => '',
20 ],
21 /*============================
22 Layout
23 ============================*/
24 'layout' => [
25 'type' => 'string',
26 'default' => 'layout1',
27 ],
28 /*============================
29 Query Setting
30 ============================*/
31 'queryQuick' => [
32 'type' => 'string',
33 'default' => '',
34 'style' => [
35 (object)[
36 'depends' => [
37 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
38 ]
39 ],
40 ],
41 ],
42 'queryNumPosts' => [
43 'type' => 'object',
44 'default' => (object)['lg'=>4],
45 'style' => [
46 (object)[
47 'depends' => [
48 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts')]
49 ]
50 ],
51 ],
52 ],
53 'queryNumber' => [ // for compatibility since v.2.5.4
54 'type' => 'string',
55 'default' =>4,
56 'style' => [
57 (object)[
58 'depends' => [
59 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
60 ]
61 ],
62 ],
63 ],
64 'queryType' => [
65 'type' => 'string',
66 'default' => 'post'
67 ],
68 'queryTax' => [
69 'type' => 'string',
70 'default' => 'category',
71 'style' => [
72 (object)[
73 'depends' => [
74 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
75 ]
76 ],
77 ],
78 ],
79 'queryTaxValue' => [
80 'type' => 'string',
81 'default' => '[]',
82 'style' => [
83 (object)[
84 'depends' => [
85 (object)['key' => 'queryTax','condition' => '!=','value' => ''],
86 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
87 ]
88 ],
89 ],
90 ],
91 'queryRelation' => [
92 'type' => 'string',
93 'default' => 'OR',
94 'style' => [
95 (object)[
96 'depends' => [
97 (object)['key' => 'queryTaxValue','condition' => '!=','value' => '[]'],
98 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
99 ]
100 ],
101 ],
102 ],
103 'queryOrderBy' => [
104 'type' => 'string',
105 'default' => 'date',
106 ],
107 'metaKey' => [
108 'type' => 'string',
109 'default' => 'custom_meta_key',
110 'style' => [
111 (object)[
112 'depends' => [
113 (object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num'],
114 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
115 ]
116 ],
117 ],
118 ],
119 'queryOrder' => [
120 'type' => 'string',
121 'default' => 'desc',
122 ],
123 // Include Remove from Version 2.5.4
124 'queryInclude' => [
125 'type' => 'string',
126 'default' => '',
127 ],
128 'queryExclude' => [
129 'type' => 'string',
130 'default' => '[]',
131 'style' => [
132 (object)[
133 'depends' => [
134 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
135 ]
136 ],
137 ],
138 ],
139 'queryAuthor' => [
140 'type' => 'string',
141 'default' => '[]',
142 'style' => [
143 (object)[
144 'depends' => [
145 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
146 ]
147 ],
148 ],
149 ],
150 'queryOffset' => [
151 'type' => 'string',
152 'default' => '0',
153 'style' => [
154 (object)[
155 'depends' => [
156 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
157 ]
158 ],
159 ],
160 ],
161 'queryExcludeTerm' => [
162 'type' => 'string',
163 'default' => '[]',
164 'style' => [
165 (object)[
166 'depends' => [
167 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
168 ]
169 ],
170 ],
171 ],
172 'queryExcludeAuthor' => [
173 'type' => 'string',
174 'default' => '[]',
175 'style' => [
176 (object)[
177 'depends' => [
178 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
179 ]
180 ],
181 ],
182 ],
183 'querySticky' => [
184 'type' => 'boolean',
185 'default' => true,
186 'style' => [
187 (object)[
188 'depends' => [
189 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
190 ]
191 ],
192 ],
193 ],
194 'queryUnique' => [
195 'type' => 'string',
196 'default' => '',
197 'style' => [
198 (object)[
199 'depends' => [
200 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
201 ]
202 ],
203 ],
204 ],
205 'queryPosts' => [
206 'type' => 'string',
207 'default' => '[]',
208 'style' => [
209 (object)[
210 'depends' => [
211 (object)['key' => 'queryType','condition' => '==','value' => 'posts']
212 ]
213 ],
214 ],
215 ],
216 'queryCustomPosts' => [
217 'type' => 'string',
218 'default' => '[]',
219 'style' => [
220 (object)[
221 'depends' => [
222 (object)['key' => 'queryType','condition' => '==','value' => 'customPosts']
223 ]
224 ],
225 ],
226 ],
227 /*============================
228 General Setting
229 ============================*/
230 'gridStyle' => [
231 'type' => 'string',
232 'default' => 'style1',
233 ],
234 'columns' => [
235 'type' => 'object',
236 'default' => (object)['lg' =>'2'],
237 'style' => [
238 (object)[
239 'depends' => [
240 (object)['key'=>'gridStyle','condition'=>'==','value'=>['style1', 'style2']],
241 ],
242 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-grid-1 .ultp-block-row.ultp-block-items-wrap { grid-template-columns: repeat({{columns}}, 1fr); }'
243 ],
244 ],
245 ],
246 'columnGridGap' => [
247 'type' => 'object',
248 'default' => (object)['lg' =>'30', 'unit' =>'px'],
249 'style' => [
250 (object)[
251 'selector'=>'{{ULTP}} .ultp-block-row { grid-column-gap: {{columnGridGap}}; }'
252 ],
253 ],
254 ],
255 'rowSpace' => [
256 'type' => 'object',
257 'default' => (object)['lg'=>'30'],
258 'style' => [
259 (object)[
260 'depends' => [
261 (object)['key'=>'separatorShow','condition'=>'!=','value'=> true]
262 ],
263 'selector'=>'{{ULTP}} .ultp-block-row {row-gap: {{rowSpace}}px; }'
264 ],
265 (object)[
266 'depends' => [
267 (object)['key'=>'separatorShow','condition'=>'==','value'=> true]
268 ],
269 'selector'=>'{{ULTP}} .ultp-block-item { padding-bottom: {{rowSpace}}px; margin-bottom:{{rowSpace}}px; }'
270 ],
271 ],
272 ],
273 'titleShow' => [
274 'type' => 'boolean',
275 'default' => true,
276 ],
277 'titleStyle' => [
278 'type' => 'string',
279 'default' => 'none',
280 ],
281 'titleAnimColor' => [
282 'type' => 'string',
283 'default' => 'black',
284 'style' => [
285 (object)[
286 'depends' => [
287 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1']
288 ],
289 'selector'=>'{{ULTP}} .ultp-title-style1 a {
290 cursor: pointer;
291 text-decoration: none;
292 display: inline;
293 padding-bottom: 2px;
294 transition: all 0.35s linear !important;
295 background: linear-gradient(
296 to bottom,
297 {{titleAnimColor}} 0%,
298 {{titleAnimColor}} 98%
299 );
300 background-size: 0px 2px;
301 background-repeat: no-repeat;
302 background-position: left 100%;
303 }'
304 ],
305 (object)[
306 'depends' => [
307 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2']
308 ],
309 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover {
310 border-bottom:none;
311 padding-bottom: 2px;
312 background-position:0 100%;
313 background-repeat: repeat;
314 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
315 }'
316 ],
317 (object)[
318 'depends' => [
319 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3']
320 ],
321 'selector'=>'{{ULTP}} .ultp-title-style3 a {
322 text-decoration: none;
323 $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s;
324 position: relative;
325 transition: all 0.35s ease-out;
326 padding-bottom: 3px;
327 border-bottom:none;
328 padding-bottom: 2px;
329 background-position:0 100%;
330 background-repeat: repeat;
331 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
332 }'
333 ],
334 (object)[
335 'depends' => [
336 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4']
337 ],
338 'selector'=>'{{ULTP}} .ultp-title-style4 a {
339 cursor: pointer;
340 font-weight: 600;
341 text-decoration: none;
342 display: inline;
343 padding-bottom: 2px;
344 transition: all 0.3s linear !important;
345 background: linear-gradient(
346 to bottom,
347 {{titleAnimColor}} 0%,
348 {{titleAnimColor}} 98%
349 );
350 background-size: 100% 2px;
351 background-repeat: no-repeat;
352 background-position: left 100%;
353 }'
354 ] ,
355 (object)[
356 'depends' => [
357 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
358 ],
359 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{
360 text-decoration: none;
361 transition: all 0.35s ease-out;
362 border-bottom:none;
363 padding-bottom: 2px;
364 background-position:0 100%;
365 background-repeat: repeat;
366 background-size:auto;
367 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id=\'squiggle-link\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' xmlns:ev=\'http://www.w3.org/2001/xml-events\' viewBox=\'0 0 10 18\'%3E%3Cstyle type=\'text/css\'%3E.squiggle%7Banimation:shift .5s linear infinite;%7D@keyframes shift %7Bfrom %7Btransform:translateX(-10px);%7Dto %7Btransform:translateX(0);%7D%7D%3C/style%3E%3Cpath fill=\'none\' stroke=\'{{titleAnimColor}}\' stroke-width=\'1\' class=\'squiggle\' d=\'M0,17.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5 c 2.5,0,2.5,-1.5,5,-1.5 s 2.5,1.5,5,1.5\' /%3E%3C/svg%3E");
368 } '
369 ],
370 (object)[
371 'depends' => [
372 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
373 ],
374 'selector'=>'{{ULTP}} .ultp-title-style5 a {
375 cursor: pointer;
376 text-decoration: none;
377 display: inline;
378 padding-bottom: 2px;
379 transition: all 0.3s linear !important;
380 background: linear-gradient(
381 to bottom,
382 {{titleAnimColor}} 0%,
383 {{titleAnimColor}} 98%
384 );
385 background-size: 100% 2px;
386 background-repeat: no-repeat;
387 background-position: left 100%;
388 }'
389 ],
390 (object)[
391 'depends' => [
392 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6']
393 ],
394 'selector'=>'{{ULTP}} .ultp-title-style6 a{
395 background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
396 background-repeat: no-repeat;
397 background-size: 100% 2px;
398 background-position: 0 88%;
399 transition: background-size 0.15s ease-in;
400 padding: 5px 5px;
401 }'
402 ],
403 (object)[
404 'depends' => [
405 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7']
406 ],
407 'selector'=>'{{ULTP}} .ultp-title-style7 a {
408 cursor: pointer;
409 text-decoration: none;
410 display: inline;
411 padding-bottom: 2px;
412 transition: all 0.3s linear !important;
413 background: linear-gradient(
414 to bottom,
415 {{titleAnimColor}} 0%,
416 {{titleAnimColor}} 98%
417 );
418 background-size: 0px 2px;
419 background-repeat: no-repeat;
420 background-position: right 100%;
421 } '
422 ],
423 (object)[
424 'depends' => [
425 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8']
426 ],
427 'selector'=>'{{ULTP}} .ultp-title-style8 a {
428 cursor: pointer;
429 text-decoration: none;
430 display: inline;
431 padding-bottom: 2px;
432 transition: all 0.3s linear !important;
433 background: linear-gradient(
434 to bottom,
435 {{titleAnimColor}} 0%,
436 {{titleAnimColor}} 98%
437 );
438 background-size: 0px 2px;
439 background-repeat: no-repeat;
440 background-position: center 100%;
441 } '
442 ],
443 (object)[
444 'depends' => [
445 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9']
446 ],
447 'selector'=>'{{ULTP}} .ultp-title-style9 a {
448 background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
449 background-repeat: no-repeat;
450 background-size: 100% 10px;
451 background-position: 0 88%;
452 transition: 0.3s ease-in;
453 padding: 3px 5px;
454 } '
455 ]
456 ],
457 ],
458
459 'headingShow' => [
460 'type' => 'boolean',
461 'default' => true,
462 ],
463 'excerptShow' => [
464 'type' => 'boolean',
465 'default' => true
466 ],
467 'catShow' => [
468 'type' => 'boolean',
469 'default' => true,
470 ],
471 'metaShow' => [
472 'type' => 'boolean',
473 'default' => true,
474 ],
475 'showImage' => [
476 'type' => 'boolean',
477 'default' => true,
478 ],
479 'filterShow' => [
480 'type' => 'boolean',
481 'default' => false,
482 'style' => [
483 (object)[
484 'depends' => [
485 (object)['key'=>'queryType','condition'=>'!=','value'=>['posts','customPosts']],
486 ],
487 ],
488 ]
489 ],
490 'paginationShow' => [
491 'type' => 'boolean',
492 'default' => true,
493 ],
494 'readMore' => [
495 'type' => 'boolean',
496 'default' => false,
497 ],
498 'equalHeight' => [
499 'type' => 'boolean',
500 'default' => true,
501 'style' => [
502 (object)[
503 'selector'=>'{{ULTP}} .ultp-block-content-wrap { height: 100%; }'
504 ]
505 ],
506 ],
507 'contentTag' => [
508 'type' => 'string',
509 'default' => 'div',
510 ],
511 'openInTab' => [
512 'type' => 'boolean',
513 'default' => false,
514 ],
515 'notFoundMessage' => [
516 'type' => 'string',
517 'default' => 'No Post Found'
518 ],
519
520 /*============================
521 Heading Setting/Style
522 ============================*/
523 'headingText' => [
524 'type' => 'string',
525 'default' => 'Post Grid #1',
526 ],
527 'headingURL' => [
528 'type' => 'string',
529 'default' => '',
530 ],
531 'headingBtnText' => [
532 'type' => 'string',
533 'default' => 'View More',
534 'style' => [
535 (object)[
536 'depends' => [
537 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
538 ],
539 ],
540 ],
541 ],
542 'headingStyle' => [
543 'type' => 'string',
544 'default' => 'style9',
545 ],
546 'headingTag' => [
547 'type' => 'string',
548 'default' => 'h2',
549 ],
550 'headingAlign' => [
551 'type' => 'string',
552 'default' => 'left',
553 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner{ text-align:{{headingAlign}}; }']]
554 ],
555 'headingTypo' => [
556 'type' => 'object',
557 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => '', 'family'=>'','weight'=>'700'],
558 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
559 ],
560 'headingColor' => [
561 'type' => 'string',
562 'default' => '#0e1523',
563 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
564 ],
565 'headingBorderBottomColor' => [
566 'type' => 'string',
567 'default' => '#0e1523',
568 'style' => [
569 (object)[
570 'depends' => [
571 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
572 ],
573 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
574 ],
575 (object)[
576 'depends' => [
577 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
578 ],
579 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
580 ],
581 (object)[
582 'depends' => [
583 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
584 ],
585 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
586 ],
587 (object)[
588 'depends' => [
589 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
590 ],
591 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { background-color: {{headingBorderBottomColor}}; }'
592 ],
593 (object)[
594 'depends' => [
595 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
596 ],
597 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
598 ],
599 (object)[
600 'depends' => [
601 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
602 ],
603 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
604 ],
605 (object)[
606 'depends' => [
607 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
608 ],
609 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
610 ],
611 (object)[
612 'depends' => [
613 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
614 ],
615 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
616 ],
617 (object)[
618 'depends' => [
619 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
620 ],
621 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
622 ],
623 (object)[
624 'depends' => [
625 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
626 ],
627 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
628 ],
629 (object)[
630 'depends' => [
631 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
632 ],
633 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
634 ],
635 (object)[
636 'depends' => [
637 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
638 ],
639 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
640 ],
641 (object)[
642 'depends' => [
643 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
644 ],
645 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
646 ],
647 (object)[
648 'depends' => [
649 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
650 ],
651 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
652 ],
653 ],
654 ],
655 'headingBorderBottomColor2' => [
656 'type' => 'string',
657 'default' => '#e5e5e5',
658 'style' => [
659 (object)[
660 'depends' => [
661 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
662 ],
663 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
664 ],
665 (object)[
666 'depends' => [
667 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
668 ],
669 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
670 ],
671 (object)[
672 'depends' => [
673 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
674 ],
675 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
676 ],
677 (object)[
678 'depends' => [
679 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
680 ],
681 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
682 ],
683 ],
684 ],
685 'headingBg' => [
686 'type' => 'string',
687 'default' => '#037fff',
688 'style' => [
689 (object)[
690 'depends' => [
691 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
692 ],
693 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
694 ],
695 (object)[
696 'depends' => [
697 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
698 ],
699 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
700 ],
701 (object)[
702 'depends' => [
703 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
704 ],
705 'selector'=>'{{ULTP}} .ultp-heading-inner span, {{ULTP}} .ultp-heading-inner span:after { background-color:{{headingBg}}; }'
706 ],
707 (object)[
708 'depends' => [
709 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
710 ],
711 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
712 ],
713 (object)[
714 'depends' => [
715 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
716 ],
717 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
718 ],
719 (object)[
720 'depends' => [
721 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
722 ],
723 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
724 ],
725 (object)[
726 'depends' => [
727 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
728 ],
729 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
730 ],
731 (object)[
732 'depends' => [
733 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
734 ],
735 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
736 ],
737 ],
738 ],
739 'headingBg2' => [
740 'type' => 'string',
741 'default' => '#e5e5e5',
742 'style' => [
743 (object)[
744 'depends' => [
745 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
746 ],
747 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
748 ],
749 ],
750 ],
751 'headingBtnTypo' => [
752 'type' => 'object',
753 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
754 'style' => [
755 (object)[
756 'depends' => [
757 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
758 ],
759 'selector'=>'{{ULTP}} .ultp-block-wrapper .ultp-heading-wrap .ultp-heading-btn'
760 ],
761 ],
762 ],
763 'headingBtnColor' => [
764 'type' => 'string',
765 'default' => '#037fff',
766 'style' => [
767 (object)[
768 'depends' => [
769 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
770 ],
771 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
772 ],
773 ],
774 ],
775 'headingBtnHoverColor' => [
776 'type' => 'string',
777 'default' => '#0a31da',
778 'style' => [
779 (object)[
780 'depends' => [
781 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
782 ],
783 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
784 ],
785 ],
786 ],
787
788 'headingBorder' => [
789 'type' => 'string',
790 'default' => '3',
791 'style' => [
792 (object)[
793 'depends' => [
794 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
795 ],
796 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
797 ],
798 (object)[
799 'depends' => [
800 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
801 ],
802 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
803 ],
804 (object)[
805 'depends' => [
806 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
807 ],
808 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
809 ],
810 (object)[
811 'depends' => [
812 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
813 ],
814 'selector'=>'{{ULTP}} .ultp-heading-inner span:before, {{ULTP}} .ultp-heading-inner span:after { height:{{headingBorder}}px; }'
815 ],
816 (object)[
817 'depends' => [
818 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
819 ],
820 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
821 ],
822 (object)[
823 'depends' => [
824 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
825 ],
826 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
827 ],
828 (object)[
829 'depends' => [
830 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
831 ],
832 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
833 ],
834 (object)[
835 'depends' => [
836 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
837 ],
838 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
839 ],
840 (object)[
841 'depends' => [
842 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
843 ],
844 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
845 ],
846 (object)[
847 'depends' => [
848 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
849 ],
850 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
851 ],
852 (object)[
853 'depends' => [
854 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
855 ],
856 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
857 ],
858 (object)[
859 'depends' => [
860 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
861 ],
862 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
863 ],
864 (object)[
865 'depends' => [
866 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
867 ],
868 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
869 ],
870 (object)[
871 'depends' => [
872 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
873 ],
874 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
875 ],
876 ],
877 ],
878 'headingSpacing' => [
879 'type' => 'object',
880 'default' => (object)['lg'=>20, 'sm'=>10, 'unit'=>'px'],
881 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
882 ],
883
884 'headingRadius' => [
885 'type' => 'object',
886 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
887 'style' => [
888 (object)[
889 'depends' => [
890 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
891 ],
892 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
893 ],
894 (object)[
895 'depends' => [
896 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
897 ],
898 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
899 ],
900 (object)[
901 'depends' => [
902 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
903 ],
904 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
905 ],
906 (object)[
907 'depends' => [
908 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
909 ],
910 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
911 ],
912 (object)[
913 'depends' => [
914 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
915 ],
916 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
917 ],
918 (object)[
919 'depends' => [
920 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
921 ],
922 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
923 ],
924 (object)[
925 'depends' => [
926 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
927 ],
928 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
929 ],
930 (object)[
931 'depends' => [
932 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
933 ],
934 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
935 ],
936 ]
937 ],
938
939
940 'headingPadding' => [
941 'type' => 'object',
942 'default' => (object)['lg' =>(object)['unit' =>'px']],
943 'style' => [
944 (object)[
945 'depends' => [
946 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
947 ],
948 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
949 ],
950 (object)[
951 'depends' => [
952 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
953 ],
954 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
955 ],
956 (object)[
957 'depends' => [
958 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
959 ],
960 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
961 ],
962 (object)[
963 'depends' => [
964 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
965 ],
966 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
967 ],
968 (object)[
969 'depends' => [
970 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
971 ],
972 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
973 ],
974 (object)[
975 'depends' => [
976 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
977 ],
978 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
979 ],
980 (object)[
981 'depends' => [
982 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
983 ],
984 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
985 ],
986 (object)[
987 'depends' => [
988 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
989 ],
990 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
991 ],
992 (object)[
993 'depends' => [
994 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
995 ],
996 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
997 ],
998 (object)[
999 'depends' => [
1000 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
1001 ],
1002 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
1003 ],
1004 (object)[
1005 'depends' => [
1006 (object)['key'=>'headingStyle','condition'=>'==','value'=>'style21'],
1007 ],
1008 'selector'=>'{{ULTP}} .ultp-heading-inner span { padding:{{headingPadding}}; }'
1009 ],
1010 ]
1011 ],
1012 'subHeadingShow' => [
1013 'type' => 'boolean',
1014 'default' => false,
1015 ],
1016 'subHeadingText' => [
1017 'type' => 'string',
1018 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
1019 'style' => [
1020 (object)[
1021 'depends' => [
1022 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1023 ],
1024 ],
1025 ],
1026 ],
1027 'subHeadingTypo' => [
1028 'type' => 'object',
1029 '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' => '','family'=>'','weight'=>'500'],
1030 'style' => [
1031 (object)[
1032 'depends' => [
1033 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1034 ],
1035 'selector'=>'{{ULTP}} .ultp-sub-heading div'
1036 ],
1037 ],
1038 ],
1039 'subHeadingColor' => [
1040 'type' => 'string',
1041 'default' => '#989898',
1042 'style' => [
1043 (object)[
1044 'depends' => [
1045 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1046 ],
1047 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
1048 ],
1049 ],
1050 ],
1051 'subHeadingSpacing' => [
1052 'type' => 'object',
1053 'default' => (object)['lg' =>(object)['top' => '8', 'unit' =>'px']],
1054 'style' => [
1055 (object)[
1056 'depends' => [
1057 (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
1058 ],
1059 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
1060 ],
1061 ],
1062 ],
1063
1064 /*============================
1065 Title Setting/Style
1066 ============================*/
1067 'titleTag' => [
1068 'type' => 'string',
1069 'default' => 'h3',
1070 ],
1071 'titlePosition' => [
1072 'type' => 'boolean',
1073 'default' => true,
1074 ],
1075 'titleColor' => [
1076 'type' => 'string',
1077 'default' => '#0e1523',
1078 'style' => [
1079 (object)[
1080 'depends' => [
1081 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1082 ],
1083 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }'
1084 ],
1085 ],
1086 ],
1087 'titleHoverColor' => [
1088 'type' => 'string',
1089 'default' => '#828282',
1090 'style' => [
1091 (object)[
1092 'depends' => [
1093 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1094 ],
1095 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
1096 ],
1097 ],
1098 ],
1099 'titleTypo' => [
1100 'type' => 'object',
1101 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'22', 'unit'=>'px'], 'spacing'=>(object)[ 'lg'=>'0', 'unit'=>'px'], 'height'=>(object)['lg'=>'26', 'unit'=>'px'],'transform' => '', 'decoration'=>'none','family'=>'','weight'=>'500'],
1102 'style' => [
1103 (object)[
1104 'depends' => [
1105 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1106 ],
1107 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title, {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-title a'
1108 ],
1109 ],
1110 ],
1111 'titlePadding' => [
1112 'type' => 'object',
1113 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>5, 'unit'=>'px']],
1114 'style' => [
1115 (object)[
1116 'depends' => [
1117 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1118 ],
1119 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
1120 ],
1121 ],
1122 ],
1123 'titleLength' => [
1124 'type' => 'string',
1125 'default' => 0,
1126 ],
1127
1128 /*============================
1129 Content Setting/Style
1130 ============================*/
1131 'showSeoMeta' => [
1132 'type' => 'boolean',
1133 'default'=> false
1134 ],
1135 'showFullExcerpt' => [
1136 'type' => 'boolean',
1137 'default' => false,
1138 ],
1139 'excerptLimit' => [
1140 'type' => 'string',
1141 'default' => 30,
1142 'style' => [
1143 (object)[
1144 'depends' => [
1145 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
1146 ],
1147 ],
1148 ],
1149 ],
1150 'excerptColor' => [
1151 'type' => 'string',
1152 'default' => '#777',
1153 'style' => [
1154 (object)[
1155 'depends' => [
1156 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1157 ],
1158 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
1159 ],
1160 ],
1161 ],
1162 'excerptTypo' => [
1163 'type' => 'object',
1164 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>26, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1165 'style' => [
1166 (object)[
1167 'depends' => [
1168 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1169 ],
1170 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1171 ],
1172 ],
1173 ],
1174 'excerptPadding' => [
1175 'type' => 'object',
1176 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => '', 'unit' =>'px']],
1177 'style' => [
1178 (object)[
1179 'depends' => [
1180 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1181 ],
1182 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1183 ],
1184 ],
1185 ],
1186
1187 /*============================
1188 Category Setting/Style
1189 ============================*/
1190 'maxTaxonomy'=> [
1191 'type' => 'string',
1192 'default' => '30',
1193 ],
1194 'taxonomy' => [
1195 'type' => 'string',
1196 'default' => 'category'
1197 ],
1198 'catStyle' => [
1199 'type' => 'string',
1200 'default' => 'classic',
1201 ],
1202 'catPosition' => [
1203 'type' => 'string',
1204 'default' => 'aboveTitle',
1205 ],
1206 'customCatColor' => [
1207 'type' => 'boolean',
1208 'default' => false,
1209 ],
1210 'seperatorLink' => [
1211 'type' => 'string',
1212 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1213 'style' => [
1214 (object)[
1215 'depends' => [
1216 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1217 ]
1218 ]
1219 ]
1220 ],
1221 'onlyCatColor' => [
1222 'type' => 'boolean',
1223 'default' => false,
1224 'style' => [
1225 (object)[
1226 'depends' => [
1227 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1228 ]
1229 ]
1230 ]
1231 ],
1232 'catLineWidth' => [
1233 'type' => 'object',
1234 'default' => (object)['lg'=>'20'],
1235 'style' => [
1236 (object)[
1237 'depends' => [
1238 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1239 ],
1240 '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; }'
1241 ],
1242 ]
1243 ],
1244 'catLineSpacing' => [
1245 'type' => 'object',
1246 'default' => (object)['lg'=>'30'],
1247 'style' => [
1248 (object)[
1249 'depends' => [
1250 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1251 ],
1252 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1253 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1254 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1255 ],
1256 ]
1257 ],
1258 'catLineColor' => [
1259 'type' => 'string',
1260 'default' => '#037fff',
1261 'style' => [
1262 (object)[
1263 'depends' => [
1264 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1265 ],
1266 '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}}; }'
1267 ],
1268 ]
1269 ],
1270 'catLineHoverColor' => [
1271 'type' => 'string',
1272 'default' => '#037fff',
1273 'style' => [
1274 (object)[
1275 'depends' => [
1276 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1277 ],
1278 '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}}; }'
1279 ],
1280 ]
1281 ],
1282 'catTypo' => [
1283 'type' => 'object',
1284 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>14, 'unit' =>'px'], 'height' => (object)['lg' =>20, 'unit' =>'px'], 'spacing' => (object)['lg' =>0, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ],
1285 'style' => [
1286 (object)[
1287 'depends' => [
1288 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1289 ],
1290 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1291 ],
1292 ],
1293 ],
1294 'catColor' => [
1295 'type' => 'string',
1296 'default' => '#037fff',
1297 'style' => [
1298 (object)[
1299 'depends' => [
1300 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1301 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1302 ],
1303 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1304 ],
1305 ],
1306 ],
1307 'catBgColor' => [
1308 'type' => 'object',
1309 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1310 'style' => [
1311 (object)[
1312 'depends' => [
1313 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1314 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1315 ],
1316 'selector'=>'{{ULTP}} .ultp-category-grid a'
1317 ],
1318 ],
1319 ],
1320 'catBorder' => [
1321 'type' => 'object',
1322 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1323 'style' => [
1324 (object)[
1325 'depends' => [
1326 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1327 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1328 ],
1329 'selector'=>'{{ULTP}} .ultp-category-grid a'
1330 ],
1331 ],
1332 ],
1333 'catRadius' => [
1334 'type' => 'object',
1335 'default' => (object)['lg' =>'0', 'unit' =>'px'],
1336 'style' => [
1337 (object)[
1338 'depends' => [
1339 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1340 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1341 ],
1342 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1343 ],
1344 ],
1345 ],
1346 'catHoverColor' => [
1347 'type' => 'string',
1348 'default' => '#828282',
1349 'style' => [
1350 (object)[
1351 'depends' => [
1352 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1353 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1354 ],
1355 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1356 ],
1357 ],
1358 ],
1359 'catBgHoverColor' => [
1360 'type' => 'object',
1361 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => ''],
1362 'style' => [
1363 (object)[
1364 'depends' => [
1365 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1366 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1367 ],
1368 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1369 ],
1370 ],
1371 ],
1372 'catHoverBorder' => [
1373 'type' => 'object',
1374 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1375 'style' => [
1376 (object)[
1377 'depends' => [
1378 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1379 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1380 ],
1381 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1382 ],
1383 ],
1384 ],
1385 'catSacing' => [
1386 'type' => 'object',
1387 'default' => (object)['lg' =>(object)['top' => 10,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1388 'style' => [
1389 (object)[
1390 'depends' => [
1391 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1392 ],
1393 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1394 ],
1395 ],
1396 ],
1397 'catPadding' => [
1398 'type' => 'object',
1399 'default' => (object)['lg' =>(object)['top' => "0",'bottom' => "0",'left' => "0",'right' => "0", 'unit' =>'px']],
1400 'style' => [
1401 (object)[
1402 'depends' => [
1403 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1404 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1405 ],
1406 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1407 ],
1408 ],
1409 ],
1410
1411 /*============================
1412 Meta Setting/Style
1413 ============================*/
1414 'metaPosition' => [
1415 'type' => 'string',
1416 'default' => 'top',
1417 ],
1418 'metaStyle' => [
1419 'type' => 'string',
1420 'default' => 'icon',
1421 ],
1422 'authorLink' => [
1423 'type' => 'boolean',
1424 'default' => true,
1425 ],
1426 'metaSeparator' => [
1427 'type' => 'string',
1428 'default' => 'dot',
1429 ],
1430 'metaList' => [
1431 'type' => 'string',
1432 'default' => '["metaAuthor","metaDate","metaRead"]',
1433 ],
1434 'metaMinText' => [
1435 'type' => 'string',
1436 'default' => 'min read',
1437 ],
1438 'metaAuthorPrefix' => [
1439 'type' => 'string',
1440 'default' => 'By',
1441 ],
1442 'metaDateFormat' => [
1443 'type' => 'string',
1444 'default' => 'M j, Y',
1445 ],
1446 'metaTypo' => [
1447 'type' => 'object',
1448 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>12, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'transform' => '', 'decoration' => 'none','family'=>''],
1449 'style' => [
1450 (object)[
1451 'depends' => [
1452 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1453 ],
1454 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1455 ],
1456 ],
1457 ],
1458 'metaColor' => [
1459 'type' => 'string',
1460 'default' => '#989898',
1461 'style' => [
1462 (object)[
1463 'depends' => [
1464 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1465 ],
1466 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
1467 ],
1468 ],
1469 ],
1470 'metaHoverColor' => [
1471 'type' => 'string',
1472 'default' => '#000',
1473 'style' => [
1474 (object)[
1475 'depends' => [
1476 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1477 ],
1478 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover , {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover a { color: {{metaHoverColor}}; } {{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:hover svg { fill: {{metaHoverColor}}; }'
1479 ],
1480 ],
1481 ],
1482 'metaSpacing' => [
1483 'type' => 'object',
1484 'default' => (object)['lg' =>'15', 'unit' =>'px'],
1485 'style' => [
1486 (object)[
1487 'depends' => [
1488 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1489 ],
1490 '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}}; }'
1491 ],
1492 (object)[
1493 'depends' => [
1494 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1495 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1496 ],
1497 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}'
1498 ],
1499 ],
1500 ],
1501 'metaMargin' => [
1502 'type' => 'object',
1503 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1504 'style' => [
1505 (object)[
1506 'depends' => [
1507 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1508 ],
1509 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1510 ],
1511 ],
1512 ],
1513 'metaPadding' => [
1514 'type' => 'object',
1515 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1516 'style' => [
1517 (object)[
1518 'depends' => [
1519 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1520 ],
1521 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1522 ],
1523 ],
1524 ],
1525 'metaBorder' => [
1526 'type' => 'object',
1527 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1528 'style' => [
1529 (object)[
1530 'depends' => [
1531 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1532 ],
1533 'selector'=>'{{ULTP}} .ultp-block-meta'
1534 ],
1535 ],
1536 ],
1537 'metaBg' => [
1538 'type' => 'string',
1539 'default' => '',
1540 'style' => [
1541 (object)[
1542 'depends' => [
1543 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1544 ],
1545 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1546 ],
1547 ],
1548 ],
1549
1550
1551 /*============================
1552 Inner Content Setting/Style
1553 ============================*/
1554 'contentAlign' => [
1555 'type' => 'string',
1556 'default' => "center",
1557 'style' => [
1558 (object)[
1559 'depends' => [
1560 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
1561 ],
1562 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;} {{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image { margin-right: auto; }'
1563 ],
1564 (object)[
1565 'depends' => [
1566 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
1567 ],
1568 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;} {{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image { margin: 0 auto; }'
1569 ],
1570 (object)[
1571 'depends' => [
1572 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1573 ],
1574 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;} {{ULTP}} .ultp-block-image img, {{ULTP}} .ultp-block-image { margin-left: auto; }'
1575 ],
1576 (object)[
1577 'depends' => [
1578 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1579 (object)['key'=>'readMore','condition'=>'==','value'=>true],
1580 ],
1581 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}'
1582 ],
1583 ],
1584 ],
1585 'contentWrapBg' => [
1586 'type' => 'string',
1587 'default' => '',
1588 'style' => [
1589 (object)[
1590 'selector'=>'{{ULTP}} .ultp-block-content-wrap { background:{{contentWrapBg}}; }'
1591 ],
1592 ],
1593 ],
1594 'contentWrapHoverBg' => [
1595 'type' => 'string',
1596 'style' => [
1597 (object)[
1598 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { background:{{contentWrapHoverBg}}; }'
1599 ],
1600 ],
1601 ],
1602 'contentWrapBorder' => [
1603 'type' => 'object',
1604 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1605 'style' => [
1606 (object)[
1607 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1608 ],
1609 ],
1610 ],
1611 'contentWrapHoverBorder' => [
1612 'type' => 'object',
1613 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1614 'style' => [
1615 (object)[
1616 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1617 ],
1618 ],
1619 ],
1620 'contentWrapRadius' => [
1621 'type' => 'object',
1622 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1623 'style' => [
1624 (object)[
1625 'selector'=>'{{ULTP}} .ultp-block-content-wrap { border-radius: {{contentWrapRadius}}; }'
1626 ],
1627 ],
1628 ],
1629 'contentWrapHoverRadius' => [
1630 'type' => 'object',
1631 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1632 'style' => [
1633 (object)[
1634 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover { border-radius: {{contentWrapHoverRadius}}; }'
1635 ],
1636 ],
1637 ],
1638 'contentWrapShadow' => [
1639 'type' => 'object',
1640 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1641 'style' => [
1642 (object)[
1643 'selector'=>'{{ULTP}} .ultp-block-content-wrap'
1644 ],
1645 ],
1646 ],
1647 'contentWrapHoverShadow' => [
1648 'type' => 'object',
1649 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1650 'style' => [
1651 (object)[
1652 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover'
1653 ],
1654 ],
1655 ],
1656 'innerBgColor' => [
1657 'type' => 'string',
1658 'style' => [
1659 (object)[
1660 'depends' => [
1661 (object)['key'=>'layout','condition'=>'==','value'=>['layout3','layout4','layout5']],
1662 ],
1663 'selector'=>'{{ULTP}} .ultp-layout3 .ultp-block-content-wrap .ultp-block-content,{{ULTP}} .ultp-layout4 .ultp-block-content-wrap .ultp-block-content, {{ULTP}} .ultp-layout5 .ultp-block-content-wrap .ultp-block-content { background:{{innerBgColor}}; }'
1664 ],
1665 ],
1666 ],
1667 'contentWrapInnerPadding' => [
1668 'type' => 'object',
1669 'default' => (object)['lg' =>(object)['unit' =>'px']],
1670 'style' => [
1671 (object)[
1672 '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}}; }'
1673 ],
1674 ],
1675 ],
1676 'contentWrapPadding' => [
1677 'type' => 'object',
1678 'default' => (object)['lg' =>(object)['unit' =>'px']],
1679 'style' => [
1680 (object)[
1681 'selector'=>'{{ULTP}} .ultp-block-content-wrap { padding: {{contentWrapPadding}}; }'
1682 ],
1683 ],
1684 ],
1685
1686 /*============================
1687 Image Style
1688 ============================*/
1689 'imgCrop' => [
1690 'type' => 'string',
1691 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_landscape'),
1692 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => true]]
1693 ],
1694 'imgCropSmall' => [
1695 'type' => 'string',
1696 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1697 'style' => [
1698 (object)[
1699 'depends' => [
1700 (object)['key' => 'showImage','condition' => '==','value' => true],
1701 (object)['key' => 'gridStyle','condition' => '!=','value' => 'style1']
1702 ],
1703 ]
1704 ]
1705 ],
1706 'imgWidth' => [
1707 'type' => 'object',
1708 'default' => (object)['lg' =>'', 'ulg' =>'%'],
1709 'style' => [
1710 (object)[
1711 'depends' => [
1712 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1713 ],
1714 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image { max-width: {{imgWidth}}; } {{ULTP}} .ultp-block-item .ultp-block-image img { width: 100% }'
1715 ],
1716 ],
1717 ],
1718 'imgHeight' => [
1719 'type' => 'object',
1720 'default' => (object)['lg' =>'', 'unit' =>'px'],
1721 'style' => [
1722 (object)[
1723 'depends' => [
1724 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1725 ],
1726 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image img {height: {{imgHeight}} !important; }'
1727 ],
1728 ],
1729 ],
1730 'imageScale' => [
1731 'type' => 'string',
1732 'default' => 'cover',
1733 'style' => [
1734 (object)[
1735 'depends' => [
1736 (object)['key'=>'showImage','condition'=>'==','value'=>true]
1737 ],
1738 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image img {object-fit: {{imageScale}};}'
1739 ],
1740 ],
1741 ],
1742 'imgAnimation' => [
1743 'type' => 'string',
1744 'default' => 'opacity',
1745 ],
1746 'imgGrayScale' => [
1747 'type' => 'object',
1748 'default' => (object)['lg' =>'0', 'ulg' =>'%', 'unit' =>'%'],
1749 'style' => [
1750 (object)[
1751 'depends' => [
1752 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1753 ],
1754 'selector'=>'{{ULTP}} .ultp-block-image { filter: grayscale({{imgGrayScale}}); }'
1755 ],
1756 ],
1757 ],
1758 'imgHoverGrayScale' => [
1759 'type' => 'object',
1760 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1761 'style' => [
1762 (object)[
1763 'depends' => [
1764 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1765 ],
1766 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { filter: grayscale({{imgHoverGrayScale}}); }'
1767 ],
1768 ],
1769 ],
1770 'imgRadius' => [
1771 'type' => 'object',
1772 'default' => (object)['lg' =>'', 'unit' =>'px'],
1773 'style' => [
1774 (object)[
1775 'depends' => [
1776 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1777 ],
1778 'selector'=>'{{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1779 ],
1780 ],
1781 ],
1782 'imgHoverRadius' => [
1783 'type' => 'object',
1784 'default' => (object)['lg' =>'', 'unit' =>'px'],
1785 'style' => [
1786 (object)[
1787 'depends' => [
1788 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1789 ],
1790 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1791 ],
1792 ],
1793 ],
1794 'imgShadow' => [
1795 'type' => 'object',
1796 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1797 'style' => [
1798 (object)[
1799 'depends' => [
1800 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1801 ],
1802 'selector'=>'{{ULTP}} .ultp-block-image'
1803 ],
1804 ],
1805 ],
1806 'imgHoverShadow' => [
1807 'type' => 'object',
1808 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1809 'style' => [
1810 (object)[
1811 'depends' => [
1812 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1813 ],
1814 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image'
1815 ],
1816 ],
1817 ],
1818 'imgSpacing' => [
1819 'type' => 'object',
1820 'default' => (object)['lg'=>'10'],
1821 'style' => [
1822 (object)[
1823 'depends' => [
1824 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1825 ],
1826 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-image { margin-bottom: {{imgSpacing}}px; }'
1827 ],
1828 ],
1829 ],
1830 'imgOverlay' => [
1831 'type' => 'boolean',
1832 'default' => false,
1833 ],
1834 'imgOverlayType' => [
1835 'type' => 'string',
1836 'default' => 'default',
1837 'style' => [
1838 (object)[
1839 'depends' => [
1840 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1841 ]
1842 ],
1843 ]
1844 ],
1845 'overlayColor' => [
1846 'type' => 'object',
1847 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1848 'style' => [
1849 (object)[
1850 'depends' => [
1851 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1852 ],
1853 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1854 ],
1855 ],
1856
1857 ],
1858 'imgOpacity' => [
1859 'type' => 'string',
1860 'default' => .7,
1861 'style' => [
1862 (object)[
1863 'depends' => [
1864 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1865 ],
1866 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1867 ],
1868 ],
1869 ],
1870 'fallbackEnable' => [
1871 'type' => 'boolean',
1872 'default' => true,
1873 'style' => [
1874 (object)[
1875 'depends' => [
1876 (object)['key'=>'showImage','condition'=>'==','value'=> true],
1877 ],
1878 ],
1879 ],
1880 ],
1881 'fallbackImg' => [
1882 'type' => 'object',
1883 'default' => '',
1884 'style' => [
1885 (object)[
1886 'depends' => [
1887 (object)['key'=>'showImage','condition'=>'==','value'=> true],
1888 (object)['key'=>'fallbackEnable','condition'=>'==','value'=> true],
1889 ],
1890 ],
1891 ],
1892 ],
1893 'imgSrcset' => [
1894 'type' => 'boolean',
1895 'default' => false,
1896 ],
1897 'imgLazy' => [
1898 'type' => 'boolean',
1899 'default' => false,
1900 ],
1901
1902 /*============================
1903 Video Style
1904 ============================*/
1905 'vidIconEnable' => [
1906 'type' => 'boolean',
1907 'default' => true,
1908 ],
1909 'popupAutoPlay' => [
1910 'type' => 'boolean',
1911 'default' => true,
1912 'style' => [
1913 (object) [
1914 'depends' => [
1915 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1916 ],
1917 ]
1918 ],
1919 ],
1920 'vidIconPosition' => [
1921 'type' => 'string',
1922 'default' => 'center',
1923 'style' => [
1924 (object)[
1925 'depends' => [
1926 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1927 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomRight']
1928 ],
1929 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; right: 20px; }'
1930 ],
1931 (object)[
1932 'depends' => [
1933 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1934 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'center']
1935 ],
1936 'selector'=>'{{ULTP}} .ultp-video-icon {
1937 margin: 0 auto;
1938 position: absolute;
1939 top: 50%;
1940 left: 50%;
1941 transform: translate(-50%,-60%);
1942 -o-transform: translate(-50%,-60%);
1943 -ms-transform: translate(-50%,-60%);
1944 -moz-transform: translate(-50%,-60%);
1945 -webkit-transform: translate(-50%,-50%);
1946 z-index: 998;}'
1947 ],
1948 (object)[
1949 'depends' => [
1950 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1951 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomLeft']
1952 ],
1953 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; left: 20px; }'
1954 ],
1955 (object)[
1956 'depends' => [
1957 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1958 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topRight']
1959 ],
1960 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; right: 20px; }'
1961 ],
1962 (object)[
1963 'depends' => [
1964 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1965 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topLeft']
1966 ],
1967 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; left: 20px; }'
1968 ],
1969 (object)[
1970 'depends' => [
1971 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1972 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'rightMiddle']
1973 ],
1974 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-end; align-items: center; height: 100%; width: 100%; top:0px;}'
1975 ],
1976 (object)[
1977 'depends' => [
1978 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1979 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'leftMiddle']
1980 ],
1981 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-start; align-items: center; height: 100%; width: 100%; top: 0px;}'
1982 ]
1983 ],
1984 ],
1985 'popupIconColor' => [
1986 'type' => 'string',
1987 'default' => '#fff',
1988 'style' => [
1989 (object) [
1990 'depends' => [
1991 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1992 ],
1993 'selector'=>'{{ULTP}} .ultp-video-icon svg { fill: {{popupIconColor}}; } {{ULTP}} .ultp-video-icon svg circle { stroke: {{popupIconColor}}; }'
1994 ]
1995 ],
1996 ],
1997 'popupHovColor' => [
1998 'type' => 'string',
1999 'default' => '#d2d2d2',
2000 'style' => [
2001 (object)[
2002 'depends' => [
2003 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2004 ],
2005 'selector'=>'{{ULTP}} .ultp-video-icon svg:hover { fill: {{popupHovColor}}; } {{ULTP}} .ultp-video-icon svg:hover circle { stroke: {{popupHovColor}};}'
2006 ]
2007 ],
2008 ],
2009 'iconSize' => [
2010 'type' => 'object',
2011 'default' => (object)['lg'=>'80', 'sm'=> '50', 'xs'=> '50', 'unit' => 'px'],
2012 'style' => [
2013 (object)[
2014 'depends' => [
2015 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
2016 ],
2017 'selector'=>'{{ULTP}} .ultp-video-icon svg { height:{{iconSize}}; width: {{iconSize}};}'
2018 ],
2019 ],
2020 ],
2021 // by default should be off
2022 'enablePopup' => [
2023 'type' => 'boolean',
2024 'default' => false,
2025 'style' => [
2026 (object)[
2027 'depends' => [
2028 (object)['key' => 'vidIconEnable','condition' => '==','value' => true]
2029 ],
2030 ],
2031 ],
2032 ],
2033 'popupWidth' => [
2034 'type' => 'object',
2035 'default' => (object)['lg'=>'70'],
2036 'style' => [
2037 (object)[
2038 'depends' => [
2039 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2040 ],
2041 'selector'=>'{{ULTP}} .ultp-video-modal .ultp-video-modal__Wrapper {width:{{popupWidth}}% !important;}'
2042 ],
2043 ],
2044 ],
2045 'enablePopupTitle' => [
2046 'type' => 'boolean',
2047 'default' => true,
2048 'style' => [
2049 (object)[
2050 'depends' => [
2051 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2052 ],
2053 ]
2054 ],
2055 ],
2056 'popupTitleColor' => [
2057 'type' => 'string',
2058 'default' => '#fff',
2059 'style' => [
2060 (object)[
2061 'depends' => [
2062 (object)['key' => 'enablePopupTitle','condition' => '==','value' => true],
2063 (object)['key' => 'enablePopup','condition' => '==','value' => true]
2064 ],
2065 'selector'=>'{{ULTP}} .ultp-video-modal__Wrapper a { color:{{popupTitleColor}} !important; }'
2066 ]
2067 ],
2068 ],
2069 'closeIconSep' => [
2070 'type' => 'string',
2071 'default' => '#fff',
2072 'style' => [
2073 (object)[
2074 'depends' => [
2075 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2076 ],
2077 ]
2078 ],
2079 ],
2080 'closeIconColor' => [
2081 'type' => 'string',
2082 'default' => '#fff',
2083 'style' => [
2084 (object)[
2085 'depends' => [
2086 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2087 ],
2088 'selector'=>'{{ULTP}} .ultp-video-close { color:{{closeIconColor}}; }'
2089 ]
2090 ],
2091 ],
2092 'closeHovColor' => [
2093 'type' => 'string',
2094 'default' => '#8f8f8f',
2095 'style' => [
2096 (object)[
2097 'depends' => [
2098 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2099 ],
2100 'selector'=>'{{ULTP}} .ultp-video-close:hover { color:{{closeHovColor}}; }'
2101 ]
2102 ],
2103 ],
2104 'closeSize' => [
2105 'type' => 'object',
2106 'default' => (object)['lg'=>'70', 'unit' => 'px'],
2107 'style' => [
2108 (object)[
2109 'depends' => [
2110 (object)['key' => 'enablePopup','condition' => '==','value' => true],
2111 ],
2112 'selector'=>'{{ULTP}} .ultp-video-close { font-size:{{closeSize}}; }'
2113 ],
2114 ],
2115 ],
2116
2117
2118 /*============================
2119 Separator Style
2120 ============================*/
2121 'separatorShow' => [
2122 'type' => 'boolean',
2123 'default' => true,
2124 ],
2125 'septColor' => [
2126 'type' => 'string',
2127 'default' => '#e5e5e5',
2128 'style' => [
2129 (object)[
2130 'depends' => [
2131 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2132 ],
2133 'selector'=>'{{ULTP}} .ultp-block-item { border-bottom-color:{{septColor}}; }'
2134 ],
2135 ],
2136 ],
2137 'septStyle' => [
2138 'type' => 'string',
2139 'default' => 'dashed',
2140 'style' => [
2141 (object)[
2142 'depends' => [
2143 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2144 ],
2145 'selector'=>'{{ULTP}} .ultp-block-item { border-bottom-style:{{septStyle}}; }'
2146 ],
2147 ],
2148 ],
2149 'septSize' => [
2150 'type' => 'string',
2151 'default' => (object)['lg'=>'1'],
2152 'style' => [
2153 (object)[
2154 'depends' => [
2155 (object)['key'=>'separatorShow','condition'=>'==','value'=>true],
2156 ],
2157 'selector'=>'{{ULTP}} .ultp-block-item { border-bottom-width: {{septSize}}px; }'
2158 ],
2159 ],
2160 ],
2161
2162 /*============================
2163 Read More Style
2164 ============================*/
2165 'readMoreText' => [
2166 'type' => 'string',
2167 'default' => ''
2168 ],
2169 'readMoreIcon' => [
2170 'type' => 'string',
2171 'default' => 'rightArrowLg',
2172 ],
2173 'readMoreTypo' => [
2174 'type' => 'object',
2175 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>12, 'unit' =>'px'], 'height' => (object)['lg' =>'', 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => '', 'weight' => '400', 'decoration' => 'none','family'=>'' ],
2176 'style' => [
2177 (object)[
2178 'depends' => [
2179 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2180 ],
2181 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2182 ],
2183 ],
2184 ],
2185 'readMoreIconSize' => [
2186 'type' => 'object',
2187 'default' => (object)['lg' =>'', 'unit' =>'px'],
2188 'style' => [
2189 (object)[
2190 'depends' => [
2191 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2192 ],
2193 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2194 ],
2195 ]
2196 ],
2197 'readMoreColor' => [
2198 'type' => 'string',
2199 'default' => '#0d1523',
2200 'style' => [
2201 (object)[
2202 'depends' => [
2203 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2204 ],
2205 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2206 ],
2207 ],
2208 ],
2209 'readMoreBgColor' => [
2210 'type' => 'object',
2211 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
2212 'style' => [
2213 (object)[
2214 'depends' => [
2215 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2216 ],
2217 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2218 ],
2219 ],
2220 ],
2221 'readMoreBorder' => [
2222 'type' => 'object',
2223 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2224 'style' => [
2225 (object)[
2226 'depends' => [
2227 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2228 ],
2229 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2230 ],
2231 ],
2232 ],
2233 'readMoreRadius' => [
2234 'type' => 'object',
2235 'default' => (object)['lg' =>'', 'unit' =>'px'],
2236 'style' => [
2237 (object)[
2238 'depends' => [
2239 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2240 ],
2241 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2242 ],
2243 ],
2244 ],
2245 'readMoreHoverColor' => [
2246 'type' => 'string',
2247 'default' => '#0c32d8',
2248 'style' => [
2249 (object)[
2250 'depends' => [
2251 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2252 ],
2253 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2254 ],
2255 ],
2256 ],
2257 'readMoreBgHoverColor' => [
2258 'type' => 'object',
2259 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
2260 'style' => [
2261 (object)[
2262 'depends' => [
2263 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2264 ],
2265 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2266 ],
2267 ],
2268 ],
2269 'readMoreHoverBorder' => [
2270 'type' => 'object',
2271 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2272 'style' => [
2273 (object)[
2274 'depends' => [
2275 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2276 ],
2277 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2278 ],
2279 ],
2280 ],
2281 'readMoreHoverRadius' => [
2282 'type' => 'object',
2283 'default' => (object)['lg' =>'', 'unit' =>'px'],
2284 'style' => [
2285 (object)[
2286 'depends' => [
2287 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2288 ],
2289 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2290 ],
2291 ],
2292 ],
2293 'readMoreSacing' => [
2294 'type' => 'object',
2295 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2296 'style' => [
2297 (object)[
2298 'depends' => [
2299 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2300 ],
2301 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2302 ],
2303 ],
2304 ],
2305 'readMorePadding' => [
2306 'type' => 'object',
2307 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2308 'style' => [
2309 (object)[
2310 'depends' => [
2311 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2312 ],
2313 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2314 ],
2315 ],
2316 ],
2317
2318 /*============================
2319 Filter Setting/Style
2320 ============================*/
2321 'filterBelowTitle' => [
2322 'type' => 'boolean',
2323 'default' => false,
2324 'style' => [
2325 (object)[
2326 'depends' => [
2327 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2328 ],
2329 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto;}'
2330 ],
2331 ],
2332 ],
2333 'filterAlign' => [
2334 'type' => 'object',
2335 'default' => (object)['lg' =>''],
2336 'style' => [
2337 (object)[
2338 'depends' => [
2339 (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true],
2340 ],
2341 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }'
2342 ],
2343 ],
2344 ],
2345 'filterType' => [
2346 'type' => 'string',
2347 'default' => 'category'
2348 ],
2349 'filterText' => [
2350 'type' => 'string',
2351 'default' => 'all'
2352 ],
2353 'filterValue' => [
2354 'type' => 'string',
2355 'default' => '[]',
2356 'style' => [
2357 (object)[
2358 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
2359 ],
2360 ],
2361 ],
2362 'fliterTypo' => [
2363 'type' => 'object',
2364 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
2365 'style' => [
2366 (object)[
2367 'depends' => [
2368 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2369 ],
2370 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
2371 ],
2372 ],
2373 ],
2374 'filterColor' => [
2375 'type' => 'string',
2376 'default' => '#0e1523',
2377 'style' => [
2378 (object)[
2379 'depends' => [
2380 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2381 ],
2382 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; } {{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}'
2383 ],
2384 ],
2385 ],
2386 'filterHoverColor' => [
2387 'type' => 'string',
2388 'default' => '#828282',
2389 'style' => [
2390 (object)[
2391 'depends' => [
2392 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2393 ],
2394 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}} !important; } {{ULTP}} .ultp-flex-menu .flexMenu-viewMore a:hover::before { border-color:{{filterHoverColor}}}'
2395 ],
2396 ],
2397 ],
2398 'filterBgColor' => [
2399 'type' => 'string',
2400 'style' => [
2401 (object)[
2402 'depends' => [
2403 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2404 ],
2405 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
2406 ],
2407 ],
2408 ],
2409 'filterHoverBgColor' => [
2410 'type' => 'string',
2411 'style' => [
2412 (object)[
2413 'depends' => [
2414 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2415 ],
2416 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active, {{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore > a:hover { background:{{filterHoverBgColor}}; }'
2417 ],
2418 ],
2419 ],
2420 'filterBorder' => [
2421 'type' => 'object',
2422 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2423 'style' => [
2424 (object)[
2425 'depends' => [
2426 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2427 ],
2428 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
2429 ],
2430 ],
2431 ],
2432 'filterHoverBorder' => [
2433 'type' => 'object',
2434 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2435 'style' => [
2436 (object)[
2437 'depends' => [
2438 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2439 ],
2440 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
2441 ],
2442 ],
2443 ],
2444 'filterRadius' => [
2445 'type' => 'object',
2446 'default' => (object)['lg' =>'', 'unit' =>'px'],
2447 'style' => [
2448 (object)[
2449 'depends' => [
2450 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2451 ],
2452 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
2453 ],
2454 ],
2455 ],
2456 'fliterSpacing' => [
2457 'type' => 'object',
2458 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
2459 'style' => [
2460 (object)[
2461 'depends' => [
2462 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2463 ],
2464 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
2465 ],
2466 ],
2467 ],
2468 'fliterPadding' => [
2469 'type' => 'object',
2470 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2471 'style' => [
2472 (object)[
2473 'depends' => [
2474 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2475 ],
2476 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }'
2477 ],
2478 ],
2479 ],
2480 'filterDropdownColor' => [
2481 'type' => 'string',
2482 'default' => '#0e1523',
2483 'style' => [
2484 (object)[
2485 'depends' => [
2486 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2487 ],
2488 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
2489 ],
2490 ],
2491 ],
2492 'filterDropdownHoverColor' => [
2493 'type' => 'string',
2494 'default' => '#037fff',
2495 'style' => [
2496 (object)[
2497 'depends' => [
2498 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2499 ],
2500 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
2501 ],
2502 ],
2503 ],
2504 'filterDropdownBg' => [
2505 'type' => 'string',
2506 'default' => '#fff',
2507 'style' => [
2508 (object)[
2509 'depends' => [
2510 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2511 ],
2512 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
2513 ],
2514 ],
2515 ],
2516 'filterDropdownRadius' => [
2517 'type' => 'object',
2518 'default' => (object)['lg'=>'0'],
2519 'style' => [
2520 (object)[
2521 'depends' => [
2522 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2523 ],
2524 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
2525 ],
2526 ],
2527 ],
2528 'filterDropdownPadding' => [
2529 'type' => 'object',
2530 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
2531 'style' => [
2532 (object)[
2533 'depends' => [
2534 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2535 ],
2536 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
2537 ],
2538 ],
2539 ],
2540 'filterMobile' => [
2541 'type' => 'boolean',
2542 'default' => true,
2543 ],
2544 'filterMobileText' => [
2545 'type' => 'string',
2546 'default' => 'More',
2547 'style' => [
2548 (object)[
2549 'depends' => [
2550 (object)['key'=>'filterMobile','condition'=>'==','value'=>true],
2551 ]
2552 ]
2553 ]
2554 ],
2555
2556 /*============================
2557 Pagination Setting/Style
2558 ============================*/
2559 'paginationType' => [
2560 'type' => 'string',
2561 'default' => 'pagination',
2562 ],
2563 'loadMoreText' => [
2564 'type' => 'string',
2565 'default' => 'Load More',
2566 'style' => [
2567 (object)[
2568 'depends' => [
2569 (object)['key'=>'paginationType','condition'=>'==','value'=>'loadMore'],
2570 ],
2571 ],
2572 ],
2573 ],
2574 'paginationText' => [
2575 'type' => 'string',
2576 'default' => 'Previous|Next',
2577 'style' => [
2578 (object)[
2579 'depends' => [
2580 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination']
2581 ]
2582 ]
2583 ]
2584 ],
2585 'paginationNav' => [
2586 'type' => 'string',
2587 'default' => 'textArrow',
2588 'style' => [
2589 (object)[
2590 'depends' => [
2591 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2592 ],
2593 ],
2594 ],
2595 ],
2596 'paginationAjax' => [
2597 'type' => 'boolean',
2598 'default' => true,
2599 'style' => [
2600 (object)[
2601 'depends' => [
2602 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2603 ],
2604 ],
2605 ],
2606 ],
2607 'navPosition' => [
2608 'type' => 'string',
2609 'default' => 'topRight',
2610 'style' => [
2611 (object)[
2612 'depends' => [
2613 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2614 ],
2615 ],
2616 ],
2617 ],
2618 'pagiAlign' => [
2619 'type' => 'object',
2620 'default' => (object)['lg' =>'center'],
2621 'style' => [
2622 (object)[
2623 'depends' => [
2624 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2625 ],
2626 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2627 ],
2628 ],
2629 ],
2630 'pagiTypo' => [
2631 'type' => 'object',
2632 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2633 'style' => [
2634 (object)[
2635 'depends' => [
2636 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2637 ],
2638 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2639 ],
2640 ],
2641
2642 ],
2643 'pagiArrowSize' => [
2644 'type' => 'object',
2645 'default' => (object)['lg'=>'14'],
2646 'style' => [
2647 (object)[
2648 'depends' => [
2649 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2650 ],
2651 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2652 ],
2653 ],
2654
2655 ],
2656 'pagiColor' => [
2657 'type' => 'string',
2658 'default' => '#fff',
2659 'style' => [
2660 (object)[
2661 'depends' => [
2662 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2663 ],
2664 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-block-wrapper .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-block-wrapper .ultp-loadmore .ultp-loadmore-action svg { fill:{{pagiColor}}; }'
2665 ],
2666 ],
2667 ],
2668 'pagiBgColor' => [
2669 'type' => 'object',
2670 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2671 'style' => [
2672 (object)[
2673 'depends' => [
2674 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2675 ],
2676 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2677 ],
2678 ],
2679 ],
2680 'pagiBorder' => [
2681 'type' => 'object',
2682 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2683 'style' => [
2684 (object)[
2685 'depends' => [
2686 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2687 ],
2688 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2689 ],
2690 ],
2691 ],
2692 'pagiShadow' => [
2693 'type' => 'object',
2694 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2695 'style' => [
2696 (object)[
2697 'depends' => [
2698 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2699 ],
2700 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2701 ],
2702 ],
2703 ],
2704 'pagiRadius' => [
2705 'type' => 'object',
2706 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2707 'style' => [
2708 (object)[
2709 'depends' => [
2710 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2711 ],
2712 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
2713 ],
2714 ],
2715 ],
2716 'pagiHoverColor' => [
2717 'type' => 'string',
2718 'default' => '#fff',
2719 'style' => [
2720 (object)[
2721 'depends' => [
2722 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2723 ],
2724 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-block-wrapper .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-block-wrapper .ultp-loadmore .ultp-loadmore-action:hover svg { fill:{{pagiHoverColor}}; } @media (min-width: 768px) { {{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:hover { color:{{pagiHoverColor}};}}'
2725 ],
2726 ],
2727 ],
2728 'pagiHoverbg' => [
2729 'type' => 'object',
2730 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2731 'style' => [
2732 (object)[
2733 'depends' => [
2734 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2735 ],
2736 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination-wrap .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:focus, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover{ {{pagiHoverbg}} }'
2737 ],
2738 ],
2739 ],
2740 'pagiHoverBorder' => [
2741 'type' => 'object',
2742 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2743 'style' => [
2744 (object)[
2745 'depends' => [
2746 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2747 ],
2748 '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'
2749 ],
2750 ],
2751 ],
2752 'pagiHoverShadow' => [
2753 'type' => 'object',
2754 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2755 'style' => [
2756 (object)[
2757 'depends' => [
2758 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2759 ],
2760 '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'
2761 ],
2762 ],
2763 ],
2764 'pagiHoverRadius' => [
2765 'type' => 'object',
2766 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2767 'style' => [
2768 (object)[
2769 'depends' => [
2770 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2771 ],
2772 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
2773 ],
2774 ],
2775 ],
2776 'pagiPadding' => [
2777 'type' => 'object',
2778 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2779 'style' => [
2780 (object)[
2781 'depends' => [
2782 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2783 ],
2784 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2785 ],
2786 ],
2787 ],
2788 'navMargin' => [
2789 'type' => 'object',
2790 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2791 'style' => [
2792 (object)[
2793 'depends' => [
2794 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2795 ],
2796 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2797 ],
2798 ],
2799 ],
2800 'pagiMargin' => [
2801 'type' => 'object',
2802 'default' => (object)['lg' =>(object)['top' => '30', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2803 'style' => [
2804 (object)[
2805 'depends' => [
2806 (object)['key'=>'paginationType','condition'=>'!=','value'=>'navigation'],
2807 ],
2808 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination, {{ULTP}} .ultp-loadmore { margin:{{pagiMargin}}; }'
2809 ],
2810 ],
2811 ],
2812
2813 /*============================
2814 Wrapper Style
2815 ============================*/
2816 'loadingColor' => [
2817 'type' => 'string',
2818 'default' => '#000',
2819 'style' => [
2820 (object)[
2821 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2822 ],
2823 ],
2824 ],
2825 'wrapBg' => [
2826 'type' => 'object',
2827 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2828 'style' => [
2829 (object)[
2830 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2831 ],
2832 ],
2833 ],
2834 'wrapBorder' => [
2835 'type' => 'object',
2836 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2837 'style' => [
2838 (object)[
2839 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2840 ],
2841 ],
2842 ],
2843 'wrapShadow' => [
2844 'type' => 'object',
2845 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2846 'style' => [
2847 (object)[
2848 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2849 ],
2850 ],
2851 ],
2852 'wrapRadius' => [
2853 'type' => 'object',
2854 'default' => (object)['lg' =>'', 'unit' =>'px'],
2855 'style' => [
2856 (object)[
2857 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2858 ],
2859 ],
2860 ],
2861 'wrapHoverBackground' => [
2862 'type' => 'object',
2863 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2864 'style' => [
2865 (object)[
2866 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2867 ],
2868 ],
2869 ],
2870 'wrapHoverBorder' => [
2871 'type' => 'object',
2872 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2873 'style' => [
2874 (object)[
2875 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2876 ],
2877 ],
2878 ],
2879 'wrapHoverRadius' => [
2880 'type' => 'object',
2881 'default' => (object)['lg' =>'', 'unit' =>'px'],
2882 'style' => [
2883 (object)[
2884 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2885 ],
2886 ],
2887 ],
2888 'wrapHoverShadow' => [
2889 'type' => 'object',
2890 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2891 'style' => [
2892 (object)[
2893 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2894 ],
2895 ],
2896 ],
2897 'wrapMargin' => [
2898 'type' => 'object',
2899 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2900 'style' => [
2901 (object)[
2902 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2903 ],
2904 ],
2905 ],
2906 'wrapOuterPadding' => [
2907 'type' => 'object',
2908 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2909 'style' => [
2910 (object)[
2911 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2912 ],
2913 ],
2914 ],
2915 'advanceId' => [
2916 'type' => 'string',
2917 'default' => '',
2918 ],
2919 'advanceZindex' => [
2920 'type' => 'string',
2921 'default' => '',
2922 'style' => [
2923 (object)[
2924 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
2925 ],
2926 ],
2927 ],
2928 'hideExtraLarge' => [
2929 'type' => 'boolean',
2930 'default' => false,
2931 'style' => [
2932 (object)[
2933 'selector' => '{{ULTP}} {display:none;}'
2934 ],
2935 ],
2936 ],
2937 'hideTablet' => [
2938 'type' => 'boolean',
2939 'default' => false,
2940 'style' => [
2941 (object)[
2942 'selector' => '{{ULTP}} {display:none;}'
2943 ],
2944 ],
2945 ],
2946 'hideMobile' => [
2947 'type' => 'boolean',
2948 'default' => false,
2949 'style' => [
2950 (object)[
2951 'selector' => '{{ULTP}} {display:none;}'
2952 ],
2953 ],
2954 ],
2955 'advanceCss' => [
2956 'type' => 'string',
2957 'default' => '',
2958 'style' => [(object)['selector' => '']],
2959 ]
2960 );
2961
2962 if ($default) {
2963 $temp = array();
2964 foreach ($attributes as $key => $value) {
2965 if (isset($value['default'])) {
2966 $temp[$key] = $value['default'];
2967 }
2968 }
2969 return $temp;
2970 } else {
2971 return $attributes;
2972 }
2973 }
2974
2975 public function register() {
2976 register_block_type( 'ultimate-post/post-grid-1',
2977 array(
2978 'editor_script' => 'ultp-blocks-editor-script',
2979 'editor_style' => 'ultp-blocks-editor-css',
2980 'attributes' => $this->get_attributes(),
2981 'render_callback' => array($this, 'content')
2982 )
2983 );
2984 }
2985
2986 public function content($attr, $noAjax) {
2987 global $unique_ID;
2988 if (!$noAjax) {
2989 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2990 $attr['paged'] = $paged ? $paged : 1;
2991 }
2992 if($attr['queryUnique'] && isset($attr['savedQueryUnique'])) {
2993 $unique_ID = $attr['savedQueryUnique'];
2994 }
2995 $block_name = 'post-grid-1';
2996 $page_post_id = ultimate_post()->get_ID();
2997 $wraper_before = $wraper_after = $post_loop = '';
2998 $attr['queryNumber'] = ultimate_post()->get_post_number(4, $attr['queryNumber'], $attr['queryNumPosts']);
2999 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
3000 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
3001 // Dummy Img Url
3002 $dummy_url = ULTP_URL.'assets/img/ultp-fallback-img.png';
3003
3004 // Loadmore and Unique content
3005 if($attr['queryUnique'] && isset($attr['loadMoreQueryUnique']) && $attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
3006 $unique_ID = $attr['loadMoreQueryUnique'];
3007 $current_unique_posts = $attr['ultp_current_unique_posts'];
3008 }
3009
3010 if ($recent_posts->have_posts()) {
3011 $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"]:'').'">';
3012 $wraper_before .= '<div class="ultp-block-wrapper">';
3013
3014 // Loading
3015 $wraper_before .= ultimate_post()->loading();
3016
3017 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
3018 $wraper_before .= '<div class="ultp-heading-filter">';
3019 $wraper_before .= '<div class="ultp-heading-filter-in">';
3020
3021 // Heading
3022 include ULTP_PATH.'blocks/template/heading.php';
3023
3024 if ($attr['filterShow'] || $attr['paginationShow']) {
3025 $wraper_before .= '<div class="ultp-filter-navigation">';
3026
3027 // Filter
3028 if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') {
3029 include ULTP_PATH.'blocks/template/filter.php';
3030 }
3031
3032 // Navigation
3033 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
3034 include ULTP_PATH.'blocks/template/navigation-before.php';
3035 }
3036 $wraper_before .= '</div>';
3037 }
3038
3039 $wraper_before .= '</div>';
3040 $wraper_before .= '</div>';
3041 }
3042
3043 $colClass = ($attr['gridStyle'] == 'style1' || $attr['gridStyle'] == 'style2') ? 'ultp-block-column-'.json_decode(json_encode($attr['columns']), True)['lg'] : '';
3044
3045 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-row ultp-pg1a-'.$attr['gridStyle'].' '.$colClass.' ultp-'.$attr['layout'].'">';
3046 $idx = ($attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) ? ( $noAjax ? 1 : 0 ) : 0;
3047 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
3048
3049 include ULTP_PATH.'blocks/template/data.php';
3050
3051 include ULTP_PATH.'blocks/template/category.php';
3052
3053 if ($attr['queryUnique']) {
3054 $unique_ID[$attr['queryUnique']][] = $post_id;
3055 $current_unique_posts[] = $post_id;
3056 }
3057
3058 if ($post_thumb_id && $attr['showImage']) {
3059 $divStyle = 'background-image:url('.get_the_post_thumbnail_url($post_id, $attr['imgCrop']).')';
3060 }
3061 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.'">';
3062 $post_loop .= '<div class="ultp-block-content-wrap">';
3063 if(($post_thumb_id || $attr['fallbackEnable']) && $attr['showImage'] && $attr['layout'] != 'layout2') {
3064 $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 : '' ).'">';
3065 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
3066 $imgSize = (($attr['gridStyle'] == 'style1') ||
3067 ($attr['gridStyle'] == 'style2' && $idx == 0) ||
3068 ($attr['gridStyle'] == 'style3' && $idx%3 == 0) ||
3069 ($attr['gridStyle'] == 'style4' && ($idx == 0 || $idx == 1))) ? $attr['imgCrop'] : $attr['imgCropSmall'];
3070 // Post Img Id
3071 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
3072 // Post Image
3073 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
3074 $post_loop .= ultimate_post()->get_image($block_img_id , $imgSize, '', $title, $attr['imgSrcset'], $attr['imgLazy']);
3075 } else {
3076 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
3077 }
3078 $post_loop .= '</a>';
3079 if($post_video){
3080 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('videoplay').'</div>';
3081 }
3082 if (($attr['catPosition'] != 'aboveTitle') && $attr['catShow'] ) {
3083 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
3084 }
3085 $post_loop .= '</div>';
3086 }
3087 if ($attr['layout'] === 'layout2' ) { $post_loop .= '<div class="ultp-block-content-image" style='.$divStyle.'></div>';}
3088 $post_loop .= '<div class="ultp-block-content">';
3089
3090 // Category
3091 if (($attr['catPosition'] == 'aboveTitle') && $attr['catShow']) {
3092 $post_loop .= $category;
3093 }
3094
3095 // Title
3096 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
3097 include ULTP_PATH.'blocks/template/title.php';
3098 }
3099
3100 // Meta
3101 if ($attr['metaPosition'] =='top' ) {
3102 include ULTP_PATH.'blocks/template/meta.php';
3103 }
3104
3105 // Title
3106 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
3107 include ULTP_PATH.'blocks/template/title.php';
3108 }
3109
3110 // Excerpt
3111 if ($attr['excerptShow']) {
3112 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
3113 }
3114
3115 // Read More
3116 if ( $attr['readMore'] ) {
3117 $post_loop .= '<div class="ultp-block-readmore"><a aria-label="'.$title.'" href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.($attr['readMoreText'] ? $attr['readMoreText'] : esc_html__( "Read More", "ultimate-post" )).ultimate_post()->svg_icon($attr['readMoreIcon']).'</a></div>';
3118 }
3119
3120 // Meta
3121 if ($attr['metaPosition'] =='bottom' ) {
3122 include ULTP_PATH.'blocks/template/meta.php';
3123 }
3124
3125 $post_loop .= '</div>';
3126 $post_loop .= '</div>';
3127 if($post_video && $attr['enablePopup'] && $attr['layout'] !== 'layout2') {
3128 include ULTP_PATH.'blocks/template/video_popup.php';
3129 }
3130 $post_loop .= '</'.$attr['contentTag'].'>';
3131 $idx ++;
3132 endwhile;
3133 if($attr['queryUnique']) {
3134 $post_loop .= "<span style='display: none;' class='ultp-current-unique-posts' data-ultp-unique-ids= ".json_encode($unique_ID)." data-current-unique-posts= ".json_encode($current_unique_posts)."> </span>";
3135 }
3136 if ($attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
3137 $wraper_after .= '<span class="ultp-loadmore-insert-before"></span>';
3138 }
3139 $wraper_after .= '</div>';//ultp-block-items-wrap
3140
3141 // Load More
3142 if ($attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
3143 include ULTP_PATH.'blocks/template/loadmore.php';
3144 }
3145
3146 // Navigation
3147 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
3148 include ULTP_PATH.'blocks/template/navigation-after.php';
3149 }
3150
3151 // Pagination
3152 if ($attr['paginationShow'] && ($attr['paginationType'] == 'pagination')) {
3153 include ULTP_PATH.'blocks/template/pagination.php';
3154 }
3155
3156 $wraper_after .= '</div>';
3157 $wraper_after .= '</div>';
3158
3159 wp_reset_query();
3160
3161 }else {
3162 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
3163 }
3164
3165 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
3166 }
3167
3168 }