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
mp-wp_genesis 56 if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
mp-wp_genesis 57 add_action( 'admin_head', 'wp_tiny_mce' );
mp-wp_genesis 58 }
mp-wp_genesis 59
mp-wp_genesis 60 $hook_suffix = '';
mp-wp_genesis 61 if ( isset($page_hook) )
mp-wp_genesis 62 $hook_suffix = "$page_hook";
mp-wp_genesis 63 else if ( isset($plugin_page) )
mp-wp_genesis 64 $hook_suffix = "$plugin_page";
mp-wp_genesis 65 else if ( isset($pagenow) )
mp-wp_genesis 66 $hook_suffix = "$pagenow";
mp-wp_genesis 67
mp-wp_genesis 68 do_action("admin_print_styles-$hook_suffix");
mp-wp_genesis 69 do_action('admin_print_styles');
mp-wp_genesis 70 do_action("admin_print_scripts-$hook_suffix");
mp-wp_genesis 71 do_action('admin_print_scripts');
mp-wp_genesis 72 do_action("admin_head-$hook_suffix");
mp-wp_genesis 73 do_action('admin_head');
mp-wp_genesis 74
mp-wp_genesis 75 if ( $is_iphone ) { ?>
mp-wp_genesis 76 <style type="text/css">.row-actions{visibility:visible;}</style>
mp-wp_genesis 77 <?php } ?>
mp-wp_genesis 78 </head>
mp-wp_genesis 79 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
mp-wp_genesis 80
mp-wp_genesis 81 <div id="wpwrap">
mp-wp_genesis 82 <div id="wpcontent">
mp-wp_genesis 83 <div id="wphead">
mp-wp_genesis 84 <?php
mp-wp_genesis 85 $blog_name = get_bloginfo('name', 'display');
mp-wp_genesis 86 if ( '' == $blog_name ) {
mp-wp_genesis 87 $blog_name = ' ';
mp-wp_genesis 88 } else {
mp-wp_genesis 89 $blog_name_excerpt = wp_html_excerpt($blog_name, 40);
mp-wp_genesis 90 if ( $blog_name != $blog_name_excerpt )
mp-wp_genesis 91 $blog_name_excerpt = trim($blog_name_excerpt) . '…';
mp-wp_genesis 92 $blog_name = $blog_name_excerpt;
mp-wp_genesis 93 }
mp-wp_genesis 94 $title_class = '';
mp-wp_genesis 95 if ( function_exists('mb_strlen') ) {
mp-wp_genesis 96 if ( mb_strlen($blog_name, 'UTF-8') > 30 )
mp-wp_genesis 97 $title_class = 'class="long-title"';
mp-wp_genesis 98 } else {
mp-wp_genesis 99 if ( strlen($blog_name) > 30 )
mp-wp_genesis 100 $title_class = 'class="long-title"';
mp-wp_genesis 101 }
mp-wp_genesis 102 ?>
mp-wp_genesis 103
mp-wp_genesis 104 <img id="header-logo" src="../wp-includes/images/blank.gif" 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 105
mp-wp_genesis 106 <div id="wphead-info">
mp-wp_genesis 107 <div id="user_info">
mp-wp_genesis 108 <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
mp-wp_genesis 109 <?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
mp-wp_genesis 110 <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
mp-wp_genesis 111 </div>
mp-wp_genesis 112
mp-wp_genesis 113 <?php favorite_actions(); ?>
mp-wp_genesis 114 </div>
mp-wp_genesis 115 </div>
mp-wp_genesis 116
mp-wp_genesis 117 <?php if ( get_user_setting('mfold') == 'f' ) { ?>
mp-wp_genesis 118 <script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script>
mp-wp_genesis 119 <?php } ?>
mp-wp_genesis 120
mp-wp_genesis 121 <div id="wpbody">
mp-wp_genesis 122 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
mp-wp_genesis 123
mp-wp_genesis 124 <div id="wpbody-content">
mp-wp_genesis 125 <?php
mp-wp_genesis 126 screen_meta($hook_suffix);
mp-wp_genesis 127
mp-wp_genesis 128 do_action('admin_notices');
mp-wp_genesis 129
mp-wp_genesis 130 if ( $parent_file == 'options-general.php' ) {
mp-wp_genesis 131 require(ABSPATH . 'wp-admin/options-head.php');
mp-wp_genesis 132 }