'; } static function _change_admin_menu() { } static function _change_menu_pos() { return 59; } static function _change_menu_icon() { return get_template_directory_uri().'/assets/admin/image/7up.png'; } static function _change_parent_slug($slug) { return false; } static function _change_menu_title($title) { return 'Theme Option'; } static function _add_themeoptions() { /* OptionTree is not loaded yet, or this is not an admin request */ if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() ) return false; $saved_settings = get_option( ot_settings_id(), array() ); global $config; $custom_settings= $config['theme-option']; if(is_array($custom_settings) and !empty($custom_settings)) { /* allow settings to be filtered before saving */ $custom_settings = apply_filters( ot_settings_id() . '_args', $custom_settings ); /* settings are not the same update the DB */ if ( $saved_settings !== $custom_settings ) { update_option( ot_settings_id(), $custom_settings ); } } } static function _ot_header_version_text() { $title= esc_html( self::$theme->display('Name') ); $title.=' - '. sprintf(esc_html__('Version %s', 'bigc'), '1.0'); return $title; } } SV_OptiontreeConfig::_init(); }