2004-10-28 06:03:56 +02:00
|
|
|
<?php require_once('admin.php'); ?>
|
2004-10-19 05:03:06 +02: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 10:29:51 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2003-05-22 14:12:53 +02:00
|
|
|
<head>
|
2004-07-21 03:59:09 +02:00
|
|
|
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
|
2004-11-25 16:45:16 +01:00
|
|
|
<link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css" type="text/css" />
|
2004-10-19 05:03:06 +02:00
|
|
|
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
2004-03-01 07:13:32 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2004-08-01 10:04:39 +02:00
|
|
|
<script type="text/javascript">
|
2003-12-22 01:09:59 +01:00
|
|
|
//<![CDATA[
|
2004-12-09 05:12:20 +01:00
|
|
|
|
|
|
|
function customToggleLink() {
|
|
|
|
// TODO: Only show link if there's a hidden row
|
|
|
|
document.write('<small>(<a href="javascript:;" id="customtoggle" onclick="toggleHidden()"><?php _e('Show hidden'); ?></a>)</small>');
|
|
|
|
// TODO: Rotate link to say "show" or "hide"
|
|
|
|
// TODO: Use DOM
|
|
|
|
}
|
|
|
|
|
|
|
|
function toggleHidden() {
|
|
|
|
var allElements = document.getElementsByTagName('tr');
|
|
|
|
for (i = 0; i < allElements.length; i++) {
|
|
|
|
if ( allElements[i].className.indexOf('hidden') != -1 ) {
|
|
|
|
allElements[i].className = allElements[i].className.replace('hidden', '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
<?php if ( isset($xfn) ) : ?>
|
|
|
|
|
2004-02-05 06:40:25 +01:00
|
|
|
function GetElementsWithClassName(elementName, className) {
|
|
|
|
var allElements = document.getElementsByTagName(elementName);
|
|
|
|
var elemColl = new Array();
|
|
|
|
for (i = 0; i < allElements.length; i++) {
|
2004-12-09 05:12:20 +01:00
|
|
|
if (allElements[i].className == className) {
|
|
|
|
elemColl[elemColl.length] = allElements[i];
|
|
|
|
}
|
2004-02-05 06:40:25 +01:00
|
|
|
}
|
|
|
|
return elemColl;
|
|
|
|
}
|
|
|
|
|
2004-11-15 21:52:34 +01: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 06:40:25 +01:00
|
|
|
function blurry() {
|
|
|
|
if (!document.getElementById) return;
|
2004-11-15 21:52:34 +01:00
|
|
|
|
2004-02-05 06:40:25 +01:00
|
|
|
var aInputs = document.getElementsByTagName('input');
|
2004-11-15 21:52:34 +01:00
|
|
|
|
|
|
|
for (var i = 0; i < aInputs.length; i++) {
|
|
|
|
aInputs[i].onclick = aInputs[i].onkeyup = upit;
|
2004-02-05 06:40:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.onload = blurry;
|
2004-12-09 05:12:20 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2003-12-22 01:09:59 +01:00
|
|
|
//]]>
|
2003-05-22 14:12:53 +02:00
|
|
|
</script>
|
2004-04-19 10:09:27 +02:00
|
|
|
|
2004-05-22 10:45:36 +02:00
|
|
|
<?php do_action('admin_head', ''); ?>
|
2003-05-22 14:12:53 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2004-08-01 10:04:39 +02:00
|
|
|
|
2004-04-28 21:49:27 +02:00
|
|
|
<div id="wphead">
|
2004-12-24 02:34:47 +01: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 21:49:27 +02:00
|
|
|
</div>
|
2004-04-28 07:34:50 +02:00
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
<?php
|
2004-10-19 05:03:06 +02:00
|
|
|
require(ABSPATH . '/wp-admin/menu-header.php');
|
|
|
|
|
|
|
|
if ( $parent_file == 'options-general.php' ) {
|
|
|
|
require(ABSPATH . '/wp-admin/options-head.php');
|
|
|
|
}
|
2004-11-25 16:45:16 +01:00
|
|
|
?>
|