PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
header
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_logo_options' ) ) { /** * Function that add general options for this module */ function webon_core_add_logo_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => WEBON_CORE_OPTIONS_NAME, 'type' => 'admin', 'slug' => 'logo', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Logo', 'webon-core' ), 'description' => esc_html__( 'Global Logo Options', 'webon-core' ), 'layout' => 'tabbed' ) ); if ( $page ) { $header_tab = $page->add_tab_element( array( 'name' => 'tab-header', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Header Logo Options', 'webon-core' ), 'description' => esc_html__( 'Set options for initial headers', 'webon-core' ) ) ); $header_tab->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_logo_height', 'title' => esc_html__( 'Logo Height', 'webon-core' ), 'description' => esc_html__( 'Enter logo height', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px', 'webon-core' ) ) ) ); $header_tab->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_logo_main', 'title' => esc_html__( 'Logo - Main', 'webon-core' ), 'description' => esc_html__( 'Choose main logo image', 'webon-core' ), 'default_value' => defined( 'WEBON_ASSETS_ROOT' ) ? WEBON_ASSETS_ROOT . '/img/logo.png' : '', 'multiple' => 'no' ) ); $header_tab->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_logo_dark', 'title' => esc_html__( 'Logo - Dark', 'webon-core' ), 'description' => esc_html__( 'Choose dark logo image', 'webon-core' ), 'multiple' => 'no' ) ); $header_tab->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_logo_light', 'title' => esc_html__( 'Logo - Light', 'webon-core' ), 'description' => esc_html__( 'Choose light logo image', 'webon-core' ), 'multiple' => 'no' ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_header_logo_options_map', $page, $header_tab ); } } add_action( 'webon_core_action_default_options_init', 'webon_core_add_logo_options', webon_core_get_admin_options_map_position( 'logo' ) ); }
[+]
..
[-] logo-options.php
[edit]
[-] header-options.php
[edit]