Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
mobile-header
/
dashboard
/
admin
/
File Content:
mobile-menu-options.php
<?php if ( ! function_exists( 'halstein_core_mobile_header_menu_options' ) ) { /** * Function that add general options for this module * * @param object $page */ function halstein_core_mobile_header_menu_options( $page ) { if ( $page ) { $mobile_menu_tab = $page->add_tab_element( array( 'name' => 'tab-mobile-header-menu', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Mobile Menu Settings', 'halstein-core' ), ) ); $typography_section = $mobile_menu_tab->add_section_element( array( 'name' => 'qodef_mobile_typography_section', 'title' => esc_html__( 'Mobile Menu Typography', 'halstein-core' ), 'dependency' => array( 'hide' => array( 'qodef_mobile_header_layout' => array( 'values' => halstein_core_dependency_for_mobile_menu_typography_options(), 'default_value' => apply_filters( 'halstein_core_filter_mobile_header_layout_default_option', '' ), ), ), ), ) ); $first_level_typography_row = $typography_section->add_row_element( array( 'name' => 'qodef_first_level_typography_row', 'title' => esc_html__( 'Menu First Level Typography', 'halstein-core' ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_1st_lvl_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_1st_lvl_hover_color', 'title' => esc_html__( 'Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_1st_lvl_active_color', 'title' => esc_html__( 'Active Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_mobile_1st_lvl_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_1st_lvl_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_1st_lvl_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_1st_lvl_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_1st_lvl_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_1st_lvl_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_1st_lvl_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_1st_lvl_text_decoration', 'title' => esc_html__( 'Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); $first_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_1st_lvl_hover_text_decoration', 'title' => esc_html__( 'Hover/Active Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row = $typography_section->add_row_element( array( 'name' => 'qodef_second_level_typography_row', 'title' => esc_html__( 'Menu Second Level Typography', 'halstein-core' ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_2nd_lvl_color', 'title' => esc_html__( 'Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_2nd_lvl_hover_color', 'title' => esc_html__( 'Hover Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_mobile_2nd_lvl_active_color', 'title' => esc_html__( 'Active Color', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'font', 'name' => 'qodef_mobile_2nd_lvl_font_family', 'title' => esc_html__( 'Font Family', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_2nd_lvl_font_size', 'title' => esc_html__( 'Font Size', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_2nd_lvl_line_height', 'title' => esc_html__( 'Line Height', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_mobile_2nd_lvl_letter_spacing', 'title' => esc_html__( 'Letter Spacing', 'halstein-core' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_2nd_lvl_font_weight', 'title' => esc_html__( 'Font Weight', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_weight' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_2nd_lvl_text_transform', 'title' => esc_html__( 'Text Transform', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_transform' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_2nd_lvl_font_style', 'title' => esc_html__( 'Font Style', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'font_style' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_2nd_lvl_text_decoration', 'title' => esc_html__( 'Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); $second_level_typography_row->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_mobile_menu_2nd_lvl_hover_text_decoration', 'title' => esc_html__( 'Hover/Active Text Decoration', 'halstein-core' ), 'options' => halstein_core_get_select_type_options_pool( 'text_decoration' ), 'args' => array( 'col_width' => 3, ), ) ); } } add_action( 'halstein_core_action_after_mobile_header_options_map', 'halstein_core_mobile_header_menu_options' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
mobile-header-options.php
5948 bytes
0644
mobile-logo-options.php
9957 bytes
0644
mobile-menu-options.php
9457 bytes
0644
N4ST4R_ID | Naxtarrr