Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/header/options-map/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/header
<?php
if ( ! function_exists('edgtf_quadric_mobile_header_options_map') ) {
function edgtf_quadric_mobile_header_options_map() {
edgtf_quadric_add_admin_page(array(
'slug' => '_mobile_header',
'title' => esc_html__( 'Mobile Header', 'quadric' ),
'icon' => 'fa fa-mobile'
));
$panel_mobile_header = edgtf_quadric_add_admin_panel(array(
'title' => esc_html__( 'Mobile header', 'quadric' ),
'name' => 'panel_mobile_header',
'page' => '_mobile_header'
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_header_height',
'type' => 'text',
'label' => esc_html__( 'Mobile Header Height', 'quadric' ),
'description' => esc_html__( 'Enter height for mobile header in pixels', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_header_background_color',
'type' => 'color',
'label' => esc_html__( 'Mobile Header Background Color', 'quadric' ),
'description' => esc_html__( 'Choose color for mobile header', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_menu_background_color',
'type' => 'color',
'label' => esc_html__( 'Mobile Menu Background Color', 'quadric' ),
'description' => esc_html__( 'Choose color for mobile menu', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_menu_separator_color',
'type' => 'color',
'label' => esc_html__( 'Mobile Menu Item Separator Color', 'quadric' ),
'description' => esc_html__( 'Choose color for mobile menu horizontal separators', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_logo_height',
'type' => 'text',
'label' => esc_html__( 'Logo Height For Mobile Header', 'quadric' ),
'description' => esc_html__( 'Define logo height for screen size smaller than 1000px', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_logo_height_phones',
'type' => 'text',
'label' => esc_html__( 'Logo Height For Mobile Devices', 'quadric' ),
'description' => esc_html__( 'Define logo height for screen size smaller than 480px', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
edgtf_quadric_add_admin_section_title(array(
'parent' => $panel_mobile_header,
'name' => 'mobile_header_fonts_title',
'title' => esc_html__( 'Typography', 'quadric' )
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_text_color',
'type' => 'color',
'label' => esc_html__( 'Navigation Text Color', 'quadric' ),
'description' => esc_html__( 'Define color for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_text_hover_color',
'type' => 'color',
'label' => esc_html__( 'Navigation Hover/Active Color', 'quadric' ),
'description' => esc_html__( 'Define hover/active color for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_font_family',
'type' => 'font',
'label' => esc_html__( 'Navigation Font Family', 'quadric' ),
'description' => esc_html__( 'Define font family for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_font_size',
'type' => 'text',
'label' => esc_html__( 'Navigation Font Size', 'quadric' ),
'description' => esc_html__( 'Define font size for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_line_height',
'type' => 'text',
'label' => esc_html__( 'Navigation Line Height', 'quadric' ),
'description' => esc_html__( 'Define line height for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_text_transform',
'type' => 'select',
'label' => esc_html__( 'Navigation Text Transform', 'quadric' ),
'description' => esc_html__( 'Define text transform for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header,
'options' => edgtf_quadric_get_text_transform_array(true)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_font_style',
'type' => 'select',
'label' => esc_html__( 'Navigation Font Style', 'quadric' ),
'description' => esc_html__( 'Define font style for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header,
'options' => edgtf_quadric_get_font_style_array(true)
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_font_weight',
'type' => 'select',
'label' => esc_html__( 'Navigation Font Weight', 'quadric' ),
'description' => esc_html__( 'Define font weight for mobile navigation text', 'quadric' ),
'parent' => $panel_mobile_header,
'options' => edgtf_quadric_get_font_weight_array(true)
));
edgtf_quadric_add_admin_section_title(array(
'name' => 'mobile_opener_panel',
'parent' => $panel_mobile_header,
'title' => esc_html__( 'Mobile Menu Opener', 'quadric' )
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_icon_pack',
'type' => 'select',
'label' => esc_html__( 'Mobile Navigation Icon Pack', 'quadric' ),
'default_value' => 'font_awesome',
'description' => esc_html__( 'Choose icon pack for mobile navigation icon', 'quadric' ),
'parent' => $panel_mobile_header,
'options' => edgtf_quadric_icon_collections()->getIconCollectionsExclude(array('linea_icons', 'simple_line_icons'))
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_icon_color',
'type' => 'color',
'label' => esc_html__( 'Mobile Navigation Icon Color', 'quadric' ),
'description' => esc_html__( 'Choose color for icon header', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_icon_hover_color',
'type' => 'color',
'label' => esc_html__( 'Mobile Navigation Icon Hover Color', 'quadric' ),
'description' => esc_html__( 'Choose hover color for mobile navigation icon ', 'quadric' ),
'parent' => $panel_mobile_header
));
edgtf_quadric_add_admin_field(array(
'name' => 'mobile_icon_size',
'type' => 'text',
'label' => esc_html__( 'Mobile Navigation Icon size', 'quadric' ),
'description' => esc_html__( 'Choose size for mobile navigation icon ', 'quadric' ),
'parent' => $panel_mobile_header,
'args' => array(
'col_width' => 3,
'suffix' => 'px'
)
));
}
add_action( 'edgtf_quadric_options_map', 'edgtf_quadric_mobile_header_options_map', 5 );
}