-
+ 47FD2F478C57AC7D12039470357D95DDE3401150D7D208DC1B3EBF7E057215458716E09C88A22642AA143D4CF49150291D61CB4E80909B5FC72515858A5C32FF
mp-wp/wp-admin/admin-header.php
(0 . 0)(1 . 132)
1300 <?php
1301 /**
1302 * WordPress Administration Template Header
1303 *
1304 * @package WordPress
1305 * @subpackage Administration
1306 */
1307
1308 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
1309 if (!isset($_GET["page"])) require_once('admin.php');
1310
1311 get_admin_page_title();
1312 $title = wp_specialchars( strip_tags( $title ) );
1313 wp_user_settings();
1314 ?>
1315 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1316 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
1317 <head>
1318 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
1319 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
1320 <?php
1321
1322 wp_admin_css( 'css/global' );
1323 wp_admin_css();
1324 wp_admin_css( 'css/colors' );
1325 wp_admin_css( 'css/ie' );
1326
1327 ?>
1328 <script type="text/javascript">
1329 //<![CDATA[
1330 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();}}};
1331
1332 function convertEntities(o) {
1333 var c = function(s) {
1334 if (/&[^;]+;/.test(s)) {
1335 var e = document.createElement("div");
1336 e.innerHTML = s;
1337 return !e.firstChild ? s : e.firstChild.nodeValue;
1338 }
1339 return s;
1340 }
1341
1342 if ( typeof o === 'string' )
1343 return c(o);
1344 else if ( typeof o === 'object' )
1345 for (var v in o) {
1346 if ( typeof o[v] === 'string' )
1347 o[v] = c(o[v]);
1348 }
1349 return o;
1350 };
1351 //]]>
1352 </script>
1353 <?php
1354
1355 if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
1356 add_action( 'admin_head', 'wp_tiny_mce' );
1357 }
1358
1359 $hook_suffix = '';
1360 if ( isset($page_hook) )
1361 $hook_suffix = "$page_hook";
1362 else if ( isset($plugin_page) )
1363 $hook_suffix = "$plugin_page";
1364 else if ( isset($pagenow) )
1365 $hook_suffix = "$pagenow";
1366
1367 do_action("admin_print_styles-$hook_suffix");
1368 do_action('admin_print_styles');
1369 do_action("admin_print_scripts-$hook_suffix");
1370 do_action('admin_print_scripts');
1371 do_action("admin_head-$hook_suffix");
1372 do_action('admin_head');
1373
1374 if ( $is_iphone ) { ?>
1375 <style type="text/css">.row-actions{visibility:visible;}</style>
1376 <?php } ?>
1377 </head>
1378 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
1379
1380 <div id="wpwrap">
1381 <div id="wpcontent">
1382 <div id="wphead">
1383 <?php
1384 $blog_name = get_bloginfo('name', 'display');
1385 if ( '' == $blog_name ) {
1386 $blog_name = ' ';
1387 } else {
1388 $blog_name_excerpt = wp_html_excerpt($blog_name, 40);
1389 if ( $blog_name != $blog_name_excerpt )
1390 $blog_name_excerpt = trim($blog_name_excerpt) . '…';
1391 $blog_name = $blog_name_excerpt;
1392 }
1393 $title_class = '';
1394 if ( function_exists('mb_strlen') ) {
1395 if ( mb_strlen($blog_name, 'UTF-8') > 30 )
1396 $title_class = 'class="long-title"';
1397 } else {
1398 if ( strlen($blog_name) > 30 )
1399 $title_class = 'class="long-title"';
1400 }
1401 ?>
1402
1403 <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>
1404
1405 <div id="wphead-info">
1406 <div id="user_info">
1407 <p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
1408 <?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
1409 <a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
1410 </div>
1411
1412 <?php favorite_actions(); ?>
1413 </div>
1414 </div>
1415
1416 <?php if ( get_user_setting('mfold') == 'f' ) { ?>
1417 <script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script>
1418 <?php } ?>
1419
1420 <div id="wpbody">
1421 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
1422
1423 <div id="wpbody-content">
1424 <?php
1425 screen_meta($hook_suffix);
1426
1427 do_action('admin_notices');
1428
1429 if ( $parent_file == 'options-general.php' ) {
1430 require(ABSPATH . 'wp-admin/options-head.php');
1431 }