PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / blocks / includes / smart-list / attributes.php

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at blocks/includes/smart-list/attributes.php

655 lines 13.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Smart list block attributes file for Smart Post Show Blocks.
4 *
5 * @package Smart_Post_Show_Pro
6 * @subpackage Smart_Post_Show_Pro/blocks/includes
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 return array(
14 'uniqueId' => array(
15 'type' => 'string',
16 ),
17 'blockName' => array(
18 'type' => 'string',
19 ),
20 'fontLists' => array(
21 'type' => 'string',
22 'default' => '',
23 ),
24
25 // SmartListGeneralTab
26
27 'linkURL' => array(
28 'type' => 'string',
29 'default' => 'https://',
30 ),
31 'openInNewTab' => array(
32 'type' => 'boolean',
33 'default' => true,
34 ),
35 'noFollowLink' => array(
36 'type' => 'boolean',
37 'default' => false,
38 ),
39 // SmartListStyleTab
40 'smartListBg' => array(
41 'type' => 'object',
42 'default' => array(
43 'color' => array(
44 'style' => 'bgColor',
45 'solidColor' => '',
46 'gradient' => 'linear-gradient(135deg, #D70067, #D76700, #F59E0B)',
47 ),
48 'hover' => array(
49 'style' => 'bgColor',
50 'solidColor' => '',
51 'gradient' => '',
52 ),
53 ),
54 ),
55 'borderStyle' => array(
56 'type' => 'object',
57 'default' => array(
58 'style' => 'solid',
59 'color' => '#686868',
60 ),
61 ),
62 'borderStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
63 'borderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
64 'boxShadowEnable' => array(
65 'type' => 'boolean',
66 'default' => false,
67 ),
68 'listBoxShadow' => array(
69 'type' => 'object',
70 'default' => array(
71 'device' => array(
72 'Desktop' => array(
73 'top' => 8,
74 'right' => 8,
75 'bottom' => 16,
76 'left' => 0,
77 ),
78 'Tablet' => array(
79 'top' => '',
80 'right' => '',
81 'bottom' => '',
82 'left' => '',
83 ),
84 'Mobile' => array(
85 'top' => '',
86 'right' => '',
87 'bottom' => '',
88 'left' => '',
89 ),
90 ),
91 'unit' => array(
92 'Desktop' => 'outset',
93 'Tablet' => 'outset',
94 'Mobile' => 'outset',
95 ),
96 'color' => '#4E4F521A',
97 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
98 ),
99 ),
100
101 'borderHoverStyle' => array(
102 'type' => 'object',
103 'default' => array(
104 'style' => 'solid',
105 'color' => '#686868',
106 ),
107 ),
108 'borderHoverStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
109 'borderHoverRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
110 'boxShadowHoverEnable' => array(
111 'type' => 'boolean',
112 'default' => false,
113 ),
114 'boxShadowHover' => array(
115 'type' => 'object',
116 'default' => array(
117 'device' => array(
118 'Desktop' => array(
119 'top' => 8,
120 'right' => 8,
121 'bottom' => 16,
122 'left' => 0,
123 ),
124 'Tablet' => array(
125 'top' => '',
126 'right' => '',
127 'bottom' => '',
128 'left' => '',
129 ),
130 'Mobile' => array(
131 'top' => '',
132 'right' => '',
133 'bottom' => '',
134 'left' => '',
135 ),
136 ),
137 'unit' => array(
138 'Desktop' => 'outset',
139 'Tablet' => 'outset',
140 'Mobile' => 'outset',
141 ),
142 'color' => '#4E4F521A',
143 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
144 ),
145 ),
146
147 'padding' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
148 'listPadding' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
149
150 // IconImageGeneralTab
151 'iconEnable' => array(
152 'type' => 'boolean',
153 ),
154 'iconEnableParent' => array(
155 'type' => 'boolean',
156 ),
157 'iconSource' => array(
158 'type' => 'string',
159 ),
160 'svgIconName' => array(
161 'type' => 'string',
162 ),
163 'iconName' => array(
164 'type' => 'string',
165 ),
166 'iconSize' => array(
167 'type' => 'object',
168 'default' => array(
169 'device' => array(
170 'Desktop' => '',
171 'Tablet' => '',
172 'Mobile' => '',
173 ),
174 'unit' => array(
175 'Desktop' => 'px',
176 'Tablet' => 'px',
177 'Mobile' => 'px',
178 ),
179 ),
180 ),
181 'iconSourceCustom' => array(
182 'type' => 'object',
183 ),
184 'iconCustomWidth' => array(
185 'type' => 'object',
186 'default' => array(
187 'device' => array(
188 'Desktop' => '',
189 'Tablet' => '',
190 'Mobile' => '',
191 ),
192 'unit' => array(
193 'Desktop' => 'px',
194 'Tablet' => 'px',
195 'Mobile' => 'px',
196 ),
197 ),
198 ),
199
200 'iconCustomHeight' => array(
201 'type' => 'object',
202 'default' => array(
203 'device' => array(
204 'Desktop' => '',
205 'Tablet' => '',
206 'Mobile' => '',
207 ),
208 'unit' => array(
209 'Desktop' => 'px',
210 'Tablet' => 'px',
211 'Mobile' => 'px',
212 ),
213 ),
214 ),
215
216 'parentListsLayout' => array(
217 'type' => 'string',
218 'default' => 'layout-one',
219 ),
220 'iconPosition' => array(
221 'type' => 'string',
222 ),
223 'iconAlignment' => array(
224 'type' => 'string',
225 ),
226
227
228 // IconImageStyleTab
229 'iconBackgroundEnable' => array(
230 'type' => 'boolean',
231 ),
232 'backgroundShape' => array(
233 'type' => 'string',
234 ),
235 'iconColor' => array(
236 'type' => 'object',
237 'default' => array(
238 'color' => '',
239 'hoverColor' => '',
240 ),
241 ),
242 'iconBg' => array(
243 'type' => 'object',
244 'default' => array(
245 'color' => array(
246 'style' => 'bgColor',
247 'solidColor' => '#dddddd',
248 'gradient' => 'linear-gradient(135deg, #D70067, #D76700, #F59E0B)',
249 ),
250 'hover' => array(
251 'style' => 'bgColor',
252 'solidColor' => '#dddddd',
253 'gradient' => 'linear-gradient(135deg, #D70067, #D76700, #F59E0B)',
254 ),
255 ),
256 ),
257 'iconBgRadialShape' => array(
258 'type' => 'string',
259 'default' => 'circle',
260 ),
261 'iconBgRadialPosition' => array(
262 'type' => 'string',
263 'default' => 'center center',
264 ),
265 'iconBorderStyle' => array(
266 'type' => 'object',
267 'default' => array(
268 'style' => '',
269 'color' => '',
270 ),
271 ),
272 'iconBorderStyleWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
273 'iconBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
274 'iconBgHoverRadialShape' => array(
275 'type' => 'string',
276 ),
277 'iconBgHoverRadialPosition' => array(
278 'type' => 'string',
279 ),
280 'iconHoverBorderStyle' => array(
281 'type' => 'object',
282 'default' => array(
283 'style' => '',
284 'color' => '',
285 ),
286 ),
287 'iconHoverBorderStyleWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
288 'iconHoverBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
289 'iconPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
290
291 // ContentGeneralTab
292 'listTitleEnable' => array(
293 'type' => 'boolean',
294 'default' => true,
295 ),
296 'descriptionEnable' => array(
297 'type' => 'boolean',
298 ),
299 'titleDescriptionGap' => array(
300 'type' => 'object',
301 'default' => array(
302 'device' => array(
303 'Desktop' => '',
304 'Tablet' => '',
305 'Mobile' => '',
306 ),
307 'unit' => array(
308 'Desktop' => 'px',
309 'Tablet' => 'px',
310 'Mobile' => 'px',
311 ),
312 ),
313 ),
314 'descriptionColor' => array(
315 'type' => 'object',
316 'default' => array(
317 'color' => '',
318 'hoverColor' => '',
319 ),
320 ),
321
322
323 // ContentStyleTab
324 'titleTypography' => array(
325 'type' => 'object',
326 'default' => array(
327 'googleFont' => array(
328 'family' => '',
329 'variants' => array( '300', '400', '500', '600', '700', '800' ),
330 ),
331 'typography' => array(
332 'family' => '',
333 'fontWeight' => '',
334 'style' => '',
335 'transform' => '',
336 'decoration' => '',
337 ),
338 ),
339 ),
340
341 'titleFontSize' => array(
342 'type' => 'object',
343 'default' => array(
344 'device' => array(
345 'Desktop' => '',
346 'Tablet' => '',
347 'Mobile' => '',
348 ),
349 'unit' => array(
350 'Desktop' => 'px',
351 'Tablet' => 'px',
352 'Mobile' => 'px',
353 ),
354 ),
355 ),
356 'titleLatterSpacing' => array(
357 'type' => 'object',
358 'default' => array(
359 'device' => array(
360 'Desktop' => '',
361 'Tablet' => '',
362 'Mobile' => '',
363 ),
364 'unit' => array(
365 'Desktop' => 'px',
366 'Tablet' => 'px',
367 'Mobile' => 'px',
368 ),
369 ),
370 ),
371 'titleLineHeight' => array(
372 'type' => 'object',
373 'default' => array(
374 'device' => array(
375 'Desktop' => '',
376 'Tablet' => '',
377 'Mobile' => '',
378 ),
379 // 'unit' => array(
380 // 'Desktop' => '%',
381 // 'Tablet' => 'px',
382 // 'Mobile' => 'px',
383 // ),
384 ),
385 ),
386 'titleWordSpacing' => array(
387 'type' => 'object',
388 'default' => array(
389 'device' => array(
390 'Desktop' => '',
391 'Tablet' => '',
392 'Mobile' => '',
393 ),
394 'unit' => array(
395 'Desktop' => 'px',
396 'Tablet' => 'px',
397 'Mobile' => 'px',
398 ),
399 ),
400 ),
401 'descriptionTypography' => array(
402 'type' => 'object',
403 'default' => array(
404 'googleFont' => array(
405 'family' => '',
406 'variants' => array( '300', '400', '500', '600', '700', '800' ),
407 ),
408 'typography' => array(
409 'family' => '',
410 'fontWeight' => '',
411 'style' => '',
412 'transform' => '',
413 'decoration' => '',
414 ),
415 ),
416 ),
417 'descriptionFontSize' => array(
418 'type' => 'object',
419 'default' => array(
420 'device' => array(
421 'Desktop' => '',
422 'Tablet' => '',
423 'Mobile' => '',
424 ),
425 'unit' => array(
426 'Desktop' => 'px',
427 'Tablet' => 'px',
428 'Mobile' => 'px',
429 ),
430 ),
431 ),
432 'descriptionLatterSpacing' => array(
433 'type' => 'object',
434 'default' => array(
435 'device' => array(
436 'Desktop' => '',
437 'Tablet' => '',
438 'Mobile' => '',
439 ),
440 'unit' => array(
441 'Desktop' => 'px',
442 'Tablet' => 'px',
443 'Mobile' => 'px',
444 ),
445 ),
446 ),
447 'descriptionLineHeight' => array(
448 'type' => 'object',
449 'default' => array(
450 'device' => array(
451 'Desktop' => '',
452 'Tablet' => '',
453 'Mobile' => '',
454 ),
455 ),
456 ),
457
458 'descriptionWordSpacing' => array(
459 'type' => 'object',
460 'default' => array(
461 'device' => array(
462 'Desktop' => '',
463 'Tablet' => '',
464 'Mobile' => '',
465 ),
466 'unit' => array(
467 'Desktop' => 'px',
468 'Tablet' => 'px',
469 'Mobile' => 'px',
470 ),
471 ),
472 ),
473
474 'titleColor' => array(
475 'type' => 'object',
476 'default' => array(
477 'color' => '',
478 'hoverColor' => '',
479 ),
480 ),
481
482 // BadgeGeneralTab
483
484 'badgeEnable' => array(
485 'type' => 'boolean',
486 'default' => false,
487 ),
488
489 'badgeLabel' => array(
490 'type' => 'string',
491 'default' => 'HOT',
492 ),
493
494 // BadgeStyleTab
495 'badgeTypography' => array(
496 'type' => 'object',
497 'default' => array(
498 'googleFont' => array(
499 'family' => '',
500 'variants' => array( '300', '400', '500', '600', '700', '800' ),
501 ),
502 'typography' => array(
503 'family' => '',
504 'fontWeight' => '400',
505 'style' => 'normal',
506 'transform' => 'none',
507 'decoration' => 'none',
508 ),
509 ),
510 ),
511 'badgeFontSize' => array(
512 'type' => 'object',
513 'default' => array(
514 'device' => array(
515 'Desktop' => 11,
516 'Tablet' => '',
517 'Mobile' => '',
518 ),
519 'unit' => array(
520 'Desktop' => 'px',
521 'Tablet' => 'px',
522 'Mobile' => 'px',
523 ),
524 ),
525 ),
526 'badgeLatterSpacing' => array(
527 'type' => 'object',
528 'default' => array(
529 'device' => array(
530 'Desktop' => 0,
531 'Tablet' => '',
532 'Mobile' => '',
533 ),
534 'unit' => array(
535 'Desktop' => 'px',
536 'Tablet' => 'px',
537 'Mobile' => 'px',
538 ),
539 ),
540 ),
541 'badgeLineHeight' => array(
542 'type' => 'object',
543 'default' => array(
544 'device' => array(
545 'Desktop' => 1.2,
546 'Tablet' => '',
547 'Mobile' => '',
548 ),
549 // 'unit' => array(
550 // 'Desktop' => 'px',
551 // 'Tablet' => 'px',
552 // 'Mobile' => 'px',
553 // ),
554 ),
555 ),
556
557 'badgeWordSpacing' => array(
558 'type' => 'object',
559 'default' => array(
560 'device' => array(
561 'Desktop' => '',
562 'Tablet' => '',
563 'Mobile' => '',
564 ),
565 'unit' => array(
566 'Desktop' => 'px',
567 'Tablet' => 'px',
568 'Mobile' => 'px',
569 ),
570 ),
571 ),
572 'badgeColor' => array(
573 'type' => 'string',
574 'default' => '#0255A7',
575 ),
576 'badgeBgColor' => array(
577 'type' => 'string',
578 'default' => '#DFECFF',
579 ),
580 'badgeBorderStyle' => array(
581 'type' => 'object',
582 'default' => array(
583 'style' => 'solid',
584 'color' => '#fff',
585 ),
586 ),
587 'badgeBorderStyleWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
588 'badgeBorderRadius' => $this->spacing_attribute( 10, 10, 10, 10, 'px', true ),
589 'badgePadding' => $this->spacing_attribute( 2, 8, 2, 8, 'px', false ),
590 'badgeMargin' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
591
592 'titleText' => array(
593 'type' => 'string',
594 'default' => 'List Item Text',
595 ),
596 'descriptionText' => array(
597 'type' => 'string',
598 'default' => 'List Description Here',
599 ),
600 'smartListRadialShape' => array(
601 'type' => 'string',
602 'default' => 'circle',
603 ),
604
605 'listsAlignment' => array(
606 'type' => 'string',
607 'default' => 'start',
608 ),
609 'iconSourceParent' => array(
610 'type' => 'string',
611 ),
612 'isPreview' => array(
613 'type' => 'boolean',
614 'default' => false,
615 ),
616 'parentSvgIconName' => array(
617 'type' => 'string',
618 'default' => 'Dot',
619 ),
620 'parentIconName' => array(
621 'type' => 'string',
622 ),
623 'parentIconSourceCustom' => array(
624 'type' => 'object',
625 ),
626 'parentListTitleEnable' => array(
627 'type' => 'boolean',
628 'default' => true,
629 ),
630 'parentDescriptionEnable' => array(
631 'type' => 'boolean',
632 'default' => false,
633 ),
634 'currentIcon' => array(
635 'type' => 'object',
636 ),
637 // AdvancedTab
638 'additionalCssClass' => array(
639 'type' => 'string',
640 'default' => '',
641 ),
642 'hideOnDesktop' => array(
643 'type' => 'boolean',
644 'default' => false,
645 ),
646 'hideOnTablet' => array(
647 'type' => 'boolean',
648 'default' => false,
649 ),
650 'hideOnMobile' => array(
651 'type' => 'boolean',
652 'default' => false,
653 ),
654 );
655