PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.7
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.7
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-search / attributes.php

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

785 lines 19.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Smart Search 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 'default' => '',
17 ),
18
19 'dynamicCss' => array(
20 'type' => 'string',
21 'default' => '',
22 ),
23 'blockName' => array(
24 'type' => 'string',
25 'default' => '',
26 ),
27 // General.
28 'searchFormPreset' => array(
29 'type' => 'string',
30 'default' => 'smart-search-form-preset-one',
31 ),
32 'displayType' => array(
33 'type' => 'string',
34 'default' => 'normal',
35 ),
36 'placeholderEnable' => array(
37 'type' => 'boolean',
38 'default' => true,
39 ),
40 'placeholder' => array(
41 'type' => 'string',
42 'default' => 'Search',
43 ),
44 'searchIconDivider' => array(
45 'type' => 'string',
46 'default' => 'Search',
47 ),
48
49 'searchFormAlignment' => array(
50 'type' => 'string',
51 'default' => 'flex-start',
52 ),
53 'inputPlaceholderTypography' => array(
54 'type' => 'object',
55 'default' => array(
56 'typography' => array(
57 'family' => '',
58 'fontWeight' => '',
59 'style' => '',
60 'transform' => '',
61 'decoration' => '',
62 ),
63 ),
64 ),
65 'inputPlaceHolderGlobalTypography' => array(
66 'type' => 'object',
67 'default' => array(),
68 ),
69 'inputPlaceholderFontSize' => array(
70 'type' => 'object',
71 'default' => array(
72 'device' => array(
73 'Desktop' => '',
74 'Tablet' => '',
75 'Mobile' => '',
76 ),
77 'unit' => array(
78 'Desktop' => 'px',
79 'Tablet' => 'px',
80 'Mobile' => 'px',
81 ),
82 ),
83 ),
84 'inputPlaceholderLineHeight' => array(
85 'type' => 'object',
86 'default' => array(
87 'device' => array(
88 'Desktop' => '',
89 'Tablet' => '',
90 'Mobile' => '',
91 ),
92 ),
93 ),
94 'inputPlaceholderLatterSpacing' => array(
95 'type' => 'object',
96 'default' => array(
97 'device' => array(
98 'Desktop' => 0,
99 'Tablet' => '',
100 'Mobile' => '',
101 ),
102 'unit' => array(
103 'Desktop' => 'px',
104 'Tablet' => 'px',
105 'Mobile' => 'px',
106 ),
107 ),
108 ),
109 'inputPlaceholderWordSpacing' => array(
110 'type' => 'object',
111 'default' => array(
112 'device' => array(
113 'Desktop' => 0,
114 'Tablet' => '',
115 'Mobile' => '',
116 ),
117 'unit' => array(
118 'Desktop' => 'px',
119 'Tablet' => 'px',
120 'Mobile' => 'px',
121 ),
122 ),
123 ),
124 'inputPlaceholderColor' => array(
125 'type' => 'object',
126 'default' => array(
127 'color' => '#CCCCCC',
128 'hoverColor' => '',
129 ),
130 ),
131 'searchFormBgColor' => array(
132 'type' => 'object',
133 'default' => array(
134 'color' => array(
135 'style' => 'bgColor',
136 'solidColor' => '',
137 'gradient' => '',
138 ),
139 'hover' => array(
140 'style' => 'bgColor',
141 'solidColor' => '',
142 'gradient' => '',
143 ),
144 ),
145 ),
146 'searchFormBorder' => array(
147 'type' => 'object',
148 'default' => array(
149 'style' => 'solid',
150 'color' => '#CCCCCC',
151 ),
152 ),
153 'searchIconDividerColor' => array(
154 'type' => 'object',
155 'default' => array(
156 'style' => 'solid',
157 'color' => '#BBBBBB',
158 ),
159 ),
160 'searchFormBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
161 'searchFormHoverBorder' => array(
162 'type' => 'object',
163 'default' => array(
164 'style' => 'solid',
165 'color' => '#CCCCCC',
166 ),
167 ),
168 'searchFormHoverBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
169 'searchFormBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
170 'searchFormHoverBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
171 'searchFormPadding' => $this->spacing_attribute( 10, 12, 10, 12, 'px', true ),
172 'searchFormWidth' => array(
173 'type' => 'object',
174 'default' => array(
175 'device' => array(
176 'Desktop' => 100,
177 'Tablet' => 100,
178 'Mobile' => 100,
179 ),
180 'unit' => array(
181 'Desktop' => '%',
182 'Tablet' => '%',
183 'Mobile' => '%',
184 ),
185 ),
186 ),
187 'searchFormHeight' => array(
188 'type' => 'object',
189 'default' => array(
190 'device' => array(
191 'Desktop' => 44,
192 'Tablet' => 44,
193 'Mobile' => 44,
194 ),
195 'unit' => array(
196 'Desktop' => 'px',
197 'Tablet' => 'px',
198 'Mobile' => 'px',
199 ),
200 ),
201 ),
202 // search button.
203 'searchBtnLabelTypography' => array(
204 'type' => 'object',
205 'default' => array(
206 'typography' => array(
207 'family' => '',
208 'fontWeight' => '',
209 'style' => '',
210 'transform' => '',
211 'decoration' => '',
212 ),
213 ),
214 ),
215 'searchBtnLabelFontSize' => $this->ranger_attribute( 14, 13, 12, 'px' ),
216 'searchBtnLabelLineHeight' => array(
217 'type' => 'object',
218 'default' => array(
219 'device' => array(
220 'Desktop' => '',
221 'Tablet' => '',
222 'Mobile' => '',
223 ),
224 ),
225 ),
226 'searchIcon' => array(
227 'type' => 'boolean',
228 'default' => true,
229 ),
230 'searchButtonIconSize' => $this->ranger_attribute( 20, 20, 20, 'px' ),
231 'searchButtonPosition' => array(
232 'type' => 'string',
233 'default' => 'right',
234 ),
235 'searchButtonNewTabEnable' => array(
236 'type' => 'boolean',
237 'default' => true,
238 ),
239 'searchButtonIconColor' => array(
240 'type' => 'object',
241 'default' => array(
242 'color' => '#2F2F2F',
243 'hoverColor' => '',
244 ),
245 ),
246 'searchBtnLabelTextColor' => array(
247 'type' => 'object',
248 'default' => array(
249 'color' => '#ffffff',
250 'hoverColor' => '',
251 ),
252 ),
253 'searchBtnBgColor' => array(
254 'type' => 'object',
255 'default' => array(
256 'color' => array(
257 'style' => 'bgColor',
258 'transparent' => '',
259 'solidColor' => '#2F2F2F',
260 'gradient' => 'linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 50%, #E0EAFC 100%)',
261 ),
262 'hover' => array(
263 'style' => 'bgColor',
264 'transparent' => '',
265 'solidColor' => '',
266 'gradient' => 'linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 50%, #E0EAFC 100%)',
267 ),
268 ),
269 ),
270 'searchButtonBorder' => array(
271 'type' => 'object',
272 'default' => array(
273 'style' => 'solid',
274 'color' => '#2F2F2F',
275 ),
276 ),
277 'searchButtonHoverBorder' => array(
278 'type' => 'object',
279 'default' => array(
280 'style' => 'solid',
281 'color' => '#2F2F2F',
282 ),
283 ),
284 'searchButtonBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
285 'searchButtonHoverBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
286 'searchButtonBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
287 'searchButtonPadding' => $this->spacing_attribute( 12, 12, 12, 12, 'px', true ),
288 'gapWithIcon' => $this->ranger_attribute( 6, 6, 6, 'px' ),
289 'gapWithSearchField' => $this->ranger_attribute( 6, 6, 6, 'px' ),
290 'searchBtnLabel' => array(
291 'type' => 'boolean',
292 'default' => true,
293 ),
294 'searchBtnLabelText' => array(
295 'type' => 'string',
296 'default' => 'Search',
297 ),
298 'searchBtnReverse' => array(
299 'type' => 'boolean',
300 'default' => false,
301 ),
302 // Search Result General.
303 'ajaxSearch' => array(
304 'type' => 'boolean',
305 'default' => true,
306 ),
307 'searchResultDisplayType' => array(
308 'type' => 'string',
309 'default' => 'smart-search-result-layout-one',
310 ),
311 'searchResultNotFoundText' => array(
312 'type' => 'string',
313 'default' => 'No Result Found',
314 ),
315 'searchResultColumns' => $this->ranger_attribute( 1 ),
316 'searchResultColumnGap' => $this->ranger_attribute( 5, 5, 5, 'px' ),
317 'searchResultBoxWidth' => $this->ranger_attribute( 100, 100, 100, '%' ),
318 'searchResultBoxHeight' => $this->ranger_attribute( 552, 552, 552, 'px' ),
319 'searchResultShowImage' => array(
320 'type' => 'boolean',
321 'default' => true,
322 ),
323 'searchResultImageSize' => $this->ranger_attribute( 55, 55, 55, 'px' ),
324 'searchResultImageContentGap' => $this->ranger_attribute( 15, 15, 15, 'px' ),
325 'searchResultShowExcerpt' => array(
326 'type' => 'boolean',
327 'default' => false,
328 ),
329 'searchResultExcerptLimit' => array(
330 'type' => 'object',
331 'default' => array(
332 'value' => 10,
333 'unit' => 'words',
334 ),
335 ),
336 'searchResultShowTaxonomy' => array(
337 'type' => 'boolean',
338 'default' => false,
339 ),
340 'searchResultShowAuthor' => array(
341 'type' => 'boolean',
342 'default' => false,
343 ),
344 'searchResultShowDate' => array(
345 'type' => 'boolean',
346 'default' => true,
347 ),
348 'searchResultSpaceBetweenMeta' => $this->ranger_attribute( '', '', '', 'px' ),
349 'hightLightSearchTerm' => array(
350 'type' => 'boolean',
351 'default' => true,
352 ),
353 'searchResultItemSeparator' => array(
354 'type' => 'boolean',
355 'default' => true,
356 ),
357 'searchResultHorizontalPosition' => $this->ranger_attribute( 0, 0, 0, 'px' ),
358 'searchResultVerticalPosition' => $this->ranger_attribute( 100, 100, 100, '%' ),
359 // Search Result Style.
360 'searchResultTitleTypography' => array(
361 'type' => 'object',
362 'default' => array(
363 'typography' => array(
364 'family' => '',
365 'fontWeight' => '',
366 'style' => '',
367 'transform' => '',
368 'decoration' => '',
369 ),
370 ),
371 ),
372 'searchResultTitleGlobalTypography' => array(
373 'type' => 'object',
374 'default' => array(),
375 ),
376 'searchResultTitleFontSize' => $this->ranger_attribute( '', '', '', 'px' ),
377 'searchResultTitleLineHeight' => array(
378 'type' => 'object',
379 'default' => array(
380 'device' => array(
381 'Desktop' => '',
382 'Tablet' => '',
383 'Mobile' => '',
384 ),
385 ),
386 ),
387 'searchResultMetaTypography' => array(
388 'type' => 'object',
389 'default' => array(
390 'typography' => array(
391 'family' => '',
392 'fontWeight' => '',
393 'style' => '',
394 'transform' => '',
395 'decoration' => '',
396 ),
397 ),
398 ),
399 'searchResultMetaGlobalTypography' => array(
400 'type' => 'object',
401 'default' => array(),
402 ),
403 'searchResultMetaFontSize' => $this->ranger_attribute( '', '', '', 'px' ),
404 'searchResultMetaLineHeight' => array(
405 'type' => 'object',
406 'default' => array(
407 'device' => array(
408 'Desktop' => '',
409 'Tablet' => '',
410 'Mobile' => '',
411 ),
412 ),
413 ),
414 'searchResultTitleColor' => array(
415 'type' => 'object',
416 'default' => array(
417 'color' => '#2F2F2F',
418 'hoverColor' => '',
419 ),
420 ),
421 'searchResultMetaColor' => array(
422 'type' => 'object',
423 'default' => array(
424 'color' => '#757575',
425 'hoverColor' => '',
426 ),
427 ),
428 'searchResultHighlightColor' => array(
429 'type' => 'object',
430 'default' => array(
431 'color' => '#641DD7',
432 'hoverColor' => '',
433 ),
434 ),
435 'searchResultItemSeparatorColor' => array(
436 'type' => 'object',
437 'default' => array(
438 'color' => '#DDDDDD',
439 'hoverColor' => '',
440 ),
441 ),
442 'searchResultBoxBackground' => array(
443 'type' => 'object',
444 'default' => array(
445 'color' => array(
446 'style' => 'bgColor',
447 'solidColor' => '',
448 'gradient' => '',
449 ),
450 'hover' => array(
451 'style' => 'bgColor',
452 'solidColor' => '',
453 'gradient' => '',
454 ),
455 ),
456 ),
457 'searchResultBoxBorder' => array(
458 'type' => 'object',
459 'default' => array(
460 'style' => 'solid',
461 'color' => '#CCCCCC',
462 ),
463 ),
464 'searchResultHoverBoxBorder' => array(
465 'type' => 'object',
466 'default' => array(
467 'style' => 'solid',
468 'color' => '#CCCCCC',
469 ),
470 ),
471 'searchResultBoxBorderWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
472 'searchResultHoverBoxBorderWidth' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
473 'searchResultBoxBorderRadius' => $this->spacing_attribute( 4, 4, 4, 4, 'px', true ),
474 'searchResultBoxHoverBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
475 'searchResultBoxPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
476 'searchResultImgBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
477 // Query & Filter.
478 'postType' => array(
479 'type' => 'string',
480 'default' => 'post',
481 ),
482 'taxonomyFilterEnable' => array(
483 'type' => 'boolean',
484 'default' => false,
485 ),
486 'selectedTaxonomy' => array(
487 'type' => 'string',
488 'default' => 'category',
489 ),
490 'selectedTerms' => array(
491 'type' => 'array',
492 'default' => array(),
493 ),
494 'filterLabelText' => array(
495 'type' => 'string',
496 'default' => 'All Categories',
497 ),
498 // More results.
499 'moreResultsEnable' => array(
500 'type' => 'boolean',
501 'default' => true,
502 ),
503 'showResultsCount' => array(
504 'type' => 'boolean',
505 'default' => true,
506 ),
507 'initialPostDisplay' => array(
508 'type' => 'object',
509 'default' => array(
510 'value' => 4,
511 'unit' => '',
512 ),
513 ),
514 'moreResultLabelText' => array(
515 'type' => 'string',
516 'default' => 'View More',
517 ),
518 'moreResultClickAction' => array(
519 'type' => 'string',
520 'default' => 'expanded',
521 ),
522 'moreResultTypography' => array(
523 'type' => 'object',
524 'default' => array(
525 'typography' => array(
526 'family' => '',
527 'fontWeight' => '',
528 'style' => '',
529 'transform' => '',
530 'decoration' => '',
531 ),
532 ),
533 ),
534 'moreResultGlobalTypography' => array(
535 'type' => 'object',
536 'default' => array(),
537 ),
538 'moreResultFontSize' => $this->ranger_attribute( '', '', '', 'px' ),
539 'moreResultLineHeight' => array(
540 'type' => 'object',
541 'default' => array(
542 'device' => array(
543 'Desktop' => '',
544 'Tablet' => '',
545 'Mobile' => '',
546 ),
547 ),
548 ),
549 'moreResultLatterSpacing' => array(
550 'type' => 'object',
551 'default' => array(
552 'device' => array(
553 'Desktop' => 0,
554 'Tablet' => '',
555 'Mobile' => '',
556 ),
557 'unit' => array(
558 'Desktop' => 'px',
559 'Tablet' => 'px',
560 'Mobile' => 'px',
561 ),
562 ),
563 ),
564
565 'moreResultWordSpacing' => array(
566 'type' => 'object',
567 'default' => array(
568 'device' => array(
569 'Desktop' => 0,
570 'Tablet' => '',
571 'Mobile' => '',
572 ),
573 'unit' => array(
574 'Desktop' => 'px',
575 'Tablet' => 'px',
576 'Mobile' => 'px',
577 ),
578 ),
579 ),
580 'moreResultColor' => array(
581 'type' => 'object',
582 'default' => array(
583 'color' => '#2F2F2F',
584 'hoverColor' => '',
585 ),
586 ),
587 // Popup Canvas.
588 'popupCanvasWidth' => $this->ranger_attribute( 500, 500, 500, 'px' ),
589 'enablePopupHeading' => array(
590 'type' => 'boolean',
591 'default' => false,
592 ),
593 'popupHeadingText' => array(
594 'type' => 'string',
595 'default' => 'Search & Discover',
596 ),
597 'popupHeadingGap' => $this->ranger_attribute( 15, 10, 5, 'px' ),
598 'enablePopupCloseButton' => array(
599 'type' => 'boolean',
600 'default' => false,
601 ),
602 'popupCloseBtnIconSize' => $this->ranger_attribute( 10, 10, 10, 'px' ),
603 'popupHeadingAlignment' => array(
604 'type' => 'string',
605 'default' => 'center',
606 ),
607 'popupHeadingTypography' => array(
608 'type' => 'object',
609 'default' => array(
610 'typography' => array(
611 'family' => '',
612 'fontWeight' => '',
613 'style' => '',
614 'transform' => '',
615 'decoration' => '',
616 ),
617 ),
618 ),
619 'popupHeadingGlobalTypography' => array(
620 'type' => 'object',
621 'default' => array(),
622 ),
623 'popupHeadingFontSize' => array(
624 'type' => 'object',
625 'default' => array(
626 'device' => array(
627 'Desktop' => '',
628 'Tablet' => '',
629 'Mobile' => '',
630 ),
631 'unit' => array(
632 'Desktop' => 'px',
633 'Tablet' => 'px',
634 'Mobile' => 'px',
635 ),
636 ),
637 ),
638 'popupHeadingLineHeight' => array(
639 'type' => 'object',
640 'default' => array(
641 'device' => array(
642 'Desktop' => '',
643 'Tablet' => '',
644 'Mobile' => '',
645 ),
646 ),
647 ),
648 'popupHeadingLatterSpacing' => array(
649 'type' => 'object',
650 'default' => array(
651 'device' => array(
652 'Desktop' => 0,
653 'Tablet' => '',
654 'Mobile' => '',
655 ),
656 'unit' => array(
657 'Desktop' => 'px',
658 'Tablet' => 'px',
659 'Mobile' => 'px',
660 ),
661 ),
662 ),
663 'popupHeadingWordSpacing' => array(
664 'type' => 'object',
665 'default' => array(
666 'device' => array(
667 'Desktop' => 0,
668 'Tablet' => '',
669 'Mobile' => '',
670 ),
671 'unit' => array(
672 'Desktop' => 'px',
673 'Tablet' => 'px',
674 'Mobile' => 'px',
675 ),
676 ),
677 ),
678 'popupHeadingColor' => array(
679 'type' => 'object',
680 'default' => array(
681 'color' => '#2F2F2F',
682 'hoverColor' => '',
683 ),
684 ),
685 'popupCloseIconColor' => array(
686 'type' => 'object',
687 'default' => array(
688 'color' => '#2F2F2F',
689 'hoverColor' => '',
690 ),
691 ),
692 'popupCanvasBgColor' => array(
693 'type' => 'object',
694 'default' => array(
695 'color' => array(
696 'style' => 'bgColor',
697 'transparent' => '',
698 'solidColor' => '#ffffff',
699 'gradient' => 'linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 50%, #E0EAFC 100%)',
700 ),
701 'hover' => array(
702 'style' => 'bgColor',
703 'transparent' => '',
704 'solidColor' => '',
705 'gradient' => 'linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 50%, #E0EAFC 100%)',
706 ),
707 ),
708 ),
709 'popupCanvasBorder' => array(
710 'type' => 'object',
711 'default' => array(
712 'style' => '',
713 'color' => '#2F2F2F',
714 ),
715 ),
716 'popupCanvasHoverBorder' => array(
717 'type' => 'object',
718 'default' => array(
719 'style' => '',
720 'color' => '#2F2F2F',
721 ),
722 ),
723 'popupCanvasBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
724 'popupCanvasHoverBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
725 'popupCanvasBorderRadius' => $this->spacing_attribute( 4, 4, 4, 4, 'px', true ),
726 'popupCanvasPadding' => $this->spacing_attribute( 24, 24, 24, 24, 'px', true ),
727 'popupCanvasMargin' => $this->spacing_attribute( 15, 0, 0, 0, 'px', true ),
728 'popupCanvasBoxShadowEnable' => array(
729 'type' => 'boolean',
730 'default' => true,
731 ),
732 'popupCanvasBoxShadowValue' => array(
733 'type' => 'object',
734 'default' => array(
735 'value' => array(
736 'top' => '',
737 'right' => '',
738 'bottom' => '',
739 'left' => '',
740 ),
741 'unit' => 'outset',
742 'color' => '#ddd',
743 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
744 ),
745 ),
746
747 // advanced.
748 'isPreview' => array(
749 'type' => 'boolean',
750 'default' => false,
751 ),
752 'additionalCssClass' => array(
753 'type' => 'string',
754 'default' => '',
755 ),
756 'customCss' => array(
757 'type' => 'string',
758 'default' => '',
759 ),
760 'hideOnDesktop' => array(
761 'type' => 'boolean',
762 'default' => false,
763 ),
764 'hideOnTablet' => array(
765 'type' => 'boolean',
766 'default' => false,
767 ),
768 'hideOnMobile' => array(
769 'type' => 'boolean',
770 'default' => false,
771 ),
772 'fontLists' => array(
773 'type' => 'string',
774 'default' => '',
775 ),
776 'fontListsEditPage' => array(
777 'type' => 'string',
778 'default' => '',
779 ),
780 'globalBreakPointData' => array(
781 'type' => 'object',
782 'default' => array(),
783 ),
784 );
785