<div id="wphead-info"> <div id="user_info"> <p><?php $links = array(); $links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity); $links[15] = '| <a href="' . wp_logout_url() . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a>'; $links = apply_filters('admin_user_info_links', $links, $current_user); ksort($links); echo implode(' ', $links); ?></p> </div> <?php favorite_actions($current_screen); ?> </div> </div> <div id="wpbody"> <?php unset($title_class, $blog_name); require(ABSPATH . 'wp-admin/menu-header.php'); $current_screen->parent_file = $parent_file; $current_screen->parent_base = preg_replace('/\?.*$/', '', $parent_file); $current_screen->parent_base = str_replace('.php', '', $current_screen->parent_base); ?> <div id="wpbody-content">
?> | <a href="<?php echo wp_logout_url(); ?> " title="<?php _e('Log Out'); ?> "><?php _e('Log Out'); ?> </a></p> </div> <?php favorite_actions(); ?> </div> </div> <?php if (get_user_setting('mfold') == 'f') { ?> <script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script> <?php } ?> <div id="wpbody"> <?php require ABSPATH . 'wp-admin/menu-header.php';
?> | <a href="<?php echo wp_logout_url(); ?> " title="<?php _e('Log Out'); ?> "><?php _e('Log Out'); ?> </a></p> </div> <?php favorite_actions($hook_suffix); ?> </div> </div> <div id="wpbody"> <?php require ABSPATH . 'admin/menu-header.php'; ?> <div id="wpbody-content"> <?php screen_meta($hook_suffix); do_action('admin_notices'); if ($parent_file == 'options-general.php') { require ABSPATH . 'admin/options-head.php';
function custom_header() { $options = get_option('admin_branding_link'); $admin_header_bg_img = $options['admin_header_bg_img']; $admin_header_bg_clr = $options['admin_header_bg_clr']; $admin_header_logo = $options['admin_header_logo']; $fav_actions_btn_color = $options['fav_actions_btn_color']; $fav_actions_btn_background = $options['fav_actions_btn_background']; $fav_actions_bdr = $options['fav_actions_bdr']; $user_info_txt = $options['user_info_txt']; $user_info_lnk = $options['user_info_lnk']; $user_info_lnk_hvr = $options['user_info_lnk_hvr']; echo ' <style> /* Hides the default WordPress Admin header content*/ #wphead { display:none;} /*Custom classes for the WordPress Admin header*/ #wphead_custom { background:' . $admin_header_bg_clr . '; height:100px;} #wphead-info { padding-top:27px;} #header-logo_custom { float: left;} #favorite-first { background:' . $fav_actions_btn_color . ' url(' . get_settings('siteurl') . '/wp-content/plugins/custom-admin-branding/images/' . $fav_actions_btn_background . ' ) repeat-x scroll left center; border-color:' . $fav_actions_bdr . '} #user_info p { color:' . $user_info_txt . ';} #user_info a:link { color:' . $user_info_lnk . ';} #user_info a:hover { color:' . $user_info_lnk_hvr . ';} </style> <div id="wphead_custom"> <a href="' . get_settings('siteurl') . '"><img id="header-logo_custom" src="' . get_settings('siteurl') . '/wp-content/plugins/custom-admin-branding/images/' . $admin_header_logo . '"</a> <div id="wphead-info"> <div id="user_info"> <p>Howdy, <a href="' . get_settings('siteurl') . '/wp-admin/profile.php">'; global $current_user; if (isset($current_user->user_firstname)) { get_currentuserinfo(); echo $current_user->user_firstname; } else { get_currentuserinfo(); echo $current_user->user_login; } echo '</a> | <a href="' . get_settings('siteurl') . '/wp-admin/tools.php">Turbo</a> | <a href="' . wp_logout_url() . '">Log Out</a> </p> </div>'; echo favorite_actions(); echo ' </div> </div>'; }