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

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

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