PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.7.9
Shortcodes and extra features for Phlox theme v2.7.9
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / admin / includes / metaboxes / metabox-fields-general-header.php
auxin-elements / admin / includes / metaboxes Last commit date
metabox-fields-general-advanced.php 5 years ago metabox-fields-general-custom-logo.php 5 years ago metabox-fields-general-footer-template-settings.php 6 years ago metabox-fields-general-footer-template.php 6 years ago metabox-fields-general-footer.php 5 years ago metabox-fields-general-header-template-settings.php 5 years ago metabox-fields-general-header-template.php 5 years ago metabox-fields-general-header.php 5 years ago metabox-fields-general-top-header.php 5 years ago metabox-fields-page-template.php 5 years ago metabox-fields-post-audio.php 5 years ago metabox-fields-post-gallery.php 5 years ago metabox-fields-post-quote.php 5 years ago metabox-fields-post-video.php 5 years ago
metabox-fields-general-header.php
900 lines
1 <?php
2 /**
3 * Adds fields for header metabox
4 *
5 *
6 * @package Auxin
7 * @license LICENSE.txt
8 * @author averta
9 * @link http://phlox.pro/
10 * @copyright (c) 2010-2021 averta
11 */
12
13 // no direct access allowed
14 if ( ! defined('ABSPATH') ) exit;
15
16
17 function auxin_metabox_fields_general_header(){
18
19 $model = new Auxin_Metabox_Model();
20 $model->id = 'general-header';
21 $model->title = __('Header', 'auxin-elements');
22 $model->is_deprecated = true;
23 $model->fields = array(
24
25 array(
26 'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
27 'description' => __( 'Disable it to replace header section with an Elementor template', THEME_DOMAIN ),
28 'id' => 'page_header_section_use_legacy',
29 'type' => 'select',
30 'transport' => 'postMessage',
31 'default' => 'default',
32 'related_controls' => ['page_header_use_legacy'],
33 'choices' => array(
34 'default' => __( 'Theme Default', 'auxin-elements' ),
35 'yes' => __( 'Yes', 'auxin-elements' ),
36 'no' => __( 'No', 'auxin-elements' ),
37 ),
38 ),
39
40 array(
41 'title' => __( 'Page Custom Menu', 'auxin-elements' ),
42 'description' => __( 'Specifies a custom menu for this page.', 'auxin-elements' ),
43 'id' => 'page_header_menu',
44 'type' => 'select',
45 'choices' => auxin_registered_nav_menus(),
46 'default' => 'default',
47 'dependency' => array(
48 array(
49 'id' => 'page_header_section_use_legacy',
50 'value' => array( 'yes' ),
51 'operator'=> '!='
52 ),
53 ),
54 ),
55
56 array(
57 'title' => __( 'Page Cover', 'auxin-elements' ),
58 'description' => __( 'Specifies a cover with animations for this page.', 'auxin-elements' ),
59 'id' => 'display_page_header_cover',
60 'type' => 'switch',
61 'default' => '0',
62 'dependency' => array(
63 array(
64 'id' => 'page_header_section_use_legacy',
65 'value' => array( 'yes' ),
66 'operator'=> '!='
67 ),
68 ),
69 ),
70
71 array(
72 'title' => __( 'Page Cover Image', 'auxin-elements' ),
73 'description' => __( 'Specifies a image for page cover.', 'auxin-elements' ),
74 'id' => 'page_header_cover_image',
75 'type' => 'image',
76 'dependency' => array(
77 array(
78 'id' => 'display_page_header_cover',
79 'value' => array('1'),
80 ),
81 array(
82 'id' => 'page_header_section_use_legacy',
83 'value' => array( 'yes' ),
84 'operator'=> '!='
85 ),
86 ),
87 'default' => '',
88 ),
89
90 array(
91 'title' => __( 'Page Cover Text', 'auxin-elements' ),
92 'description' => __( 'Your custom text for add on the page cover', 'auxin-elements' ),
93 'id' => 'page_header_cover_title',
94 'type' => 'editor',
95 'dependency' => array(
96 array(
97 'id' => 'display_page_header_cover',
98 'value' => array('1'),
99 ),
100 array(
101 'id' => 'page_header_section_use_legacy',
102 'value' => array( 'yes' ),
103 'operator'=> '!='
104 ),
105 ),
106 'default' => '',
107 ),
108
109 array(
110 'title' => __( 'Page Cover Link Text', 'auxin-elements' ),
111 'description' => __( 'Specifies text for page cover link.', 'auxin-elements' ),
112 'id' => 'page_header_discover_text',
113 'type' => 'text',
114 'dependency' => array(
115 array(
116 'id' => 'display_page_header_cover',
117 'value' => array('1'),
118 ),
119 array(
120 'id' => 'page_header_section_use_legacy',
121 'value' => array( 'yes' ),
122 'operator'=> '!='
123 ),
124 ),
125 'default' => '',
126 ),
127
128 array(
129 'title' => __( 'Header Menu Layout', 'auxin-elements' ),
130 'description' => __( 'Specifies the header layout for this page. By choosing a layout, the corresponding options will appear below.', 'auxin-elements' ),
131 'id' => 'page_header_navigation_layout',
132 'dependency' => array(
133 array(
134 'id' => 'page_header_section_use_legacy',
135 'value' => array( 'yes' ),
136 'operator'=> '!='
137 ),
138 ),
139 'default' => 'default',
140 'type' => 'select',
141 'transport' => 'refresh',
142 'type' => 'radio-image',
143 'choices' => array(
144 'default' => array(
145 'label' => __( 'Theme Default', 'auxin-elements' ),
146 'image' => AUXIN_URL . 'images/visual-select/default3.svg'
147 ),
148 'horizontal-menu-right' => array(
149 'label' => __( 'Logo left, Menu right', 'auxin-elements' ),
150 'image' => AUXIN_URL . 'images/visual-select/header-layout-1.svg'
151 ),
152 'burger-right' => array(
153 'label' => __( 'Logo left, Burger menu right', 'auxin-elements' ),
154 'image' => AUXIN_URL . 'images/visual-select/header-layout-2.svg'
155 ),
156 'horizontal-menu-left' => array(
157 'label' => __( 'Logo right, Menu left', 'auxin-elements' ),
158 'image' => AUXIN_URL . 'images/visual-select/header-layout-7.svg'
159 ),
160 'burger-left' => array(
161 'label' => __( 'Logo Right, Burger menu left', 'auxin-elements' ),
162 'image' => AUXIN_URL . 'images/visual-select/header-layout-8.svg'
163 ),
164 'horizontal-menu-center' => array(
165 'label' => __( 'Logo middle in top, Menu middle in bottom', 'auxin-elements' ),
166 'image' => AUXIN_URL . 'images/visual-select/header-layout-4.svg'
167 ),
168 'logo-left-menu-bottom-left' => array(
169 'label' => __( 'Logo left in top, Menu left in bottom', 'auxin-elements' ),
170 'image' => AUXIN_URL . 'images/visual-select/header-layout-3.svg'
171 ),
172 'vertical' => array(
173 'label' => __( 'Vertical Menu', 'auxin-elements' ),
174 'image' => AUXIN_URL . 'images/visual-select/header-layout-6.svg'
175 ),
176 'burger-right-msg' => array(
177 'label' => __( 'Logo left, Burger right, Message right', 'auxin-elements' ),
178 'image' => AUXIN_URL . 'images/visual-select/header-layout-6.svg'
179 ),
180 'logo-left-menu-middle' => array(
181 'label' => __( 'Logo left, Menu Middle', 'auxin-elements' ),
182 'image' => AUXIN_URL . 'images/visual-select/header-layout-6.svg'
183 ),
184 'no-header' => array(
185 'label' => __( 'No header', 'auxin-elements' ),
186 'image' => AUXIN_URL . 'images/visual-select/header-none.svg'
187 )
188 )
189 ),
190
191 array(
192 'title' => __( 'Header Width', 'auxin-elements' ),
193 'description' => sprintf(__( 'Specifies the width of header, boxed or full width. %1$s Only works if %2$s Website Layout %3$s option sets to %2$s Full layout %3$s', 'auxin-elements' ), '<br>', '<code>', '</code>'),
194 'id' => 'page_header_width',
195 'type' => 'radio-image',
196 'choices' => array(
197 'default' => array(
198 'label' => __( 'Theme Default', 'auxin-elements' ),
199 'css_class' => 'axiAdminIcon-default',
200 ),
201 'boxed' => array(
202 'label' => __( 'Boxed', 'auxin-elements' ),
203 'css_class' => 'axiAdminIcon-content-boxed',
204 ),
205 'semi-full' => array(
206 'label' => __( 'Full Width', 'auxin-elements' ),
207 'css_class' => 'axiAdminIcon-content-full',
208 )
209 ),
210 'dependency' => array(
211 array(
212 'id' => 'page_header_navigation_layout',
213 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
214 ),
215 array(
216 'id' => 'page_header_section_use_legacy',
217 'value' => array( 'yes' ),
218 'operator'=> '!='
219 ),
220 ),
221 'default' => 'default'
222 ),
223
224 array(
225 'title' => __( 'Header Height', 'auxin-elements' ),
226 'description' => __( 'Specifies the header height in pixel for this page. Leave it blank to use the theme default value for this option.', 'auxin-elements' ),
227 'id' => 'page_header_container_height',
228 'type' => 'text',
229 'dependency' => array(
230 array(
231 'id' => 'page_header_navigation_layout',
232 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
233 ),
234 array(
235 'id' => 'page_header_section_use_legacy',
236 'value' => array( 'yes' ),
237 'operator'=> '!='
238 ),
239 ),
240 'style_callback' => function( $value = null ){
241 $value = rtrim( $value, 'px' );
242 $selector = ".site-header-section .aux-header-elements:not(.aux-vertical-menu-elements), ";
243 $selector .= ".site-header-section .aux-fill .aux-menu-depth-0 > .aux-item-content { height:%spx; }";
244
245 return $value ? sprintf( $selector , $value ) :'';
246 },
247 'default' => '',
248 ),
249
250
251
252 array(
253 'title' => __( 'Add Search Button', 'auxin-elements' ),
254 'description' => __( 'Whether to add search button in the header or not.', 'auxin-elements' ),
255 'id' => 'page_header_search_button',
256 'type' => 'select',
257 'dependency' => array(
258 array(
259 'id' => 'page_header_navigation_layout',
260 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
261 ),
262 array(
263 'id' => 'page_header_section_use_legacy',
264 'value' => array( 'yes' ),
265 'operator'=> '!='
266 ),
267 ),
268 'default' => 'default',
269 'choices' => array(
270 'default' => __( 'Theme Default', 'auxin-elements' ),
271 'yes' => __( 'Yes', 'auxin-elements' ),
272 'no' => __( 'No', 'auxin-elements' ),
273 )
274 ),
275
276 array(
277 'title' => __( 'Display Logo', 'auxin-elements' ),
278 'description' => __( 'Enable it to add logo in the header.', 'auxin-elements' ),
279 'id' => 'page_header_logo_display',
280 'type' => 'select',
281 'dependency' => array(
282 array(
283 'id' => 'page_header_navigation_layout',
284 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
285 ),
286 array(
287 'id' => 'page_header_section_use_legacy',
288 'value' => array( 'yes' ),
289 'operator'=> '!='
290 ),
291 ),
292 'default' => 'default',
293 'choices' => array(
294 'default' => __( 'Theme Default', 'auxin-elements' ),
295 'yes' => __( 'Yes', 'auxin-elements' ),
296 'no' => __( 'No', 'auxin-elements' ),
297 )
298 ),
299
300 array(
301 'title' => __( 'Add Border', 'auxin-elements' ),
302 'description' => __( 'Whether to add border below the header on this page.', 'auxin-elements' ),
303 'id' => 'page_header_border_bottom',
304 'type' => 'select',
305 'dependency' => array(
306 array(
307 'id' => 'page_header_navigation_layout',
308 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
309 ),
310 array(
311 'id' => 'page_header_section_use_legacy',
312 'value' => array( 'yes' ),
313 'operator'=> '!='
314 ),
315 ),
316 'default' => 'default',
317 'choices' => array(
318 'default' => __( 'Theme Default', 'auxin-elements' ),
319 'yes' => __( 'Yes', 'auxin-elements' ),
320 'no' => __( 'No', 'auxin-elements' ),
321 )
322 ),
323
324 array(
325 'title' => __( 'Border Color', 'auxin-elements' ),
326 'description' => __( 'Specifies the border color for header. Empty or transparent color means using the theme default value for this option.', 'auxin-elements' ),
327 'id' => 'page_header_border_bottom_color',
328 'type' => 'color',
329 'dependency' => array(
330 array(
331 'id' => 'page_header_border_bottom',
332 'value' => array('yes', 'default'),
333 'operator'=> '=='
334 ),
335 array(
336 'id' => 'page_header_navigation_layout',
337 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
338 ),
339 array(
340 'id' => 'page_header_section_use_legacy',
341 'value' => array( 'yes' ),
342 'operator'=> '!='
343 ),
344 ),
345 'style_callback' => function( $value = null ){
346 return $value ? ".site-header-section.aux-add-border .aux-wrapper{border-color:$value;}" : '';
347 },
348 'default' => ''
349 ),
350
351 array(
352 'title' => __( 'Header Animation', 'auxin-elements' ),
353 'description' => __( 'Whether to animate the header after page loaded completely.', 'auxin-elements' ),
354 'id' => 'page_header_animation',
355 'type' => 'select',
356 'dependency' => array(
357 array(
358 'id' => 'page_header_navigation_layout',
359 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
360 ),
361 array(
362 'id' => 'page_header_section_use_legacy',
363 'value' => array( 'yes' ),
364 'operator'=> '!='
365 ),
366 ),
367 'default' => 'default',
368 'choices' => array(
369 'default' => __( 'Theme Default', 'auxin-elements' ),
370 'yes' => __( 'Yes', 'auxin-elements' ),
371 'no' => __( 'No', 'auxin-elements' ),
372 )
373 ),
374
375 array(
376 'title' => __( 'Header Animation Delay', 'auxin-elements' ),
377 'description' => __( 'The delay amount before starting the header animation in seconds. Leave it blank to use the theme default value for this option.', 'auxin-elements' ),
378 'id' => 'page_header_animation_delay',
379 'type' => 'text',
380 'dependency' => array(
381 array(
382 'id' => 'page_header_animation',
383 'value' => 'yes',
384 ),
385 array(
386 'id' => 'page_header_navigation_layout',
387 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
388 ),
389 array(
390 'id' => 'page_header_section_use_legacy',
391 'value' => array( 'yes' ),
392 'operator'=> '!='
393 ),
394 ),
395 'default' => ''
396 ),
397
398 array(
399 'title' => __( 'Header Background Color', 'auxin-elements' ),
400 'description' => __( 'Specifies the background color of header on this page. Empty or transparent color means using the theme default value for this option.', 'auxin-elements' ),
401 'id' => 'page_transparent_header_bgcolor',
402 'type' => 'color',
403 'dependency' => array(
404 array(
405 'id' => 'page_header_navigation_layout',
406 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
407 ),
408 array(
409 'id' => 'page_header_section_use_legacy',
410 'value' => array( 'yes' ),
411 'operator'=> '!='
412 ),
413 ),
414 'style_callback' => function( $value = null ){
415 if( ! isset( $post ) ){
416 $post = get_post();
417 }
418 if ( 'default' !== auxin_get_post_meta( $post, 'page_header_navigation_layout', 'default' ) ) {
419 return $value ? ".site-header-section { background-color:$value; }" : '';
420 } else {
421 return '';
422 }
423
424 },
425 'default' => ''
426 ),
427
428 array(
429 'title' => __( 'Header Menu Color Scheme', 'auxin-elements' ),
430 'description' => __( 'Specifies the Color Scheme of Header', 'auxin-elements' ),
431 'id' => 'page_header_color_scheme',
432 'type' => 'select',
433 'choices' => array (
434 'default' => __( 'Theme Default', 'auxin-elements' ),
435 'light' => __( 'Light', 'auxin-elements' ),
436 'dark' => __( 'Dark', 'auxin-elements' ),
437 ),
438 'dependency' => array(
439 array(
440 'id' => 'page_header_navigation_layout',
441 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
442 ),
443 array(
444 'id' => 'page_header_section_use_legacy',
445 'value' => array( 'yes' ),
446 'operator'=> '!='
447 ),
448 ),
449 'default' => 'default'
450 ),
451
452 array(
453 'title' => __( 'Sticky Header Background Color', 'auxin-elements' ),
454 'description' => __( 'Specifies the background color for header when it becomes sticky. Empty or transparent color means using the theme default value for this option.', 'auxin-elements' ),
455 'id' => 'page_sticky_header_color',
456 'type' => 'color',
457 'dependency' => array(
458 array(
459 'id' => 'page_header_top_sticky',
460 'value' => array('yes', 'default'),
461 'operator'=> '=='
462 ),
463 array(
464 'id' => 'page_header_navigation_layout',
465 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
466 ),
467 array(
468 'id' => 'page_header_section_use_legacy',
469 'value' => array( 'yes' ),
470 'operator'=> '!='
471 ),
472 ),
473 'style_callback' => function( $value = null ){
474 return $value ? ".site-header-section.aux-sticky { background-color:$value; }" : '';
475 },
476 'default' => ''
477 ),
478
479 array(
480 'title' => __( 'Sticky Header Border Color', 'auxin-elements' ),
481 'description' => __( 'Specifies the border color for header when it becomes sticky. Empty or transparent color means using the theme default value for this option.', 'auxin-elements' ),
482 'id' => 'page_sticky_header_border_color',
483 'type' => 'color',
484 'dependency' => array(
485 array(
486 'id' => 'page_header_top_sticky',
487 'value' => array('yes', 'default'),
488 'operator'=> '=='
489 ),
490 array(
491 'id' => 'page_header_navigation_layout',
492 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
493 ),
494 array(
495 'id' => 'page_header_section_use_legacy',
496 'value' => array( 'yes' ),
497 'operator'=> '!='
498 ),
499 ),
500 'style_callback' => function( $value = null ){
501 return $value ? ".aux-top-sticky .site-header-section.aux-sticky .aux-wrapper{border-bottom: 1px solid $value;}" : '';
502 },
503 'default' => ''
504 ),
505
506 array(
507 'title' => __( 'Sticky Header Menu Color Scheme', 'auxin-elements' ),
508 'description' => __( 'Specifies the color scheme of header menu on sticky header.', 'auxin-elements' ),
509 'id' => 'page_header_sticky_color_scheme',
510 'type' => 'select',
511 'dependency' => array(
512 array(
513 'id' => 'page_header_top_sticky',
514 'value' => array('yes', 'default'),
515 'operator'=> '=='
516 ),
517 array(
518 'id' => 'page_header_navigation_layout',
519 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
520 ),
521 array(
522 'id' => 'page_header_section_use_legacy',
523 'value' => array( 'yes' ),
524 'operator'=> '!='
525 ),
526 ),
527 'choices' => array (
528 'default' => __( 'Theme Default', 'auxin-elements' ),
529 'light' => __( 'Light', 'auxin-elements' ),
530 'dark' => __( 'Dark', 'auxin-elements' ),
531 ),
532 'default' => ''
533 ),
534
535 array(
536 'title' => __( 'Scale Logo on Sticky Header', 'auxin-elements' ),
537 'description' => __( 'Enable this option to scale the logo on sticky mode.', 'auxin-elements' ),
538 'id' => 'page_header_logo_can_scale',
539 'type' => 'select',
540 'dependency' => array(
541 array(
542 'id' => 'page_header_top_sticky',
543 'value' => array('yes', 'default'),
544 'operator'=> '=='
545 ),
546 array(
547 'id' => 'page_header_navigation_layout',
548 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
549 ),
550 array(
551 'id' => 'page_header_section_use_legacy',
552 'value' => array( 'yes' ),
553 'operator'=> '!='
554 ),
555 ),
556 'default' => 'default',
557 'choices' => array(
558 'default' => __( 'Theme Default', 'auxin-elements' ),
559 'yes' => __( 'Yes', 'auxin-elements' ),
560 'no' => __( 'No', 'auxin-elements' ),
561 )
562 ),
563
564 array(
565 'title' => __('Vertical Menu Background color', 'auxin-elements'),
566 'description' => __('Specifies background color of Vertical Menu on this page. Empty or transparent color means using the theme default value for this option.', 'auxin-elements'),
567 'id' => 'page_vertical_menu_background_color',
568 'type' => 'color',
569 'default' => '',
570 'dependency' => array(
571 array(
572 'id' => 'page_header_navigation_layout',
573 'value' => 'vertical',
574 'operator' => '=='
575 ),
576 array(
577 'id' => 'page_header_section_use_legacy',
578 'value' => array( 'yes' ),
579 'operator'=> '!='
580 ),
581 ),
582 ),
583
584 array(
585 'title' => __( 'Vertical Menu Items Align', 'auxin-elements' ),
586 'description' => '',
587 'id' => 'page_vertical_header_items_align',
588 'dependency' => array(
589 array(
590 'id' => 'page_header_navigation_layout',
591 'value' => 'vertical',
592 'operator' => '=='
593 ),
594 array(
595 'id' => 'page_header_section_use_legacy',
596 'value' => array( 'yes' ),
597 'operator'=> '!='
598 ),
599 ),
600 'choices' => array (
601 'default' => __( 'Theme Default', 'auxin-elements' ),
602 'center' => __( 'Center', 'auxin-elements' ),
603 'left' => __( 'Left', 'auxin-elements' ),
604 ),
605 'type' => 'select',
606 'default' => 'default'
607 ),
608
609 array(
610 'title' => __('Display Vertical Menu Footer', 'auxin-elements'),
611 'description' => __('Whether to display footer at the bottom of vertical menu.', 'auxin-elements'),
612 'id' => 'page_vertical_menu_footer_display',
613 'type' => 'select',
614 'dependency' => array(
615 array(
616 'id' => 'page_header_navigation_layout',
617 'value' => 'vertical',
618 'operator' => '=='
619 ),
620 array(
621 'id' => 'page_header_section_use_legacy',
622 'value' => array( 'yes' ),
623 'operator'=> '!='
624 ),
625 ),
626 'default' => 'default',
627 'choices' => array(
628 'default' => __( 'Theme Default', 'auxin-elements' ),
629 'yes' => __( 'Yes', 'auxin-elements' ),
630 'no' => __( 'No', 'auxin-elements' ),
631 ),
632 ),
633
634 array(
635 'title' => __('Display Search box Border', 'auxin-elements'),
636 'description' => __('Specifies the display of border under the search box', 'auxin-elements'),
637 'id' => 'page_vertical_header_search_border',
638 'type' => 'select',
639 'dependency' => array(
640 array(
641 'id' => 'page_header_navigation_layout',
642 'value' => 'vertical',
643 'operator' => '=='
644 ),
645 array(
646 'id' => 'page_header_section_use_legacy',
647 'value' => array( 'yes' ),
648 'operator'=> '!='
649 ),
650 ),
651 'default' => 'default',
652 'choices' => array(
653 'default' => __( 'Theme Default', 'auxin-elements' ),
654 'yes' => __( 'Yes', 'auxin-elements' ),
655 'no' => __( 'No', 'auxin-elements' ),
656 ),
657 ),
658
659 array(
660 'title' => __('Add Social Icons', 'auxin-elements'),
661 'description' => __('Enable it to add social icons in the header menu.', 'auxin-elements'),
662 'id' => 'page_header_social_icons',
663 'type' => 'select',
664 'dependency' => array(
665 array(
666 'id' => 'page_header_navigation_layout',
667 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
668 ),
669 array(
670 'id' => 'page_header_section_use_legacy',
671 'value' => array( 'yes' ),
672 'operator'=> '!='
673 ),
674 ),
675 'default' => 'default',
676 'choices' => array(
677 'default' => __( 'Theme Default', 'auxin-elements' ),
678 'yes' => __( 'Yes', 'auxin-elements' ),
679 'no' => __( 'No', 'auxin-elements' ),
680 ),
681 ),
682
683 array(
684 'title' => __('Social Icon Size', 'auxin-elements'),
685 'description' => __('Specifies the size of social icons in the header menu.', 'auxin-elements'),
686 'id' => 'page_header_social_icons_size',
687 'type' => 'select',
688 'dependency' => array(
689 array(
690 'id' => 'page_header_navigation_layout',
691 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
692 ),
693 array(
694 'id' => 'page_header_social_icons',
695 'value' => 'yes',
696 'operator' => '=='
697 ),
698 array(
699 'id' => 'page_header_section_use_legacy',
700 'value' => array( 'yes' ),
701 'operator'=> '!='
702 ),
703 ),
704 'default' => 'default',
705 'choices' => array(
706 'default' => __( 'Theme Default', 'auxin-elements' ),
707 'small' => __( 'Small', 'auxin-elements' ),
708 'medium' => __( 'Medium', 'auxin-elements' ),
709 'large' => __( 'Large', 'auxin-elements' ),
710 'extra-large' => __( 'Extra Large', 'auxin-elements' ),
711 ),
712 )
713
714 );
715
716 if ( class_exists( 'WooCommerce' ) ) {
717
718 $model->fields[] = array(
719 'title' => __( 'Display Header Cart', 'auxin-elements' ),
720 'description' => __( 'Whether to display cart on top header bar.', 'auxin-elements' ),
721 'id' => 'page_show_header_cart',
722 'type' => 'select',
723 'dependency' => array(
724 array(
725 'id' => 'page_header_navigation_layout',
726 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
727 ),
728 array(
729 'id' => 'page_header_section_use_legacy',
730 'value' => array( 'yes' ),
731 'operator'=> '!='
732 ),
733 ),
734 'starter' => '1',
735 'default' => 'default',
736 'choices' => array(
737 'default' => __( 'Theme Default', 'auxin-elements' ),
738 'yes' => __( 'Yes', 'auxin-elements' ),
739 'no' => __( 'No', 'auxin-elements' ),
740 )
741 );
742 $model->fields[] = array(
743 'title' => __( 'Cart Type', 'auxin-elements' ),
744 'description' => '',
745 'id' => 'page_header_cart_mode',
746 'type' => 'select',
747 'dependency' => array(
748 array(
749 'id' => 'page_header_navigation_layout',
750 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
751 ),
752 array(
753 'id' => 'page_show_header_cart',
754 'value' => 'yes',
755 ),
756 array(
757 'id' => 'page_header_section_use_legacy',
758 'value' => array( 'yes' ),
759 'operator'=> '!='
760 ),
761 ),
762 'choices' => array(
763 'default' => __( 'Theme Default', 'auxin-elements' ),
764 'dropdown' => __( 'Drop Down', 'auxin-elements' ),
765 'offcanvas' => __( 'Off Canvas', 'auxin-elements' )
766 ),
767 'default' => 'default'
768 );
769 $model->fields[] = array(
770 'title' => __( 'Icon for Cart', 'auxin-elements' ),
771 'description' => '',
772 'id' => 'page_header_cart_icon',
773 'type' => 'icon',
774 'dependency' => array(
775 array(
776 'id' => 'page_header_navigation_layout',
777 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
778 ),
779 array(
780 'id' => 'page_show_header_cart',
781 'value' => 'yes',
782 ),
783 array(
784 'id' => 'page_header_section_use_legacy',
785 'value' => array( 'yes' ),
786 'operator'=> '!='
787 ),
788 ),
789 'default' => 'default'
790 );
791
792 $model->fields[] = array(
793 'title' => __( 'Cart Dropdown Skin', 'auxin-elements' ),
794 'description' => '',
795 'id' => 'page_header_cart_dropdown_skin',
796 'type' => 'select',
797 'dependency' => array(
798 array(
799 'id' => 'page_header_navigation_layout',
800 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
801 ),
802 array(
803 'id' => 'page_show_header_cart',
804 'value' => 'yes',
805 ),
806 array(
807 'id' => 'page_header_section_use_legacy',
808 'value' => array( 'yes' ),
809 'operator'=> '!='
810 ),
811 ),
812 'choices' => array(
813 'default' => __( 'Theme Default', 'auxin-elements' ),
814 'light' => __( 'Light', 'auxin-elements' ),
815 'dark' => __( 'Dark', 'auxin-elements' )
816 ),
817 'default' => 'default'
818 );
819
820 $model->fields[] = array(
821 'title' => __( 'Dropdown Action On', 'auxin-elements' ),
822 'description' => '',
823 'id' => 'page_header_cart_dropdown_action_on',
824 'type' => 'select',
825 'dependency' => array(
826 array(
827 'id' => 'page_header_navigation_layout',
828 'value' => array( 'horizontal-menu-right', 'burger-right', 'horizontal-menu-left', 'burger-left', 'horizontal-menu-center', 'logo-left-menu-bottom-left','logo-left-menu-middle' ),
829 ),
830 array(
831 'id' => 'page_show_header_cart',
832 'value' => 'yes',
833 ),
834 array(
835 'id' => 'page_header_section_use_legacy',
836 'value' => array( 'yes' ),
837 'operator'=> '!='
838 ),
839 ),
840 'choices' => array(
841 'default' => __( 'Default', 'auxin-elements' ),
842 'hover' => __( 'Hover', 'auxin-elements' ),
843 'click' => __( 'Click', 'auxin-elements' )
844 ),
845 'default' => 'default'
846 );
847
848 $model->fields[] = array(
849 'title' => __( 'Display My Account', 'auxin-elements' ),
850 'description' => __( 'Whether to display my account on header.', 'auxin-elements' ),
851 'id' => 'page_show_my_account',
852 'type' => 'select',
853 'dependency' => array(
854 array(
855 'id' => 'page_header_navigation_layout',
856 'value' => array( 'logo-left-menu-middle' ),
857 ),
858 array(
859 'id' => 'page_header_section_use_legacy',
860 'value' => array( 'yes' ),
861 'operator'=> '!='
862 ),
863 ),
864 'default' => 'default',
865 'choices' => array(
866 'default' => __( 'Theme Default', 'auxin-elements' ),
867 'yes' => __( 'Yes', 'auxin-elements' ),
868 'no' => __( 'No', 'auxin-elements' ),
869 )
870 );
871
872 $model->fields[] = array(
873 'title' => __( 'Display Wishlist', 'auxin-elements' ),
874 'description' => __( 'Whether to display wishlist on header.', 'auxin-elements' ),
875 'id' => 'page_show_wishlist',
876 'type' => 'select',
877 'dependency' => array(
878 array(
879 'id' => 'page_header_navigation_layout',
880 'value' => array( 'logo-left-menu-middle' ),
881 ),
882 array(
883 'id' => 'page_header_section_use_legacy',
884 'value' => array( 'yes' ),
885 'operator'=> '!='
886 ),
887 ),
888 'default' => 'default',
889 'choices' => array(
890 'default' => __( 'Theme Default', 'auxin-elements' ),
891 'yes' => __( 'Yes', 'auxin-elements' ),
892 'no' => __( 'No', 'auxin-elements' ),
893 )
894 );
895
896 }
897
898 return $model;
899 }
900