PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.41
Post Grid Gutenberg Blocks – PostX v5.0.41
5.0.41 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 All 238 releases
← All changes | blocks/Post_Grid_6.php +400 -2218 2.1.15.0.41 View file →
@@ -1,2265 +1,447 @@
1 1 <?php
2 +
2 3 namespace ULTP\blocks;
3 4
4 -defined('ABSPATH') || exit;
5 +defined( 'ABSPATH' ) || exit;
5 6
6 -class Post_Grid_6{
7 +class Post_Grid_6 {
7 8
8 - public function __construct() {
9 - add_action('init', array($this, 'register'));
10 - }
9 + public function __construct() {
10 + add_action( 'init', array( $this, 'register' ) );
11 + }
11 12
12 - public function get_attributes($default = false){
13 + public function get_attributes() {
13 14
14 - $attributes = array(
15 - 'blockId' => [
16 - 'type' => 'string',
17 - 'default' => '',
18 - ],
15 + return array(
16 + 'blockId' => '',
17 + 'previewImg' => '',
18 + // --------------------------
19 + // Layout
20 + // --------------------------
21 + 'layout' => 'layout1',
19 22
20 - //--------------------------
21 - // Layout
22 - //--------------------------
23 - 'layout' => [
24 - 'type' => 'string',
25 - 'default' => 'layout1',
26 - ],
23 + // --------------------------
24 + // Query Setting
25 + // --------------------------
26 + 'queryQuick' => '',
27 + 'queryNumber' => 5,
28 + 'queryType' => 'post',
29 + 'queryTax' => 'category',
30 + 'queryTaxValue' => '[]',
31 + 'queryRelation' => 'OR',
32 + 'queryOrderBy' => 'date',
33 + 'metaKey' => 'custom_meta_key',
34 + 'queryOrder' => 'desc',
35 + // Include Remove from Version 2.5.4
36 + 'queryInclude' => '',
37 + 'queryExclude' => '',
38 + 'queryAuthor' => '[]',
39 + 'queryOffset' => '0',
40 + 'queryExcludeTerm' => '[]',
41 + 'queryExcludeAuthor' => '[]',
42 + 'querySticky' => true,
43 + 'queryUnique' => '',
44 + 'queryPosts' => '[]',
45 + 'queryCustomPosts' => '[]',
46 + // --------------------------
47 + // General Setting
48 + // --------------------------
49 + 'columnFlip' => false,
50 + 'titleShow' => true,
51 + 'titleStyle' => 'none',
52 + 'headingShow' => true,
53 + 'excerptShow' => true,
54 + 'catShow' => true,
55 + 'metaShow' => true,
56 + 'filterShow' => false,
57 + 'paginationShow' => false,
58 + 'readMore' => false,
59 + 'contentTag' => 'div',
60 + 'openInTab' => false,
61 + 'notFoundMessage' => 'No Post Found',
27 62
28 - //--------------------------
29 - // Query Setting
30 - //--------------------------
31 - 'queryQuick' => [
32 - 'type' => 'string',
33 - 'default' =>'',
34 - ],
35 - 'queryNumber' => [
36 - 'type' => 'string',
37 - 'default' => 5,
38 - ],
39 - 'queryType' => [
40 - 'type' => 'string',
41 - 'default' => 'post'
42 - ],
43 - 'queryTax' => [
44 - 'type' => 'string',
45 - 'default' => 'category'
46 - ],
47 - 'queryCat' => [
48 - 'type' => 'string',
49 - 'default' => '[]',
50 - 'style' => [
51 - (object)[
52 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'category']]
53 - ],
54 - ],
55 - ],
56 - 'queryTag' => [
57 - 'type' => 'string',
58 - 'default' => '[]',
59 - 'style' => [
60 - (object)[
61 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'post_tag']]
62 - ],
63 - ],
64 - ],
65 - 'queryOrderBy' => [
66 - 'type' => 'string',
67 - 'default' => 'date',
68 - ],
69 - 'metaKey' => [
70 - 'type' => 'string',
71 - 'default' => 'custom_meta_key',
72 - 'style' => [
73 - (object)[
74 - 'depends' => [(object)['key' => 'queryOrderBy','condition' => '==','value' => 'meta_value_num']]
75 - ],
76 - ],
77 - ],
78 - 'queryOrder' => [
79 - 'type' => 'string',
80 - 'default' => 'desc',
81 - ],
82 - 'queryInclude' => [
83 - 'type' => 'string',
84 - 'default' => ''
85 - ],
86 - 'queryExclude' => [
87 - 'type' => 'string',
88 - 'default' => ''
89 - ],
90 - 'queryOffset' => [
91 - 'type' => 'string',
92 - 'default' => '0',
93 - ],
94 - //--------------------------
95 - // General Setting
96 - //--------------------------
97 - 'contentAlign' => [
98 - 'type' => 'string',
99 - 'default' => "left",
100 - 'style' => [
101 - (object)[
102 - 'depends' => [
103 - (object)['key'=>'contentAlign','condition'=>'==','value'=>'left'],
104 - ],
105 - 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-start;}'
106 - ],
107 - (object)[
108 - 'depends' => [
109 - (object)['key'=>'contentAlign','condition'=>'==','value'=>'center'],
110 - ],
111 - 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: center;}'
112 - ],
113 - (object)[
114 - 'depends' => [
115 - (object)['key'=>'contentAlign','condition'=>'==','value'=>'right'],
116 - ],
117 - 'selector'=>'{{ULTP}} .ultp-block-content { text-align:{{contentAlign}}; } {{ULTP}} .ultp-block-meta {justify-content: flex-end;}'
118 - ],
119 - ],
120 - ],
121 - 'columnGridGap' => [
122 - 'type' => 'object',
123 - 'default' => (object)['lg' =>'5', 'unit' =>'px'],
124 - 'style' => [
125 - (object)[
126 - 'selector'=>'{{ULTP}} .ultp-block-row { grid-row-gap: {{columnGridGap}}; } {{ULTP}} .ultp-block-row {grid-column-gap: {{columnGridGap}}; }'
127 - ],
128 - ],
129 - ],
130 - 'overlayHeight' => [
131 - 'type' => 'object',
132 - 'default' => (object)['lg' =>'500', 'unit' =>'px'],
133 - 'style' => [
134 - (object)[
135 - 'selector'=>'{{ULTP}} .ultp-block-row.ultp-layout2 .ultp-block-item .ultp-block-content-overlay, {{ULTP}} .ultp-block-row.ultp-layout1 .ultp-block-item .ultp-block-content-overlay {height: calc({{overlayHeight}}/2);} {{ULTP}} .ultp-block-row.ultp-layout1 .ultp-block-item:first-child, {{ULTP}} .ultp-block-row.ultp-layout2 .ultp-block-item:first-child {min-height: {{overlayHeight}};} {{ULTP}} .ultp-block-row {min-height: {{overlayHeight}};} {{ULTP}} .ultp-block-item .ultp-block-image img, {{ULTP}} .ultp-block-item .ultp-block-empty-image, {{ULTP}} .ultp-block-row .ultp-block-item:first-child .ultp-block-image img, {{ULTP}} .ultp-block-row .ultp-block-item:first-child .ultp-block-empty-image {width: 100%; object-fit: cover; height: 100%; } {{ULTP}} .ultp-block-row.ultp-layout1 .ultp-block-item:first-child .ultp-block-image img, {{ULTP}} .ultp-block-row.ultp-layout2 .ultp-block-item:first-child .ultp-block-image img {min-height: {{overlayHeight}};}'
136 - ],
137 - ],
138 - ],
139 - 'columnFlip' => [
140 - 'type' => 'boolean',
141 - 'default' => false,
142 - ],
143 - 'titleShow' => [
144 - 'type' => 'boolean',
145 - 'default' => true,
146 - ],
147 - 'headingShow' => [
148 - 'type' => 'boolean',
149 - 'default' => true,
150 - ],
151 - 'excerptShow' => [
152 - 'type' => 'boolean',
153 - 'default' => true
154 - ],
155 - 'catShow' => [
156 - 'type' => 'boolean',
157 - 'default' => true,
158 - ],
159 - 'metaShow' => [
160 - 'type' => 'boolean',
161 - 'default' => true,
162 - ],
163 - 'showImage' => [
164 - 'type' => 'boolean',
165 - 'default' => true,
166 - ],
167 - 'filterShow' => [
168 - 'type' => 'boolean',
169 - 'default' => false,
170 - ],
171 - 'paginationShow' => [
172 - 'type' => 'boolean',
173 - 'default' => false,
174 - ],
175 - 'readMore' => [
176 - 'type' => 'boolean',
177 - 'default' => false,
178 - ],
179 - 'openInTab' => [
180 - 'type' => 'boolean',
181 - 'default' => false,
182 - ],
63 + // --------------------------
64 + // Heading Setting/Style
65 + // --------------------------
66 + 'headingText' => 'Post Grid #6',
67 + 'headingURL' => '',
68 + 'headingBtnText' => 'View More',
69 + 'headingStyle' => 'style1',
70 + 'headingTag' => 'h2',
71 + 'headingAlign' => 'left',
72 + 'subHeadingShow' => false,
73 + 'subHeadingText' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
183 74
75 + // --------------------------
76 + // Title Setting/Style
77 + // --------------------------
78 + 'titleTag' => 'h3',
79 + 'titleAnimation' => '',
80 + 'titlePosition' => true,
81 + 'titleLength' => 0,
184 82
83 + // --------------------------
84 + // Overlay Content Setting/Style
85 + // --------------------------
86 + 'overlayContentPosition' => 'bottomPosition',
185 87
186 - //--------------------------
187 - // Heading Setting/Style
188 - //--------------------------
189 - 'headingText' => [
190 - 'type' => 'string',
191 - 'default' => 'Post Grid #6',
192 - ],
193 - 'headingURL' => [
194 - 'type' => 'string',
195 - 'default' => '',
196 - ],
197 - 'headingBtnText' => [
198 - 'type' => 'string',
199 - 'default' => 'View More',
200 - 'style' => [
201 - (object)[
202 - 'depends' => [
203 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
204 - ],
205 - ],
206 - ],
207 - ],
208 - 'headingStyle' => [
209 - 'type' => 'string',
210 - 'default' => 'style9',
211 - ],
212 - 'headingTag' => [
213 - 'type' => 'string',
214 - 'default' => 'h2',
215 - ],
216 - 'headingAlign' => [
217 - 'type' => 'string',
218 - 'default' => 'left',
219 - 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-inner, {{ULTP}} .ultp-sub-heading-inner { text-align:{{headingAlign}}; }']]
220 - ],
221 - 'headingTypo' => [
222 - 'type' => 'object',
223 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '20', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none', 'transform' => 'uppercase', 'family'=>'','weight'=>'700'],
224 - 'style' => [(object)['selector' => '{{ULTP}} .ultp-heading-wrap .ultp-heading-inner']]
225 - ],
226 - 'headingColor' => [
227 - 'type' => 'string',
228 - 'default' => '#0e1523',
229 - 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { color:{{headingColor}}; }']],
230 - ],
231 - 'headingBorderBottomColor' => [
232 - 'type' => 'string',
233 - 'default' => '#0e1523',
234 - 'style' => [
235 - (object)[
236 - 'depends' => [
237 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
238 - ],
239 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-color:{{headingBorderBottomColor}}; }'
240 - ],
241 - (object)[
242 - 'depends' => [
243 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
244 - ],
245 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
246 - ],
247 - (object)[
248 - 'depends' => [
249 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
250 - ],
251 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
252 - ],
253 - (object)[
254 - 'depends' => [
255 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
256 - ],
257 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color: {{headingBorderBottomColor}}; }'
258 - ],
259 - (object)[
260 - 'depends' => [
261 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
262 - ],
263 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
264 - ],
265 - (object)[
266 - 'depends' => [
267 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
268 - ],
269 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
270 - ],
271 - (object)[
272 - 'depends' => [
273 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
274 - ],
275 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
276 - ],
277 - (object)[
278 - 'depends' => [
279 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
280 - ],
281 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-color:{{headingBorderBottomColor}}; }'
282 - ],
283 - (object)[
284 - 'depends' => [
285 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
286 - ],
287 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
288 - ],
289 - (object)[
290 - 'depends' => [
291 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
292 - ],
293 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
294 - ],
295 - (object)[
296 - 'depends' => [
297 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
298 - ],
299 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { background-color:{{headingBorderBottomColor}}; }'
300 - ],
301 - (object)[
302 - 'depends' => [
303 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
304 - ],
305 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor}}; }'
306 - ],
307 - (object)[
308 - 'depends' => [
309 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
310 - ],
311 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor}}; }'
312 - ],
313 - (object)[
314 - 'depends' => [
315 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
316 - ],
317 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { border-color:{{headingBorderBottomColor}}; }'
318 - ],
319 - ],
320 - ],
321 - 'headingBorderBottomColor2' => [
322 - 'type' => 'string',
323 - 'default' => '#e5e5e5',
324 - 'style' => [
325 - (object)[
326 - 'depends' => [
327 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
328 - ],
329 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { background-color:{{headingBorderBottomColor2}}; }'
330 - ],
331 - (object)[
332 - 'depends' => [
333 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
334 - ],
335 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
336 - ],
337 - (object)[
338 - 'depends' => [
339 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
340 - ],
341 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
342 - ],
343 - (object)[
344 - 'depends' => [
345 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
346 - ],
347 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { background-color:{{headingBorderBottomColor2}}; }'
348 - ],
349 - ],
350 - ],
351 - 'headingBg' => [
352 - 'type' => 'string',
353 - 'default' => '#1740f5',
354 - 'style' => [
355 - (object)[
356 - 'depends' => [
357 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
358 - ],
359 - 'selector'=>'{{ULTP}} .ultp-heading-style5 .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
360 - ],
361 - (object)[
362 - 'depends' => [
363 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
364 - ],
365 - 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
366 - ],
367 - (object)[
368 - 'depends' => [
369 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
370 - ],
371 - 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
372 - ],
373 - (object)[
374 - 'depends' => [
375 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
376 - ],
377 - 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
378 - ],
379 - (object)[
380 - 'depends' => [
381 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
382 - ],
383 - 'selector'=>'{{ULTP}} .ultp-heading-inner span { background-color:{{headingBg}}; }'
384 - ],
385 - (object)[
386 - 'depends' => [
387 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
388 - ],
389 - 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
390 - ],
391 - (object)[
392 - 'depends' => [
393 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
394 - ],
395 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { border-color:{{headingBg}} transparent transparent; } {{ULTP}} .ultp-heading-inner { background-color:{{headingBg}}; }'
396 - ],
397 - ],
398 - ],
399 - 'headingBg2' => [
400 - 'type' => 'string',
401 - 'default' => '#e5e5e5',
402 - 'style' => [
403 - (object)[
404 - 'depends' => [
405 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
406 - ],
407 - 'selector'=>'{{ULTP}} .ultp-heading-inner { background-color:{{headingBg2}}; }'
408 - ],
409 - ],
410 - ],
411 - 'headingBtnTypo' => [
412 - 'type' => 'object',
413 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' => '14', 'unit' => 'px'], 'height' => (object)['lg' => '', 'unit' => 'px'],'decoration' => 'none','family'=>''],
414 - 'style' => [
415 - (object)[
416 - 'depends' => [
417 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
418 - ],
419 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn'
420 - ],
421 - ],
422 - ],
423 - 'headingBtnColor' => [
424 - 'type' => 'string',
425 - 'default' => '#1740f5',
426 - 'style' => [
427 - (object)[
428 - 'depends' => [
429 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
430 - ],
431 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn { color:{{headingBtnColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn svg { fill:{{headingBtnColor}}; }'
432 - ],
433 - ],
434 - ],
435 - 'headingBtnHoverColor' => [
436 - 'type' => 'string',
437 - 'default' => '#0a31da',
438 - 'style' => [
439 - (object)[
440 - 'depends' => [
441 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style11'],
442 - ],
443 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover { color:{{headingBtnHoverColor}}; } {{ULTP}} .ultp-heading-wrap .ultp-heading-btn:hover svg { fill:{{headingBtnHoverColor}}; }'
444 - ],
445 - ],
446 - ],
447 -
448 - 'headingBorder' => [
449 - 'type' => 'string',
450 - 'default' => '3',
451 - 'style' => [
452 - (object)[
453 - 'depends' => [
454 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
455 - ],
456 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-bottom-width:{{headingBorder}}px; }'
457 - ],
458 - (object)[
459 - 'depends' => [
460 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
461 - ],
462 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
463 - ],
464 - (object)[
465 - 'depends' => [
466 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
467 - ],
468 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { width:{{headingBorder}}px; }'
469 - ],
470 - (object)[
471 - 'depends' => [
472 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style7'],
473 - ],
474 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
475 - ],
476 - (object)[
477 - 'depends' => [
478 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style8'],
479 - ],
480 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
481 - ],
482 - (object)[
483 - 'depends' => [
484 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style9'],
485 - ],
486 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
487 - ],
488 - (object)[
489 - 'depends' => [
490 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style10'],
491 - ],
492 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
493 - ],
494 - (object)[
495 - 'depends' => [
496 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
497 - ],
498 - 'selector'=>'{{ULTP}} .ultp-heading-inner { border-width:{{headingBorder}}px; }'
499 - ],
500 - (object)[
501 - 'depends' => [
502 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style14'],
503 - ],
504 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before, {{ULTP}} .ultp-heading-inner:after { height:{{headingBorder}}px; }'
505 - ],
506 - (object)[
507 - 'depends' => [
508 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style15'],
509 - ],
510 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
511 - ],
512 - (object)[
513 - 'depends' => [
514 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style16'],
515 - ],
516 - 'selector'=>'{{ULTP}} .ultp-heading-inner span:before { height:{{headingBorder}}px; }'
517 - ],
518 - (object)[
519 - 'depends' => [
520 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style17'],
521 - ],
522 - 'selector'=>'{{ULTP}} .ultp-heading-inner:before { height:{{headingBorder}}px; }'
523 - ],
524 - (object)[
525 - 'depends' => [
526 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
527 - ],
528 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
529 - ],
530 - (object)[
531 - 'depends' => [
532 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
533 - ],
534 - 'selector'=>'{{ULTP}} .ultp-heading-inner:after { width:{{headingBorder}}px; }'
535 - ],
536 - ],
537 - ],
538 - 'headingSpacing' => [
539 - 'type' => 'object',
540 - 'default' => (object)['lg'=>30, 'unit'=>'px'],
541 - 'style' => [(object)['selector'=>'{{ULTP}} .ultp-heading-wrap {margin-top:0; margin-bottom:{{headingSpacing}}; }']]
542 - ],
88 + // --------------------------
89 + // Content Setting/Style
90 + // --------------------------
91 + 'showSeoMeta' => false,
92 + 'showSmallExcerpt' => false,
93 + 'showFullExcerpt' => false,
94 + 'excerptLimit' => 20,
543 95
544 - 'headingRadius' => [
545 - 'type' => 'object',
546 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
547 - 'style' => [
548 - (object)[
549 - 'depends' => [
550 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
551 - ],
552 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
553 - ],
554 - (object)[
555 - 'depends' => [
556 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
557 - ],
558 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
559 - ],
560 - (object)[
561 - 'depends' => [
562 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
563 - ],
564 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
565 - ],
566 - (object)[
567 - 'depends' => [
568 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
569 - ],
570 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { border-radius:{{headingRadius}}; }'
571 - ],
572 - (object)[
573 - 'depends' => [
574 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
575 - ],
576 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
577 - ],
578 - (object)[
579 - 'depends' => [
580 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
581 - ],
582 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
583 - ],
584 - (object)[
585 - 'depends' => [
586 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
587 - ],
588 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
589 - ],
590 - (object)[
591 - 'depends' => [
592 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
593 - ],
594 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner { border-radius:{{headingRadius}}; }'
595 - ],
596 - ]
597 - ],
96 + // --------------------------
97 + // Category Setting/Style
98 + // --------------------------'
99 + 'maxTaxonomy' => '30',
100 + 'taxonomy' => 'category',
101 + 'showSmallCat' => false,
102 + 'catStyle' => 'classic',
103 + 'catPosition' => 'aboveTitle',
104 + 'customCatColor' => false,
105 + 'seperatorLink' => admin_url( 'edit-tags.php?taxonomy=category' ),
106 + 'onlyCatColor' => false,
598 107
599 -
600 - 'headingPadding' => [
601 - 'type' => 'object',
602 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
603 - 'style' => [
604 - (object)[
605 - 'depends' => [
606 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style2'],
607 - ],
608 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
609 - ],
610 - (object)[
611 - 'depends' => [
612 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style3'],
613 - ],
614 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
615 - ],
616 - (object)[
617 - 'depends' => [
618 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style4'],
619 - ],
620 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
621 - ],
622 - (object)[
623 - 'depends' => [
624 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style5'],
625 - ],
626 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
627 - ],
628 - (object)[
629 - 'depends' => [
630 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style6'],
631 - ],
632 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
633 - ],
634 - (object)[
635 - 'depends' => [
636 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style12'],
637 - ],
638 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
639 - ],
640 - (object)[
641 - 'depends' => [
642 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style13'],
643 - ],
644 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
645 - ],
646 - (object)[
647 - 'depends' => [
648 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style18'],
649 - ],
650 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
651 - ],
652 - (object)[
653 - 'depends' => [
654 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style19'],
655 - ],
656 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
657 - ],
658 - (object)[
659 - 'depends' => [
660 - (object)['key'=>'headingStyle','condition'=>'==','value'=>'style20'],
661 - ],
662 - 'selector'=>'{{ULTP}} .ultp-heading-wrap .ultp-heading-inner span { padding:{{headingPadding}}; }'
663 - ],
664 - ]
665 - ],
666 - 'subHeadingShow' => [
667 - 'type' => 'boolean',
668 - 'default' => false,
669 - ],
670 - 'subHeadingText' => [
671 - 'type' => 'string',
672 - 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut sem augue. Sed at felis ut enim dignissim sodales.',
673 - 'style' => [
674 - (object)[
675 - 'depends' => [
676 - (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
677 - ],
678 - ],
679 - ],
680 - ],
681 - 'subHeadingTypo' => [
682 - 'type' => 'object',
683 - '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'],
684 - 'style' => [
685 - (object)[
686 - 'depends' => [
687 - (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
688 - ],
689 - 'selector'=>'{{ULTP}} .ultp-sub-heading div'
690 - ],
691 - ],
692 - ],
693 - 'subHeadingColor' => [
694 - 'type' => 'string',
695 - 'default' => '#989898',
696 - 'style' => [
697 - (object)[
698 - 'depends' => [
699 - (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
700 - ],
701 - 'selector'=>'{{ULTP}} .ultp-sub-heading div{ color:{{subHeadingColor}}; }'
702 - ],
703 - ],
704 - ],
705 - 'subHeadingSpacing' => [
706 - 'type' => 'object',
707 - 'default' => (object)['lg' =>(object)['unit' =>'px']],
708 - 'style' => [
709 - (object)[
710 - 'depends' => [
711 - (object)['key'=>'subHeadingShow','condition'=>'==','value'=>true],
712 - ],
713 - 'selector'=>'{{ULTP}} div.ultp-sub-heading-inner{ margin:{{subHeadingSpacing}}; }'
714 - ],
715 - ],
716 - ],
108 + // --------------------------
109 + // Meta Setting/Style
110 + // --------------------------
111 + 'showSmallMeta' => false,
112 + 'metaPosition' => 'top',
113 + 'metaStyle' => 'icon',
114 + 'authorLink' => true,
115 + 'metaSeparator' => 'emptyspace',
116 + 'metaList' => '["metaAuthor","metaDate"]',
117 + 'metaMinText' => 'min read',
118 + 'metaAuthorPrefix' => 'By',
119 + 'metaDateFormat' => 'M j, Y',
120 + 'metaListSmall' => '["metaDate"]',
717 121
122 + // --------------------------
123 + // Image Setting/Style
124 + // --------------------------
125 + 'showImage' => true,
126 + 'imgCrop' => ( ultimate_post()->get_setting( 'disable_image_size' ) == 'yes' ? 'full' : 'ultp_layout_landscape' ),
127 + 'imgCropSmall' => ( ultimate_post()->get_setting( 'disable_image_size' ) == 'yes' ? 'full' : 'ultp_layout_square' ),
128 + 'imgAnimation' => 'zoomIn',
129 + 'imgOverlay' => true,
130 + 'imgOverlayType' => 'simgleGradient',
131 + 'fallbackEnable' => true,
132 + 'fallbackImg' => '',
133 + 'imgSrcset' => false,
134 + 'imgLazy' => false,
718 135
719 - //--------------------------
720 - // Title Setting/Style
721 - //--------------------------
722 - 'titleTag' => [
723 - 'type' => 'string',
724 - 'default' => 'h3',
725 - ],
726 - 'titleAnimation' => [
727 - 'type' => 'string',
728 - 'default' => '',
729 - ],
730 - 'titlePosition' => [
731 - 'type' => 'boolean',
732 - 'default' => true,
733 - ],
734 - 'titleColor' => [
735 - 'type' => 'string',
736 - 'default' => '#fff',
737 - 'style' => [
738 - (object)[
739 - 'depends' => [
740 - (object)['key'=>'titleShow','condition'=>'==','value'=>true],
741 - ],
742 - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a { color:{{titleColor}}; }'
743 - ],
744 - ],
745 - ],
746 - 'titleHoverColor' => [
747 - 'type' => 'string',
748 - 'default' => 'rgba(255,255,255,0.70)',
749 - 'style' => [
750 - (object)[
751 - 'depends' => [
752 - (object)['key'=>'titleShow','condition'=>'==','value'=>true],
753 - ],
754 - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title a:hover { color:{{titleHoverColor}}; }'
755 - ],
756 - ],
757 - ],
758 - 'titleLgTypo' => [
759 - 'type' => 'object',
760 - 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'28', 'unit'=>'px'], 'height'=>(object)[ 'lg'=>'32', 'unit'=>'px'],'decoration'=>'none','family'=>'','weight'=>'700'],
761 - 'style' => [
762 - (object)[
763 - 'depends' => [
764 - (object)['key'=>'titleShow','condition'=>'==','value'=>true],
765 - ],
766 - 'selector'=>'{{ULTP}} .ultp-block-item:first-child .ultp-block-title, {{ULTP}} .ultp-block-item:first-child .ultp-block-title a'
767 - ],
768 - ],
769 - ],
770 - 'titleTypo' => [
771 - 'type' => 'object',
772 - 'default' => (object)['openTypography'=>1,'size'=>(object)['lg'=>'20', 'unit'=>'px'], 'height'=>(object)['lg'=>'26', 'unit'=>'px'], 'decoration'=>'none','family'=>'','weight'=>'600'],
773 - 'style' => [
774 - (object)[
775 - 'depends' => [
776 - (object)['key'=>'titleShow','condition'=>'==','value'=>true],
777 - ],
778 - 'selector'=>'{{ULTP}} .ultp-block-item:not(:first-child) .ultp-block-title, {{ULTP}} .ultp-block-item:not(:first-child) .ultp-block-title a'
779 - ],
780 - ],
781 - ],
782 - 'titlePadding' => [
783 - 'type' => 'object',
784 - 'default' => (object)['lg'=>(object)['top'=>10,'bottom'=>5, 'unit'=>'px']],
785 - 'style' => [
786 - (object)[
787 - 'depends' => [
788 - (object)['key'=>'titleShow','condition'=>'==','value'=>true],
789 - ],
790 - 'selector'=>'{{ULTP}} .ultp-block-content .ultp-block-title { padding:{{titlePadding}}; }'
791 - ],
792 - ],
793 - ],
136 + // --------------------------
137 + // Video Style
138 + // --------------------------
139 + 'vidIconEnable' => true,
140 + 'popupAutoPlay' => true,
141 + 'iconSize' => (object) array(
142 + 'lg' => '40',
143 + 'sm' => '30',
144 + 'xs' => '30',
145 + 'unit' => 'px',
146 + ),
147 + // by default should be off
148 + 'enablePopup' => false,
149 + 'enablePopupTitle' => true,
794 150
795 - //--------------------------
796 - // Overlay Content Setting/Style
797 - //--------------------------
798 - 'overlayContentPosition' => [
799 - 'type' => 'string',
800 - 'default' => 'bottomPosition',
801 - 'style' => [
802 - (object)[
803 - 'depends' => [
804 - (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'topPosition'],
805 - ],
806 - 'selector'=>'{{ULTP}} .ultp-block-content-topPosition { align-items:flex-start; }'
807 - ],
808 - (object)[
809 - 'depends' => [
810 - (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'middlePosition'],
811 - ],
812 - 'selector'=>'{{ULTP}} .ultp-block-content-middlePosition { align-items:center; }'
813 - ],
814 - (object)[
815 - 'depends' => [
816 - (object)['key'=>'overlayContentPosition','condition'=>'==','value'=>'bottomPosition'],
817 - ],
818 - 'selector'=>'{{ULTP}} .ultp-block-content-bottomPosition { align-items:flex-end; }'
819 - ],
820 - ]
821 - ],
822 - 'overlayBgColor' => [
823 - 'type' => 'object',
824 - 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => ''],
825 - 'style' => [
826 - (object)[
827 - 'selector'=>'{{ULTP}} .ultp-block-content-inner'
828 - ],
829 - ],
830 - ],
831 - 'overlayWrapPadding' => [
832 - 'type' => 'object',
833 - 'default' => (object)['lg' =>(object)['top' => '20','bottom' => '20', 'left'=>'20','right'=>'20', 'unit' =>'px']],
834 - 'style' => [
835 - (object)[
836 - 'selector'=>'{{ULTP}} .ultp-block-content-inner { padding: {{overlayWrapPadding}}; }'
837 - ],
838 - ],
839 - ],
151 + // --------------------------
152 + // Read more Setting/Style
153 + // --------------------------
154 + 'showSmallBtn' => false,
155 + 'readMoreText' => '',
156 + 'readMoreIcon' => 'rightArrowLg',
840 157
841 - //--------------------------
842 - // Content Setting/Style
843 - //--------------------------
844 - 'showSmallExcerpt' => [
845 - 'type' => 'boolean',
846 - 'default' => false,
847 - ],
848 - 'showFullExcerpt' => [
849 - 'type' => 'boolean',
850 - 'default' => false,
851 - ],
852 - 'excerptLimit' => [
853 - 'type' => 'string',
854 - 'default' => 20,
855 - 'style' => [
856 - (object)[
857 - 'depends' => [
858 - (object)['key'=>'showFullExcerpt','condition'=>'==','value'=>false],
859 - ],
860 - ],
861 - ],
862 - ],
863 - 'excerptColor' => [
864 - 'type' => 'string',
865 - 'default' => '#fff',
866 - 'style' => [
867 - (object)[
868 - 'depends' => [
869 - (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
870 - ],
871 - 'selector'=>'{{ULTP}} .ultp-block-excerpt { color:{{excerptColor}}; }'
872 - ],
873 - ],
874 - ],
875 - 'excerptTypo' => [
876 - 'type' => 'object',
877 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
878 - 'style' => [
879 - (object)[
880 - 'depends' => [
881 - (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
882 - ],
883 - 'selector'=>'{{ULTP}} .ultp-block-excerpt'
884 - ],
885 - ],
886 - ],
887 - 'excerptPadding' => [
888 - 'type' => 'object',
889 - 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '', 'unit' =>'px']],
890 - 'style' => [
891 - (object)[
892 - 'depends' => [
893 - (object)['key'=>'excerptShow','condition'=>'==','value'=>true],
894 - ],
895 - 'selector'=>'{{ULTP}} .ultp-block-excerpt{ padding: {{excerptPadding}}; }'
896 - ],
897 - ],
898 - ],
158 + // --------------------------
159 + // Filter Setting/Style
160 + // --------------------------
161 + 'filterBelowTitle' => false,
162 + 'filterType' => 'category',
163 + 'filterText' => 'all',
164 + 'filterValue' => '[]',
165 + 'filterMobile' => true,
166 + 'filterMobileText' => 'More',
899 167
900 - //--------------------------
901 - // Category Setting/Style
902 - //--------------------------
903 - 'showSmallCat' => [
904 - 'type' => 'boolean',
905 - 'default' => false,
906 - ],
907 - 'catStyle' => [
908 - 'type' => 'string',
909 - 'default' => 'classic',
910 - ],
911 - 'catPosition' => [
912 - 'type' => 'string',
913 - 'default' => 'aboveTitle',
914 - ],
915 - 'customCatColor' => [
916 - 'type' => 'boolean',
917 - 'default' => false,
918 - ],
919 - 'seperatorLink' => [
920 - 'type' => 'string',
921 - 'default' => admin_url( 'edit-tags.php?taxonomy=category' ),
922 - 'style' => [
923 - (object)[
924 - 'depends' => [
925 - (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
926 - ]
927 - ]
928 - ]
929 - ],
930 - 'onlyCatColor' => [
931 - 'type' => 'boolean',
932 - 'default' => false,
933 - 'style' => [
934 - (object)[
935 - 'depends' => [
936 - (object)['key'=>'customCatColor','condition'=>'==','value'=>true],
937 - ]
938 - ]
939 - ]
940 - ],
941 - 'catLineWidth' => [
942 - 'type' => 'object',
943 - 'default' => (object)['lg'=>'20'],
944 - 'style' => [
945 - (object)[
946 - 'depends' => [
947 - (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
948 - ],
949 - '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; }'
950 - ],
951 - ]
952 - ],
953 - 'catLineSpacing' => [
954 - 'type' => 'object',
955 - 'default' => (object)['lg'=>'30'],
956 - 'style' => [
957 - (object)[
958 - 'depends' => [
959 - (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
960 - ],
961 - 'selector' => '{{ULTP}} .ultp-category-borderBoth .ultp-category-in { padding-left: {{catLineSpacing}}px; padding-right: {{catLineSpacing}}px; }
962 - {{ULTP}} .ultp-category-borderLeft .ultp-category-in { padding-left: {{catLineSpacing}}px; }
963 - {{ULTP}} .ultp-category-borderRight .ultp-category-in { padding-right:{{catLineSpacing}}px; }'
964 - ],
965 - ]
966 - ],
967 - 'catLineColor' => [
968 - 'type' => 'string',
969 - 'default' => '#000',
970 - 'style' => [
971 - (object)[
972 - 'depends' => [
973 - (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
974 - ],
975 - '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}}; }'
976 - ],
977 - ]
978 - ],
979 - 'catLineHoverColor' => [
980 - 'type' => 'string',
981 - 'default' => '#1740f5',
982 - 'style' => [
983 - (object)[
984 - 'depends' => [
985 - (object)['key'=>'catStyle','condition'=>'!=','value'=>'classic'],
986 - ],
987 - '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}}; }'
988 - ],
989 - ]
990 - ],
991 - 'catTypo' => [
992 - 'type' => 'object',
993 - 'default' => (object)['openTypography' => 1, 'size' => (object)['lg' =>11, 'unit' =>'px'], 'height' => (object)['lg' =>15, 'unit' =>'px'], 'spacing' => (object)['lg' =>1, 'unit' =>'px'], 'transform' => 'uppercase', 'weight' => '500', 'decoration' => 'none','family'=>'' ],
994 - 'style' => [
995 - (object)[
996 - 'depends' => [
997 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
998 - ],
999 - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a'
1000 - ],
1001 - ],
1002 - ],
1003 - 'catColor' => [
1004 - 'type' => 'string',
1005 - 'default' => '#fff',
1006 - 'style' => [
1007 - (object)[
1008 - 'depends' => [
1009 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1010 - (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1011 - ],
1012 - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }'
1013 - ],
1014 - ],
1015 - ],
1016 - 'catBgColor' => [
1017 - 'type' => 'object',
1018 - 'default' => (object)['openColor' => 1,'type' => 'color', 'color' => '#000'],
1019 - 'style' => [
1020 - (object)[
1021 - 'depends' => [
1022 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1023 - (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1024 - ],
1025 - 'selector'=>'{{ULTP}} .ultp-category-grid a'
1026 - ],
1027 - ],
1028 - ],
1029 - 'catBorder' => [
1030 - 'type' => 'object',
1031 - 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1032 - 'style' => [
1033 - (object)[
1034 - 'depends' => [
1035 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1036 - (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1037 - ],
1038 - 'selector'=>'{{ULTP}} .ultp-category-grid a'
1039 - ],
1040 - ],
1041 - ],
1042 - 'catRadius' => [
1043 - 'type' => 'object',
1044 - 'default' => (object)['lg' =>'2', 'unit' =>'px'],
1045 - 'style' => [
1046 - (object)[
1047 - 'depends' => [
1048 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1049 - (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1050 - ],
1051 - 'selector'=>'{{ULTP}} .ultp-category-grid a { border-radius:{{catRadius}}; }'
1052 - ],
1053 - ],
1054 - ],
1055 - 'catHoverColor' => [
1056 - 'type' => 'string',
1057 - 'default' => '#fff',
1058 - 'style' => [
1059 - (object)[
1060 - 'depends' => [
1061 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1062 - (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1063 - ],
1064 - 'selector'=>'{{ULTP}} .ultp-category-grid a:hover { color:{{catHoverColor}}; }'
1065 - ],
1066 - ],
1067 - ],
1068 - 'catBgHoverColor' => [
1069 - 'type' => 'object',
1070 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5'],
1071 - 'style' => [
1072 - (object)[
1073 - 'depends' => [
1074 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1075 - (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1076 - ],
1077 - 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1078 - ],
1079 - ],
1080 - ],
1081 - 'catHoverBorder' => [
1082 - 'type' => 'object',
1083 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1084 - 'style' => [
1085 - (object)[
1086 - 'depends' => [
1087 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1088 - (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1089 - ],
1090 - 'selector'=>'{{ULTP}} .ultp-category-grid a:hover'
1091 - ],
1092 - ],
1093 - ],
1094 - 'catSacing' => [
1095 - 'type' => 'object',
1096 - 'default' => (object)['lg' =>(object)['top' => 5,'bottom' => 5,'left' => 0,'right' => 0, 'unit' =>'px']],
1097 - 'style' => [
1098 - (object)[
1099 - 'depends' => [
1100 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1101 - ],
1102 - 'selector'=>'{{ULTP}} .ultp-category-grid { margin:{{catSacing}}; }'
1103 - ],
1104 - ],
1105 - ],
1106 - 'catPadding' => [
1107 - 'type' => 'object',
1108 - 'default' => (object)['lg' =>(object)['top' => 3,'bottom' => 3,'left' => 7,'right' => 7, 'unit' =>'px']],
1109 - 'style' => [
1110 - (object)[
1111 - 'depends' => [
1112 - (object)['key'=>'catShow','condition'=>'==','value'=>true],
1113 - (object)['key'=>'onlyCatColor','condition'=>'!=','value'=>true],
1114 - ],
1115 - 'selector'=>'{{ULTP}} .ultp-category-grid a { padding:{{catPadding}}; }'
1116 - ],
1117 - ],
1118 - ],
168 + // --------------------------
169 + // Pagination Setting/Style
170 + // --------------------------
171 + 'paginationType' => 'navigation',
172 + 'paginationNav' => 'textArrow',
173 + 'navPosition' => 'topRight',
1119 174
1120 - //--------------------------
1121 - // Meta Setting/Style
1122 - //--------------------------
1123 - 'showSmallMeta' => [
1124 - 'type' => 'boolean',
1125 - 'default' => false,
1126 - ],
1127 - 'metaPosition' => [
1128 - 'type' => 'string',
1129 - 'default' => 'top',
1130 - ],
1131 - 'metaStyle' => [
1132 - 'type' => 'string',
1133 - 'default' => 'icon',
1134 - ],
1135 - 'metaSeparator' => [
1136 - 'type' => 'string',
1137 - 'default' => 'emptyspace',
1138 - ],
1139 - 'metaList' => [
1140 - 'type' => 'string',
1141 - 'default' => '["metaAuthor","metaDate"]',
1142 - ],
1143 - 'metaListSmall' => [
1144 - 'type' => 'string',
1145 - 'default' => '["metaDate"]',
1146 - ],
1147 - 'metaTypo' => [
1148 - 'type' => 'object',
1149 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>13, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1150 - 'style' => [
1151 - (object)[
1152 - 'depends' => [
1153 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1154 - ],
1155 - 'selector'=>'{{ULTP}} .ultp-block-meta span, {{ULTP}} .ultp-block-item .ultp-block-meta span a'
1156 - ],
1157 - ],
1158 - ],
1159 - 'metaColor' => [
1160 - 'type' => 'string',
1161 - 'default' => 'rgba(255,255,255,0.90)',
1162 - 'style' => [
1163 - (object)[
1164 - 'depends' => [
1165 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1166 - ],
1167 - 'selector'=>'{{ULTP}} .ultp-block-meta span { color: {{metaColor}}; } {{ULTP}} .ultp-block-meta span svg { fill: {{metaColor}}; } {{ULTP}} .ultp-block-meta span a { color: {{metaColor}}; }{{ULTP}} .ultp-block-meta-dot span:after { background:{{metaColor}}; } {{ULTP}} .ultp-block-meta span:after { color:{{metaColor}}; }'
1168 - ],
1169 - ],
1170 - ],
1171 - 'metaHoverColor' => [
1172 - 'type' => 'string',
1173 - 'default' => '#1740f5',
1174 - 'style' => [
1175 - (object)[
1176 - 'depends' => [
1177 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1178 - ],
1179 - 'selector'=>'{{ULTP}} .ultp-block-meta span a:hover { color: {{metaHoverColor}}; }'
1180 - ],
1181 - ],
1182 - ],
1183 - 'metaSpacing' => [
1184 - 'type' => 'object',
1185 - 'default' => (object)['lg' =>'10', 'unit' =>'px'],
1186 - 'style' => [
1187 - (object)[
1188 - 'depends' => [
1189 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1190 - ],
1191 - '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}}; }'
1192 - ],
1193 - ],
1194 - ],
1195 - 'metaMargin' => [
1196 - 'type' => 'object',
1197 - 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '', 'left'=>'','right'=>'', 'unit' =>'px']],
1198 - 'style' => [
1199 - (object)[
1200 - 'depends' => [
1201 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1202 - ],
1203 - 'selector'=>'{{ULTP}} .ultp-block-meta { margin:{{metaMargin}}; }'
1204 - ],
1205 - ],
1206 - ],
1207 - 'metaPadding' => [
1208 - 'type' => 'object',
1209 - 'default' => (object)['lg' =>(object)['top' => '5','bottom' => '5', 'left'=>'','right'=>'', 'unit' =>'px']],
1210 - 'style' => [
1211 - (object)[
1212 - 'depends' => [
1213 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1214 - ],
1215 - 'selector'=>'{{ULTP}} .ultp-block-meta { padding:{{metaPadding}}; }'
1216 - ],
1217 - ],
1218 - ],
1219 - 'metaBorder' => [
1220 - 'type' => 'object',
1221 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => '0', 'bottom' => '0', 'left' => '0'],'color' => '#009fd4','type' => 'solid'],
1222 - 'style' => [
1223 - (object)[
1224 - 'depends' => [
1225 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1226 - ],
1227 - 'selector'=>'{{ULTP}} .ultp-block-meta'
1228 - ],
1229 - ],
1230 - ],
1231 - 'metaBg' => [
1232 - 'type' => 'string',
1233 - 'default' => '',
1234 - 'style' => [
1235 - (object)[
1236 - 'depends' => [
1237 - (object)['key'=>'metaShow','condition'=>'==','value'=>true],
1238 - ],
1239 - 'selector'=>'{{ULTP}} .ultp-block-meta { background:{{metaBg}}; }'
1240 - ],
1241 - ],
1242 - ],
175 + // --------------------------
176 + // Wrapper Style
177 + // --------------------------
178 + 'advanceId' => '',
179 + 'advanceZindex' => '',
180 + 'hideExtraLarge' => false,
181 + 'hideTablet' => false,
182 + 'hideMobile' => false,
183 + 'advanceCss' => '',
184 + 'currentPostId' => '',
1243 185
1244 - //--------------------------
1245 - // Image Setting/Style
1246 - //--------------------------
1247 - 'imgAnimation' => [
1248 - 'type' => 'string',
1249 - 'default' => 'zoomIn',
1250 - ],
1251 - 'imgGrayScale' => [
1252 - 'type' => 'object',
1253 - 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1254 - 'style' => [
1255 - (object)[
1256 - 'depends' => [
1257 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1258 - ],
1259 - 'selector'=>'{{ULTP}} .ultp-block-image img { filter: grayscale({{imgGrayScale}}); }'
1260 - ],
1261 - ],
1262 - ],
1263 - 'imgHoverGrayScale' => [
1264 - 'type' => 'object',
1265 - 'default' => (object)['lg' =>'0', 'unit' =>'%'],
1266 - 'style' => [
1267 - (object)[
1268 - 'depends' => [
1269 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1270 - ],
1271 - 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-image img { filter: grayscale({{imgHoverGrayScale}}); }'
1272 - ],
1273 - ],
1274 - ],
1275 - 'imgRadius' => [
1276 - 'type' => 'object',
1277 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1278 - 'style' => [
1279 - (object)[
1280 - 'depends' => [
1281 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1282 - ],
1283 - 'selector'=>'{{ULTP}} .ultp-block-content-wrap, {{ULTP}} .ultp-block-image { border-radius:{{imgRadius}}; }'
1284 - ],
1285 - ],
1286 - ],
1287 - 'imgHoverRadius' => [
1288 - 'type' => 'object',
1289 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1290 - 'style' => [
1291 - (object)[
1292 - 'depends' => [
1293 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1294 - ],
1295 - 'selector'=>'{{ULTP}} .ultp-block-content-wrap:hover, {{ULTP}} .ultp-block-content-wrap:hover .ultp-block-image { border-radius:{{imgHoverRadius}}; }'
1296 - ],
1297 - ],
1298 - ],
1299 - 'imgShadow' => [
1300 - 'type' => 'object',
1301 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1302 - 'style' => [
1303 - (object)[
1304 - 'depends' => [
1305 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1306 - ],
1307 - 'selector'=>'{{ULTP}} .ultp-block-content-overlay'
1308 - ],
1309 - ],
1310 - ],
1311 - 'imgHoverShadow' => [
1312 - 'type' => 'object',
1313 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1314 - 'style' => [
1315 - (object)[
1316 - 'depends' => [
1317 - (object)['key'=>'showImage','condition'=>'==','value'=>true],
1318 - ],
1319 - 'selector'=>'{{ULTP}} .ultp-block-item:hover .ultp-block-content-overlay'
1320 - ],
1321 - ],
1322 - ],
1323 - 'imgOverlay' => [
1324 - 'type' => 'boolean',
1325 - 'default' => true,
1326 - ],
1327 - 'imgOverlayType' => [
1328 - 'type' => 'string',
1329 - 'default' => 'simgleGradient',
1330 - 'style' => [
1331 - (object)[
1332 - 'depends' => [
1333 - (object)['key'=>'imgOverlay','condition'=>'==','value'=>true],
1334 - ]
1335 - ],
1336 - ]
1337 - ],
1338 - 'overlayColor' => [
1339 - 'type' => 'object',
1340 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1341 - 'style' => [
1342 - (object)[
1343 - 'depends' => [
1344 - (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1345 - ],
1346 - 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before'
1347 - ],
1348 - ],
186 + // --------------------------------
187 + // Advance Filter Block Compatibility
188 + // --------------------------------
189 + 'advFilterEnable' => false,
190 + 'querySearch' => '',
1349 191
1350 - ],
1351 - 'imgOpacity' => [
1352 - 'type' => 'string',
1353 - 'default' => .7,
1354 - 'style' => [
1355 - (object)[
1356 - 'depends' => [
1357 - (object)['key'=>'imgOverlayType','condition'=>'==','value'=>'custom'],
1358 - ],
1359 - 'selector'=>'{{ULTP}} .ultp-block-image-custom > a::before { opacity: {{imgOpacity}}; }'
1360 - ],
1361 - ],
1362 - ],
192 + // --------------------------------
193 + // Pagination block compatibility
194 + // --------------------------------
195 + 'advPaginationEnable' => false,
196 + 'paginationAjax' => true,
197 + 'paginationText' => 'Previous|Next',
198 + 'loadMoreText' => 'Load More',
199 + 'queryNumPosts' => (object) array( 'lg' => 5 ),
200 + 'queryNumber2' => 6,
201 + 'notFirstLoad' => false,
202 + 'defQueryTax' => array(),
203 + 'advRelation' => 'AND',
1363 204
1364 - //--------------------------
1365 - // Read more Setting/Style
1366 - //--------------------------
1367 - 'showSmallBtn' => [
1368 - 'type' => 'boolean',
1369 - 'default' => false,
1370 - ],
1371 - 'readMoreText' => [
1372 - 'type' => 'string',
1373 - 'default' => ''
1374 - ],
1375 - 'readMoreIcon' => [
1376 - 'type' => 'string',
1377 - 'default' => 'rightArrowLg',
1378 - ],
1379 - 'readMoreTypo' => [
1380 - 'type' => 'object',
1381 - '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'=>'' ],
1382 - 'style' => [
1383 - (object)[
1384 - 'depends' => [
1385 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1386 - ],
1387 - 'selector'=>'{{ULTP}} .ultp-block-item .ultp-block-readmore a'
1388 - ],
1389 - ],
1390 - ],
1391 - 'readMoreIconSize' => [
1392 - 'type' => 'object',
1393 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1394 - 'style' => [
1395 - (object)[
1396 - 'depends' => [
1397 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1398 - ],
1399 - 'selector' => '{{ULTP}} .ultp-block-readmore svg{ width:{{readMoreIconSize}}; }'
1400 - ],
1401 - ]
1402 - ],
1403 - 'readMoreColor' => [
1404 - 'type' => 'string',
1405 - 'default' => '#fff',
1406 - 'style' => [
1407 - (object)[
1408 - 'depends' => [
1409 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1410 - ],
1411 - 'selector'=>'{{ULTP}} .ultp-block-readmore a { color:{{readMoreColor}}; } {{ULTP}} .ultp-block-readmore a svg { fill:{{readMoreColor}}; }'
1412 - ],
1413 - ],
1414 - ],
1415 - 'readMoreBgColor' => [
1416 - 'type' => 'object',
1417 - 'default' => (object)['openColor' => 0,'type' => 'color', 'color' => ''],
1418 - 'style' => [
1419 - (object)[
1420 - 'depends' => [
1421 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1422 - ],
1423 - 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1424 - ],
1425 - ],
1426 - ],
1427 - 'readMoreBorder' => [
1428 - 'type' => 'object',
1429 - 'default' => (object)['openBorder'=>0, 'width' => (object)[ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid' ],
1430 - 'style' => [
1431 - (object)[
1432 - 'depends' => [
1433 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1434 - ],
1435 - 'selector'=>'{{ULTP}} .ultp-block-readmore a'
1436 - ],
1437 - ],
1438 - ],
1439 - 'readMoreRadius' => [
1440 - 'type' => 'object',
1441 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1442 - 'style' => [
1443 - (object)[
1444 - 'depends' => [
1445 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1446 - ],
1447 - 'selector'=>'{{ULTP}} .ultp-block-readmore a { border-radius:{{readMoreRadius}}; }'
1448 - ],
1449 - ],
1450 - ],
1451 - 'readMoreHoverColor' => [
1452 - 'type' => 'string',
1453 - 'default' => 'rgba(255,255,255,0.80)',
1454 - 'style' => [
1455 - (object)[
1456 - 'depends' => [
1457 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1458 - ],
1459 - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { color:{{readMoreHoverColor}}; } {{ULTP}} .ultp-block-readmore a:hover svg { fill:{{readMoreHoverColor}}; }'
1460 - ],
1461 - ],
1462 - ],
1463 - 'readMoreBgHoverColor' => [
1464 - 'type' => 'object',
1465 - 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => ''],
1466 - 'style' => [
1467 - (object)[
1468 - 'depends' => [
1469 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1470 - ],
1471 - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1472 - ],
1473 - ],
1474 - ],
1475 - 'readMoreHoverBorder' => [
1476 - 'type' => 'object',
1477 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1478 - 'style' => [
1479 - (object)[
1480 - 'depends' => [
1481 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1482 - ],
1483 - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover'
1484 - ],
1485 - ],
1486 - ],
1487 - 'readMoreHoverRadius' => [
1488 - 'type' => 'object',
1489 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1490 - 'style' => [
1491 - (object)[
1492 - 'depends' => [
1493 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1494 - ],
1495 - 'selector'=>'{{ULTP}} .ultp-block-readmore a:hover { border-radius:{{readMoreHoverRadius}}; }'
1496 - ],
1497 - ],
1498 - ],
1499 - 'readMoreSacing' => [
1500 - 'type' => 'object',
1501 - 'default' => (object)['lg' =>(object)['top' => 15,'bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1502 - 'style' => [
1503 - (object)[
1504 - 'depends' => [
1505 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1506 - ],
1507 - 'selector'=>'{{ULTP}} .ultp-block-readmore { margin:{{readMoreSacing}}; }'
1508 - ],
1509 - ],
1510 - ],
1511 - 'readMorePadding' => [
1512 - 'type' => 'object',
1513 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '','right' => '', 'unit' =>'px']],
1514 - 'style' => [
1515 - (object)[
1516 - 'depends' => [
1517 - (object)['key'=>'readMore','condition'=>'==','value'=>true],
1518 - ],
1519 - 'selector'=>'{{ULTP}} .ultp-block-readmore a { padding:{{readMorePadding}}; }'
1520 - ],
1521 - ],
1522 - ],
205 + /*
206 + ============================
207 + Dynamic Content
208 + ============================*/
209 + 'dcEnabled' => false,
210 + 'dcFields' => array(),
211 + 'dcSize' => 8,
212 + );
213 + }
1523 214
1524 - //--------------------------
1525 - // Filter Setting/Style
1526 - //--------------------------
1527 - 'filterType' => [
1528 - 'type' => 'string',
1529 - 'default' => 'category'
1530 - ],
1531 - 'filterText' => [
1532 - 'type' => 'string',
1533 - 'default' => 'all'
1534 - ],
1535 - 'filterCat' => [
1536 - 'type' => 'string',
1537 - 'default' => '[]',
1538 - 'style' => [
1539 - (object)[
1540 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']]
1541 - ],
1542 - ],
1543 - ],
1544 - 'filterTag' => [
1545 - 'type' => 'string',
1546 - 'default' => '[]',
1547 - 'style' => [
1548 - (object)[
1549 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']]
1550 - ],
1551 - ],
1552 - ],
1553 - 'fliterTypo' => [
1554 - 'type' => 'object',
1555 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
1556 - 'style' => [
1557 - (object)[
1558 - 'depends' => [
1559 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1560 - ],
1561 - 'selector'=>'{{ULTP}} .ultp-filter-navigation .ultp-filter-wrap ul li a'
1562 - ],
1563 - ],
1564 - ],
1565 - 'filterColor' => [
1566 - 'type' => 'string',
1567 - 'default' => '#0e1523',
1568 - 'style' => [
1569 - (object)[
1570 - 'depends' => [
1571 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1572 - ],
1573 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a { color:{{filterColor}}; }'
1574 - ],
1575 - ],
1576 - ],
1577 - 'filterHoverColor' => [
1578 - 'type' => 'string',
1579 - 'default' => '#828282',
1580 - 'style' => [
1581 - (object)[
1582 - 'depends' => [
1583 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1584 - ],
1585 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li a:hover, {{ULTP}} .ultp-filter-wrap ul li a.filter-active { color:{{filterHoverColor}}; }'
1586 - ],
1587 - ],
1588 - ],
1589 - 'filterBgColor' => [
1590 - 'type' => 'string',
1591 - 'style' => [
1592 - (object)[
1593 - 'depends' => [
1594 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1595 - ],
1596 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { background:{{filterBgColor}}; }'
1597 - ],
1598 - ],
1599 - ],
1600 - 'filterHoverBgColor' => [
1601 - 'type' => 'string',
1602 - 'style' => [
1603 - (object)[
1604 - 'depends' => [
1605 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1606 - ],
1607 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover, {{ULTP}} .ultp-filter-wrap ul li.filter-item > a.filter-active { background:{{filterHoverBgColor}}; }'
1608 - ],
1609 - ],
1610 - ],
1611 - 'filterBorder' => [
1612 - 'type' => 'object',
1613 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1614 - 'style' => [
1615 - (object)[
1616 - 'depends' => [
1617 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1618 - ],
1619 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a'
1620 - ],
1621 - ],
1622 - ],
1623 - 'filterHoverBorder' => [
1624 - 'type' => 'object',
1625 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1626 - 'style' => [
1627 - (object)[
1628 - 'depends' => [
1629 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1630 - ],
1631 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a:hover'
1632 - ],
1633 - ],
1634 - ],
1635 - 'filterRadius' => [
1636 - 'type' => 'object',
1637 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1638 - 'style' => [
1639 - (object)[
1640 - 'depends' => [
1641 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1642 - ],
1643 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { border-radius:{{filterRadius}}; }'
1644 - ],
1645 - ],
1646 - ],
1647 - 'fliterSpacing' => [
1648 - 'type' => 'object',
1649 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'right' => '', 'left' => '20', 'unit' =>'px']],
1650 - 'style' => [
1651 - (object)[
1652 - 'depends' => [
1653 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1654 - ],
1655 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li { margin:{{fliterSpacing}}; }'
1656 - ],
1657 - ],
1658 - ],
1659 - 'fliterPadding' => [
1660 - 'type' => 'object',
1661 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
1662 - 'style' => [
1663 - (object)[
1664 - 'depends' => [
1665 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1666 - ],
1667 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.filter-item > a { padding:{{fliterPadding}}; }'
1668 - ],
1669 - ],
1670 - ],
1671 - 'filterDropdownColor' => [
1672 - 'type' => 'string',
1673 - 'default' => '#0e1523',
1674 - 'style' => [
1675 - (object)[
1676 - 'depends' => [
1677 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1678 - ],
1679 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a { color:{{filterDropdownColor}}; }'
1680 - ],
1681 - ],
1682 - ],
1683 - 'filterDropdownHoverColor' => [
1684 - 'type' => 'string',
1685 - 'default' => '#1740f5',
1686 - 'style' => [
1687 - (object)[
1688 - 'depends' => [
1689 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1690 - ],
1691 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup li a:hover { color:{{filterDropdownHoverColor}}; }'
1692 - ],
1693 - ],
1694 - ],
1695 - 'filterDropdownBg' => [
1696 - 'type' => 'string',
1697 - 'default' => '#fff',
1698 - 'style' => [
1699 - (object)[
1700 - 'depends' => [
1701 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1702 - ],
1703 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { background:{{filterDropdownBg}}; }'
1704 - ],
1705 - ],
1706 - ],
1707 - 'filterDropdownRadius' => [
1708 - 'type' => 'object',
1709 - 'default' => (object)['lg'=>'0'],
1710 - 'style' => [
1711 - (object)[
1712 - 'depends' => [
1713 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1714 - ],
1715 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { border-radius:{{filterDropdownRadius}}; }'
1716 - ],
1717 - ],
1718 - ],
1719 - 'filterDropdownPadding' => [
1720 - 'type' => 'object',
1721 - 'default' => (object)['lg' =>(object)['top' => '15','bottom' => '15','left' => '20','right' => '20', 'unit' =>'px']],
1722 - 'style' => [
1723 - (object)[
1724 - 'depends' => [
1725 - (object)['key'=>'filterShow','condition'=>'==','value'=>true],
1726 - ],
1727 - 'selector'=>'{{ULTP}} .ultp-filter-wrap ul li.flexMenu-viewMore .flexMenu-popup { padding:{{filterDropdownPadding}}; }'
1728 - ],
1729 - ],
1730 - ],
215 + public function register() {
216 + register_block_type(
217 + 'ultimate-post/post-grid-6',
218 + array(
219 + 'editor_script' => 'ultp-blocks-editor-script',
220 + 'editor_style' => 'ultp-blocks-editor-css',
221 + 'render_callback' => array( $this, 'content' ),
222 + )
223 + );
224 + }
1731 225
1732 - //--------------------------
1733 - // Pagination Setting/Style
1734 - //--------------------------
1735 - 'paginationType' => [
1736 - 'type' => 'string',
1737 - 'default' => 'navigation',
1738 - ],
1739 - 'paginationNav' => [
1740 - 'type' => 'string',
1741 - 'default' => 'textArrow',
1742 - 'style' => [
1743 - (object)[
1744 - 'depends' => [
1745 - (object)['key'=>'paginationType','condition'=>'==','value'=>'pagination'],
1746 - ],
1747 - ],
1748 - ],
1749 - ],
1750 - 'navPosition' => [
1751 - 'type' => 'string',
1752 - 'default' => 'topRight',
1753 - 'style' => [
1754 - (object)[
1755 - 'depends' => [
1756 - (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1757 - ],
1758 - ],
1759 - ],
1760 - ],
1761 - 'pagiAlign' => [
1762 - 'type' => 'object',
1763 - 'default' => (object)['lg' =>'left'],
1764 - 'style' => [
1765 - (object)[
1766 - 'depends' => [
1767 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1768 - ],
1769 - 'selector'=>'{{ULTP}} .ultp-loadmore, {{ULTP}} .ultp-next-prev-wrap ul, {{ULTP}} .ultp-pagination { text-align:{{pagiAlign}}; }'
1770 - ],
1771 - ],
1772 - ],
1773 - 'pagiTypo' => [
1774 - 'type' => 'object',
1775 - 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>20, 'unit' =>'px'], 'decoration' => 'none','family'=>''],
1776 - 'style' => [
1777 - (object)[
1778 - 'depends' => [
1779 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1780 - ],
1781 - 'selector'=>'{{ULTP}} .ultp-pagination-wrap .ultp-pagination li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
1782 - ],
1783 - ],
226 + public function content( $attr, $noAjax ) {
227 + $attr = wp_parse_args( $attr, $this->get_attributes() );
228 + global $unique_ID;
1784 229
1785 - ],
1786 - 'pagiArrowSize' => [
1787 - 'type' => 'object',
1788 - 'default' => (object)['lg'=>'14'],
1789 - 'style' => [
1790 - (object)[
1791 - 'depends' => [
1792 - (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1793 - ],
1794 - 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul li a svg { width:{{pagiArrowSize}}px; }'
1795 - ],
1796 - ],
230 + if ( ! $noAjax ) {
231 + $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
232 + $attr['paged'] = $paged ? $paged : 1;
233 + }
234 + if ( $attr['queryUnique'] && isset( $attr['savedQueryUnique'] ) ) {
235 + $unique_ID = $attr['savedQueryUnique'];
236 + }
1797 237
1798 - ],
1799 - 'pagiColor' => [
1800 - 'type' => 'string',
1801 - 'default' => '#fff',
1802 - 'style' => [
1803 - (object)[
1804 - 'depends' => [
1805 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1806 - ],
1807 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action { color:{{pagiColor}}; } {{ULTP}} .ultp-next-prev-wrap ul li a svg, {{ULTP}} .ultp-loadmore .ultp-loadmore-action svg { fill:{{pagiColor}}; } {{ULTP}} .ultp-pagination li a svg { fill:{{pagiColor}}; }'
1808 - ],
1809 - ],
1810 - ],
1811 - 'pagiBgColor' => [
1812 - 'type' => 'object',
1813 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#0e1523'],
1814 - 'style' => [
1815 - (object)[
1816 - 'depends' => [
1817 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1818 - ],
1819 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore .ultp-loadmore-action'
1820 - ],
1821 - ],
1822 - ],
1823 - 'pagiBorder' => [
1824 - 'type' => 'object',
1825 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1826 - 'style' => [
1827 - (object)[
1828 - 'depends' => [
1829 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1830 - ],
1831 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
1832 - ],
1833 - ],
1834 - ],
1835 - 'pagiShadow' => [
1836 - 'type' => 'object',
1837 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1838 - 'style' => [
1839 - (object)[
1840 - 'depends' => [
1841 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1842 - ],
1843 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action'
1844 - ],
1845 - ],
1846 - ],
1847 - 'pagiRadius' => [
1848 - 'type' => 'object',
1849 - 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
1850 - 'style' => [
1851 - (object)[
1852 - 'depends' => [
1853 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1854 - ],
1855 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { border-radius:{{pagiRadius}}; }'
1856 - ],
1857 - ],
1858 - ],
1859 - 'pagiHoverColor' => [
1860 - 'type' => 'string',
1861 - 'default' => '#fff',
1862 - 'style' => [
1863 - (object)[
1864 - 'depends' => [
1865 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1866 - ],
1867 - 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { color:{{pagiHoverColor}}; } {{ULTP}} .ultp-pagination li a:hover svg, {{ULTP}} .ultp-loadmore .ultp-loadmore-action:hover svg { fill:{{pagiHoverColor}}; } {{ULTP}} .ultp-next-prev-wrap ul li a:hover svg { fill:{{pagiHoverColor}}; } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { color:{{pagiHoverColor}};}}'
1868 - ],
1869 - ],
1870 - ],
1871 - 'pagiHoverbg' => [
1872 - 'type' => 'object',
1873 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1],
1874 - 'style' => [
1875 - (object)[
1876 - 'depends' => [
1877 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1878 - ],
1879 - 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { {{pagiHoverbg}} } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { {{pagiHoverbg}} }}'
1880 - ],
1881 - ],
1882 - ],
1883 - 'pagiHoverBorder' => [
1884 - 'type' => 'object',
1885 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1886 - 'style' => [
1887 - (object)[
1888 - 'depends' => [
1889 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1890 - ],
1891 - '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'
1892 - ],
1893 - ],
1894 - ],
1895 - 'pagiHoverShadow' => [
1896 - 'type' => 'object',
1897 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1898 - 'style' => [
1899 - (object)[
1900 - 'depends' => [
1901 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1902 - ],
1903 - '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'
1904 - ],
1905 - ],
1906 - ],
1907 - 'pagiHoverRadius' => [
1908 - 'type' => 'object',
1909 - 'default' => (object)['lg' =>(object)['top' => '2','bottom' => '2','left' => '2','right' => '2', 'unit' =>'px']],
1910 - 'style' => [
1911 - (object)[
1912 - 'depends' => [
1913 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1914 - ],
1915 - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
1916 - ],
1917 - ],
1918 - ],
1919 - 'pagiPadding' => [
1920 - 'type' => 'object',
1921 - 'default' => (object)['lg' =>(object)['top' => '8','bottom' => '8','left' => '14','right' => '14', 'unit' =>'px']],
1922 - 'style' => [
1923 - (object)[
1924 - 'depends' => [
1925 - (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1926 - ],
1927 - 'selector'=>'{{ULTP}} .ultp-pagination li a, {{ULTP}} .ultp-next-prev-wrap ul li a, {{ULTP}} .ultp-loadmore-action { padding:{{pagiPadding}}; }'
1928 - ],
1929 - ],
1930 - ],
1931 - 'navMargin' => [
1932 - 'type' => 'object',
1933 - 'default' => (object)['lg' =>(object)['top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' =>'px']],
1934 - 'style' => [
1935 - (object)[
1936 - 'depends' => [
1937 - (object)['key'=>'paginationType','condition'=>'==','value'=>'navigation'],
1938 - ],
1939 - 'selector'=>'{{ULTP}} .ultp-next-prev-wrap ul { margin:{{navMargin}}; }'
1940 - ],
1941 - ],
1942 - ],
238 + $block_name = 'post-grid-6';
239 + $vid_icon_redirect = true; // Its used for video icon do not remove it
1943 240
1944 - //--------------------------
1945 - // Wrapper Style
1946 - //--------------------------
1947 - 'loadingColor' => [
1948 - 'type' => 'string',
1949 - 'default' => '#000',
1950 - 'style' => [
1951 - (object)[
1952 - 'selector'=>'{{ULTP}} .ultp-loading .ultp-loading-blocks div { --loading-block-color: {{loadingColor}}; }'
1953 - ],
1954 - ],
1955 - ],
1956 - 'wrapBg' => [
1957 - 'type' => 'object',
1958 - 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#f5f5f5'],
1959 - 'style' => [
1960 - (object)[
1961 - 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1962 - ],
1963 - ],
1964 - ],
1965 - 'wrapBorder' => [
1966 - 'type' => 'object',
1967 - 'default' => (object)['openBorder'=>0, 'width' =>(object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
1968 - 'style' => [
1969 - (object)[
1970 - 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1971 - ],
1972 - ],
1973 - ],
1974 - 'wrapShadow' => [
1975 - 'type' => 'object',
1976 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
1977 - 'style' => [
1978 - (object)[
1979 - 'selector'=>'{{ULTP}} .ultp-block-wrapper'
1980 - ],
1981 - ],
1982 - ],
1983 - 'wrapRadius' => [
1984 - 'type' => 'object',
1985 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
1986 - 'style' => [
1987 - (object)[
1988 - 'selector'=>'{{ULTP}} .ultp-block-wrapper { border-radius:{{wrapRadius}}; }'
1989 - ],
1990 - ],
1991 - ],
1992 - 'wrapHoverBackground' => [
1993 - 'type' => 'object',
1994 - 'default' => (object)['openColor' => 0, 'type' => 'color', 'color' => '#1740f5'],
1995 - 'style' => [
1996 - (object)[
1997 - 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
1998 - ],
1999 - ],
2000 - ],
2001 - 'wrapHoverBorder' => [
2002 - 'type' => 'object',
2003 - 'default' => (object)['openBorder'=>0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4','type' => 'solid'],
2004 - 'style' => [
2005 - (object)[
2006 - 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2007 - ],
2008 - ],
2009 - ],
2010 - 'wrapHoverRadius' => [
2011 - 'type' => 'object',
2012 - 'default' => (object)['lg' =>'', 'unit' =>'px'],
2013 - 'style' => [
2014 - (object)[
2015 - 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover { border-radius:{{wrapHoverRadius}}; }'
2016 - ],
2017 - ],
2018 - ],
2019 - 'wrapHoverShadow' => [
2020 - 'type' => 'object',
2021 - 'default' => (object)['openShadow' => 0, 'width' => (object)['top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1],'color' => '#009fd4'],
2022 - 'style' => [
2023 - (object)[
2024 - 'selector'=>'{{ULTP}} .ultp-block-wrapper:hover'
2025 - ],
2026 - ],
2027 - ],
2028 - 'wrapMargin' => [
2029 - 'type' => 'object',
2030 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '', 'unit' =>'px']],
2031 - 'style' => [
2032 - (object)[
2033 - 'selector'=>'{{ULTP}} .ultp-block-wrapper { margin:{{wrapMargin}}; }'
2034 - ],
2035 - ],
2036 - ],
2037 - 'wrapOuterPadding' => [
2038 - 'type' => 'object',
2039 - 'default' => (object)['lg' =>(object)['top' => '','bottom' => '','left' => '', 'right' => '', 'unit' =>'px']],
2040 - 'style' => [
2041 - (object)[
2042 - 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapOuterPadding}}; }'
2043 - ],
2044 - ],
2045 - ],
2046 - 'wrapInnerPadding' => [
2047 - 'type' => 'object',
2048 - 'default' => (object)['lg' =>(object)['unit' =>'px']],
2049 - 'style' => [
2050 - (object)[
2051 - 'selector'=>'{{ULTP}} .ultp-block-wrapper { padding:{{wrapInnerPadding}}; }'
2052 - ],
2053 - ],
2054 - ],
2055 - 'advanceId' => [
2056 - 'type' => 'string',
2057 - 'default' => '',
2058 - ],
2059 - 'advanceZindex' => [
2060 - 'type' => 'number',
2061 - 'default' => '',
2062 - 'style' => [
2063 - (object)[
2064 - 'selector' => '{{ULTP}} {z-index:{{advanceZindex}};}'
2065 - ],
2066 - ],
2067 - ],
2068 - 'hideExtraLarge' => [
2069 - 'type' => 'boolean',
2070 - 'default' => false,
2071 - 'style' => [
2072 - (object)[
2073 - 'selector' => '{{ULTP}} {display:none;}'
2074 - ],
2075 - ],
2076 - ],
2077 - 'hideDesktop' => [
2078 - 'type' => 'boolean',
2079 - 'default' => false,
2080 - 'style' => [
2081 - (object)[
2082 - 'selector' => '{{ULTP}} {display:none;}'
2083 - ],
2084 - ],
2085 - ],
2086 - 'hideTablet' => [
2087 - 'type' => 'boolean',
2088 - 'default' => false,
2089 - 'style' => [
2090 - (object)[
2091 - 'selector' => '{{ULTP}} {display:none;}'
2092 - ],
2093 - ],
2094 - ],
2095 - 'hideMobile' => [
2096 - 'type' => 'boolean',
2097 - 'default' => false,
2098 - 'style' => [
2099 - (object)[
2100 - 'selector' => '{{ULTP}} {display:none;}'
2101 - ],
2102 - ],
2103 - ],
2104 - 'advanceCss' => [
2105 - 'type' => 'string',
2106 - 'default' => '',
2107 - 'style' => [(object)['selector' => '']],
2108 - ]
2109 - );
2110 -
2111 - if( $default ){
2112 - $temp = array();
2113 - foreach ($attributes as $key => $value) {
2114 - if( isset($value['default']) ){
2115 - $temp[$key] = $value['default'];
2116 - }
2117 - }
2118 - return $temp;
2119 - }else{
2120 - return $attributes;
2121 - }
2122 - }
241 + $wraper_before = $wraper_after = $post_loop = '';
242 + $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
243 + $pageNum = ultimate_post()->get_page_number( $attr, $recent_posts->found_posts );
244 + // Dummy Img Url
245 + $dummy_url = ULTP_URL . 'assets/img/ultp-fallback-img.png';
2123 246
2124 - public function register() {
2125 - register_block_type( 'ultimate-post/post-grid-6',
2126 - array(
2127 - 'attributes' => $this->get_attributes(),
2128 - 'description' => __( 'Post grid with left big posts overlay style.' ),
2129 - 'keywords' => [__( 'grid' ), __( 'post' ), __( 'article' ), __('listing')],
2130 - 'render_callback' => array($this, 'content')
2131 - )
2132 - );
2133 - }
247 + // Loadmore and Unique content
248 + if ( $attr['queryUnique'] && isset( $attr['loadMoreQueryUnique'] ) && $attr['paginationShow'] && ( $attr['paginationType'] == 'loadMore' ) ) {
249 + $unique_ID = $attr['loadMoreQueryUnique'];
250 + $current_unique_posts = $attr['ultp_current_unique_posts'];
251 + }
2134 252
2135 - public function content($attr, $noAjax) {
253 + $attr['className'] = isset( $attr['className'] ) && $attr['className'] ? preg_replace( '/[^A-Za-z0-9_ -]/', '', $attr['className'] ) : '';
254 + $attr['align'] = isset( $attr['align'] ) && $attr['align'] ? preg_replace( '/[^A-Za-z0-9_ -]/', '', $attr['align'] ) : '';
255 + $attr['advanceId'] = isset( $attr['advanceId'] ) ? sanitize_html_class( $attr['advanceId'] ) : '';
256 + $attr['blockId'] = isset( $attr['blockId'] ) ? sanitize_html_class( $attr['blockId'] ) : '';
257 + $attr['contentTag'] = in_array( $attr['contentTag'], ultimate_post()->ultp_allowed_block_tags() ) ? $attr['contentTag'] : 'div';
258 + $attr['layout'] = sanitize_html_class( $attr['layout'] );
259 + $attr['imgAnimation'] = sanitize_html_class( $attr['imgAnimation'] );
260 + $attr['imgOverlayType'] = sanitize_html_class( $attr['imgOverlayType'] );
261 + $attr['popupAutoPlay'] = $attr['popupAutoPlay'] == true;
262 + $attr['readMoreText'] = wp_kses( $attr['readMoreText'], ultimate_post()->ultp_allowed_html_tags() );
263 + $attr['titleAnimation'] = sanitize_html_class( $attr['titleAnimation'] );
264 + $attr['overlayContentPosition'] = sanitize_html_class( $attr['overlayContentPosition'] );
2136 265
2137 - if(!$noAjax){
2138 - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
2139 - $attr['paged'] = $paged;
2140 - }
266 + if ( $recent_posts->have_posts() ) {
267 + // Pagination Block Html
268 + include ULTP_PATH . 'blocks/template/pagination_block.php';
2141 269
2142 - $block_name = 'post-grid-6';
2143 - $page_post_id = get_the_ID();
2144 - $wraper_before = $wraper_after = $post_loop = '';
2145 - $recent_posts = new \WP_Query( ultimate_post()->get_query( $attr ) );
2146 - $pageNum = ultimate_post()->get_page_number($attr, $recent_posts->found_posts);
2147 -
2148 - if ($recent_posts->have_posts()) {
2149 - $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"]:'').'">';
2150 - $wraper_before .= '<div class="ultp-block-wrapper">';
270 + $wraper_before .= '<div ' . ( $attr['advanceId'] ? 'id="' . $attr['advanceId'] . '" ' : '' ) . ' class="ultp-post-grid-block wp-block-ultimate-post-' . $block_name . ' ultp-block-' . $attr['blockId'] . '' . ( $attr['align'] ? ' align' . $attr['align'] : '' ) . '' . ( $attr['className'] ? ' ' . $attr['className'] : '' ) . '">';
271 + $wraper_before .= '<div class="ultp-block-wrapper">';
2151 272
2152 - // Loading
2153 - $wraper_before .= ultimate_post()->loading();
273 + // Loading
274 + $wraper_before .= ultimate_post()->postx_loading();
2154 275
2155 - if ($attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow']) {
2156 - $wraper_before .= '<div class="ultp-heading-filter">';
2157 - $wraper_before .= '<div class="ultp-heading-filter-in">';
2158 -
2159 - // Heading
2160 - include ULTP_PATH.'blocks/template/heading.php';
2161 -
2162 - if ($attr['filterShow'] || $attr['paginationShow']) {
2163 - $wraper_before .= '<div class="ultp-filter-navigation">';
276 + if ( $attr['headingShow'] || $attr['filterShow'] || $attr['paginationShow'] ) {
277 + $wraper_before .= '<div class="ultp-heading-filter">';
278 + $wraper_before .= '<div class="ultp-heading-filter-in">';
2164 279
2165 - // Filter
2166 - if($attr['filterShow']) {
2167 - include ULTP_PATH.'blocks/template/filter.php';
2168 - }
280 + // Heading
281 + include ULTP_PATH . 'blocks/template/heading.php';
2169 282
2170 - // Navigation
2171 - if($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] == 'topRight')) {
2172 - include ULTP_PATH.'blocks/template/navigation-before.php';
2173 - }
2174 - $wraper_before .= '</div>';
2175 - }
283 + if ( $attr['filterShow'] || $attr['paginationShow'] ) {
284 + $wraper_before .= '<div class="ultp-filter-navigation">';
2176 285
2177 - $wraper_before .= '</div>';
2178 - $wraper_before .= '</div>';
2179 - }
2180 -
2181 - $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-row ultp-'.$attr['layout'].' ultp-block-content-'.($attr['columnFlip'] ? 'true' : 'false').'">';
2182 - $idx = $noAjax ? 1 : 0;
2183 - while ( $recent_posts->have_posts() ): $recent_posts->the_post();
2184 -
2185 - include ULTP_PATH.'blocks/template/data.php';
286 + // Filter
287 + if ( $attr['filterShow'] && $attr['queryType'] != 'posts' && $attr['queryType'] != 'customPosts' ) {
288 + include ULTP_PATH . 'blocks/template/filter.php';
289 + }
2186 290
2187 - include ULTP_PATH.'blocks/template/category.php';
2188 -
2189 - $post_loop .= '<div class="ultp-block-item post-id-'.$post_id.' ultp-block-item-'.$idx.($attr['titleAnimation'] ? ' ultp-animation-'.$attr['titleAnimation'] : '').'">';
2190 - $post_loop .= '<div class="ultp-block-content-wrap ultp-block-content-overlay">';
291 + // Navigation
292 + if ( $attr['paginationShow'] && ( $attr['paginationType'] == 'navigation' ) && ( $attr['navPosition'] == 'topRight' ) ) {
293 + include ULTP_PATH . 'blocks/template/navigation-before.php';
294 + }
295 + $wraper_before .= '</div>';
296 + }
2191 297
2192 - if( has_post_thumbnail() && $attr['showImage'] ){
2193 - $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 : '' ).'">';
2194 - $post_loop .= '<a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'><img loading="lazy" alt="'.$title.'" src="'.wp_get_attachment_image_url( $post_thumb_id, 'full' ).'" /></a>';
2195 - if( ($attr['catPosition'] != 'aboveTitle') && ($idx == 0 || $attr['showSmallCat']) && $attr['catShow'] ) {
2196 - $post_loop .= '<div class="ultp-category-img-grid">'.$category.'</div>';
2197 - }
2198 - $post_loop .= '</div>';
2199 - } else {
2200 - $post_loop .= '<div class="ultp-block-image ultp-block-empty-image"></div>';
2201 - }
2202 - $post_loop .= '<div class="ultp-block-content ultp-block-content-'.$attr['overlayContentPosition'].'">';
2203 - $post_loop .= '<div class="ultp-block-content-inner">';
2204 - // Category
2205 - if(($attr['catPosition'] == 'aboveTitle') && ($idx == 0 || $attr['showSmallCat'] ) && $attr['catShow']) {
2206 - $post_loop .= $category;
2207 - }
298 + $wraper_before .= '</div>';
299 + $wraper_before .= '</div>';
300 + }
2208 301
2209 - // Title
2210 - if ($title && $attr['titleShow'] && $attr['titlePosition'] == 1) {
2211 - include ULTP_PATH.'blocks/template/title.php';
2212 - }
2213 -
2214 - // Meta
2215 - if( ($idx == 0 || $attr['showSmallMeta']) && $attr['metaShow'] && $attr['metaPosition'] =='top' ) {
2216 - include ULTP_PATH.'blocks/template/meta.php';
2217 - }
2218 -
2219 - // Title
2220 - if ($title && $attr['titleShow'] && $attr['titlePosition'] == 0) {
2221 - include ULTP_PATH.'blocks/template/title.php';
2222 - }
302 + $wraper_before .= '<div class="ultp-block-items-wrap ultp-block-row ultp-' . $attr['layout'] . ' ultp-block-content-' . ( $attr['columnFlip'] ? 'true' : 'false' ) . '">';
303 + $idx = 0;
304 + while ( $recent_posts->have_posts() ) :
305 + $recent_posts->the_post();
2223 306
2224 - // Excerpt
2225 - if(($idx == 0 || $attr['showSmallExcerpt']) && $attr['excerptShow']) {
2226 - if ( $attr['showFullExcerpt']== 0 ) {
2227 - $post_loop .= '<div class="ultp-block-excerpt">'.ultimate_post()->excerpt($post_id, $attr['excerptLimit']).'</div>';
2228 - } else {
2229 - $post_loop .= '<div class="ultp-block-excerpt">'.get_the_excerpt().'</div>';
2230 - }
2231 - }
307 + $dcContent = array_fill( 0, $attr['dcSize'], '' );
2232 308
2233 - // Read More
2234 - if ($attr['readMore'] && ($idx == 0 || $attr['showSmallBtn'])) {
2235 - $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>';
2236 - }
309 + if ( ultimate_post()->is_dc_active( $attr ) ) {
310 + $dcContent = \ULTP\DCService::get_dc_content_for_block( $attr, $dcContent );
311 + }
2237 312
2238 - // Meta
2239 - if( ($idx == 0 || $attr['showSmallMeta']) && $attr['metaShow'] && $attr['metaPosition'] =='bottom' ) {
2240 - include ULTP_PATH.'blocks/template/meta.php';
2241 - }
2242 - $post_loop .= '</div>';
2243 - $post_loop .= '</div>';
2244 - $post_loop .= '</div>';
2245 - $post_loop .= '</div>';
2246 - $idx ++;
2247 - endwhile;
2248 -
2249 - $wraper_after .= '</div>';//ultp-block-items-wrap
2250 -
2251 - // Navigation
2252 - if ($attr['paginationShow'] && ($attr['paginationType'] == 'navigation') && ($attr['navPosition'] != 'topRight')) {
2253 - include ULTP_PATH.'blocks/template/navigation-after.php';
2254 - }
313 + include ULTP_PATH . 'blocks/template/data.php';
2255 314
2256 - $wraper_after .= '</div>';
2257 - $wraper_after .= '</div>';
315 + include ULTP_PATH . 'blocks/template/category.php';
2258 316
2259 - wp_reset_query();
2260 - }
317 + if ( $attr['queryUnique'] ) {
318 + $unique_ID[ $attr['queryUnique'] ][] = $post_id;
319 + $current_unique_posts[] = $post_id;
320 + }
2261 321
2262 - return $noAjax ? $post_loop : $wraper_before.$post_loop.$wraper_after;
2263 - }
322 + $post_loop .= '<' . $attr['contentTag'] . ' class="ultp-block-item post-id-' . $post_id . ' ultp-block-item-' . $idx . ( $attr['titleAnimation'] ? ' ultp-animation-' . $attr['titleAnimation'] : '' ) . '">';
323 + $post_loop .= '<div class="ultp-block-content-wrap ultp-block-content-overlay">';
2264 324
2265 -}
325 + if ( ( $post_thumb_id || $attr['fallbackEnable'] ) && $attr['showImage'] ) {
326 + $post_loop .= '<div class="ultp-block-image ultp-block-image-' . $attr['imgAnimation'] . ( $attr['imgOverlay'] ? ' ultp-block-image-overlay ultp-block-image-' . $attr['imgOverlayType'] : '' ) . '">';
327 + $srcset = $attr['imgSrcset'] ? 'srcset="' . esc_attr( wp_get_attachment_image_srcset( $post_thumb_id ) ) . '"' : '';
328 + $post_loop .= '<a href="' . $titlelink . '" ' . ( $attr['openInTab'] ? 'target="_blank"' : '' ) . '>';
329 + // Post Image Size
330 + $imgSize = $idx == 0 ? $attr['imgCrop'] : $attr['imgCropSmall'];
331 + // Image
332 + if ( $post_thumb_id && $post_thumb_id ) {
333 + $post_loop .= '<img ' . ( $attr['imgLazy'] ? ' loading="lazy"' : '' ) . ' ' . $srcset . ' alt="' . esc_attr( $title ) . '" src="' . wp_get_attachment_image_url( $post_thumb_id, $imgSize ) . '" />';
334 + } elseif ( $attr['fallbackEnable'] ) {
335 + if ( isset( $attr['fallbackImg']['id'] ) ) {
336 + // User Define Fallback Image
337 + $post_loop .= ultimate_post()->get_image( $attr['fallbackImg']['id'], $imgSize, '', $title, $attr['imgSrcset'], $attr['imgLazy'] );
338 + } else {
339 + // Default Fallback Image
340 + $video = ultimate_post()->get_youtube_id( $post_video );
341 + $post_loop .= '<img src="' . ( $video ? 'https://img.youtube.com/vi/' . $video . '/0.jpg' : $dummy_url ) . '" alt="dummy-img" />';
342 + }
343 + }
344 + $post_loop .= '</a>';
345 + if ( ( $attr['catPosition'] != 'aboveTitle' ) && ( $idx == 0 || $attr['showSmallCat'] ) && $attr['catShow'] ) {
346 + $post_loop .= '<div class="ultp-category-img-grid">' . $category . '</div>';
347 + }
348 + $post_loop .= '</div>';
349 + if ( $post_video ) {
350 + include ULTP_PATH . 'blocks/template/video_icon.php';
351 + }
352 + } else {
353 + if ( $post_video ) {
354 + include ULTP_PATH . 'blocks/template/video_icon.php';
355 + }
356 + $post_loop .= '<div class="ultp-block-image ultp-block-empty-image"></div>';
357 + }
358 + $post_loop .= '<div class="ultp-block-content ultp-block-content-' . $attr['overlayContentPosition'] . '">';
359 + $post_loop .= '<div class="ultp-block-content-inner">';
360 +
361 + $post_loop .= $dcContent[7];
362 +
363 + // Category
364 + if ( ( $attr['catPosition'] == 'aboveTitle' ) && ( $idx == 0 || $attr['showSmallCat'] ) && $attr['catShow'] ) {
365 + $post_loop .= $category;
366 + }
367 +
368 + $post_loop .= $dcContent[6];
369 +
370 + // Title
371 + if ( $title && $attr['titleShow'] && $attr['titlePosition'] == 1 ) {
372 + include ULTP_PATH . 'blocks/template/title.php';
373 + }
374 +
375 + $post_loop .= $dcContent[5];
376 +
377 + // Meta
378 + if ( ( $idx == 0 || $attr['showSmallMeta'] ) && $attr['metaShow'] && $attr['metaPosition'] == 'top' ) {
379 + include ULTP_PATH . 'blocks/template/meta.php';
380 + }
381 +
382 + $post_loop .= $dcContent[4];
383 +
384 + // Title
385 + if ( $title && $attr['titleShow'] && $attr['titlePosition'] == 0 ) {
386 + include ULTP_PATH . 'blocks/template/title.php';
387 + }
388 +
389 + $post_loop .= $dcContent[3];
390 +
391 + // Excerpt
392 + if ( ( $idx == 0 || $attr['showSmallExcerpt'] ) && $attr['excerptShow'] ) {
393 + $post_loop .= '<div class="ultp-block-excerpt">' . ultimate_post()->get_excerpt( $post_id, $attr['showSeoMeta'], $attr['showFullExcerpt'], $attr['excerptLimit'] ) . '</div>';
394 + }
395 +
396 + $post_loop .= $dcContent[2];
397 +
398 + // Read More
399 + if ( $attr['readMore'] && ( $idx == 0 || $attr['showSmallBtn'] ) ) {
400 + $post_loop .= '<div class="ultp-block-readmore"><a aria-label="' . $title . '" href="' . $titlelink . '" ' . ( $attr['openInTab'] ? 'target="_blank"' : '' ) . '>' . ( $attr['readMoreText'] ? $attr['readMoreText'] : esc_html__( 'Read More', 'ultimate-post' ) ) . ultimate_post()->get_svg_icon( $attr['readMoreIcon'] ) . '</a></div>';
401 + }
402 +
403 + $post_loop .= $dcContent[1];
404 +
405 + // Meta
406 + if ( ( $idx == 0 || $attr['showSmallMeta'] ) && $attr['metaShow'] && $attr['metaPosition'] == 'bottom' ) {
407 + include ULTP_PATH . 'blocks/template/meta.php';
408 + }
409 +
410 + $post_loop .= $dcContent[0];
411 +
412 + $post_loop .= '</div>';
413 + $post_loop .= '</div>';
414 + $post_loop .= '</div>';
415 + if ( $post_video && $attr['enablePopup'] ) {
416 + include ULTP_PATH . 'blocks/template/video_popup.php';
417 + }
418 + $post_loop .= '</' . $attr['contentTag'] . '>';
419 + ++$idx;
420 + endwhile;
421 + if ( $attr['queryUnique'] ) {
422 + $post_loop .= "<span style='display: none;' class='ultp-current-unique-posts' data-ultp-unique-ids= " . wp_json_encode( $unique_ID ) . ' data-current-unique-posts= ' . wp_json_encode( $current_unique_posts ) . '> </span>';
423 + }
424 +
425 + // if ( $attr['advPaginationEnable'] && ($attr['paginationType'] == 'loadMore')) {
426 + // $wraper_after .= '<span class="ultp-loadmore-insert-before"></span>';
427 + // }
428 +
429 + $wraper_after .= '</div>'; // ultp-block-items-wrap
430 +
431 + // Navigation
432 + if ( $attr['paginationShow'] && ( $attr['paginationType'] == 'navigation' ) && ( $attr['navPosition'] != 'topRight' ) ) {
433 + include ULTP_PATH . 'blocks/template/navigation-after.php';
434 + }
435 +
436 + $wraper_after .= '</div>';
437 + $wraper_after .= $pagi_block_html;
438 + $wraper_after .= '</div>';
439 +
440 + wp_reset_query();
441 + } else {
442 + $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
443 + }
444 +
445 + return $noAjax ? $post_loop : $wraper_before . $post_loop . $wraper_after;
446 + }
447 +}