10
10
if (!isset($_GET["page"])) require_once('admin.php');
12
12
get_admin_page_title();
13
$title = wp_specialchars( strip_tags( $title ) );
13
$title = esc_html( strip_tags( $title ) );
14
14
wp_user_settings();
16
17
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
17
18
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
19
20
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
20
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
21
<title><?php echo $title; ?> ‹ <?php bloginfo('name') ?> — WordPress</title>
23
24
wp_admin_css( 'css/global' );
25
26
wp_admin_css( 'css/colors' );
26
27
wp_admin_css( 'css/ie' );
29
<script type="text/javascript">
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();}}};
33
function convertEntities(o) {
35
if (/&[^;]+;/.test(s)) {
36
var e = document.createElement("div");
38
return !e.firstChild ? s : e.firstChild.nodeValue;
43
if ( typeof o === 'string' )
45
else if ( typeof o === 'object' )
47
if ( typeof o[v] === 'string' )
56
if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
57
add_action( 'admin_head', 'wp_tiny_mce' );
28
wp_enqueue_script('utils');
61
31
if ( isset($page_hook) )
65
35
else if ( isset($pagenow) )
66
36
$hook_suffix = "$pagenow";
38
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
40
<script type="text/javascript">
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; ?>';
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');
54
do_action('admin_enqueue_scripts', $hook_suffix);
68
55
do_action("admin_print_styles-$hook_suffix");
69
56
do_action('admin_print_styles');
70
57
do_action("admin_print_scripts-$hook_suffix");
72
59
do_action("admin_head-$hook_suffix");
73
60
do_action('admin_head');
62
if ( get_user_setting('mfold') == 'f' ) {
63
$admin_body_class .= ' folded';
75
66
if ( $is_iphone ) { ?>
76
67
<style type="text/css">.row-actions{visibility:visible;}</style>
79
<body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
70
<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
71
<script type="text/javascript">
74
var c = document.body.className;
75
c = c.replace(/no-js/, 'js');
76
document.body.className = c;
82
82
<div id="wpcontent">
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>
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>
106
106
<div id="wphead-info">
107
107
<div id="user_info">
110
110
<a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
113
<?php favorite_actions(); ?>
117
<?php if ( get_user_setting('mfold') == 'f' ) { ?>
118
<script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script>
113
<?php favorite_actions($hook_suffix); ?>
121
117
<div id="wpbody">
122
118
<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>