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 / taxonomy-filter / attributes.php

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

326 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Taxonomy filter 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 'blockName' => array(
15 'type' => 'string',
16 ),
17 'spBlockId' => array( 'type' => 'string' ),
18 'uniqueId' => array(
19 'type' => 'string',
20 ),
21 'dynamicCss' => array( 'type' => 'string' ),
22 'postType' => array(
23 'type' => 'string',
24 'default' => 'multiple_post_type',
25 ),
26 'multiplePostType' => array(
27 'type' => 'array',
28 'default' => array(),
29 ),
30 'postQuery' => array(
31 'type' => 'string',
32 'default' => '',
33 ),
34 'filterType' => array(
35 'type' => 'string',
36 'default' => 'dropdown',
37 ),
38 'taxonomyType' => array(
39 'type' => 'string',
40 'default' => 'category',
41 ),
42 'selectTermsType' => array(
43 'type' => 'string',
44 'default' => 'all',
45 ),
46 'selectedTerms' => array(
47 'type' => 'array',
48 'default' => array(),
49 ),
50 'excludeTerms' => array(
51 'type' => 'array',
52 'default' => array(),
53 ),
54 'hideEmptyTerm' => array(
55 'type' => 'boolean',
56 'default' => false,
57 ),
58 'categoryLabel' => array(
59 'type' => 'boolean',
60 'default' => true,
61 ),
62 'overrideCategoryLabel' => array(
63 'type' => 'string',
64 'default' => '',
65 ),
66 'allTextLabel' => array(
67 'type' => 'string',
68 'default' => 'All',
69 ),
70 'showPostCount' => array(
71 'type' => 'boolean',
72 'default' => false,
73 ),
74 'searchInDropdown' => array(
75 'type' => 'boolean',
76 'default' => false,
77 ),
78 'alignment' => array(
79 'type' => 'string',
80 'default' => 'center',
81 ),
82
83 // style.
84 'fieldLabelColor' => array(
85 'type' => 'string',
86 'default' => '',
87 ),
88 'fieldOptionColor' => array(
89 'type' => 'object',
90 'default' => array(
91 'color' => '',
92 'hoverColor' => '',
93 ),
94 ),
95 'fieldBg' => array(
96 'type' => 'object',
97 'default' => array(
98 'color' => '',
99 'hoverColor' => '',
100 ),
101 ),
102 'fieldBorder' => array(
103 'type' => 'object',
104 'default' => array(
105 'color' => '',
106 'style' => '',
107 ),
108 ),
109 'fieldBorderHover' => array(
110 'type' => 'object',
111 'default' => array(
112 'color' => '',
113 'style' => '',
114 ),
115 ),
116 'fieldBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
117 'fieldBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
118 'fieldBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
119 'fieldBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
120 'fieldPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
121
122 // Dropdown.
123 'dropdownOptionColor' => array(
124 'type' => 'object',
125 'default' => array(
126 'color' => '',
127 'hover' => '',
128 ),
129 ),
130 'dropdownOptionBg' => array(
131 'type' => 'object',
132 'default' => array(
133 'color' => '',
134 'hover' => '',
135 ),
136 ),
137 'dropdownOptionBorder' => array(
138 'type' => 'object',
139 'default' => array(
140 'style' => 'solid',
141 'color' => '#CCCCCC',
142 ),
143 ),
144
145 'dropdownOptionBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
146 'dropdownBorderRadius' => $this->spacing_attribute( '4', '4', '4', '4', 'px', true ),
147 'dropdownGap' => array(
148 'type' => 'object',
149 'default' => array(
150 'device' => array(
151 'Desktop' => 16,
152 'Tablet' => '',
153 'Mobile' => '',
154 ),
155 'unit' => array(
156 'Desktop' => 'px',
157 'Tablet' => 'px',
158 'Mobile' => 'px',
159 ),
160 ),
161 ),
162 'dropdownShadowEnable' => array(
163 'type' => 'boolean',
164 'default' => true,
165 ),
166 'dropdownShadow' => array(
167 'type' => 'object',
168 'default' => array(
169 'device' => array(
170 'Desktop' => array(
171 'top' => 3,
172 'right' => 3,
173 'bottom' => 6,
174 'left' => 0,
175 ),
176 'Tablet' => array(
177 'top' => '',
178 'right' => '',
179 'bottom' => '',
180 'left' => '',
181 ),
182 'Mobile' => array(
183 'top' => '',
184 'right' => '',
185 'bottom' => '',
186 'left' => '',
187 ),
188 ),
189 'unit' => array(
190 'Desktop' => 'outset',
191 'Tablet' => 'outset',
192 'Mobile' => 'outset',
193 ),
194 'color' => '#4E4F521A',
195 'selectDefault' => 'button-shadow-4dp',
196 ),
197 ),
198 'dropdownShadowEnableHover' => array(
199 'type' => 'boolean',
200 'default' => false,
201 ),
202 'dropdownShadowHover' => array(
203 'type' => 'object',
204 'default' => array(
205 'device' => array(
206 'Desktop' => array(
207 'top' => 3,
208 'right' => 3,
209 'bottom' => 6,
210 'left' => 0,
211 ),
212 'Tablet' => array(
213 'top' => '',
214 'right' => '',
215 'bottom' => '',
216 'left' => '',
217 ),
218 'Mobile' => array(
219 'top' => '',
220 'right' => '',
221 'bottom' => '',
222 'left' => '',
223 ),
224 ),
225 'unit' => array(
226 'Desktop' => 'outset',
227 'Tablet' => 'outset',
228 'Mobile' => 'outset',
229 ),
230 'color' => '',
231 'selectDefault' => 'var(--smart-post-shadow-medium-4dp)',
232 ),
233 ),
234 'dropdownPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
235 'dropdownMargin' => $this->spacing_attribute( 8, 0, 0, 0, 'px', false ),
236 // Search.
237 'searchPlaceholderText' => array(
238 'type' => 'string',
239 'default' => 'Search...',
240 ),
241 'searchColor' => array(
242 'type' => 'object',
243 'default' => array(
244 'color' => '',
245 'hoverColor' => '',
246 ),
247 ),
248 'searchPlaceholderColor' => array(
249 'type' => 'object',
250 'default' => array(
251 'color' => '',
252 'hoverColor' => '',
253 ),
254 ),
255 'searchBG' => array(
256 'type' => 'object',
257 'default' => array(
258 'color' => '',
259 'hoverColor' => '',
260 ),
261 ),
262 'searchBorder' => array(
263 'type' => 'object',
264 'default' => array(
265 'style' => 'solid',
266 'color' => '',
267 ),
268 ),
269 'searchBorderWidth' => $this->spacing_attribute( '1', '1', '1', '1', 'px', true ),
270 'searchBorderRadius' => $this->spacing_attribute( 5, 5, 5, 5, 'px', true ),
271 'searchPadding' => $this->spacing_attribute( 5, 10, 5, 10, 'px', false ),
272
273 // button style.
274 'buttonColor' => array(
275 'type' => 'object',
276 'default' => array(
277 'color' => '',
278 'hoverColor' => '',
279 ),
280 ),
281 'buttonBg' => array(
282 'type' => 'object',
283 'default' => array(
284 'color' => '',
285 'hoverColor' => '',
286 ),
287 ),
288 'buttonBorder' => array(
289 'type' => 'object',
290 'default' => array(
291 'style' => 'solid',
292 'color' => '',
293 ),
294 ),
295 'buttonBorderWidth' => $this->spacing_attribute( '', '', '', '', 'px', true ),
296 'buttonBorderRadius' => $this->spacing_attribute( '', '', '', '', 'px', true ),
297 'buttonBorderHover' => array(
298 'type' => 'object',
299 'default' => array(
300 'style' => '',
301 'color' => '',
302 ),
303 ),
304 'buttonGap' => $this->ranger_attribute( 10 ),
305 'buttonBorderWidthHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
306 'buttonBorderRadiusHover' => $this->spacing_attribute( '', '', '', '', 'px', true ),
307 'buttonPadding' => $this->spacing_attribute( '', '', '', '', 'px', true ),
308 'additionalCssClass' => array(
309 'type' => 'string',
310 'default' => '',
311 ),
312 'customCss' => array(
313 'type' => 'string',
314 'default' => '',
315 ),
316 'titleGlobalTypography' => array(
317 'type' => 'object',
318 'default' => array(),
319 ),
320 'globalBreakPointData' => array(
321 'type' => 'object',
322 'default' => array(),
323 ),
324 'filterWidth' => $this->ranger_attribute( '', '', '', 'px' ),
325 );
326