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

Post_Grid_4.php in Post Grid Gutenberg Blocks – PostX 2.9.2, at blocks/Post_Grid_4.php

2,961 lines 140.4 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_4{
7
8 public function __construct() {
9 add_action('init', array($this, 'register'));
10 }
11
12 public function get_attributes($default = false) {
13
14 $attributes = array(
15 'blockId' => [
16 'type' => 'string',
17 'default' => '',
18 ],
19 'previewImg' => [
20 'type' => 'string',
21 'default' => '',
22 ],
23 //--------------------------
24 // Layout
25 //--------------------------
26 'layout' => [
27 'type' => 'string',
28 'default' => 'layout1',
29 ],
30
31 //--------------------------
32 // Query Setting
33 //--------------------------
34 'queryQuick' => [
35 'type' => 'string',
36 'default' => '',
37 'style' => [
38 (object)[
39 'depends' => [
40 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
41 ]
42 ],
43 ],
44 ],
45 'queryNumber' => [
46 'type' => 'string',
47 'default' => 3,
48 'style' => [
49 (object)[
50 'depends' => [
51 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
52 ]
53 ],
54 ],
55 ],
56 'queryType' => [
57 'type' => 'string',
58 'default' => 'post'
59 ],
60 'queryTax' => [
61 'type' => 'string',
62 'default' => 'category',
63 'style' => [
64 (object)[
65 'depends' => [
66 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
67 ]
68 ],
69 ],
70 ],
71 'queryTaxValue' => [
72 'type' => 'string',
73 'default' => '[]',
74 'style' => [
75 (object)[
76 'depends' => [
77 (object)['key' => 'queryTax','condition' => '!=','value' => ''],
78 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
79 ]
80 ],
81 ],
82 ],
83 'queryRelation' => [
84 'type' => 'string',
85 'default' => 'OR',
86 'style' => [
87 (object)[
88 'depends' => [
89 (object)['key' => 'queryTaxValue','condition' => '!=','value' => '[]'],
90 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
91 ]
92 ],
93 ],
94 ],
95 'queryOrderBy' => [
96 'type' => 'string',
97 'default' => 'date',
98 ],
99 'metaKey' => [
100 'type' => 'string',
101 'default' => 'custom_meta_key',
102 'style' => [
103 (object)[
104 'depends' => [
105 (object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num'],
106 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
107 ]
108 ],
109 ],
110 ],
111 'queryOrder' => [
112 'type' => 'string',
113 'default' => 'desc',
114 ],
115 // Include Remove from Version 2.5.4
116 'queryInclude' => [
117 'type' => 'string',
118 'default' => '',
119 ],
120 'queryExclude' => [
121 'type' => 'string',
122 'default' => '[]',
123 'style' => [
124 (object)[
125 'depends' => [
126 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
127 ]
128 ],
129 ],
130 ],
131 'queryAuthor' => [
132 'type' => 'string',
133 'default' => '[]',
134 'style' => [
135 (object)[
136 'depends' => [
137 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
138 ]
139 ],
140 ],
141 ],
142 'queryOffset' => [
143 'type' => 'string',
144 'default' => '0',
145 'style' => [
146 (object)[
147 'depends' => [
148 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
149 ]
150 ],
151 ],
152 ],
153 'queryExcludeTerm' => [
154 'type' => 'string',
155 'default' => '[]',
156 'style' => [
157 (object)[
158 'depends' => [
159 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
160 ]
161 ],
162 ],
163 ],
164 'queryExcludeAuthor' => [
165 'type' => 'string',
166 'default' => '[]',
167 'style' => [
168 (object)[
169 'depends' => [
170 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
171 ]
172 ],
173 ],
174 ],
175 'querySticky' => [
176 'type' => 'boolean',
177 'default' => true,
178 'style' => [
179 (object)[
180 'depends' => [
181 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
182 ]
183 ],
184 ],
185 ],
186 'queryUnique' => [
187 'type' => 'string',
188 'default' => '',
189 'style' => [
190 (object)[
191 'depends' => [
192 (object)['key' => 'queryType','condition' => '!=','value' => array('customPosts', 'posts', 'archiveBuilder')]
193 ]
194 ],
195 ],
196 ],
197 'queryPosts' => [
198 'type' => 'string',
199 'default' => '[]',
200 'style' => [
201 (object)[
202 'depends' => [
203 (object)['key' => 'queryType','condition' => '==','value' => 'posts']
204 ]
205 ],
206 ],
207 ],
208 'queryCustomPosts' => [
209 'type' => 'string',
210 'default' => '[]',
211 'style' => [
212 (object)[
213 'depends' => [
214 (object)['key' => 'queryType','condition' => '==','value' => 'customPosts']
215 ]
216 ],
217 ],
218 ],
219 //--------------------------
220 // General Setting
221 //--------------------------
222 'contentAlign' => [
223 'type' => 'string',
224 'default' => "left",
225 'style' => [
226 (object)[
227 'depends' => [
228 (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
229 ],
230 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
231 ],
232 (object)[
233 'depends' => [
234 (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
235 ],
236 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
237 ],
238 (object)[
239 'depends' => [
240 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
241 ],
242 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;} .rtl {{ULTP}} .ultp-block-meta {justify-content: start;}'
243 ],
244 (object)[
245 'depends' => [
246 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
247 (object)['key'=>'readMore','condition'=>'==','value'=>true],
248 ],
249 'selector'=>' .rtl {{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a {display:flex; flex-direction:row-reverse;justify-content: flex-end;}'
250 ],
251 ],
252 ],
253 'columnFlip' => [
254 'type' => 'boolean',
255 'default' => false,
256 'style' => [
257 (object)[
258 'depends' => [
259 (object)['key'=>'columnFlip','condition'=>'==','value'=>true],
260 ],
261 //'selector'=>'{{ULTP}} .ultp-block-content-true .ultp-block-media, {{ULTP}} .ultp-block-content-1 .ultp-block-media { flex-direction: row-reverse; }'
262 ]
263 ],
264 ],
265 'columnGridGap' => [
266 'type' => 'object',
267 'default' => (object)['lg' =>'20', 'unit' =>'px'],
268 'style' => [
269 (object)[
270 'selector'=>'{{ULTP}}.wp-block-ultimate-post-post-grid-4 .ultp-block-row .ultp-block-item:first-child .ultp-block-content-overlay { height: calc(100% + {{columnGridGap}}); } {{ULTP}}.wp-block-ultimate-post-post-grid-4 .ultp-block-row.ultp-layout4 .ultp-block-item:first-child .ultp-block-content-overlay { height: calc(100% + {{columnGridGap}}*2); } {{ULTP}} .ultp-block-row { grid-row-gap: {{columnGridGap}}; } {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
271 ],
272 ],
273 ],
274 'overlayHeight' => [
275 'type' => 'object',
276 'default' => (object)['lg' =>'500', 'unit' =>'px'],
277 'style' => [
278 (object)[
279 'selector'=>'{{ULTP}} .ultp-block-row .ultp-block-item:first-child {max-height: {{overlayHeight}};} {{ULTP}} .ultp-block-row.ultp-layout1 .ultp-block-item:not(:first-child) .ultp-block-content-overlay {height: calc({{overlayHeight}}/2);} {{ULTP}} .ultp-block-row.ultp-layout4 .ultp-block-item:not(:first-child) .ultp-block-content-overlay {height: calc({{overlayHeight}}/3);} {{ULTP}} .ultp-block-row.ultp-layout2 .ultp-block-item:nth-child(2) .ultp-block-content-overlay, {{ULTP}} .ultp-block-row.ultp-layout3 .ultp-block-item:nth-child(3) .ultp-block-content-overlay {height: calc( {{overlayHeight}}/2.5 );} {{ULTP}} .ultp-block-row.ultp-layout3 .ultp-block-item:nth-child(2) .ultp-block-content-overlay, {{ULTP}} .ultp-block-row.ultp-layout2 .ultp-block-item:nth-child(3) .ultp-block-content-overlay {height: calc( {{overlayHeight}}/1.666 );} {{ULTP}} .ultp-block-item .ultp-block-image img, {{ULTP}} .ultp-block-item .ultp-block-empty-image {width: 100%; object-fit: cover; height: 100%; } @media (max-width: 768px) { {{ULTP}} .ultp-block-row .ultp-block-item .ultp-block-content-overlay .ultp-block-image img, {{ULTP}} .ultp-block-item .ultp-block-content-overlay .ultp-block-empty-image { height: calc( {{overlayHeight}}/2 );}}'
280 ],
281 ],
282 ],
283 'titleShow' => [
284 'type' => 'boolean',
285 'default' => true,
286 ],
287 'titleStyle' => [
288 'type' => 'string',
289 'default' => 'none',
290 ],
291 'titleAnimColor' => [
292 'type' => 'string',
293 'default' => 'black',
294 'style' => [
295 (object)[
296 'depends' => [
297 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style1']
298 ],
299 'selector'=>'{{ULTP}} .ultp-title-style1 a {
300 cursor: pointer;
301 text-decoration: none;
302 display: inline;
303 padding-bottom: 2px;
304 transition: all 0.35s linear !important;
305 background: linear-gradient(
306 to bottom,
307 {{titleAnimColor}} 0%,
308 {{titleAnimColor}} 98%
309 );
310 background-size: 0px 2px;
311 background-repeat: no-repeat;
312 background-position: left 100%;
313 }'
314 ],
315 (object)[
316 'depends' => [
317 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style2']
318 ],
319 'selector'=>'{{ULTP}} .ultp-title-style2 a:hover {
320 border-bottom:none;
321 padding-bottom: 2px;
322 background-position:0 100%;
323 background-repeat: repeat;
324 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");
325 }'
326 ],
327 (object)[
328 'depends' => [
329 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style3']
330 ],
331 'selector'=>'{{ULTP}} .ultp-title-style3 a {
332 text-decoration: none;
333 $thetransition: all 1s cubic-bezier(1,.25,0,.75) 0s;
334 position: relative;
335 transition: all 0.35s ease-out;
336 padding-bottom: 3px;
337 border-bottom:none;
338 padding-bottom: 2px;
339 background-position:0 100%;
340 background-repeat: repeat;
341 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");
342 }'
343 ],
344 (object)[
345 'depends' => [
346 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style4']
347 ],
348 'selector'=>'{{ULTP}} .ultp-title-style4 a {
349 cursor: pointer;
350 font-weight: 600;
351 text-decoration: none;
352 display: inline;
353 padding-bottom: 2px;
354 transition: all 0.3s linear !important;
355 background: linear-gradient(
356 to bottom,
357 {{titleAnimColor}} 0%,
358 {{titleAnimColor}} 98%
359 );
360 background-size: 100% 2px;
361 background-repeat: no-repeat;
362 background-position: left 100%;
363 }'
364 ] ,
365 (object)[
366 'depends' => [
367 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
368 ],
369 'selector'=>'{{ULTP}} .ultp-title-style5 a:hover{
370 text-decoration: none;
371 transition: all 0.35s ease-out;
372 border-bottom:none;
373 padding-bottom: 2px;
374 background-position:0 100%;
375 background-repeat: repeat;
376 background-size:auto;
377 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");
378 } '
379 ],
380 (object)[
381 'depends' => [
382 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style5']
383 ],
384 'selector'=>'{{ULTP}} .ultp-title-style5 a {
385 cursor: pointer;
386 text-decoration: none;
387 display: inline;
388 padding-bottom: 2px;
389 transition: all 0.3s linear !important;
390 background: linear-gradient(
391 to bottom,
392 {{titleAnimColor}} 0%,
393 {{titleAnimColor}} 98%
394 );
395 background-size: 100% 2px;
396 background-repeat: no-repeat;
397 background-position: left 100%;
398 }'
399 ],
400 (object)[
401 'depends' => [
402 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style6']
403 ],
404 'selector'=>'{{ULTP}} .ultp-title-style6 a{
405 background-image: linear-gradient(120deg, {{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
406 background-repeat: no-repeat;
407 background-size: 100% 2px;
408 background-position: 0 88%;
409 transition: background-size 0.15s ease-in;
410 padding: 5px 5px;
411 }'
412 ],
413 (object)[
414 'depends' => [
415 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style7']
416 ],
417 'selector'=>'{{ULTP}} .ultp-title-style7 a {
418 cursor: pointer;
419 text-decoration: none;
420 display: inline;
421 padding-bottom: 2px;
422 transition: all 0.3s linear !important;
423 background: linear-gradient(
424 to bottom,
425 {{titleAnimColor}} 0%,
426 {{titleAnimColor}} 98%
427 );
428 background-size: 0px 2px;
429 background-repeat: no-repeat;
430 background-position: right 100%;
431 } '
432 ],
433 (object)[
434 'depends' => [
435 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style8']
436 ],
437 'selector'=>'{{ULTP}} .ultp-title-style8 a {
438 cursor: pointer;
439 text-decoration: none;
440 display: inline;
441 padding-bottom: 2px;
442 transition: all 0.3s linear !important;
443 background: linear-gradient(
444 to bottom,
445 {{titleAnimColor}} 0%,
446 {{titleAnimColor}} 98%
447 );
448 background-size: 0px 2px;
449 background-repeat: no-repeat;
450 background-position: center 100%;
451 } '
452 ],
453 (object)[
454 'depends' => [
455 (object)['key'=>'titleStyle','condition'=>'==','value'=>'style9']
456 ],
457 'selector'=>'{{ULTP}} .ultp-title-style9 a {
458 background-image: linear-gradient(120deg,{{titleAnimColor}} 0%, {{titleAnimColor}} 100%);
459 background-repeat: no-repeat;
460 background-size: 100% 10px;
461 background-position: 0 88%;
462 transition: 0.3s ease-in;
463 padding: 3px 5px;
464 } '
465 ]
466 ],
467 ],
468 'headingShow' => [
469 'type' => 'boolean',
470 'default' => true,
471 ],
472 'excerptShow' => [
473 'type' => 'boolean',
474 'default' => true
475 ],
476 'catShow' => [
477 'type' => 'boolean',
478 'default' => true,
479 ],
480 'metaShow' => [
481 'type' => 'boolean',
482 'default' => true,
483 ],
484 'showImage' => [
485 'type' => 'boolean',
486 'default' => true,
487 ],
488 'filterShow' => [
489 'type' => 'boolean',
490 'default' => false,
491 'style' => [
492 (object)[
493 'depends' => [
494 (object)['key'=>'queryType','condition'=>'!=','value'=>['posts','customPosts']],
495 ],
496 ],
497 ]
498 ],
499 'paginationShow' => [
500 'type' => 'boolean',
501 'default' => false,
502 ],
503 'readMore' => [
504 'type' => 'boolean',
505 'default' => false,
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 #4',
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-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, '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 //--------------------------
1066 // Title Setting/Style
1067 //--------------------------
1068 'titleTag' => [
1069 'type' => 'string',
1070 'default' => 'h3',
1071 ],
1072 'titleAnimation' => [
1073 'type' => 'string',
1074 'default' => '',
1075 ],
1076 'titlePosition' => [
1077 'type' => 'boolean',
1078 'default' => true,
1079 ],
1080 'titleColor' => [
1081 'type' => 'string',
1082 'default' => '#fff',
1083 'style' => [
1084 (object)[
1085 'depends' => [
1086 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1087 ],
1088 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}} !important; }'
1089 ],
1090 ],
1091 ],
1092 'titleHoverColor' => [
1093 'type' => 'string',
1094 'default' => 'rgba(255,255,255,0.70)',
1095 'style' => [
1096 (object)[
1097 'depends' => [
1098 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1099 ],
1100 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}} !important; }'
1101 ],
1102 ],
1103 ],
1104 'titleLgTypo' => [
1105 'type' => 'object',
1106 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'28', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'32', 'unit'=>'px'],'decoration'=>'none','family'=>'','weight'=>'700'],
1107 'style' => [
1108 (object)[
1109 'depends' => [
1110 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1111 ],
1112 'selector'=>'{{ULTP}} .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-block-item:first-child .ultp-block-title a'
1113 ],
1114 ],
1115 ],
1116 'titleTypo' => [
1117 'type' => 'object',
1118 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'20', 'unit'=>'px'], 'height'=>(object)['lg'=>'26', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'600'],
1119 'style' => [
1120 (object)[
1121 'depends' => [
1122 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1123 ],
1124 'selector'=>'{{ULTP}} .ultp-block-item:not(:first-child) .ultp-block-title, {{ULTP}} .ultp-block-item:not(:first-child) .ultp-block-title a'
1125 ],
1126 ],
1127 ],
1128 'titlePadding' => [
1129 'type' => 'object',
1130 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>5, 'unit'=>'px']],
1131 'style' => [
1132 (object)[
1133 'depends' => [
1134 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1135 ],
1136 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
1137 ],
1138 ],
1139 ],
1140 'titleLength' => [
1141 'type' => 'string',
1142 'default' => 0,
1143 ],
1144 'titleBackground' => [
1145 'type' => 'string',
1146 'default' => '',
1147 'style' => [
1148 (object)[
1149 'depends' => [
1150 (object)['key'=>'titleShow','condition'=>'==','value'=>true],
1151 ],
1152 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-title a{ padding: 2px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color:{{titleBackground}}; }'
1153 ],
1154 ],
1155 ],
1156
1157 //--------------------------
1158 // Overlay Content Setting/Style
1159 //--------------------------
1160 'overlayContentPosition' => [
1161 'type' => 'string',
1162 'default' => 'bottomPosition',
1163 'style' => [
1164 (object)[
1165 'depends' => [
1166 (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'topPosition'],
1167 ],
1168 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }'
1169 ],
1170 (object)[
1171 'depends' => [
1172 (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'middlePosition'],
1173 ],
1174 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }'
1175 ],
1176 (object)[
1177 'depends' => [
1178 (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'bottomPosition'],
1179 ],
1180 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }'
1181 ],
1182 ]
1183 ],
1184 'overlayBgColor' => [
1185 'type' => 'object',
1186 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
1187 'style' => [
1188 (object)[
1189 'selector'=>'{{ULTP}} .ultp-block-content-inner'
1190 ],
1191 ],
1192 ],
1193 'overlayWrapPadding' => [
1194 'type' => 'object',
1195 'default' => (object)['lg' =>(object)['top' => '20','bottom' => '20', 'left'=>'20','right'=>'20', 'unit' =>'px']],
1196 'style' => [
1197 (object)[
1198 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{overlayWrapPadding}}; }'
1199 ],
1200 ],
1201 ],
1202
1203 //--------------------------
1204 // Content Setting/Style
1205 //--------------------------
1206 'showSeoMeta' => [
1207 'type' => 'boolean',
1208 'default'=> false
1209 ],
1210 'showSmallExcerpt' => [
1211 'type' => 'boolean',
1212 'default' => false,
1213 ],
1214 'showFullExcerpt' => [
1215 'type' => 'boolean',
1216 'default' => false,
1217 ],
1218 'excerptLimit' => [
1219 'type' => 'string',
1220 'default' => 20,
1221 'style' => [
1222 (object)[
1223 'depends' => [
1224 (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false]
1225 ],
1226 ],
1227 ],
1228 ],
1229 'excerptColor' => [
1230 'type' => 'string',
1231 'default' => '#fff',
1232 'style' => [
1233 (object)[
1234 'depends' => [
1235 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1236 ],
1237 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
1238 ],
1239 ],
1240 ],
1241 'excerptTypo' => [
1242 'type' => 'object',
1243 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1244 'style' => [
1245 (object)[
1246 'depends' => [
1247 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1248 ],
1249 'selector'=>'{{ULTP}} .ultp-block-excerpt, {{ULTP}} .ultp-block-excerpt p'
1250 ],
1251 ],
1252 ],
1253 'excerptPadding' => [
1254 'type' => 'object',
1255 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '', 'unit' =>'px']],
1256 'style' => [
1257 (object)[
1258 'depends' => [
1259 (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
1260 ],
1261 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
1262 ],
1263 ],
1264 ],
1265
1266 //--------------------------
1267 // Category Setting/Style
1268 //--------------------------
1269 'maxTaxonomy'=> [
1270 'type' => 'string',
1271 'default' => '30',
1272 ],
1273 'taxonomy' => [
1274 'type' => 'string',
1275 'default' => 'category'
1276 ],
1277 'showSmallCat' => [
1278 'type' => 'boolean',
1279 'default' => true,
1280 ],
1281 'catStyle' => [
1282 'type' => 'string',
1283 'default' => 'classic',
1284 ],
1285 'catPosition' => [
1286 'type' => 'string',
1287 'default' => 'aboveTitle',
1288 ],
1289 'customCatColor' => [
1290 'type' => 'boolean',
1291 'default' => false,
1292 ],
1293 'seperatorLink' => [
1294 'type' => 'string',
1295 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
1296 'style' => [
1297 (object)[
1298 'depends' => [
1299 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1300 ]
1301 ]
1302 ]
1303 ],
1304 'onlyCatColor' => [
1305 'type' => 'boolean',
1306 'default' => false,
1307 'style' => [
1308 (object)[
1309 'depends' => [
1310 (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
1311 ]
1312 ]
1313 ]
1314 ],
1315 'catLineWidth' => [
1316 'type' => 'object',
1317 'default' => (object)['lg'=>'20'],
1318 'style' => [
1319 (object)[
1320 'depends' => [
1321 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1322 ],
1323 '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; }'
1324 ],
1325 ]
1326 ],
1327 'catLineSpacing' => [
1328 'type' => 'object',
1329 'default' => (object)['lg'=>'30'],
1330 'style' => [
1331 (object)[
1332 'depends' => [
1333 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1334 ],
1335 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
1336 {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
1337 {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
1338 ],
1339 ]
1340 ],
1341 'catLineColor' => [
1342 'type' => 'string',
1343 'default' => '#000',
1344 'style' => [
1345 (object)[
1346 'depends' => [
1347 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1348 ],
1349 '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}}; }'
1350 ],
1351 ]
1352 ],
1353 'catLineHoverColor' => [
1354 'type' => 'string',
1355 'default' => '#037fff',
1356 'style' => [
1357 (object)[
1358 'depends' => [
1359 (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
1360 ],
1361 '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}}; }'
1362 ],
1363 ]
1364 ],
1365 'catTypo' => [
1366 'type' => 'object',
1367 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>11, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => '', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
1368 'style' => [
1369 (object)[
1370 'depends' => [
1371 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1372 ],
1373 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a'
1374 ],
1375 ],
1376 ],
1377 'catColor' => [
1378 'type' => 'string',
1379 'default' => '#fff',
1380 'style' => [
1381 (object)[
1382 'depends' => [
1383 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1384 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1385 ],
1386 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1387 ],
1388 ],
1389 ],
1390 'catBgColor' => [
1391 'type' => 'object',
1392 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => '#000'],
1393 'style' => [
1394 (object)[
1395 'depends' => [
1396 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1397 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1398 ],
1399 'selector'=>'{{ULTP}} .ultp-category-grid a'
1400 ],
1401 ],
1402 ],
1403 'catBorder' => [
1404 'type' => 'object',
1405 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1406 'style' => [
1407 (object)[
1408 'depends' => [
1409 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1410 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1411 ],
1412 'selector'=>'{{ULTP}} .ultp-category-grid a'
1413 ],
1414 ],
1415 ],
1416 'catRadius' => [
1417 'type' => 'object',
1418 'default' => (object)['lg' =>'2', 'unit' =>'px'],
1419 'style' => [
1420 (object)[
1421 'depends' => [
1422 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1423 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1424 ],
1425 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1426 ],
1427 ],
1428 ],
1429 'catHoverColor' => [
1430 'type' => 'string',
1431 'default' => '#fff',
1432 'style' => [
1433 (object)[
1434 'depends' => [
1435 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1436 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1437 ],
1438 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1439 ],
1440 ],
1441 ],
1442 'catBgHoverColor' => [
1443 'type' => 'object',
1444 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff'],
1445 'style' => [
1446 (object)[
1447 'depends' => [
1448 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1449 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1450 ],
1451 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1452 ],
1453 ],
1454 ],
1455 'catHoverBorder' => [
1456 'type' => 'object',
1457 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1458 'style' => [
1459 (object)[
1460 'depends' => [
1461 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1462 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1463 ],
1464 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1465 ],
1466 ],
1467 ],
1468 'catSacing' => [
1469 'type' => 'object',
1470 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1471 'style' => [
1472 (object)[
1473 'depends' => [
1474 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1475 ],
1476 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1477 ],
1478 ],
1479 ],
1480 'catPadding' => [
1481 'type' => 'object',
1482 'default' => (object)['lg' =>(object)['top' => 3,'bottom' => 3,'left' => 7,'right' => 7, 'unit' =>'px']],
1483 'style' => [
1484 (object)[
1485 'depends' => [
1486 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1487 (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1488 ],
1489 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1490 ],
1491 ],
1492 ],
1493
1494 //--------------------------
1495 // Meta Setting/Style
1496 //--------------------------
1497 'metaPosition' => [
1498 'type' => 'string',
1499 'default' => 'top',
1500 ],
1501 'metaStyle' => [
1502 'type' => 'string',
1503 'default' => 'icon',
1504 ],
1505 'authorLink' => [
1506 'type' => 'boolean',
1507 'default' => true,
1508 ],
1509 'metaSeparator' => [
1510 'type' => 'string',
1511 'default' => 'dot',
1512 ],
1513 'metaList' => [
1514 'type' => 'string',
1515 'default' => '["metaAuthor","metaDate","metaRead"]',
1516 ],
1517 'metaMinText' => [
1518 'type' => 'string',
1519 'default' => 'min read',
1520 ],
1521 'metaAuthorPrefix' => [
1522 'type' => 'string',
1523 'default' => 'By',
1524 ],
1525 'metaDateFormat' => [
1526 'type' => 'string',
1527 'default' => 'M j, Y',
1528 ],
1529 'metaListSmall' => [
1530 'type' => 'string',
1531 'default' => '["metaAuthor","metaDate"]',
1532 ],
1533 'metaTypo' => [
1534 'type' => 'object',
1535 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>13, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1536 'style' => [
1537 (object)[
1538 'depends' => [
1539 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1540 ],
1541 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1542 ],
1543 ],
1544 ],
1545 'metaColor' => [
1546 'type' => 'string',
1547 'default' => 'rgba(255,255,255,0.90)',
1548 'style' => [
1549 (object)[
1550 'depends' => [
1551 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1552 ],
1553 '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}}; }'
1554 ],
1555 ],
1556 ],
1557 'metaHoverColor' => [
1558 'type' => 'string',
1559 'default' => '#037fff',
1560 'style' => [
1561 (object)[
1562 'depends' => [
1563 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1564 ],
1565 '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}}; }'
1566 ],
1567 ],
1568 ],
1569 'metaSpacing' => [
1570 'type' => 'object',
1571 'default' => (object)['lg' =>'15', 'unit' =>'px'],
1572 'style' => [
1573 (object)[
1574 'depends' => [
1575 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1576 ],
1577 '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}}; }'
1578 ],
1579 (object)[
1580 'depends' => [
1581 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1582 (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
1583 ],
1584 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-meta span:last-child{margin-right:0px;}'
1585 ],
1586 ],
1587 ],
1588 'metaMargin' => [
1589 'type' => 'object',
1590 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1591 'style' => [
1592 (object)[
1593 'depends' => [
1594 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1595 ],
1596 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1597 ],
1598 ],
1599 ],
1600 'metaPadding' => [
1601 'type' => 'object',
1602 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1603 'style' => [
1604 (object)[
1605 'depends' => [
1606 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1607 ],
1608 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1609 ],
1610 ],
1611 ],
1612 'metaBorder' => [
1613 'type' => 'object',
1614 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1615 'style' => [
1616 (object)[
1617 'depends' => [
1618 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1619 ],
1620 'selector'=>'{{ULTP}} .ultp-block-meta'
1621 ],
1622 ],
1623 ],
1624 'metaBg' => [
1625 'type' => 'string',
1626 'default' => '',
1627 'style' => [
1628 (object)[
1629 'depends' => [
1630 (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1631 ],
1632 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1633 ],
1634 ],
1635 ],
1636
1637 //--------------------------
1638 // Image Setting/Style
1639 //--------------------------
1640 'imgCrop' => [
1641 'type' => 'string',
1642 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_landscape'),
1643 'depends' => [(object)['key' => 'showImage','condition' => '==','value' => true]]
1644 ],
1645 'imgCropSmall' => [
1646 'type' => 'string',
1647 'default' => (ultimate_post()->get_setting('disable_image_size') == 'yes' ? 'full' : 'ultp_layout_square'),
1648 ],
1649 'imgAnimation' => [
1650 'type' => 'string',
1651 'default' => 'zoomIn',
1652 ],
1653 'imgGrayScale' => [
1654 'type' => 'object',
1655 'default' => (object)['lg' =>'0', 'ulg' =>'%', 'unit' =>'%'],
1656 'style' => [
1657 (object)[
1658 'depends' => [
1659 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1660 ],
1661 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }'
1662 ],
1663 ],
1664 ],
1665 'imgHoverGrayScale' => [
1666 'type' => 'object',
1667 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1668 'style' => [
1669 (object)[
1670 'depends' => [
1671 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1672 ],
1673 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }'
1674 ],
1675 ],
1676 ],
1677 'imgRadius' => [
1678 'type' => 'object',
1679 'default' => (object)['lg' =>'', 'unit' =>'px'],
1680 'style' => [
1681 (object)[
1682 'depends' => [
1683 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1684 ],
1685 'selector'=>'{{ULTP}} .ultp-block-content-wrap, {{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1686 ],
1687 ],
1688 ],
1689 'imgHoverRadius' => [
1690 'type' => 'object',
1691 'default' => (object)['lg' =>'', 'unit' =>'px'],
1692 'style' => [
1693 (object)[
1694 'depends' => [
1695 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1696 ],
1697 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover, {{ULTP}} .ultp-block-content-wrap:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1698 ],
1699 ],
1700 ],
1701 'imgShadow' => [
1702 'type' => 'object',
1703 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1704 'style' => [
1705 (object)[
1706 'depends' => [
1707 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1708 ],
1709 'selector'=>'{{ULTP}} .ultp-block-content-overlay'
1710 ],
1711 ],
1712 ],
1713 'imgHoverShadow' => [
1714 'type' => 'object',
1715 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1716 'style' => [
1717 (object)[
1718 'depends' => [
1719 (object)['key'=>'showImage','condition'=>'==','value'=>true],
1720 ],
1721 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-content-overlay'
1722 ],
1723 ],
1724 ],
1725 'imgOverlay' => [
1726 'type' => 'boolean',
1727 'default' => true,
1728 ],
1729 'imgOverlayType' => [
1730 'type' => 'string',
1731 'default' => 'flat',
1732 'style' => [
1733 (object)[
1734 'depends' => [
1735 (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1736 ]
1737 ],
1738 ]
1739 ],
1740 'overlayColor' => [
1741 'type' => 'object',
1742 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1743 'style' => [
1744 (object)[
1745 'depends' => [
1746 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1747 ],
1748 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1749 ],
1750 ],
1751
1752 ],
1753 'imgOpacity' => [
1754 'type' => 'string',
1755 'default' => .7,
1756 'style' => [
1757 (object)[
1758 'depends' => [
1759 (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1760 ],
1761 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1762 ],
1763 ],
1764 ],
1765 'fallbackEnable' => [
1766 'type' => 'boolean',
1767 'default' => true,
1768 'style' => [
1769 (object)[
1770 'depends' => [
1771 (object)['key'=>'showImage','condition'=>'==','value'=> true],
1772 ],
1773 ],
1774 ],
1775 ],
1776 'fallbackImg' => [
1777 'type' => 'object',
1778 'default' => '',
1779 'style' => [
1780 (object)[
1781 'depends' => [
1782 (object)['key'=>'showImage','condition'=>'==','value'=> true],
1783 (object)['key'=>'fallbackEnable','condition'=>'==','value'=> true],
1784 ],
1785 ],
1786 ],
1787 ],
1788 'imgSrcset' => [
1789 'type' => 'boolean',
1790 'default' => false,
1791 ],
1792 'imgLazy' => [
1793 'type' => 'boolean',
1794 'default' => false,
1795 ],
1796
1797 //--------------------------
1798 // Video Icon Setting
1799 //--------------------------
1800 'vidIconEnable' => [
1801 'type' => 'boolean',
1802 'default' => true,
1803 ],
1804 'popupAutoPlay' => [
1805 'type' => 'boolean',
1806 'default' => true,
1807 'style' => [
1808 (object) [
1809 'depends' => [
1810 (object)['key' => 'enablePopup','condition' => '==','value' => true]
1811 ],
1812 ]
1813 ],
1814 ],
1815 'vidIconPosition' => [
1816 'type' => 'string',
1817 'default' => 'topRight',
1818 'style' => [
1819 (object)[
1820 'depends' => [
1821 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1822 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomRight']
1823 ],
1824 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; right: 20px; }'
1825 ],
1826 (object)[
1827 'depends' => [
1828 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1829 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'center']
1830 ],
1831 'selector'=>'{{ULTP}} .ultp-video-icon {
1832 margin: 0 auto;
1833 position: absolute;
1834 top: 50%;
1835 left: 50%;
1836 transform: translate(-50%,-60%);
1837 -o-transform: translate(-50%,-60%);
1838 -ms-transform: translate(-50%,-60%);
1839 -moz-transform: translate(-50%,-60%);
1840 -webkit-transform: translate(-50%,-50%);
1841 z-index: 998;}'
1842 ],
1843 (object)[
1844 'depends' => [
1845 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1846 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'bottomLeft']
1847 ],
1848 'selector'=>'{{ULTP}} .ultp-video-icon { bottom: 20px; left: 20px; }'
1849 ],
1850 (object)[
1851 'depends' => [
1852 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1853 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topRight']
1854 ],
1855 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; right: 20px; }'
1856 ],
1857 (object)[
1858 'depends' => [
1859 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1860 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'topLeft']
1861 ],
1862 'selector'=>'{{ULTP}} .ultp-video-icon { top: 20px; left: 20px; }'
1863 ],
1864 (object)[
1865 'depends' => [
1866 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1867 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'rightMiddle']
1868 ],
1869 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-end; align-items: center; height: 100%; width: 100%; top:0px;}'
1870 ],
1871 (object)[
1872 'depends' => [
1873 (object)['key' => 'vidIconEnable','condition' => '==','value' => true],
1874 (object)['key' => 'vidIconPosition','condition' => '==','value' => 'leftMiddle']
1875 ],
1876 'selector'=>'{{ULTP}} .ultp-video-icon {display: flex; justify-content: flex-start; align-items: center; height: 100%; width: 100%; top: 0px;}'
1877 ]
1878 ],
1879 ],
1880 'popupIconColor' => [
1881 'type' => 'string',
1882 'default' => '#fff',
1883 'style' => [
1884 (object) [
1885 'selector'=>'{{ULTP}} .ultp-video-icon svg { fill: {{popupIconColor}}; } {{ULTP}} .ultp-video-icon svg circle { stroke: {{popupIconColor}}; }'
1886 ]
1887 ],
1888 ],
1889 'popupHovColor' => [
1890 'type' => 'string',
1891 'default' => '#d2d2d2',
1892 'style' => [
1893 (object)[
1894 'selector'=>'{{ULTP}} .ultp-video-icon svg:hover { fill: {{popupHovColor}}; } {{ULTP}} .ultp-video-icon svg:hover circle { stroke: {{popupHovColor}};}'
1895 ]
1896 ],
1897 ],
1898 'iconSize' => [
1899 'type' => 'object',
1900 'default' => (object)['lg'=>'40', 'sm'=> '30', 'xs'=> '30', 'unit' => 'px'],
1901 'style' => [
1902 (object)[
1903 'selector'=>'{{ULTP}} .ultp-video-icon svg { height:{{iconSize}}; width: {{iconSize}};}'
1904 ],
1905 ],
1906 ],
1907 // by default should be off
1908 'enablePopup' => [
1909 'type' => 'boolean',
1910 'default' => false,
1911 'style' => [
1912 (object)[
1913 'depends' => [
1914 (object)['key' => 'vidIconEnable','condition' => '==','value' => true]
1915 ],
1916 ],
1917 ],
1918 ],
1919 'popupWidth' => [
1920 'type' => 'object',
1921 'default' => (object)['lg'=>'70'],
1922 'style' => [
1923 (object)[
1924 'depends' => [
1925 (object)['key' => 'enablePopup','condition' => '==','value' => true]
1926 ],
1927 'selector'=>'{{ULTP}} .ultp-video-modal .ultp-video-modal__Wrapper {width:{{popupWidth}}% !important;}'
1928 ],
1929 ],
1930 ],
1931 'enablePopupTitle' => [
1932 'type' => 'boolean',
1933 'default' => true,
1934 'style' => [
1935 (object)[
1936 'depends' => [
1937 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1938 ],
1939 ]
1940 ],
1941 ],
1942 'popupTitleColor' => [
1943 'type' => 'string',
1944 'default' => '#fff',
1945 'style' => [
1946 (object)[
1947 'depends' => [
1948 (object)['key' => 'enablePopupTitle','condition' => '==','value' => true],
1949 (object)['key' => 'enablePopup','condition' => '==','value' => true]
1950 ],
1951 'selector'=>'{{ULTP}} .ultp-video-modal__Wrapper a { color:{{popupTitleColor}} !important; }'
1952 ]
1953 ],
1954 ],
1955 'closeIconSep' => [
1956 'type' => 'string',
1957 'default' => '#fff',
1958 'style' => [
1959 (object)[
1960 'depends' => [
1961 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1962 ],
1963 ]
1964 ],
1965 ],
1966 'closeIconColor' => [
1967 'type' => 'string',
1968 'default' => '#fff',
1969 'style' => [
1970 (object)[
1971 'depends' => [
1972 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1973 ],
1974 'selector'=>'{{ULTP}} .ultp-video-close { color:{{closeIconColor}}; }'
1975 ]
1976 ],
1977 ],
1978 'closeHovColor' => [
1979 'type' => 'string',
1980 'default' => '#8f8f8f',
1981 'style' => [
1982 (object)[
1983 'depends' => [
1984 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1985 ],
1986 'selector'=>'{{ULTP}} .ultp-video-close:hover { color:{{closeHovColor}}; }'
1987 ]
1988 ],
1989 ],
1990 'closeSize' => [
1991 'type' => 'object',
1992 'default' => (object)['lg'=>'70', 'unit' => 'px'],
1993 'style' => [
1994 (object)[
1995 'depends' => [
1996 (object)['key' => 'enablePopup','condition' => '==','value' => true],
1997 ],
1998 'selector'=>'{{ULTP}} .ultp-video-close { font-size:{{closeSize}}; }'
1999 ],
2000 ],
2001 ],
2002 //--------------------------
2003 // Read more Setting/Style
2004 //--------------------------
2005 'showSmallBtn' => [
2006 'type' => 'boolean',
2007 'default' => false,
2008 ],
2009 'readMoreText' => [
2010 'type' => 'string',
2011 'default' => ''
2012 ],
2013 'readMoreIcon' => [
2014 'type' => 'string',
2015 'default' => 'rightArrowLg',
2016 ],
2017 'readMoreTypo' => [
2018 'type' => 'object',
2019 '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'=>'' ],
2020 'style' => [
2021 (object)[
2022 'depends' => [
2023 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2024 ],
2025 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-item .ultp-block-readmore a'
2026 ],
2027 ],
2028 ],
2029 'readMoreIconSize' => [
2030 'type' => 'object',
2031 'default' => (object)['lg' =>'', 'unit' =>'px'],
2032 'style' => [
2033 (object)[
2034 'depends' => [
2035 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2036 ],
2037 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
2038 ],
2039 ]
2040 ],
2041 'readMoreColor' => [
2042 'type' => 'string',
2043 'default' => '#fff',
2044 'style' => [
2045 (object)[
2046 'depends' => [
2047 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2048 ],
2049 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
2050 ],
2051 ],
2052 ],
2053 'readMoreBgColor' => [
2054 'type' => 'object',
2055 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
2056 'style' => [
2057 (object)[
2058 'depends' => [
2059 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2060 ],
2061 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2062 ],
2063 ],
2064 ],
2065 'readMoreBorder' => [
2066 'type' => 'object',
2067 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
2068 'style' => [
2069 (object)[
2070 'depends' => [
2071 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2072 ],
2073 'selector'=>'{{ULTP}} .ultp-block-readmore a'
2074 ],
2075 ],
2076 ],
2077 'readMoreRadius' => [
2078 'type' => 'object',
2079 'default' => (object)['lg' =>'', 'unit' =>'px'],
2080 'style' => [
2081 (object)[
2082 'depends' => [
2083 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2084 ],
2085 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
2086 ],
2087 ],
2088 ],
2089 'readMoreHoverColor' => [
2090 'type' => 'string',
2091 'default' => 'rgba(255,255,255,0.80)',
2092 'style' => [
2093 (object)[
2094 'depends' => [
2095 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2096 ],
2097 'selector'=>'{{ULTP}} .ultp-block-items-wrap .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
2098 ],
2099 ],
2100 ],
2101 'readMoreBgHoverColor' => [
2102 'type' => 'object',
2103 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
2104 'style' => [
2105 (object)[
2106 'depends' => [
2107 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2108 ],
2109 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2110 ],
2111 ],
2112 ],
2113 'readMoreHoverBorder' => [
2114 'type' => 'object',
2115 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2116 'style' => [
2117 (object)[
2118 'depends' => [
2119 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2120 ],
2121 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
2122 ],
2123 ],
2124 ],
2125 'readMoreHoverRadius' => [
2126 'type' => 'object',
2127 'default' => (object)['lg' =>'', 'unit' =>'px'],
2128 'style' => [
2129 (object)[
2130 'depends' => [
2131 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2132 ],
2133 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
2134 ],
2135 ],
2136 ],
2137 'readMoreSacing' => [
2138 'type' => 'object',
2139 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2140 'style' => [
2141 (object)[
2142 'depends' => [
2143 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2144 ],
2145 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
2146 ],
2147 ],
2148 ],
2149 'readMorePadding' => [
2150 'type' => 'object',
2151 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
2152 'style' => [
2153 (object)[
2154 'depends' => [
2155 (object)['key'=>'readMore','condition'=>'==','value'=>true],
2156 ],
2157 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
2158 ],
2159 ],
2160 ],
2161
2162 //--------------------------
2163 // Filter Setting/Style
2164 //--------------------------
2165 'filterBelowTitle' => [
2166 'type' => 'boolean',
2167 'default' => false,
2168 'style' => [
2169 (object)[
2170 'depends' => [
2171 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2172 ],
2173 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { position: relative; display: block; margin: auto 0 0 0; height: auto; }'
2174 ],
2175 ],
2176 ],
2177 'filterAlign' => [
2178 'type' => 'object',
2179 'default' => (object)['lg' =>''],
2180 'style' => [
2181 (object)[
2182 'depends' => [
2183 (object)['key'=>'filterBelowTitle','condition'=>'==','value'=>true],
2184 ],
2185 'selector'=>'{{ULTP}} .ultp-heading-filter .ultp-filter-navigation { text-align:{{filterAlign}}; }'
2186 ],
2187 ],
2188 ],
2189 'filterType' => [
2190 'type' => 'string',
2191 'default' => 'category'
2192 ],
2193 'filterText' => [
2194 'type' => 'string',
2195 'default' => 'all'
2196 ],
2197 'filterValue' => [
2198 'type' => 'string',
2199 'default' => '[]',
2200 'style' => [
2201 (object)[
2202 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
2203 ],
2204 ],
2205 ],
2206 'fliterTypo' => [
2207 'type' => 'object',
2208 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>22, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
2209 'style' => [
2210 (object)[
2211 'depends' => [
2212 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2213 ],
2214 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
2215 ],
2216 ],
2217 ],
2218 'filterColor' => [
2219 'type' => 'string',
2220 'default' => '#0e1523',
2221 'style' => [
2222 (object)[
2223 'depends' => [
2224 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2225 ],
2226 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a { color:{{filterColor}}; }{{ULTP}} .flexMenu-viewMore a:before { border-color:{{filterColor}}}'
2227 ],
2228 ],
2229 ],
2230 'filterHoverColor' => [
2231 'type' => 'string',
2232 'default' => '#828282',
2233 'style' => [
2234 (object)[
2235 'depends' => [
2236 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2237 ],
2238 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}} !important; } {{ULTP}} .ultp-flex-menu .flexMenu-viewMore a:hover::before { border-color:{{filterHoverColor}}}'
2239 ],
2240 ],
2241 ],
2242 'filterBgColor' => [
2243 'type' => 'string',
2244 'style' => [
2245 (object)[
2246 'depends' => [
2247 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2248 ],
2249 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
2250 ],
2251 ],
2252 ],
2253 'filterHoverBgColor' => [
2254 'type' => 'string',
2255 'style' => [
2256 (object)[
2257 'depends' => [
2258 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2259 ],
2260 '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}}; }'
2261 ],
2262 ],
2263 ],
2264 'filterBorder' => [
2265 'type' => 'object',
2266 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2267 'style' => [
2268 (object)[
2269 'depends' => [
2270 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2271 ],
2272 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
2273 ],
2274 ],
2275 ],
2276 'filterHoverBorder' => [
2277 'type' => 'object',
2278 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2279 'style' => [
2280 (object)[
2281 'depends' => [
2282 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2283 ],
2284 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
2285 ],
2286 ],
2287 ],
2288 'filterRadius' => [
2289 'type' => 'object',
2290 'default' => (object)['lg' =>'', 'unit' =>'px'],
2291 'style' => [
2292 (object)[
2293 'depends' => [
2294 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2295 ],
2296 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
2297 ],
2298 ],
2299 ],
2300 'fliterSpacing' => [
2301 'type' => 'object',
2302 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
2303 'style' => [
2304 (object)[
2305 'depends' => [
2306 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2307 ],
2308 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
2309 ],
2310 ],
2311 ],
2312 'fliterPadding' => [
2313 'type' => 'object',
2314 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2315 'style' => [
2316 (object)[
2317 'depends' => [
2318 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2319 ],
2320 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a, {{ULTP}} .ultp-filter-wrap .flexMenu-viewMore > a { padding:{{fliterPadding}}; }'
2321 ],
2322 ],
2323 ],
2324 'filterDropdownColor' => [
2325 'type' => 'string',
2326 'default' => '#0e1523',
2327 'style' => [
2328 (object)[
2329 'depends' => [
2330 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2331 ],
2332 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
2333 ],
2334 ],
2335 ],
2336 'filterDropdownHoverColor' => [
2337 'type' => 'string',
2338 'default' => '#037fff',
2339 'style' => [
2340 (object)[
2341 'depends' => [
2342 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2343 ],
2344 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
2345 ],
2346 ],
2347 ],
2348 'filterDropdownBg' => [
2349 'type' => 'string',
2350 'default' => '#fff',
2351 'style' => [
2352 (object)[
2353 'depends' => [
2354 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2355 ],
2356 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
2357 ],
2358 ],
2359 ],
2360 'filterDropdownRadius' => [
2361 'type' => 'object',
2362 'default' => (object)['lg'=>'0'],
2363 'style' => [
2364 (object)[
2365 'depends' => [
2366 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2367 ],
2368 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
2369 ],
2370 ],
2371 ],
2372 'filterDropdownPadding' => [
2373 'type' => 'object',
2374 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
2375 'style' => [
2376 (object)[
2377 'depends' => [
2378 (object)['key'=>'filterShow','condition'=>'==','value'=>true],
2379 ],
2380 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
2381 ],
2382 ],
2383 ],
2384 'filterMobile' => [
2385 'type' => 'boolean',
2386 'default' => true,
2387 ],
2388 'filterMobileText' => [
2389 'type' => 'string',
2390 'default' => 'More',
2391 'style' => [
2392 (object)[
2393 'depends' => [
2394 (object)['key'=>'filterMobile','condition'=>'==','value'=>true],
2395 ]
2396 ]
2397 ]
2398 ],
2399
2400 //--------------------------
2401 // Pagination Setting/Style
2402 //--------------------------
2403 'paginationType' => [
2404 'type' => 'string',
2405 'default' => 'navigation',
2406 ],
2407 'paginationNav' => [
2408 'type' => 'string',
2409 'default' => 'textArrow',
2410 'style' => [
2411 (object)[
2412 'depends' => [
2413 (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
2414 ],
2415 ],
2416 ],
2417 ],
2418 'navPosition' => [
2419 'type' => 'string',
2420 'default' => 'topRight',
2421 'style' => [
2422 (object)[
2423 'depends' => [
2424 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2425 ],
2426 ],
2427 ],
2428 ],
2429 'pagiAlign' => [
2430 'type' => 'object',
2431 'default' => (object)['lg' =>'left'],
2432 'style' => [
2433 (object)[
2434 'depends' => [
2435 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2436 ],
2437 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
2438 ],
2439 ],
2440 ],
2441 'pagiTypo' => [
2442 'type' => 'object',
2443 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
2444 'style' => [
2445 (object)[
2446 'depends' => [
2447 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2448 ],
2449 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2450 ],
2451 ],
2452
2453 ],
2454 'pagiArrowSize' => [
2455 'type' => 'object',
2456 'default' => (object)['lg'=>'14'],
2457 'style' => [
2458 (object)[
2459 'depends' => [
2460 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2461 ],
2462 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
2463 ],
2464 ],
2465
2466 ],
2467 'pagiColor' => [
2468 'type' => 'string',
2469 'default' => '#fff',
2470 'style' => [
2471 (object)[
2472 'depends' => [
2473 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2474 ],
2475 '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, {{ULTP}} .ultp-block-wrapper .ultp-loadmore .ultp-loadmore-action svg { fill:{{pagiColor}}; } {{ULTP}} .ultp-pagination li a svg { fill:{{pagiColor}}; }'
2476 ],
2477 ],
2478 ],
2479 'pagiBgColor' => [
2480 'type' => 'object',
2481 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
2482 'style' => [
2483 (object)[
2484 'depends' => [
2485 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2486 ],
2487 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
2488 ],
2489 ],
2490 ],
2491 'pagiBorder' => [
2492 'type' => 'object',
2493 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2494 'style' => [
2495 (object)[
2496 'depends' => [
2497 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2498 ],
2499 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2500 ],
2501 ],
2502 ],
2503 'pagiShadow' => [
2504 'type' => 'object',
2505 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2506 'style' => [
2507 (object)[
2508 'depends' => [
2509 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2510 ],
2511 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
2512 ],
2513 ],
2514 ],
2515 'pagiRadius' => [
2516 'type' => 'object',
2517 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2518 'style' => [
2519 (object)[
2520 'depends' => [
2521 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2522 ],
2523 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
2524 ],
2525 ],
2526 ],
2527 'pagiHoverColor' => [
2528 'type' => 'string',
2529 'default' => '#fff',
2530 'style' => [
2531 (object)[
2532 'depends' => [
2533 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2534 ],
2535 '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, {{ULTP}} .ultp-block-wrapper .ultp-loadmore .ultp-loadmore-action:hover svg { fill:{{pagiHoverColor}}; } {{ULTP}} .ultp-next-prev-wrap ul li a:hover svg { fill:{{pagiHoverColor}}; } @media (min-width: 768px) { {{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:hover { color:{{pagiHoverColor}};}}'
2536 ],
2537 ],
2538 ],
2539 'pagiHoverbg' => [
2540 'type' => 'object',
2541 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#037fff','replace'=>1],
2542 'style' => [
2543 (object)[
2544 'depends' => [
2545 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2546 ],
2547 '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}} }'
2548 ],
2549 ],
2550 ],
2551 'pagiHoverBorder' => [
2552 'type' => 'object',
2553 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2554 'style' => [
2555 (object)[
2556 'depends' => [
2557 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2558 ],
2559 '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'
2560 ],
2561 ],
2562 ],
2563 'pagiHoverShadow' => [
2564 'type' => 'object',
2565 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2566 'style' => [
2567 (object)[
2568 'depends' => [
2569 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2570 ],
2571 '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'
2572 ],
2573 ],
2574 ],
2575 'pagiHoverRadius' => [
2576 'type' => 'object',
2577 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
2578 'style' => [
2579 (object)[
2580 'depends' => [
2581 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2582 ],
2583 '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}}; }'
2584 ],
2585 ],
2586 ],
2587 'pagiPadding' => [
2588 'type' => 'object',
2589 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
2590 'style' => [
2591 (object)[
2592 'depends' => [
2593 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
2594 ],
2595 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
2596 ],
2597 ],
2598 ],
2599 'navMargin' => [
2600 'type' => 'object',
2601 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
2602 'style' => [
2603 (object)[
2604 'depends' => [
2605 (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
2606 ],
2607 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
2608 ],
2609 ],
2610 ],
2611
2612 //--------------------------
2613 // Wrapper Style
2614 //--------------------------
2615 'loadingColor' => [
2616 'type' => 'string',
2617 'default' => '#000',
2618 'style' => [
2619 (object)[
2620 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
2621 ],
2622 ],
2623 ],
2624 'wrapBg' => [
2625 'type' => 'object',
2626 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
2627 'style' => [
2628 (object)[
2629 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2630 ],
2631 ],
2632 ],
2633 'wrapBorder' => [
2634 'type' => 'object',
2635 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2636 'style' => [
2637 (object)[
2638 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2639 ],
2640 ],
2641 ],
2642 'wrapShadow' => [
2643 'type' => 'object',
2644 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2645 'style' => [
2646 (object)[
2647 'selector'=>'{{ULTP}} .ultp-block-wrapper'
2648 ],
2649 ],
2650 ],
2651 'wrapRadius' => [
2652 'type' => 'object',
2653 'default' => (object)['lg' =>'', 'unit' =>'px'],
2654 'style' => [
2655 (object)[
2656 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
2657 ],
2658 ],
2659 ],
2660 'wrapHoverBackground' => [
2661 'type' => 'object',
2662 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#037fff'],
2663 'style' => [
2664 (object)[
2665 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2666 ],
2667 ],
2668 ],
2669 'wrapHoverBorder' => [
2670 'type' => 'object',
2671 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2672 'style' => [
2673 (object)[
2674 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2675 ],
2676 ],
2677 ],
2678 'wrapHoverRadius' => [
2679 'type' => 'object',
2680 'default' => (object)['lg' =>'', 'unit' =>'px'],
2681 'style' => [
2682 (object)[
2683 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2684 ],
2685 ],
2686 ],
2687 'wrapHoverShadow' => [
2688 'type' => 'object',
2689 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2690 'style' => [
2691 (object)[
2692 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2693 ],
2694 ],
2695 ],
2696 'wrapMargin' => [
2697 'type' => 'object',
2698 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2699 'style' => [
2700 (object)[
2701 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2702 ],
2703 ],
2704 ],
2705 'wrapOuterPadding' => [
2706 'type' => 'object',
2707 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2708 'style' => [
2709 (object)[
2710 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2711 ],
2712 ],
2713 ],
2714 'wrapInnerPadding' => [
2715 'type' => 'object',
2716 'default' => (object)['lg' =>(object)['unit' =>'px']],
2717 'style' => [
2718 (object)[
2719 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2720 ],
2721 ],
2722 ],
2723 'advanceId' => [
2724 'type' => 'string',
2725 'default' => '',
2726 ],
2727 'advanceZindex' => [
2728 'type' => 'string',
2729 'default' => '',
2730 'style' => [
2731 (object)[
2732 'selector' => '{{ULTP}} .ultp-block-wrapper{z-index:{{advanceZindex}};}'
2733 ],
2734 ],
2735 ],
2736 'hideExtraLarge' => [
2737 'type' => 'boolean',
2738 'default' => false,
2739 'style' => [
2740 (object)[
2741 'selector' => '{{ULTP}} {display:none;}'
2742 ],
2743 ],
2744 ],
2745 'hideTablet' => [
2746 'type' => 'boolean',
2747 'default' => false,
2748 'style' => [
2749 (object)[
2750 'selector' => '{{ULTP}} {display:none;}'
2751 ],
2752 ],
2753 ],
2754 'hideMobile' => [
2755 'type' => 'boolean',
2756 'default' => false,
2757 'style' => [
2758 (object)[
2759 'selector' => '{{ULTP}} {display:none;}'
2760 ],
2761 ],
2762 ],
2763 'advanceCss' => [
2764 'type' => 'string',
2765 'default' => '',
2766 'style' => [(object)['selector' => '']],
2767 ]
2768 );
2769
2770 if ($default) {
2771 $temp = array();
2772 foreach ($attributes as $key => $value) {
2773 if (isset($value['default'])) {
2774 $temp[$key] = $value['default'];
2775 }
2776 }
2777 return $temp;
2778 } else {
2779 return $attributes;
2780 }
2781 }
2782
2783 public function register() {
2784 register_block_type( 'ultimate-post/post-grid-4',
2785 array(
2786 'editor_script' => 'ultp-blocks-editor-script',
2787 'editor_style' => 'ultp-blocks-editor-css',
2788 'attributes' => $this->get_attributes(),
2789 'render_callback' => array($this, 'content')
2790 )
2791 );
2792 }
2793
2794 public function content($attr, $noAjax) {
2795 global $unique_ID;
2796 if (!$noAjax) {
2797 $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2798 $attr['paged'] = $paged ? $paged : 1;
2799 }
2800 if($attr['queryUnique'] && isset($attr['savedQueryUnique'])) {
2801 $unique_ID = $attr['savedQueryUnique'];
2802 }
2803
2804 $block_name = 'post-grid-4';
2805 $page_post_id = ultimate_post()->get_ID();
2806 $wraper_before = $wraper_after = $post_loop = '';
2807 $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2808 $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2809 // Dummy Img Url
2810 $dummy_url = ULTP_URL.'assets/img/ultp-fallback-img.png';
2811
2812 // Loadmore and Unique content
2813 if($attr['queryUnique'] && isset($attr['loadMoreQueryUnique']) && $attr['paginationShow'] && ($attr['paginationType'] == 'loadMore')) {
2814 $unique_ID = $attr['loadMoreQueryUnique'];
2815 $current_unique_posts = $attr['ultp_current_unique_posts'];
2816 }
2817
2818 if ($recent_posts->have_posts()) {
2819 $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"]:'').'">';
2820 $wraper_before .= '<div class="ultp-block-wrapper">';
2821
2822 // Loading
2823 $wraper_before .= ultimate_post()->loading();
2824
2825 if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
2826 $wraper_before .= '<div class="ultp-heading-filter">';
2827 $wraper_before .= '<div class="ultp-heading-filter-in">';
2828
2829 // Heading
2830 include ULTP_PATH.'blocks/template/heading.php';
2831
2832 if ($attr['filterShow'] || $attr['paginationShow']) {
2833 $wraper_before .= '<div class="ultp-filter-navigation">';
2834
2835 // Filter
2836 if($attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts') {
2837 include ULTP_PATH.'blocks/template/filter.php';
2838 }
2839
2840 // Navigation
2841 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
2842 include ULTP_PATH.'blocks/template/navigation-before.php';
2843 }
2844 $wraper_before .= '</div>';
2845 }
2846
2847 $wraper_before .= '</div>';
2848 $wraper_before .= '</div>';
2849 }
2850
2851 $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-row ultp-'.$attr['layout'].' ultp-block-content-'.$attr['columnFlip'].'">';
2852 $idx = 0;
2853 while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2854
2855 include ULTP_PATH.'blocks/template/data.php';
2856
2857 include ULTP_PATH.'blocks/template/category.php';
2858
2859 if ($attr['queryUnique']) {
2860 $unique_ID[$attr['queryUnique']][] = $post_id;
2861 $current_unique_posts[] = $post_id;
2862 }
2863
2864 $post_loop .= '<'.$attr['contentTag'].' class="ultp-block-item post-id-'.$post_id.($attr['titleAnimation'] ? ' ultp-animation-'.$attr['titleAnimation'] : '').'">';
2865 $post_loop .= '<div class="ultp-block-content-wrap ultp-block-content-overlay">';
2866
2867 if (($post_thumb_id || $attr['fallbackEnable']) && $attr['showImage']) {
2868 $post_loop .= '<div class="ultp-block-image ultp-block-image-'.$attr['imgAnimation'].($attr["imgOverlay"] ? ' ultp-block-image-overlay ultp-block-image-'.$attr["imgOverlayType"] : '' ).'">';
2869 $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>';
2870 // Post Image Size
2871 $imgSize = $idx == 0 ? $attr['imgCrop'] : $attr['imgCropSmall'];
2872 // Post Image Id
2873 $block_img_id = $post_thumb_id ? $post_thumb_id : ($attr['fallbackEnable'] && isset($attr['fallbackImg']['id']) ? $attr['fallbackImg']['id'] : '');
2874 // Post Image
2875 if($post_thumb_id || ($attr['fallbackEnable'] && $block_img_id)) {
2876 $post_loop .= ultimate_post()->get_image($block_img_id, $imgSize, '', $title, $attr['imgSrcset'], $attr['imgLazy']);
2877 } else {
2878 $post_loop .= '<img src="'.$dummy_url.'" alt="dummy-img" />';
2879 }
2880 $post_loop .= '</a>';
2881 if (($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
2882 $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
2883 }
2884 if($post_video){
2885 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('videoplay').'</div>';
2886 }
2887 $post_loop .= '</div>';
2888 } else {
2889 if($post_video){
2890 $post_loop .= '<div enableAutoPlay="'.$attr['popupAutoPlay'].'" class="ultp-video-icon">'.ultimate_post()->svg_icon('videoplay').'</div>';
2891 }
2892 $post_loop .= '<div class="ultp-block-image ultp-block-empty-image"></div>';
2893 }
2894 $post_loop .= '<div class="ultp-block-content ultp-block-content-'.$attr['overlayContentPosition'].'">';
2895 $post_loop .= '<div class="ultp-block-content-inner">';
2896 // Category
2897 if (($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
2898 $post_loop .= $category;
2899 }
2900
2901 // Title
2902 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
2903 include ULTP_PATH.'blocks/template/title.php';
2904 }
2905
2906 // Meta
2907 if ($attr['metaPosition'] =='top' ) {
2908 include ULTP_PATH.'blocks/template/meta.php';
2909 }
2910
2911 // Title
2912 if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
2913 include ULTP_PATH.'blocks/template/title.php';
2914 }
2915
2916 // Excerpt
2917 if (($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
2918 $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->get_excerpt($post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit']).'</div>';
2919 }
2920
2921 // Read More
2922 if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
2923 $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>';
2924 }
2925
2926 // Meta
2927 if ($attr['metaPosition'] =='bottom' ) {
2928 include ULTP_PATH.'blocks/template/meta.php';
2929 }
2930 $post_loop .= '</div>';
2931 $post_loop .= '</div>';
2932 $post_loop .= '</div>';
2933 if($post_video && $attr['enablePopup']) {
2934 include ULTP_PATH.'blocks/template/video_popup.php';
2935 }
2936 $post_loop .= '</'.$attr['contentTag'].'>';
2937 $idx ++;
2938 endwhile;
2939 if($attr['queryUnique']) {
2940 $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>";
2941 }
2942
2943 $wraper_after .= '</div>';//ultp-block-items-wrap
2944
2945 // Navigation
2946 if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
2947 include ULTP_PATH.'blocks/template/navigation-after.php';
2948 }
2949
2950 $wraper_after .= '</div>';
2951 $wraper_after .= '</div>';
2952
2953 wp_reset_query();
2954 }else {
2955 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
2956 }
2957
2958 return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2959 }
2960
2961 }