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

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

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