root/tags/1_0-rc2/wp-admin/admin-header.php

Revision 550, 2.0 kB (checked in by donncha, 3 years ago)

WP Merge and new features

  • Property svn:eol-style set to native
Line 
1 <?php
2 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
3 if (!isset($_GET["page"])) require_once('admin.php');
4 if ( $editing ) {
5     wp_enqueue_script( array("dbx-admin-key?pagenow=$pagenow",'admin-custom-fields') );
6     if ( current_user_can('manage_categories') )
7         wp_enqueue_script( 'ajaxcat' );
8     if ( user_can_richedit() )
9         wp_enqueue_script( 'wp_tiny_mce' );
10 }
11
12 get_admin_page_title();
13 ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15 <html xmlns="http://www.w3.org/1999/xhtml">
16 <head>
17 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
18 <title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title>
19 <link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
20 <script type="text/javascript">
21 //<![CDATA[
22 function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
23 //]]>
24 </script>
25 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
26 <style type="text/css">* html { overflow-x: hidden; }</style>
27 <?php endif; wp_print_scripts(); do_action('admin_head'); ?>
28 </head>
29 <body>
30 <div id="wphead">
31 <h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site &raquo;') ?></a>)</span></h1>
32 </div>
33 <div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_settings('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Account'); ?></a>] </p></div>
34
35 <?php
36 require(ABSPATH . '/wp-admin/menu-header.php');
37
38 if ( $parent_file == 'options-general.php' ) {
39     require(ABSPATH . '/wp-admin/options-head.php');
40 }
41 ?>
42
Note: See TracBrowser for help on using the browser.