2005-02-14 15:08:29 -05:00
|
|
|
<?php
|
|
|
|
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
|
|
|
if (!isset($_GET["page"])) require_once('admin.php'); ?>
|
2004-10-18 23:03:06 -04:00
|
|
|
<?php get_admin_page_title(); ?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2003-05-23 04:29:51 -04:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2003-05-22 08:12:53 -04:00
|
|
|
<head>
|
2004-07-20 21:59:09 -04:00
|
|
|
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
|
2005-03-04 14:43:30 -05:00
|
|
|
<link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
|
2005-02-13 23:36:57 -05:00
|
|
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
|
2003-05-23 04:29:51 -04:00
|
|
|
|
2005-08-04 04:37:46 -04:00
|
|
|
<?php if ( get_option('rich_editing') ) :?>
|
2005-08-07 04:14:41 -04:00
|
|
|
<script type="text/javascript" src="tinymce/tiny_mce_src.js"></script>
|
2005-08-04 04:37:46 -04:00
|
|
|
<script type="text/javascript">
|
|
|
|
tinyMCE.init({
|
|
|
|
mode : "specific_textareas",
|
|
|
|
textarea_trigger : "title",
|
|
|
|
theme : "advanced",
|
|
|
|
theme_advanced_buttons1 : "bold,italic,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,emotions,separator,undo,redo,code",
|
|
|
|
theme_advanced_buttons2 : "",
|
|
|
|
theme_advanced_buttons3 : "",
|
|
|
|
theme_advanced_toolbar_location : "top",
|
|
|
|
theme_advanced_toolbar_align : "left",
|
|
|
|
theme_advanced_path_location : "bottom",
|
2005-08-07 04:58:10 -04:00
|
|
|
entity_encoding : "raw",
|
|
|
|
extended_valid_elements : "a[id|href|title|onclick],img[class|src|alt|title|width|height|align]",
|
2005-08-04 04:37:46 -04:00
|
|
|
plugins : "emotions"
|
2005-08-07 15:36:42 -04:00
|
|
|
do_action('mce_options');
|
2005-08-04 04:37:46 -04:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2004-08-01 04:04:39 -04:00
|
|
|
<script type="text/javascript">
|
2003-12-21 19:09:59 -05:00
|
|
|
//<![CDATA[
|
2004-12-08 23:12:20 -05:00
|
|
|
|
|
|
|
<?php if ( isset($xfn) ) : ?>
|
|
|
|
|
2004-02-05 00:40:25 -05:00
|
|
|
function GetElementsWithClassName(elementName, className) {
|
|
|
|
var allElements = document.getElementsByTagName(elementName);
|
|
|
|
var elemColl = new Array();
|
|
|
|
for (i = 0; i < allElements.length; i++) {
|
2004-12-08 23:12:20 -05:00
|
|
|
if (allElements[i].className == className) {
|
|
|
|
elemColl[elemColl.length] = allElements[i];
|
|
|
|
}
|
2004-02-05 00:40:25 -05:00
|
|
|
}
|
|
|
|
return elemColl;
|
|
|
|
}
|
|
|
|
|
2004-11-15 15:52:34 -05:00
|
|
|
function meChecked() {
|
|
|
|
var undefined;
|
|
|
|
var eMe = document.getElementById('me');
|
|
|
|
if (eMe == undefined) return false;
|
|
|
|
else return eMe.checked;
|
|
|
|
}
|
|
|
|
|
|
|
|
function upit() {
|
|
|
|
var isMe = meChecked(); //document.getElementById('me').checked;
|
|
|
|
var inputColl = GetElementsWithClassName('input', 'valinp');
|
|
|
|
var results = document.getElementById('rel');
|
|
|
|
var linkText, linkUrl, inputs = '';
|
|
|
|
for (i = 0; i < inputColl.length; i++) {
|
|
|
|
inputColl[i].disabled = isMe;
|
|
|
|
inputColl[i].parentNode.className = isMe ? 'disabled' : '';
|
|
|
|
if (!isMe && inputColl[i].checked && inputColl[i].value != '') {
|
|
|
|
inputs += inputColl[i].value + ' ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inputs = inputs.substr(0,inputs.length - 1);
|
|
|
|
if (isMe) inputs='me';
|
|
|
|
results.value = inputs;
|
|
|
|
}
|
|
|
|
|
2004-02-05 00:40:25 -05:00
|
|
|
function blurry() {
|
|
|
|
if (!document.getElementById) return;
|
2004-11-15 15:52:34 -05:00
|
|
|
|
2004-02-05 00:40:25 -05:00
|
|
|
var aInputs = document.getElementsByTagName('input');
|
2004-11-15 15:52:34 -05:00
|
|
|
|
|
|
|
for (var i = 0; i < aInputs.length; i++) {
|
|
|
|
aInputs[i].onclick = aInputs[i].onkeyup = upit;
|
2004-02-05 00:40:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.onload = blurry;
|
2004-12-08 23:12:20 -05:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2005-06-14 03:31:36 -04:00
|
|
|
|
2003-12-21 19:09:59 -05:00
|
|
|
//]]>
|
2003-05-22 08:12:53 -04:00
|
|
|
</script>
|
2004-04-19 04:09:27 -04:00
|
|
|
|
2005-06-14 03:31:36 -04:00
|
|
|
<?php if ( isset( $editing ) ) : ?>
|
|
|
|
<script type="text/javascript" src="dbx.js"></script>
|
|
|
|
<script type="text/javascript" src="dbx-key.js"></script>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2005-08-02 21:50:56 -04:00
|
|
|
<?php do_action('admin_head'); ?>
|
2003-05-22 08:12:53 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2004-08-01 04:04:39 -04:00
|
|
|
|
2004-04-28 15:49:27 -04:00
|
|
|
<div id="wphead">
|
2004-12-23 20:34:47 -05:00
|
|
|
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> »</a>)</span></h1>
|
2004-04-28 15:49:27 -04:00
|
|
|
</div>
|
2004-04-28 01:34:50 -04:00
|
|
|
|
2005-08-07 04:14:41 -04:00
|
|
|
<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>
|
|
|
|
|
2003-05-22 08:12:53 -04:00
|
|
|
<?php
|
2004-10-18 23:03:06 -04:00
|
|
|
require(ABSPATH . '/wp-admin/menu-header.php');
|
|
|
|
|
|
|
|
if ( $parent_file == 'options-general.php' ) {
|
|
|
|
require(ABSPATH . '/wp-admin/options-head.php');
|
|
|
|
}
|
2004-11-25 10:45:16 -05:00
|
|
|
?>
|