mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * WordPress Administration Template Header
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
mp-wp_genesis 10 if (!isset($_GET["page"])) require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 get_admin_page_title();
mp-wp_genesis 13 $title = wp_specialchars( strip_tags( $title ) );
mp-wp_genesis 14 wp_user_settings();
mp-wp_genesis 15 ?>
mp-wp_genesis 16 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
mp-wp_genesis 17 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
mp-wp_genesis 18 <head>
mp-wp_genesis 19 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
mp-wp_genesis 20 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
mp-wp_genesis 21 <?php
mp-wp_genesis 22
mp-wp_genesis 23 wp_admin_css( 'css/global' );
mp-wp_genesis 24 wp_admin_css();
mp-wp_genesis 25 wp_admin_css( 'css/colors' );
mp-wp_genesis 26 wp_admin_css( 'css/ie' );
mp-wp_genesis 27
mp-wp_genesis 28 ?>
mp-wp_genesis 29 <script type="text/javascript">
mp-wp_genesis 30 //<![CDATA[
mp-wp_genesis 31 addLoadEvent = function(func) {if (typeof jQuery != "undefined") jQuery(document).ready(func); else if (typeof wpOnload!='function'){wpOnload=func;} else {var oldonload=wpOnload; wpOnload=function(){oldonload();func();}}};
mp-wp_genesis 32
mp-wp_genesis 33 function convertEntities(o) {
mp-wp_genesis 34 var c = function(s) {
mp-wp_genesis 35 if (/&[^;]+;/.test(s)) {
mp-wp_genesis 36 var e = document.createElement("div");
mp-wp_genesis 37 e.innerHTML = s;
mp-wp_genesis 38 return !e.firstChild ? s : e.firstChild.nodeValue;
mp-wp_genesis 39 }
mp-wp_genesis 40 return s;
mp-wp_genesis 41 }
mp-wp_genesis 42
mp-wp_genesis 43 if ( typeof o === 'string' )
mp-wp_genesis 44 return c(o);
mp-wp_genesis 45 else if ( typeof o === 'object' )
mp-wp_genesis 46 for (var v in o) {
mp-wp_genesis 47 if ( typeof o[v] === 'string' )
mp-wp_genesis 48 o[v] = c(o[v]);
mp-wp_genesis 49 }
mp-wp_genesis 50 return o;
mp-wp_genesis 51 };
mp-wp_genesis 52 //]]>
mp-wp_genesis 53 </script>
mp-wp_genesis 54 <?php
mp-wp_genesis 55 $hook_suffix = '';
mp-wp_genesis 56 if ( isset($page_hook) )
mp-wp_genesis 57 $hook_suffix = "$page_hook";
mp-wp_genesis 58 else if ( isset($plugin_page) )
mp-wp_genesis 59 $hook_suffix = "$plugin_page";
mp-wp_genesis 60 else if ( isset($pagenow) )
mp-wp_genesis 61 $hook_suffix = "$pagenow";
mp-wp_genesis 62
mp-wp_genesis 63 do_action("admin_print_styles-$hook_suffix");
mp-wp_genesis 64 do_action('admin_print_styles');
mp-wp_genesis 65 do_action("admin_print_scripts-$hook_suffix");
mp-wp_genesis 66 do_action('admin_print_scripts');
mp-wp_genesis 67 do_action("admin_head-$hook_suffix");
mp-wp_genesis 68 do_action('admin_head');
mp-wp_genesis 69
mp-wp_genesis 70 if ( $is_iphone ) { ?>
mp-wp_genesis 71 <style type="text/css">.row-actions{visibility:visible;}</style>
mp-wp_genesis 72 <?php } ?>
mp-wp_genesis 73 </head>
mp-wp_genesis 74 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
mp-wp_genesis 75
mp-wp_genesis 76 <div id="wpwrap">
mp-wp_genesis 77 <div id="wpcontent">
mp-wp_genesis 78 <div id="wphead">
mp-wp_genesis 79 <?php
mp-wp_genesis 80 $blog_name = get_bloginfo('name', 'display');
mp-wp_genesis 81 if ( '' == $blog_name ) {
mp-wp_genesis 82 $blog_name = ' ';
mp-wp_genesis 83 } else {
mp-wp_genesis 84 $blog_name_excerpt = wp_html_excerpt($blog_name, 40);
mp-wp_genesis 85 if ( $blog_name != $blog_name_excerpt )
mp-wp_genesis 86 $blog_name_excerpt = trim($blog_name_excerpt) . '…';
mp-wp_genesis 87 $blog_name = $blog_name_excerpt;
mp-wp_genesis 88 }
mp-wp_genesis 89 $title_class = '';
mp-wp_genesis 90 if ( function_exists('mb_strlen') ) {
mp-wp_genesis 91 if ( mb_strlen($blog_name, 'UTF-8') > 30 )
mp-wp_genesis 92 $title_class = 'class="long-title"';
mp-wp_genesis 93 } else {
mp-wp_genesis 94 if ( strlen($blog_name) > 30 )
mp-wp_genesis 95 $title_class = 'class="long-title"';
mp-wp_genesis 96 }
mp-wp_genesis 97 ?>
mp-wp_genesis 98
mp-wp_update-imag... 99 <img id="header-logo" src="../wp-includes/images/blank.svg" alt="" width="32" height="32" /> <h1 <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?> <span>← <?php _e('Visit site') ?></span></a></h1>
mp-wp_genesis 100
mp-wp_genesis 101 <div id="wphead-info">
mp-wp_genesis 102 <div id="user_info">
mp-wp_remove-tiny... 103 <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?> |
mp-wp_genesis 104 <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
mp-wp_genesis 105 </div>
mp-wp_genesis 106
mp-wp_genesis 107 <?php favorite_actions(); ?>
mp-wp_genesis 108 </div>
mp-wp_genesis 109 </div>
mp-wp_genesis 110
mp-wp_genesis 111 <?php if ( get_user_setting('mfold') == 'f' ) { ?>
mp-wp_genesis 112 <script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script>
mp-wp_genesis 113 <?php } ?>
mp-wp_genesis 114
mp-wp_genesis 115 <div id="wpbody">
mp-wp_genesis 116 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
mp-wp_genesis 117
mp-wp_genesis 118 <div id="wpbody-content">
mp-wp_genesis 119 <?php
mp-wp_genesis 120 screen_meta($hook_suffix);
mp-wp_genesis 121
mp-wp_genesis 122 do_action('admin_notices');
mp-wp_genesis 123
mp-wp_genesis 124 if ( $parent_file == 'options-general.php' ) {
mp-wp_genesis 125 require(ABSPATH . 'wp-admin/options-head.php');
mp-wp_genesis 126 }