PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.5.2
Post Grid Gutenberg Blocks – PostX v2.5.2
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / Post_Grid_1.php

Post_Grid_1.php in Post Grid Gutenberg Blocks – PostX 2.5.2, at blocks/Post_Grid_1.php

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