1 | <?php
|
---|
2 | /**
|
---|
3 | * WordPress Administration Template Header
|
---|
4 | *
|
---|
5 | * @package WordPress
|
---|
6 | * @subpackage Administration
|
---|
7 | */
|
---|
8 |
|
---|
9 | @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
---|
10 | if (!isset($_GET["page"])) require_once('admin.php');
|
---|
11 |
|
---|
12 | get_admin_page_title();
|
---|
13 | $title = esc_html( strip_tags( $title ) );
|
---|
14 | wp_user_settings();
|
---|
15 | wp_menu_unfold();
|
---|
16 | ?>
|
---|
17 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
18 | <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
---|
21 | <title><?php echo $title; ?> ‹ <?php bloginfo('name') ?> — WordPress</title>
|
---|
22 | <?php
|
---|
23 |
|
---|
24 | wp_admin_css( 'css/global' );
|
---|
25 | wp_admin_css();
|
---|
26 | wp_admin_css( 'css/colors' );
|
---|
27 | wp_admin_css( 'css/ie' );
|
---|
28 | wp_enqueue_script('utils');
|
---|
29 |
|
---|
30 | $hook_suffix = '';
|
---|
31 | if ( isset($page_hook) )
|
---|
32 | $hook_suffix = "$page_hook";
|
---|
33 | else if ( isset($plugin_page) )
|
---|
34 | $hook_suffix = "$plugin_page";
|
---|
35 | else if ( isset($pagenow) )
|
---|
36 | $hook_suffix = "$pagenow";
|
---|
37 |
|
---|
38 | $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
|
---|
39 | ?>
|
---|
40 | <script type="text/javascript">
|
---|
41 | //<![CDATA[
|
---|
42 | 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();}}};
|
---|
43 | var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time() ?>'};
|
---|
44 | var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = '<?php echo substr($pagenow, 0, -4); ?>', adminpage = '<?php echo $admin_body_class; ?>';
|
---|
45 | //]]>
|
---|
46 | </script>
|
---|
47 | <?php
|
---|
48 |
|
---|
49 | if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
|
---|
50 | add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );
|
---|
51 | wp_enqueue_script('quicktags');
|
---|
52 | }
|
---|
53 |
|
---|
54 | do_action('admin_enqueue_scripts', $hook_suffix);
|
---|
55 | do_action("admin_print_styles-$hook_suffix");
|
---|
56 | do_action('admin_print_styles');
|
---|
57 | do_action("admin_print_scripts-$hook_suffix");
|
---|
58 | do_action('admin_print_scripts');
|
---|
59 | do_action("admin_head-$hook_suffix");
|
---|
60 | do_action('admin_head');
|
---|
61 |
|
---|
62 | if ( get_user_setting('mfold') == 'f' ) {
|
---|
63 | $admin_body_class .= ' folded';
|
---|
64 | }
|
---|
65 |
|
---|
66 | if ( $is_iphone ) { ?>
|
---|
67 | <style type="text/css">.row-actions{visibility:visible;}</style>
|
---|
68 | <?php } ?>
|
---|
69 | </head>
|
---|
70 | <body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
|
---|
71 | <script type="text/javascript">
|
---|
72 | //<![CDATA[
|
---|
73 | (function(){
|
---|
74 | var c = document.body.className;
|
---|
75 | c = c.replace(/no-js/, 'js');
|
---|
76 | document.body.className = c;
|
---|
77 | })();
|
---|
78 | //]]>
|
---|
79 | </script>
|
---|
80 |
|
---|
81 | <div id="wpwrap">
|
---|
82 | <div id="wpcontent">
|
---|
83 | <div id="wphead">
|
---|
84 | <?php
|
---|
85 | $blog_name = get_bloginfo('name', 'display');
|
---|
86 | if ( '' == $blog_name ) {
|
---|
87 | $blog_name = ' ';
|
---|
88 | } else {
|
---|
89 | $blog_name_excerpt = wp_html_excerpt($blog_name, 40);
|
---|
90 | if ( $blog_name != $blog_name_excerpt )
|
---|
91 | $blog_name_excerpt = trim($blog_name_excerpt) . '…';
|
---|
92 | $blog_name = $blog_name_excerpt;
|
---|
93 | }
|
---|
94 | $title_class = '';
|
---|
95 | if ( function_exists('mb_strlen') ) {
|
---|
96 | if ( mb_strlen($blog_name, 'UTF-8') > 30 )
|
---|
97 | $title_class = 'class="long-title"';
|
---|
98 | } else {
|
---|
99 | if ( strlen($blog_name) > 30 )
|
---|
100 | $title_class = 'class="long-title"';
|
---|
101 | }
|
---|
102 | ?>
|
---|
103 |
|
---|
104 | <img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>
|
---|
105 |
|
---|
106 | <div id="wphead-info">
|
---|
107 | <div id="user_info">
|
---|
108 | <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
|
---|
109 | <?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
|
---|
110 | <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
|
---|
111 | </div>
|
---|
112 |
|
---|
113 | <?php favorite_actions($hook_suffix); ?>
|
---|
114 | </div>
|
---|
115 | </div>
|
---|
116 |
|
---|
117 | <div id="wpbody">
|
---|
118 | <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
|
---|
119 |
|
---|
120 | <div id="wpbody-content">
|
---|
121 | <?php
|
---|
122 | screen_meta($hook_suffix);
|
---|
123 |
|
---|
124 | do_action('admin_notices');
|
---|
125 |
|
---|
126 | if ( $parent_file == 'options-general.php' ) {
|
---|
127 | require(ABSPATH . 'wp-admin/options-head.php');
|
---|
128 | }
|
---|