PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
mobile-header
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_mobile_header_options' ) ) { /** * Function that add general options for this module */ function webon_core_add_mobile_header_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => WEBON_CORE_OPTIONS_NAME, 'type' => 'admin', 'layout' => 'tabbed', 'slug' => 'mobile-header', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Mobile Header', 'webon-core' ), 'description' => esc_html__( 'Global Mobile Header Options', 'webon-core' ) ) ); if ( $page ) { $general_tab = $page->add_tab_element( array( 'name' => 'tab-mobile-header-general', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'General Settings', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'yesno', 'default_value' => 'no', 'name' => 'qodef_mobile_header_scroll_appearance', 'title' => esc_html__( 'Sticky Mobile Header', 'webon-core' ), 'description' => esc_html__( 'Set mobile header to be sticky', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'radio', 'name' => 'qodef_mobile_header_layout', 'title' => esc_html__( 'Mobile Header Layout', 'webon-core' ), 'description' => esc_html__( 'Choose a mobile header layout to set for your website', 'webon-core' ), 'args' => array( 'images' => true ), 'default_value' => apply_filters( 'webon_core_filter_mobile_header_layout_default_option', '' ), 'options' => apply_filters( 'webon_core_filter_mobile_header_layout_option', $mobile_header_layout_options = array() ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_icon_source', 'title' => esc_html__( 'Icon Source', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'icon_source', false ), 'default_value' => 'predefined' ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_icon_pack', 'title' => esc_html__( 'Icon Pack', 'webon-core' ), 'options' => qode_framework_icons()->get_icon_packs( array( 'linea-icons', 'dripicons', 'simple-line-icons' ) ), 'default_value' => 'elegant-icons', 'dependency' => array( 'show' => array( 'qodef_mobile_menu_icon_source' => array( 'values' => 'icon_pack', 'default_value' => 'icon_pack' ) ) ) ) ); $section_svg_path = $general_tab->add_section_element( array( 'title' => esc_html__( 'SVG Path', 'webon-core' ), 'name' => 'qodef_mobile_menu_svg_path_section', 'dependency' => array( 'show' => array( 'qodef_mobile_menu_icon_source' => array( 'values' => 'svg_path', 'default_value' => 'icon_pack' ) ) ) ) ); $section_svg_path->add_field_element( array( 'field_type' => 'textarea', 'name' => 'qodef_mobile_menu_icon_svg_path', 'title' => esc_html__( 'Mobile Menu Open Icon SVG Path', 'webon-core' ), 'description' => esc_html__( 'Enter your full screen menu open icon SVG path here. Please remove version and id attributes from your SVG path because of HTML validation', 'webon-core' ) ) ); $section_svg_path->add_field_element( array( 'field_type' => 'textarea', 'name' => 'qodef_mobile_menu_close_icon_svg_path', 'title' => esc_html__( 'Mobile Menu Close Icon SVG Path', 'webon-core' ), 'description' => esc_html__( 'Enter your full screen menu close icon SVG path here. Please remove version and id attributes from your SVG path because of HTML validation', 'webon-core' ), ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_mobile_header_options_map', $page, $general_tab ); } } add_action( 'webon_core_action_default_options_init', 'webon_core_add_mobile_header_options', webon_core_get_admin_options_map_position( 'mobile-header' ) ); }
[+]
..
[-] mobile-header-options.php
[edit]
[-] mobile-menu-options.php
[edit]
[-] mobile-logo-options.php
[edit]