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 / thumbnail-slider / attributes.php

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

157 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Thumbnail slider 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 $post_thumbnail_attributes = array(
14 'thumbnailSliderLayout' => array(
15 'type' => 'string',
16 'default' => 'thumbnail-slider-layout-one',
17 ),
18 'postThumbSubheadingLabel' => array(
19 'type' => 'string',
20 'default' => 'About Post Carousel',
21 ),
22 'postThumbnailPosition' => array(
23 'type' => 'string',
24 'default' => 'bottom',
25 ),
26 'postThumbnailHeight' => $this->ranger_attribute( 620, 350, 220 ),
27 'postThumbnailVerticalGap' => $this->ranger_attribute( 12 ),
28 'postThumbnailGap' => $this->ranger_attribute( 10 ),
29 'postThumbnailItemsPerSlide' => array(
30 'type' => 'object',
31 'default' => array(
32 'device' => array(
33 'Desktop' => 5,
34 'Tablet' => 3,
35 'Mobile' => 2,
36 ),
37 ),
38 ),
39 'postThumbnailSlideToScroll' => array(
40 'type' => 'object',
41 'default' => array(
42 'device' => array(
43 'Desktop' => 1,
44 'Tablet' => 1,
45 'Mobile' => 1,
46 ),
47 ),
48 ),
49 'postThumbnailAnimationEffect' => array(
50 'type' => 'string',
51 'default' => 'slide',
52 ),
53 'postThumbnailAdaptiveHeight' => array(
54 'type' => 'boolean',
55 'default' => false,
56 ),
57 'postThumbnailTabKeyNavigation' => array(
58 'type' => 'boolean',
59 'default' => true,
60 ),
61 'postThumbnailMouseWheelControl' => array(
62 'type' => 'boolean',
63 'default' => false,
64 ),
65 'postThumbnailFreeScrollMode' => array(
66 'type' => 'boolean',
67 'default' => false,
68 ),
69 'postThumbnailNavigationArrow' => array(
70 'type' => 'boolean',
71 'default' => true,
72 ),
73 'postThumbnailPaginationDot' => array(
74 'type' => 'boolean',
75 'default' => true,
76 ),
77 'thumbnailItemsHeight' => $this->ranger_attribute( 140, 100, 80 ),
78 'thumbnailItemsTitleColor' => array(
79 'type' => 'object',
80 'default' => array(
81 'color' => '#DDDDDD',
82 'hoverColor' => '#FFFFFF',
83 ),
84 ),
85 'thumbnailItemsCateColor' => array(
86 'type' => 'object',
87 'default' => array(
88 'color' => '#DDDDDD',
89 'hoverColor' => '#FFFFFF',
90 ),
91 ),
92 'layoutSixPostCardBg' => array(
93 'type' => 'object',
94 'default' => array(
95 'color' => array(
96 'style' => 'bgColor',
97 'transparent' => '',
98 'solidColor' => '#333333',
99 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
100 ),
101 'hover' => array(
102 'style' => 'bgColor',
103 'transparent' => '',
104 'solidColor' => '',
105 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
106 ),
107 ),
108 ),
109 'thumbnailThumbBGColor' => array(
110 'type' => 'object',
111 'default' => array(
112 'color' => array(
113 'style' => 'bgColor',
114 'transparent' => '',
115 'solidColor' => '#333',
116 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
117 ),
118 'hover' => array(
119 'style' => 'bgColor',
120 'transparent' => '',
121 'solidColor' => 'var(--smart-post-secondary)',
122 'gradient' => '',
123 ),
124 ),
125 ),
126 'postThumbnailLoop' => array(
127 'type' => 'Boolean',
128 'default' => true,
129 ),
130 'carouselData' => array(
131 'type' => 'string',
132 'default' => '',
133 ),
134 'thumbnailsData' => array(
135 'type' => 'string',
136 'default' => '',
137 ),
138
139
140 'titleEffect' => array(
141 'type' => 'string',
142 'default' => 'none',
143 ),
144
145
146 'titleUnderlineEffect' => array(
147 'type' => 'string',
148 'default' => 'leftToRight',
149 ),
150 'titleEffectColor' => array(
151 'type' => 'string',
152 'default' => '#fff',
153 ),
154
155 );
156 return array_merge( $post_thumbnail_attributes, $shared_attributes, $carousel_attributes );
157