| 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 |
$dbx_js = true; |
|---|
| 6 |
if ( current_user_can('manage_categories') ) |
|---|
| 7 |
$cat_js = true; |
|---|
| 8 |
} |
|---|
| 9 |
if ( $list_js || $cat_js ) |
|---|
| 10 |
$sack_js = true; |
|---|
| 11 |
?> |
|---|
| 12 |
<?php get_admin_page_title(); ?> |
|---|
| 13 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 14 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 15 |
<head> |
|---|
| 16 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> |
|---|
| 17 |
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> |
|---|
| 18 |
<link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> |
|---|
| 19 |
<script type="text/javascript"> |
|---|
| 20 |
//<![CDATA[ |
|---|
| 21 |
function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}} |
|---|
| 22 |
//]]> |
|---|
| 23 |
</script> |
|---|
| 24 |
<script type="text/javascript" src="../wp-includes/js/fat.js"></script> |
|---|
| 25 |
<?php if ( $xfn_js ) { ?> |
|---|
| 26 |
<script type="text/javascript" src="xfn.js"></script> |
|---|
| 27 |
<?php } ?> |
|---|
| 28 |
<?php if ( $sack_js ) { ?> |
|---|
| 29 |
<script type="text/javascript" src="../wp-includes/js/tw-sack.js"></script> |
|---|
| 30 |
<?php } ?> |
|---|
| 31 |
<?php if ( $list_js ) { ?> |
|---|
| 32 |
<script type="text/javascript" src="list-manipulation.js"></script> |
|---|
| 33 |
<?php } ?> |
|---|
| 34 |
<?php if ( $dbx_js ) { ?> |
|---|
| 35 |
<script type="text/javascript" src="../wp-includes/js/dbx.js"></script> |
|---|
| 36 |
<script type="text/javascript"> |
|---|
| 37 |
//<![CDATA[ |
|---|
| 38 |
addLoadEvent( function() { |
|---|
| 39 |
<?php switch ( $pagenow ) : case 'post.php' : ?> |
|---|
| 40 |
var manager = new dbxManager('postmeta'); |
|---|
| 41 |
<?php break; case 'page-new.php' : ?> |
|---|
| 42 |
var manager = new dbxManager('pagemeta'); |
|---|
| 43 |
<?php break; endswitch; ?> |
|---|
| 44 |
}); |
|---|
| 45 |
//]]> |
|---|
| 46 |
</script> |
|---|
| 47 |
<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script> |
|---|
| 48 |
<?php } ?> |
|---|
| 49 |
<?php if ( $editing && user_can_richedit() ) { ?> |
|---|
| 50 |
<script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20051211"></script> |
|---|
| 51 |
<?php } ?> |
|---|
| 52 |
<?php if ( $cat_js ) { ?> |
|---|
| 53 |
<script type="text/javascript" src="cat-js.php"></script> |
|---|
| 54 |
<?php } ?> |
|---|
| 55 |
<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?> |
|---|
| 56 |
<style type="text/css">* html { overflow-x: hidden; }</style> |
|---|
| 57 |
<?php endif; ?> |
|---|
| 58 |
<?php do_action('admin_head'); ?> |
|---|
| 59 |
</head> |
|---|
| 60 |
<body> |
|---|
| 61 |
<div id="wphead"> |
|---|
| 62 |
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> »</a>)</span></h1> |
|---|
| 63 |
</div> |
|---|
| 64 |
<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> |
|---|
| 65 |
|
|---|
| 66 |
<?php |
|---|
| 67 |
require(ABSPATH . '/wp-admin/menu-header.php'); |
|---|
| 68 |
|
|---|
| 69 |
if ( $parent_file == 'options-general.php' ) { |
|---|
| 70 |
require(ABSPATH . '/wp-admin/options-head.php'); |
|---|
| 71 |
} |
|---|
| 72 |
?> |
|---|
| 73 |
|
|---|