PluginProbe
Visual Slider / trunk
Visual Slider vtrunk
visual-slider / layer / mini / position_size.php

position_size.php in Visual Slider trunk, at layer/mini/position_size.php

355 lines 9.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5
6 $option[]= array(
7 "responsive" => "desktop",
8 "name" => __('Align','visual-slider'),
9 "id" => "align",
10 "width" => "100%",
11 "type" => "multi_options",
12 "default" => array('horizontal'=>'left','vertical'=>'top'),
13
14 "group" => __('Position and Size','visual-slider'),
15 "options" => array(
16 array(
17 "name" => __('Horizontal Position','visual-slider'),
18 "id" => "horizontal",
19 "warp_width" => "50%",
20 "width" => "22%",
21 "type" => "radio_image",
22 "options" => array(
23 'left' => VISUALSLIDER_DIR.'admin/assets/image/layer_left.png',
24 'center' => VISUALSLIDER_DIR.'admin/assets/image/layer_center.png',
25 'right' => VISUALSLIDER_DIR.'admin/assets/image/layer_right.png',
26 ),
27 ),
28 array(
29 "name" => __('Vertical Position','visual-slider'),
30 "id" => "vertical",
31 "warp_width" => "50%",
32 "width" => "22%",
33 "type" => "radio_image",
34 "options" => array(
35 'top' => VISUALSLIDER_DIR.'admin/assets/image/layer_top.png',
36 'middle' => VISUALSLIDER_DIR.'admin/assets/image/layer_middle.png',
37 'bottom' => VISUALSLIDER_DIR.'admin/assets/image/layer_bottom.png',
38 ),
39 ),
40 ),
41
42 );
43
44
45
46
47
48 $option[]= array(
49 "responsive" => "desktop",
50 "name" => __('Position','visual-slider'),
51 "id" => "position",
52
53
54 "width" => "100%",
55 "type" => "multi_options",
56 "group" => __('Position and Size','visual-slider'),
57 "options" => array(
58 array(
59 "name" => __('Horizontal','visual-slider'),
60 "id" => "horizontal",
61 "unit" => 'px',
62 "warp_width" => "50%",
63 "width" => '60px',
64 "min" => '-99999',
65 "type" => "number",
66 ),
67 array(
68 "name" => __('Vertical','visual-slider'),
69 "id" => "vertical",
70 "unit" => 'px',
71 "warp_width" => "50%",
72 "min" => '-99999',
73 "width" => '60px',
74 "type" => "number",
75 ),
76 ),
77
78 );
79
80
81
82
83
84
85 $option[]= array(
86 "responsive" => "desktop",
87 "name" => __('Size','visual-slider'),
88 "id" => "size",
89 "width" => "100%",
90 "default" => !empty($default)?$default:'',
91 "type" => "multi_options",
92 "group" => __('Position and Size','visual-slider'),
93 "options" => array(
94 array(
95 "name" => __('Width','visual-slider'),
96 "id" => "width",
97 "unit" => 'px',
98 "warp_width" => "50%",
99 "type" => "number",
100 ),
101 array(
102 "name" => __('Height','visual-slider'),
103 "id" => "height",
104 "unit" => 'px',
105 "warp_width" => "50%",
106 "type" => "number",
107 ),
108 ),
109
110 );
111
112 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_tablet', FILTER_VALIDATE_BOOLEAN )))){
113 $option[]= array(
114 "responsive" => "tablet",
115 "name" => __('Responsive in Tablet','visual-slider'),
116 "group" => __('Position and Size','visual-slider'),
117 "id" => "tablet_heading",
118 "type" => "heading",
119 );
120 $option[]= array(
121 "responsive" => "tablet",
122 "name" => __('Display on Tablet','visual-slider'),
123 "id" => "tablet_display",
124 "type" => 'radio',
125 "options" => array(
126 'show' => __('Show','visual-slider'),
127 'hide' => __('Hide','visual-slider'),
128 ),
129 "group" => __('Position and Size','visual-slider'),
130 );
131
132 $option[]= array(
133 "responsive" => "tablet",
134
135 "name" => __('Position','visual-slider'),
136 "id" => "tablet_align",
137 "width" => "100%",
138 "type" => "multi_options",
139
140
141 "group" => __('Position and Size','visual-slider'),
142 "options" => array(
143 array(
144 "name" => __('Horizontal Position','visual-slider'),
145 "id" => "horizontal",
146 "warp_width" => "50%",
147 "width" => "22%",
148 "type" => "radio_image",
149 "options" => array(
150 '' => VISUALSLIDER_DIR.'admin/assets/image/layer_none.png',
151 'left' => VISUALSLIDER_DIR.'admin/assets/image/layer_left.png',
152 'center' => VISUALSLIDER_DIR.'admin/assets/image/layer_center.png',
153 'right' => VISUALSLIDER_DIR.'admin/assets/image/layer_right.png',
154 ),
155 ),
156 array(
157 "name" => __('Vertical Position','visual-slider'),
158 "id" => "vertical",
159 "warp_width" => "50%",
160 "width" => "22%",
161 "type" => "radio_image",
162 "options" => array(
163 '' => VISUALSLIDER_DIR.'admin/assets/image/layer_none.png',
164 'top' => VISUALSLIDER_DIR.'admin/assets/image/layer_top.png',
165 'middle' => VISUALSLIDER_DIR.'admin/assets/image/layer_middle.png',
166 'bottom' => VISUALSLIDER_DIR.'admin/assets/image/layer_bottom.png',
167 ),
168 ),
169 ),
170
171 );
172 $option[]= array(
173 "responsive" => "tablet",
174 "name" => __('Position','visual-slider'),
175 "id" => "tablet_position",
176 "width" => "100%",
177 "type" => "multi_options",
178
179 "group" => __('Position and Size','visual-slider'),
180 "options" => array(
181 array(
182 "name" => __('Horizontal','visual-slider'),
183 "id" => "horizontal",
184 "unit" => 'px',
185 "min" => '-99999',
186 "warp_width" => "50%",
187 "type" => "number",
188 ),
189 array(
190 "name" => __('Vertical','visual-slider'),
191 "id" => "vertical",
192 "unit" => 'px',
193 "min" => '-99999',
194 "type" => "number",
195 ),
196 ),
197
198 );
199
200
201
202
203
204
205 $option[]= array(
206 "responsive" => "tablet",
207 "name" => __('Size','visual-slider'),
208 "id" => "tablet_size",
209 "width" => "100%",
210 "type" => "multi_options",
211
212 "group" => __('Position and Size','visual-slider'),
213 "options" => array(
214 array(
215 "name" => __('Width','visual-slider'),
216 "id" => "width",
217 "unit" => 'px',
218 "warp_width" => "50%",
219 "type" => "number",
220 ),
221 array(
222 "name" => __('Height','visual-slider'),
223 "id" => "height",
224 "unit" => 'px',
225 "warp_width" => "50%",
226 "type" => "number",
227 ),
228 ),
229
230 );
231
232 }
233
234 if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_mobile', FILTER_VALIDATE_BOOLEAN )))){
235 $option[]= array(
236 "responsive" => "mobile",
237 "name" => __('Responsive in Mobile','visual-slider'),
238 "group" => __('Position and Size','visual-slider'),
239 "id" => "mobile_heading",
240 "type" => "heading",
241 );
242 $option[]= array(
243 "name" => __('Display on Mobile','visual-slider'),
244 "id" => "mobile_display",
245 "responsive" => "mobile",
246 "type" => 'radio',
247 "options" => array(
248 'show' => __('Show','visual-slider'),
249 'hide' => __('Hide','visual-slider'),
250 ),
251 "group" => __('Position and Size','visual-slider'),
252 );
253
254 $option[]= array(
255 "responsive" => "mobile",
256
257 "name" => __('Position','visual-slider'),
258 "id" => "mobile_align",
259 "width" => "100%",
260 "type" => "multi_options",
261
262 "group" => __('Position and Size','visual-slider'),
263 "options" => array(
264 array(
265 "name" => __('Horizontal Position','visual-slider'),
266 "id" => "horizontal",
267 "warp_width" => "50%",
268 "width" => "22%",
269 "type" => "radio_image",
270 "options" => array(
271 '' => VISUALSLIDER_DIR.'admin/assets/image/layer_none.png',
272 'left' => VISUALSLIDER_DIR.'admin/assets/image/layer_left.png',
273 'center' => VISUALSLIDER_DIR.'admin/assets/image/layer_center.png',
274 'right' => VISUALSLIDER_DIR.'admin/assets/image/layer_right.png',
275 ),
276 ),
277 array(
278 "name" => __('Vertical Position','visual-slider'),
279 "id" => "vertical",
280 "warp_width" => "50%",
281 "width" => "22%",
282 "type" => "radio_image",
283 "options" => array(
284 '' => VISUALSLIDER_DIR.'admin/assets/image/layer_none.png',
285 'top' => VISUALSLIDER_DIR.'admin/assets/image/layer_top.png',
286 'middle' => VISUALSLIDER_DIR.'admin/assets/image/layer_middle.png',
287 'bottom' => VISUALSLIDER_DIR.'admin/assets/image/layer_bottom.png',
288 ),
289 ),
290 ),
291
292 );
293 $option[]= array(
294 "responsive" => "mobile",
295 "name" => __('Position','visual-slider'),
296 "id" => "mobile_position",
297 "width" => "100%",
298 "type" => "multi_options",
299
300 "group" => __('Position and Size','visual-slider'),
301 "options" => array(
302 array(
303 "name" => __('Horizontal','visual-slider'),
304 "id" => "horizontal",
305 "unit" => 'px',
306 "min" => '-99999',
307 "warp_width" => "50%",
308 "type" => "number",
309 ),
310 array(
311 "name" => __('Vertical','visual-slider'),
312 "id" => "vertical",
313 "unit" => 'px',
314 "min" => '-99999',
315 "warp_width" => "50%",
316 "type" => "number",
317 ),
318 ),
319
320 );
321
322
323
324
325
326
327 $option[]= array(
328 "responsive" => "mobile",
329 "name" => __('Size','visual-slider'),
330 "id" => "mobile_size",
331 "width" => "100%",
332 "type" => "multi_options",
333
334 "group" => __('Position and Size','visual-slider'),
335 "options" => array(
336 array(
337 "name" => __('Width','visual-slider'),
338 "id" => "width",
339 "unit" => 'px',
340 "warp_width" => "50%",
341 "type" => "number",
342 ),
343 array(
344 "name" => __('Height','visual-slider'),
345 "id" => "height",
346 "unit" => 'px',
347 "warp_width" => "50%",
348 "type" => "number",
349 ),
350 ),
351
352 );
353
354 }
355