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

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.4, at blocks/includes/container/attributes.php

342 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Container 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 'containerLayer' => array(
15 'type' => 'string',
16 'default' => '',
17 ),
18 'layerLayoutNo' => array(
19 'type' => 'number',
20 'default' => '',
21 ),
22 'uniqueId' => array(
23 'type' => 'string',
24 'default' => '',
25 ),
26 'blockName' => array(
27 'type' => 'string',
28 'default' => '',
29 ),
30 'dynamicCss' => array(
31 'type' => 'string',
32 ),
33 'customCss' => array(
34 'type' => 'string',
35 ),
36 // 'columns' => $this->ranger_attribute( '', '', '', false ),
37 'columns' => array(
38 'type' => 'number',
39 'default' => '',
40 ),
41 'columnsTablet' => array(
42 'type' => 'number',
43 'default' => '',
44 ),
45 'columnsMobile' => array(
46 'type' => 'number',
47 'default' => 1,
48 ),
49 'layout' => array(
50 'type' => 'string',
51 'default' => '',
52 ),
53 'containerWidth' => array(
54 'type' => 'string',
55 'default' => 'full-width',
56 ),
57 'containerCustomWidth' => $this->ranger_attribute( '', '', '', 'px' ),
58 'contentWidth' => $this->ranger_attribute( '', '', '', 'px' ),
59 'contentHeightType' => array(
60 'type' => 'string',
61 'default' => 'default',
62 ),
63 'containerMinHeight' => $this->ranger_attribute( '', '', '', 'px' ),
64 'columnsGap' => $this->ranger_attribute( 16, '', '', 'px' ),
65 'rowGap' => $this->ranger_attribute( 16, '', '', 'px' ),
66 'equalHeight' => array(
67 'type' => 'boolean',
68 'default' => false,
69 ),
70 'htmlTag' => array(
71 'type' => 'string',
72 'default' => 'div',
73 ),
74 'containerOverflow' => array(
75 'type' => 'string',
76 'default' => 'visible',
77 ),
78 'containerBG' => array(
79 'type' => 'object',
80 'default' => array(
81 'color' => array(
82 'style' => 'bgColor',
83 'solidColor' => '',
84 'gradient' => '',
85 ),
86 'hover' => array(
87 'style' => 'bgColor',
88 'solidColor' => '',
89 'gradient' => '',
90 ),
91 ),
92 ),
93 'containerBGImage' => array(
94 'type' => 'object',
95 'default' => array(),
96 ),
97 'containerBGImageHover' => array(
98 'type' => 'object',
99 'default' => array(),
100 ),
101 'containerBGVideo' => array(
102 'type' => 'object',
103 'default' => array(),
104 ),
105 'containerOverlayType' => array(
106 'type' => 'string',
107 'default' => 'no-overlay',
108 ),
109 'containerOverlayBg' => array(
110 'type' => 'object',
111 'default' => array(
112 'color' => array(
113 'style' => 'bgColor',
114 'solidColor' => '#1E1E1E',
115 'gradient' => '',
116 ),
117 'hover' => array(
118 'style' => 'bgColor',
119 'solidColor' => '',
120 'gradient' => '',
121 ),
122 ),
123 ),
124 'containerOverlayOpacity' => $this->ranger_attribute( 50, 50, 50, '%' ),
125 'containerOverlayBlandMode' => array(
126 'type' => 'string',
127 'default' => 'normal',
128 ),
129 'containerOverlayTypeHover' => array(
130 'type' => 'string',
131 'default' => 'no-overlay',
132 ),
133 'containerOverlayOpacityHover' => $this->ranger_attribute( 50, 50, 50, '%' ),
134 'containerOverlayBlandModeHover' => array(
135 'type' => 'string',
136 'default' => 'normal',
137 ),
138 'containerBorder' => array(
139 'type' => 'object',
140 'default' => array(
141 'style' => 'none',
142 'hoverStyle' => '',
143 'color' => '#E0E0E0',
144 'hoverColor' => '',
145 ),
146 ),
147 'containerBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ),
148 'containerBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
149 'containerBorderRadius' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ),
150 'containerBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
151 'containerBoxShadowEnable' => array(
152 'type' => 'boolean',
153 'default' => false,
154 ),
155 'containerBoxShadow' => array(
156 'type' => 'object',
157 'default' => array(
158 'value' => array(
159 'top' => '',
160 'right' => '',
161 'bottom' => '',
162 'left' => '',
163 ),
164 'unit' => 'outset',
165 'color' => '#ddd',
166 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
167 ),
168 ),
169 'containerBoxShadowEnableHover' => array(
170 'type' => 'boolean',
171 'default' => false,
172 ),
173 'containerBoxShadowHover' => array(
174 'type' => 'object',
175 'default' => array(
176 'value' => array(
177 'top' => '',
178 'right' => '',
179 'bottom' => '',
180 'left' => '',
181 ),
182 'unit' => 'outset',
183 'color' => '#ddd',
184 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
185 ),
186 ),
187 'containerPadding' => $this->spacing_attribute( 15, 15, 15, 15, 'px', true ),
188 'containerMargin' => $this->spacing_attribute( '', '', '', '', 'px', true ),
189 'containerFlexDirection' => array(
190 'type' => 'object',
191 'default' => array(
192 'device' => array(
193 'Desktop' => 'row',
194 'Tablet' => '',
195 'Mobile' => '',
196 ),
197 ),
198 ),
199 'containerJustifyContent' => array(
200 'type' => 'object',
201 'default' => array(
202 'device' => array(
203 'Desktop' => 'flex-start',
204 'Tablet' => 'flex-start',
205 'Mobile' => 'flex-start',
206 ),
207 ),
208 ),
209 'containerFlexWrap' => array(
210 'type' => 'object',
211 'default' => array(
212 'device' => array(
213 'Desktop' => 'wrap',
214 'Tablet' => 'wrap',
215 'Mobile' => 'wrap',
216 ),
217 ),
218 ),
219 'containerAlignItem' => array(
220 'type' => 'object',
221 'default' => array(
222 'device' => array(
223 'Desktop' => 'flex-start',
224 'Tablet' => 'flex-start',
225 'Mobile' => 'flex-start',
226 ),
227 ),
228 ),
229 'containerShapeDivider' => array(
230 'type' => 'string',
231 'default' => 'top',
232 ),
233 'containerTopDividerType' => array(
234 'type' => 'string',
235 'default' => 'none',
236 ),
237 'containerBottomDividerType' => array(
238 'type' => 'string',
239 'default' => 'none',
240 ),
241 'shapeDividerBgColorTop' => array(
242 'type' => 'object',
243 'default' => array(
244 'color' => array(
245 'style' => 'bgColor',
246 'solidColor' => 'var(--smart-post-secondary)',
247 'gradient' => '',
248 ),
249 ),
250 ),
251 'shapeDividerWidthTop' => $this->ranger_attribute( 100, 100, 100, '%' ),
252 'shapeDividerHeightTop' => $this->ranger_attribute( 100, 100, 100, 'px' ),
253 'shapeDividerFlipTop' => array(
254 'type' => 'boolean',
255 'default' => false,
256 ),
257 'shapeDividerBringToFrontTop' => array(
258 'type' => 'boolean',
259 'default' => false,
260 ),
261 'shapeDividerBgColorBottom' => array(
262 'type' => 'object',
263 'default' => array(
264 'color' => array(
265 'style' => 'bgColor',
266 'solidColor' => 'var(--smart-post-secondary)',
267 'gradient' => '',
268 ),
269 ),
270 ),
271 'shapeDividerWidthBottom' => $this->ranger_attribute( 100, 100, 100, '%' ),
272 'shapeDividerHeightBottom' => $this->ranger_attribute( 100, 100, 100, 'px' ),
273 'shapeDividerFlipBottom' => array(
274 'type' => 'boolean',
275 'default' => false,
276 ),
277 'shapeDividerBringToFrontBottom' => array(
278 'type' => 'boolean',
279 'default' => false,
280 ),
281 'advanceZIndex' => array(
282 'type' => 'number',
283 'default' => '',
284 ),
285 'advanceWrapperLink' => array(
286 'type' => 'boolean',
287 'default' => false,
288 ),
289 'advanceWrapperLinkUrl' => array(
290 'type' => 'string',
291 'default' => '',
292 ),
293 'advanceWrapperLinkNewTab' => array(
294 'type' => 'boolean',
295 'default' => false,
296 ),
297 'advanceVisibilityHideDesktop' => array(
298 'type' => 'boolean',
299 'default' => false,
300 ),
301 'advanceVisibilityHideTablet' => array(
302 'type' => 'boolean',
303 'default' => false,
304 ),
305 'advanceVisibilityHideMobile' => array(
306 'type' => 'boolean',
307 'default' => false,
308 ),
309 'advancedAdditionalID' => array(
310 'type' => 'string',
311 'default' => '',
312 ),
313 'advancedAdditionalClass' => array(
314 'type' => 'string',
315 'default' => '',
316 ),
317 'currentScreen' => array(
318 'type' => 'string',
319 'default' => 'Desktop',
320 ),
321 'isPreview' => array(
322 'type' => 'boolean',
323 'default' => false,
324 ),
325 'globalBreakPointData' => array(
326 'type' => 'object',
327 'default' => array(),
328 ),
329 'blockClientId' => array(
330 'type' => 'string',
331 'default' => '',
332 ),
333 'containerColumnRoot' => array(
334 'type' => 'object',
335 'default' => array(),
336 ),
337 'align' => array(
338 'type' => 'string',
339 'default' => 'full',
340 ),
341 );
342