PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.6
Post Grid Gutenberg Blocks – PostX v2.5.6
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_List_3.php

Post_List_3.php in Post Grid Gutenberg Blocks – PostX 2.5.6, at blocks/Post_List_3.php

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