Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 163 lines (136 sloc) 7.557 kb
e297c362 »
2006-02-17 Move raquo into gettext. Props SteveAgl. fixes #2453
1 <?php
175c2b6f »
2008-08-11 WP-Admin File Level Inline Documentation from santosj. see #7496
2 /**
3 * WordPress Administration Template Header
4 *
5 * @package WordPress
6 * @subpackage Administration
7 */
8
9ce729e6 »
2007-06-02 Content-Type, not Content-type, as headers are case sensitive. Props …
9 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
759faa6b »
2006-01-10 HTML and JS cleanup
10 if (!isset($_GET["page"])) require_once('admin.php');
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
11 wp_enqueue_script( 'wp-gears' );
4d49e98f »
2006-05-22 Script loader from mdawaffe. #2701
12
73b84563 »
2008-02-29 max width fixes from azaozz. fixes #6051
13 $min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php', 'link.php' );
c6153812 »
2008-02-24 Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975
14 $the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
15 $ie6_no_scrollbar = true;
16
7f894ae4 »
2008-08-14 phpdoc for wp-admin. See #7496 props santosj.
17 /**
18 * Append 'minwidth' to value.
19 *
20 * @param mixed $c
21 * @return string
22 */
c6153812 »
2008-02-24 Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975
23 function add_minwidth($c) {
24 return $c . 'minwidth ';
25 }
26
27 if ( in_array( $the_current_page, $min_width_pages ) ) {
28 $ie6_no_scrollbar = false;
29 add_filter( 'admin_body_class', 'add_minwidth' );
30 }
31
4d49e98f »
2006-05-22 Script loader from mdawaffe. #2701
32 get_admin_page_title();
d02b08f0 »
2008-09-26 Add breadcrumb, remove h2 from edit.php. Styling carnage to be fixed
33 $title = wp_specialchars( strip_tags( $title ) );
759faa6b »
2006-01-10 HTML and JS cleanup
34 ?>
04786f26 »
2004-10-19 Split admin-header.php into admin.php and admin-header.php. Split men…
35 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
c8649767 »
2007-04-04 Add admin_xml_ns action to <html> in the admin header. Props jhodgdon…
36 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
a31be590 »
2003-05-22 New admin file locations.
37 <head>
849a0d29 »
2006-08-30 Use get_option instead of get_settings. Just 'cause.
38 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
d02b08f0 »
2008-09-26 Add breadcrumb, remove h2 from edit.php. Styling carnage to be fixed
39 <title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title>
04c9051a »
2008-03-02 Remove trailing whites.
40 <?php
91789345 »
2008-05-21 Add wp_default_styles(), convert wp_admin_css(). Props mdawaffe. see …
41
df17a15b »
2008-02-10 New manage posts almost fully functional, and some admin CSS reorgani…
42 wp_admin_css( 'css/global' );
43 wp_admin_css();
f0479dbc »
2008-03-11 Admin color selector. see #6167
44 wp_admin_css( 'css/colors' );
91789345 »
2008-05-21 Add wp_default_styles(), convert wp_admin_css(). Props mdawaffe. see …
45 wp_admin_css( 'css/ie' );
46
df17a15b »
2008-02-10 New manage posts almost fully functional, and some admin CSS reorgani…
47 ?>
6c5157a5 »
2004-08-01 Cleaning out some errors and fixing some XHTML 1.1 problems.
48 <script type="text/javascript">
7aa01391 »
2003-12-22 Initial XFN support.
49 //<![CDATA[
d3eb8293 »
2008-03-11 Use jQuery load function when available. Fixes #6112; Hat tip: azaozz.
50 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();}}};
51 //]]>
a31be590 »
2003-05-22 New admin file locations.
52 </script>
c6153812 »
2008-02-24 Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975
53 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
056106dc »
2005-12-23 h-scroll fix. fixes #1994
54 <style type="text/css">* html { overflow-x: hidden; }</style>
4f10239e »
2006-08-28 Add page specific admin_head action. Add admin_print_scripts actions.
55 <?php endif;
56
f3511b04 »
2008-05-28 styles should come before scripts should come before head. Props mdaw…
57 $hook_suffixes = array();
58
59 if ( isset($page_hook) )
60 $hook_suffixes[] = "-$page_hook";
61 else if ( isset($plugin_page) )
62 $hook_suffixes[] = "-$plugin_page";
63 else if ( isset($pagenow) )
64 $hook_suffixes[] = "-$pagenow";
65
66 $hook_suffixes[] = '';
67
68 foreach ( $hook_suffixes as $hook_suffix )
69 do_action("admin_print_styles$hook_suffix"); // do_action( 'admin_print_styles-XXX' ); do_action( 'admin_print_styles' );
70 foreach ( $hook_suffixes as $hook_suffix )
71 do_action("admin_print_scripts$hook_suffix"); // do_action( 'admin_print_scripts-XXX' ); do_action( 'admin_print_scripts' );
72 foreach ( $hook_suffixes as $hook_suffix )
73 do_action("admin_head$hook_suffix"); // do_action( 'admin_head-XXX' ); do_action( 'admin_head' );
74 unset($hook_suffixes, $hook_suffix);
e9aa24cf »
2008-05-21 Style loader from mdawaffe. see #7011
75
4f10239e »
2006-08-28 Add page specific admin_head action. Add admin_print_scripts actions.
76 ?>
a31be590 »
2003-05-22 New admin file locations.
77 </head>
7c2dbb9c »
2007-08-17 First pass at upgrade notification for core, see #1476. Also includes…
78 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
3905811c »
2008-01-14 Have footer stay at the bottom even on short pages in long windows. H…
79 <div id="wpwrap">
a58d2d4c »
2008-08-31 Base css layout, fixes #7620
80 <div id="sidemenu-bg"><br /></div>
3905811c »
2008-01-14 Have footer stay at the bottom even on short pages in long windows. H…
81 <div id="wpcontent">
e9e2ba1e »
2004-04-28 Cosmetic fixes from forums.
82 <div id="wphead">
d02b08f0 »
2008-09-26 Add breadcrumb, remove h2 from edit.php. Styling carnage to be fixed
83 <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="breadcrumb"><a href="index.php"><?php _e('Dashboard') ?></a> &rsaquo; <?php echo $title ?></span></h1>
e9e2ba1e »
2004-04-28 Cosmetic fixes from forums.
84 </div>
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
85
86 <?php
35b18e50 »
2008-08-09 Trailing whitespace cleanup
87 if ( ! $is_opera ) {
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
88 ?>
eb60fb28 »
2008-05-28 Always hide gears popup. Props azaozz. see #6965
89 <div id="gears-info-box" class="info-box" style="display:none;">
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
90 <img src="images/gear.png" title="Gear" alt="" class="gears-img" />
91 <div id="gears-msg1">
92 <h3 class="info-box-title"><?php _e('Speed up WordPress'); ?></h3>
c64c4fbd »
2008-06-24 Better wording for Gears.
93 <p><?php _e('WordPress now has support for Gears, which adds new features to your web browser.'); ?><br />
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
94 <a href="http://gears.google.com/" target="_blank" style="font-weight:normal;"><?php _e('More information...'); ?></a></p>
5b88b2c5 »
2008-08-27 Improve grammar in Gears Enable Dialog. Fixes #7176 props Speedboxer.
95 <p><?php _e('After you install and enable Gears, most of WordPress&#8217; images, scripts, and CSS files will be stored locally on your computer. This speeds up page load time.'); ?></p>
c64c4fbd »
2008-06-24 Better wording for Gears.
96 <p><strong><?php _e('Don&#8217;t install on a public or shared computer.'); ?></strong></p> <div class="submit"><button onclick="window.location = 'http://gears.google.com/?action=install&amp;return=<?php echo urlencode( admin_url() ); ?>';" class="button"><?php _e('Install Now'); ?></button>
c94918ca »
2008-06-28 i18n fixes from nbachiyski. fixes #7195
97 <button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
98 </div>
99
100 <div id="gears-msg2" style="display:none;">
8ef3a7f4 »
2008-06-03 Gears instead of Google Gears. Props azaozz. fixes #6965
101 <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
5b88b2c5 »
2008-08-27 Improve grammar in Gears Enable Dialog. Fixes #7176 props Speedboxer.
102 <p><?php _e('Gears is installed on this computer, but is not enabled for use with WordPress.'); ?></p>
1c3de75c »
2008-09-05 Add simple Chrome detection and updates for Gears dialog, fixes #7684
103 <p><?php _e('To enable it click the button below.'); ?></p>
5b88b2c5 »
2008-08-27 Improve grammar in Gears Enable Dialog. Fixes #7176 props Speedboxer.
104 <p><strong><?php _e('However, Gears should not be enabled if this is a public or shared computer.'); ?></strong></p>
8ef3a7f4 »
2008-06-03 Gears instead of Google Gears. Props azaozz. fixes #6965
105 <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
c94918ca »
2008-06-28 i18n fixes from nbachiyski. fixes #7195
106 <button class="button" style="margin-left:10px;" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
107 </div>
108
109 <div id="gears-msg3" style="display:none;">
8ef3a7f4 »
2008-06-03 Gears instead of Google Gears. Props azaozz. fixes #6965
110 <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
6830e339 »
2008-07-23 Use conditional for whole sentence. Fixes #7385 for 2.7
111 <p><?php
35b18e50 »
2008-08-09 Trailing whitespace cleanup
112
1c3de75c »
2008-09-05 Add simple Chrome detection and updates for Gears dialog, fixes #7684
113 if ( $is_chrome )
114 _e('Gears is installed and enabled on this computer. You can disable it from your browser&#8217;s Options, Under the Hood menu.');
115 elseif ( $is_safari )
6830e339 »
2008-07-23 Use conditional for whole sentence. Fixes #7385 for 2.7
116 _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
117 else
5b88b2c5 »
2008-08-27 Improve grammar in Gears Enable Dialog. Fixes #7176 props Speedboxer.
118 _e('Gears is installed and enabled on this computer. You can disable it from your browser&#8217;s Tools menu.');
35b18e50 »
2008-08-09 Trailing whitespace cleanup
119
6830e339 »
2008-07-23 Use conditional for whole sentence. Fixes #7385 for 2.7
120 ?></p>
5b88b2c5 »
2008-08-27 Improve grammar in Gears Enable Dialog. Fixes #7176 props Speedboxer.
121 <p><?php _e('If there are any errors try disabling Gears, reloading the page, and re-enabling Gears.'); ?></p>
1c3de75c »
2008-09-05 Add simple Chrome detection and updates for Gears dialog, fixes #7684
122 <p><?php _e('Local storage status:'); ?> <span id="gears-wait"><span style="color:#f00;"><?php _e('Updating files:'); ?></span> <span id="gears-upd-number"></span></span></p>
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
123 <div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Close'); ?></button></div>
124 </div>
1c3de75c »
2008-09-05 Add simple Chrome detection and updates for Gears dialog, fixes #7684
125
126 <div id="gears-msg4" style="display:none;">
127 <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
128 <p><?php _e('This web site is denied to use Gears.'); ?></p>
129 <p><?php
130
131 if ( $is_chrome )
132 _e('To allow it, change the Gears settings from your browser&#8217;s Options, Under the Hood menu and reload this page.');
133 elseif ( $is_safari )
134 _e('To allow it, change the Gears settings from the Safari menu and reload this page.');
135 else
136 _e('To allow it, change the Gears settings from your browser&#8217;s Tools menu and reload this page.');
137
138 ?></p>
139 <p><strong><?php _e('However, Gears should not be enabled if this is a public or shared computer.'); ?></strong></p>
140 <div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
141 </div>
142
9e4e87d9 »
2008-05-19 Gears update from azaozz. see #6965
143 </div>
144 <?php } ?>
145
2a4ed4c5 »
2008-07-22 Gears integration update in anticipation of Safari support. Fixes #73…
146 <div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( ! $is_opera ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>
09c016f9 »
2005-08-07 Updated style
147
a31be590 »
2003-05-22 New admin file locations.
148 <?php
764f50bd »
2007-07-27 ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
149 require(ABSPATH . 'wp-admin/menu-header.php');
3c1095b7 »
2008-08-29 Fix position of admin notices, includes patch by caesarsgrunt, fixes …
150 ?>
151 <div id="wpbody">
152 <div id="wpbody-content">
153 <?php
154 do_action('admin_notices');
04786f26 »
2004-10-19 Split admin-header.php into admin.php and admin-header.php. Split men…
155
b0386faa »
2005-11-18 Restore accidental reversion.
156 if ( $parent_file == 'options-general.php' ) {
764f50bd »
2007-07-27 ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
157 require(ABSPATH . 'wp-admin/options-head.php');
04786f26 »
2004-10-19 Split admin-header.php into admin.php and admin-header.php. Split men…
158 }
90b00890 »
2008-09-25 Place holder for Favorite Actions dropdown
159
160 favorite_actions();
161
6af4d57f »
2004-11-25 Admin tweaks from MooKitty.
162 ?>
Something went wrong with that request. Please try again.