Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 127 lines (100 sloc) 4.059 kb
e297c362 » ryan
2006-02-17 Move raquo into gettext. Props SteveAgl. fixes #2453
1 <?php
175c2b6f » ryan
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 » rob1n
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'));
1eb297c9 » nacin
2010-05-02 Fix admin.php?import=x pages, which can re-include itself in certain …
10 if ( ! defined( 'WP_ADMIN' ) )
11 require_once( './admin.php' );
4d49e98f » ryan
2006-05-22 Script loader from mdawaffe. #2701
12
5dab7294 » nacin
2011-08-10 Globalize variables used in admin-header in case it is used in a func…
13 // In case admin-header.php is included in a function.
14 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone,
30ff3710 » nacin
2011-11-14 Don't use $user_identity global. props duck_. fixes #19146.
15 $current_site, $update_title, $total_update_count, $parent_file;
5dab7294 » nacin
2011-08-10 Globalize variables used in admin-header in case it is used in a func…
16
b1935dee » nacin
2011-12-01 Call set_current_screen() again in admin-header.php in case a plugin …
17 // Catch plugins that include admin-header.php before admin.php completes.
18 if ( empty( $current_screen ) )
19 set_current_screen();
20
4d49e98f » ryan
2006-05-22 Script loader from mdawaffe. #2701
21 get_admin_page_title();
119b39ce » markjaquith
2009-05-18 deprecate wp_specialchars() in favor of esc_html(). Encode quotes for…
22 $title = esc_html( strip_tags( $title ) );
21e3f0f7 » ryan
2010-07-30 Network Admin, first pass. see #14435
23
76f3dd92 » ryan
2010-11-18 Titles for network admin and global dashboard. see #15477
24 if ( is_network_admin() )
25 $admin_title = __( 'Network Admin' );
26 elseif ( is_user_admin() )
27 $admin_title = __( 'Global Dashboard' );
28 else
29 $admin_title = get_bloginfo( 'name' );
30
31 if ( $admin_title == $title )
32 $admin_title = sprintf( __( '%1$s &#8212; WordPress' ), $title );
33 else
34 $admin_title = sprintf( __( '%1$s &lsaquo; %2$s &#8212; WordPress' ), $title, $admin_title );
35
4b260b3d » scribu
2010-11-09 Make admin screen titles filterable. Props caesarsgrunt. Fixes #15301
36 $admin_title = apply_filters( 'admin_title', $admin_title, $title );
37
47c19242 » ryan
2008-12-05 Run wp_user_settings() from admin-header
38 wp_user_settings();
21e3f0f7 » ryan
2010-07-30 Network Admin, first pass. see #14435
39
e849d3b2 » azaozz
2011-10-17 Use IE conditionals when adding the ie8 class, introduce _wp_admin_ht…
40 _wp_admin_html_begin();
759faa6b » matt
2006-01-10 HTML and JS cleanup
41 ?>
4b260b3d » scribu
2010-11-09 Make admin screen titles filterable. Props caesarsgrunt. Fixes #15301
42 <title><?php echo $admin_title; ?></title>
04c9051a » ryan
2008-03-02 Remove trailing whites.
43 <?php
91789345 » ryan
2008-05-21 Add wp_default_styles(), convert wp_admin_css(). Props mdawaffe. see …
44
1cdec6ff » azaozz
2011-08-21 Merge most admin css files, first run, see #18314
45 wp_enqueue_style( 'colors' );
46 wp_enqueue_style( 'ie' );
1c9353ad » azaozz
2009-01-12 Cleanup js files and prepare for concatenating, move most inline js t…
47 wp_enqueue_script('utils');
91789345 » ryan
2008-05-21 Add wp_default_styles(), convert wp_admin_css(). Props mdawaffe. see …
48
e4e96c17 » azaozz
2009-06-03 Add $hook_suffix as js var, fixes #10008
49 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
df17a15b » matt
2008-02-10 New manage posts almost fully functional, and some admin CSS reorgani…
50 ?>
6c5157a5 » saxmatt
2004-08-01 Cleaning out some errors and fixing some XHTML 1.1 problems.
51 <script type="text/javascript">
1c9353ad » azaozz
2009-01-12 Cleanup js files and prepare for concatenating, move most inline js t…
52 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();}}};
95623b4c » ryan
2010-03-02 Fix metabox hiding. Props scribu. fixes #12439
53 var userSettings = {
e25a65b3 » ryan
2010-03-17 Trim trailing whitespace
54 'url': '<?php echo SITECOOKIEPATH; ?>',
95623b4c » ryan
2010-03-02 Fix metabox hiding. Props scribu. fixes #12439
55 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>',
56 'time':'<?php echo time() ?>'
57 },
e25a65b3 » ryan
2010-03-17 Trim trailing whitespace
58 ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',
59 pagenow = '<?php echo $current_screen->id; ?>',
304a3604 » nacin
2011-11-17 WP_Screen->post_type is always set. see #19131.
60 typenow = '<?php echo $current_screen->post_type; ?>',
e25a65b3 » ryan
2010-03-17 Trim trailing whitespace
61 adminpage = '<?php echo $admin_body_class; ?>',
9356c4b7 » westi
2010-04-22 Restore support for floating point numbers in number_format_i18n(). F…
62 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
00192e27 » nacin
2010-05-27 Add JS var isRtl to admin-header and remove unused JS localized vars …
63 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
64 isRtl = <?php echo (int) is_rtl(); ?>;
a31be590 » saxmatt
2003-05-22 New admin file locations.
65 </script>
3d29e571 » azaozz
2008-10-02 Add page options to edit/write page, remove the IE6 scrollbar hack (s…
66 <?php
4f10239e » ryan
2006-08-28 Add page specific admin_head action. Add admin_print_scripts actions.
67
45c7401c » azaozz
2009-01-15 Add action "admin_enqueue_scripts" to make it easy for plugins to que…
68 do_action('admin_enqueue_scripts', $hook_suffix);
97c061ad » ryan
2008-11-12 screen_meta() and contextual help improvements from filosofo. fixes #…
69 do_action("admin_print_styles-$hook_suffix");
70 do_action('admin_print_styles');
71 do_action("admin_print_scripts-$hook_suffix");
72 do_action('admin_print_scripts');
73 do_action("admin_head-$hook_suffix");
74 do_action('admin_head');
a4c45667 » azaozz
2009-04-04 Fix 'admin_body_class' filter
75
ef301b74 » ryan
2010-01-26 unset temp vars so they don't pollute the global namespace. Formattin…
76 if ( get_user_setting('mfold') == 'f' )
6d535ce0 » azaozz
2009-04-29 Load the menu folded (if set), load the editor earlier
77 $admin_body_class .= ' folded';
3949ce12 » ryan
2010-12-13 Pink trailing whites.
78
b1e7c513 » ryan
2010-11-26 Remove wp_admin_body_style(). Props ocean90. fixes #15507
79 if ( is_admin_bar_showing() )
3949ce12 » ryan
2010-12-13 Pink trailing whites.
80 $admin_body_class .= ' admin-bar';
4a6cfee7 » azaozz
2009-02-04 Revert [10489], it brings non-critical 404 errors
81
209f213f » ryan
2011-06-02 Add rtl class to the admin body if is_rtl(). RTL fixes for twentyelev…
82 if ( is_rtl() )
83 $admin_body_class .= ' rtl';
84
39ba82bb » ryan
2011-08-26 Handle locales that use a comma as a separator when generating versio…
85 $admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
9c7fce4e » nacin
2011-05-18 Add admin body classes for the WP branch, WP version, and current adm…
86 $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
87 $admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
88
7160187e » azaozz
2009-04-04 Improved no-js styles
89 if ( $is_iphone ) { ?>
90 <style type="text/css">.row-actions{visibility:visible;}</style>
91 <?php } ?>
92 </head>
93 <body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
53ac6d4a » azaozz
2011-10-06 Clean up unused bits from responsive admin, fix the JS on dashboard, …
94 <script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
b54484f9 » azaozz
2008-12-27 Faster hide-if-no-js, if-js-closed, etc. needed when loading scripts …
95
3905811c » matt
2008-01-14 Have footer stay at the bottom even on short pages in long windows. H…
96 <div id="wpwrap">
8d87f5dc » markjaquith
2011-05-04 Big UI style update. props koopersmith. see #17324
97 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
3905811c » matt
2008-01-14 Have footer stay at the bottom even on short pages in long windows. H…
98 <div id="wpcontent">
9e4e87d9 » ryan
2008-05-19 Gears update from azaozz. see #6965
99
7a16085b » koopersmith
2011-05-06 Add user actions dropdown to admin header. see #17324.
100 <?php
101 do_action('in_admin_header');
102 ?>
103
3c1095b7 » azaozz
2008-08-29 Fix position of admin notices, includes patch by caesarsgrunt, fixes …
104 <div id="wpbody">
05bf7382 » ryan
2010-01-15 Merge edit-pages.php into edit.php. see #9674
105 <?php
b61a5b05 » nacin
2011-01-04 Update indicator for the Network Admin link. fixes #16063.
106 unset($title_class, $blog_name, $total_update_count, $update_title);
ef301b74 » ryan
2010-01-26 unset temp vars so they don't pollute the global namespace. Formattin…
107
d417524b » koopersmith
2011-09-26 Introduce help tabs and WP_Screen. props mbijon, goldenapples, natebe…
108 $current_screen->set_parentage( $parent_file );
109
05bf7382 » ryan
2010-01-15 Merge edit-pages.php into edit.php. see #9674
110 ?>
2e6d9f22 » azaozz
2008-10-27 Attach 'Screen Options' button to the sliding layer and related changes
111
3c1095b7 » azaozz
2008-08-29 Fix position of admin notices, includes patch by caesarsgrunt, fixes …
112 <div id="wpbody-content">
113 <?php
2d3fa6fc » koopersmith
2011-10-01 Make screen options a help tab. Move screen option functions into WP_…
114
115 $current_screen->render_screen_meta();
d3eefc64 » ryan
2008-11-29 Move admin_notices after screen meta
116
39e775da » ryan
2010-11-06 Issue user_admin_notices for user admin. Issue admin_notices only for…
117 if ( is_network_admin() )
44799523 » ryan
2010-08-02 Update network upgrade links. see #14435
118 do_action('network_admin_notices');
39e775da » ryan
2010-11-06 Issue user_admin_notices for user admin. Issue admin_notices only for…
119 elseif ( is_user_admin() )
120 do_action('user_admin_notices');
75c741cd » nacin
2011-11-21 Revert other stuffs from [19374].
121 else
43983291 » nacin
2010-12-17 Revert [16292], admin_notices for non-network non-user only. all_admi…
122 do_action('admin_notices');
44799523 » ryan
2010-08-02 Update network upgrade links. see #14435
123
75c741cd » nacin
2011-11-21 Revert other stuffs from [19374].
124 do_action('all_admin_notices');
cc7c443f » ryan
2008-11-11 Move screen_meta() to admin header. Add all meta boxes before requiri…
125
ef301b74 » ryan
2010-01-26 unset temp vars so they don't pollute the global namespace. Formattin…
126 if ( $parent_file == 'options-general.php' )
764f50bd » markjaquith
2007-07-27 ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
127 require(ABSPATH . 'wp-admin/options-head.php');
Something went wrong with that request. Please try again.