Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
header
/
dashboard
/
admin
/
File Content:
header-options.php
<?php if ( ! function_exists( 'halstein_core_add_header_options' ) ) { /** * Function that add header options for this module */ function halstein_core_add_header_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => HALSTEIN_CORE_OPTIONS_NAME, 'type' => 'admin', 'layout' => 'tabbed', 'slug' => 'header', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Header', 'halstein-core' ), 'description' => esc_html__( 'Global Header Options', 'halstein-core' ), ) ); if ( $page ) { $general_tab = $page->add_tab_element( array( 'name' => 'tab-header-general', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'General Settings', 'halstein-core' ), ) ); $general_tab->add_field_element( array( 'field_type' => 'radio', 'name' => 'qodef_header_layout', 'title' => esc_html__( 'Header Layout', 'halstein-core' ), 'description' => esc_html__( 'Choose a header layout to set for your website', 'halstein-core' ), 'args' => array( 'images' => true ), 'options' => apply_filters( 'halstein_core_filter_header_layout_option', array() ), 'default_value' => apply_filters( 'halstein_core_filter_header_layout_default_option_value', '' ), ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_skin', 'title' => esc_html__( 'Header Skin', 'halstein-core' ), 'description' => esc_html__( 'Choose a predefined header style for header elements', 'halstein-core' ), 'options' => array( 'none' => esc_html__( 'None', 'halstein-core' ), 'light' => esc_html__( 'Light', 'halstein-core' ), 'dark' => esc_html__( 'Dark', 'halstein-core' ), ), ) ); // Hook to include additional options after module options do_action( 'halstein_core_action_after_header_options_map', $page, $general_tab ); } } add_action( 'halstein_core_action_default_options_init', 'halstein_core_add_header_options', halstein_core_get_admin_options_map_position( 'header' ) ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
header-options.php
2234 bytes
0644
logo-options.php
13231 bytes
0644
N4ST4R_ID | Naxtarrr