Cosmetic fixes from forums.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c4bcfc02f1
commit
e9e2ba1ee1
|
@ -218,7 +218,7 @@ function list_meta($meta) {
|
|||
// Exit if no meta
|
||||
if (!$meta) return;
|
||||
?>
|
||||
<table id='meta-list' width='98%'>
|
||||
<table id='meta-list' cellpadding="3">
|
||||
<tr>
|
||||
<th><?php _e('Key') ?></th>
|
||||
<th><?php _e('Value') ?></th>
|
||||
|
@ -230,10 +230,10 @@ function list_meta($meta) {
|
|||
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
||||
echo "
|
||||
<tr $style>
|
||||
<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' value='{$entry['meta_key']}' /></td>
|
||||
<td><textarea name='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='40'>{$entry['meta_value']}</textarea></td>
|
||||
<td align='center'><input name='updatemeta' type='submit' class='updatemeta' tabindex='6' value='" . __('Update') ."' /></td>
|
||||
<td align='center'><input name='deletemeta[{$entry['meta_id']}]' type='submit' class='deletemeta' tabindex='6' value='" . __('Delete') ."' /></td>
|
||||
<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>
|
||||
<td><textarea name='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>
|
||||
<td align='center' width='10%'><input name='updatemeta' type='submit' class='updatemeta' tabindex='6' value='" . __('Update') ."' /></td>
|
||||
<td align='center' width='10%'><input name='deletemeta[{$entry['meta_id']}]' type='submit' class='deletemeta' tabindex='6' value='" . __('Delete') ."' /></td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
@ -265,23 +265,22 @@ function meta_form() {
|
|||
LIMIT 10");
|
||||
?>
|
||||
<h3><?php _e('Add a new custom field to this post:') ?></h3>
|
||||
<table width="100%" cellspacing="3" cellpadding="3">
|
||||
<table cellspacing="3" cellpadding="3">
|
||||
<tr>
|
||||
<th colspan="2"><?php _e('Key') ?></th>
|
||||
<th><?php _e('Value') ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><select id="metakeyselect" name="metakeyselect" tabindex="7">
|
||||
<td align="right" width="18%"><select id="metakeyselect" name="metakeyselect" tabindex="7">
|
||||
<option value="#NONE#">- Select -</option>
|
||||
<?php
|
||||
foreach($keys as $key) {
|
||||
echo "\n\t<option value='$key'>$key</option>";
|
||||
}
|
||||
?>
|
||||
</select> or </td><td><input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" /></td>
|
||||
</select> or </td>
|
||||
<td><input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" /></td>
|
||||
<td><textarea id="metavalue" name="metavalue" rows="3" cols="25" tabindex="7"></textarea></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
|
|
@ -133,7 +133,9 @@ window.onload = blurry;
|
|||
<?php wp_admin_head(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="wphead"><a href="http://wordpress.org" rel="external" title="<?php _e('Visit WordPress.org') ?>"><?php _e('WordPress') ?></a></h1>
|
||||
<div id="wphead">
|
||||
<h1><a href="http://wordpress.org" rel="external" title="<?php _e('Visit WordPress.org') ?>"><?php _e('WordPress') ?></a></h1>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require('./menu.php');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
un<?php
|
||||
<?php
|
||||
require_once('../wp-includes/wp-l10n.php');
|
||||
|
||||
$title = __('Posts');
|
||||
|
@ -67,7 +67,7 @@ if( isset( $_GET['m'] ) )
|
|||
<input type="submit" name="submit" value="<?php _e('Show Month') ?>" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<form name="searchform" action="" method="get">
|
||||
<form name="searchform" action="" method="get" style="float: left; width: 20em; margin-left: 3em;">
|
||||
<fieldset>
|
||||
<legend><?php _e('Show Posts That Contain...') ?></legend>
|
||||
<input type="text" name="s" value="<?php echo $s; ?>" size="17" />
|
||||
|
@ -75,7 +75,7 @@ if( isset( $_GET['m'] ) )
|
|||
</fieldset>
|
||||
</form>
|
||||
|
||||
<br clear="both" />
|
||||
<br style="clear:both;" />
|
||||
|
||||
<table width="100%" cellpadding="3" cellspacing="3">
|
||||
<tr>
|
||||
|
|
|
@ -19,12 +19,12 @@ $menu = array(
|
|||
array(__('Profile'), 0, 'profile.php')
|
||||
);
|
||||
|
||||
$self = str_replace('/wp-admin/', '', $PHP_SELF);
|
||||
$self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
|
||||
foreach ($menu as $item) {
|
||||
$class = '';
|
||||
|
||||
// 0 = name, 1 = user_level, 2 = file
|
||||
if ((substr($self, -20) == substr($item[1], -20) && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';
|
||||
if ((substr($self, -10) == substr($item[2], -10) && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';
|
||||
|
||||
if ($user_level >= $item[1]) {
|
||||
if (('upload.php' == $item[2] && get_settings('use_fileupload') && ($user_level >= get_settings('fileupload_minlevel'))
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
1 post.php Write
|
||||
1 edit.php Edit
|
||||
3 categories.php Categories
|
||||
5 link-manager.php Links
|
||||
3 users.php Users
|
||||
6 options-general.php Options
|
||||
8 plugins.php Plugins
|
||||
4 templates.php Templates
|
||||
5 upload.php Upload
|
||||
0 profile.php My Profile
|
||||
***
|
||||
(Everything after the '***' is a comment.)
|
||||
|
||||
|
||||
To add sections to the menu, use this syntax:
|
||||
|
||||
the minimum level the user needs to access the section: between 0 and 10
|
||||
+tab
|
||||
+the URL of the section's file
|
||||
+tab
|
||||
+the title of this section
|
|
@ -236,7 +236,7 @@ case 'edit':
|
|||
<div id='preview' class='wrap'>
|
||||
<h2><?php _e('Post Preview (updated when post is saved)'); ?></h2>
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), the_title()); ?>"><?php the_title(); ?></a></h3>
|
||||
<div class="meta"><?php printf(__("Filed under: %s"), the_category()); ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(','); ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
|
||||
<div class="storycontent">
|
||||
<?php the_content(); ?>
|
||||
|
|
|
@ -35,7 +35,7 @@ a:hover {
|
|||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
background: #fff;
|
||||
color: #000;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -50,14 +50,6 @@ fieldset {
|
|||
padding: 2px;
|
||||
}
|
||||
|
||||
fieldset.options {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
fieldset.options legend {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
fieldset label.selectit {
|
||||
background: #f0f0f0;
|
||||
display: block;
|
||||
|
@ -73,11 +65,23 @@ fieldset legend {
|
|||
padding: .1em .3em;
|
||||
}
|
||||
|
||||
fieldset legend a {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
fieldset span.cat-nest {
|
||||
display: block;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
fieldset.options {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
fieldset.options legend {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
form, label input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -155,17 +159,10 @@ textarea, input, select {
|
|||
font: 12px Georgia, "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.submit {
|
||||
.submit, #quicktags, .editform th, #postcustomsubmit {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.updated {
|
||||
background-color: #f0f8ff;
|
||||
border: 1px solid #69c;
|
||||
margin: 5px 5% 10px;
|
||||
padding: 0 1em 0 1em;
|
||||
}
|
||||
|
||||
.unapproved {
|
||||
color: #888;
|
||||
}
|
||||
|
@ -182,6 +179,13 @@ textarea, input, select {
|
|||
color: #009ef0;
|
||||
}
|
||||
|
||||
.updated {
|
||||
background: #f0f8ff;
|
||||
border: 1px solid #69c;
|
||||
margin: 5px 5% 10px;
|
||||
padding: 0 1em 0 1em;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
border: 1px solid #ccc;
|
||||
margin: 15px 5%;
|
||||
|
@ -192,6 +196,12 @@ textarea, input, select {
|
|||
margin: 6px 0;
|
||||
}
|
||||
|
||||
#adminmenu {
|
||||
border-bottom: 2px solid #707070;
|
||||
margin: 2px 2px 0 2px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
#adminmenu .current, #adminmenu2 .current {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -206,24 +216,6 @@ textarea, input, select {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
#adminmenu2 a {
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
padding: 3px 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#adminmenu2 a:hover {
|
||||
background-color: #f0f0f0;
|
||||
color: black;
|
||||
}
|
||||
#adminmenu2 .current {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#adminmenu a:hover, .current {
|
||||
background: #eaeaea;
|
||||
border: 1px solid #9d9d9d;
|
||||
|
@ -237,27 +229,42 @@ textarea, input, select {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
#adminmenu {
|
||||
border-bottom: 2px solid #707070;
|
||||
margin: 2px 2px 0 2px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
#adminmenu2 {
|
||||
background: #707070;
|
||||
border-bottom: none;
|
||||
height: 20px;
|
||||
margin: 0 2px;
|
||||
padding: 0;
|
||||
border-bottom: none;
|
||||
background-color: #707070;
|
||||
height: 20px;
|
||||
}
|
||||
#adminmenu2 li {
|
||||
line-height: 1.7em;
|
||||
|
||||
#adminmenu2 .current {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#adminmenu2 a {
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
padding: 3px 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#adminmenu2 a {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#adminmenu2 a:hover {
|
||||
background: #f0f0f0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#adminmenu2 li {
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
#categorydiv {
|
||||
line-height: 130%;
|
||||
margin-right: 15px;
|
||||
|
@ -327,9 +334,13 @@ textarea, input, select {
|
|||
|
||||
#postcustom {
|
||||
border: 1px solid #aaa;
|
||||
margin: 0.25em;
|
||||
padding: 0.25em;
|
||||
width: 98%;
|
||||
padding: .5em;
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
#postcustom .updatemeta, #postcustom .deletemeta {
|
||||
margin: auto;
|
||||
width: 5em;
|
||||
}
|
||||
|
||||
#postcustom p {
|
||||
|
@ -339,35 +350,12 @@ textarea, input, select {
|
|||
#postcustom table {
|
||||
border: 1px solid #ccc;
|
||||
margin: .5em;
|
||||
width: 100%;
|
||||
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
|
||||
#postcustom table input, #postcustom table textarea {
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
#postcustom td, #postcustom th {
|
||||
color: #000;
|
||||
margin: 0.2em;
|
||||
padding: .3em;
|
||||
}
|
||||
|
||||
#postcustom .updatemeta, #postcustom .deletemeta {
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
fieldset legend a {
|
||||
border-bottom: none;
|
||||
}
|
||||
#postcustomvals {
|
||||
float: right;
|
||||
width: 49%;
|
||||
}
|
||||
|
||||
#save {
|
||||
width: 13em;
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
#poststatusdiv {
|
||||
|
@ -378,10 +366,9 @@ fieldset legend a {
|
|||
margin-right: 11em;
|
||||
}
|
||||
|
||||
#poststuff textarea {
|
||||
width: 97%;
|
||||
#content {
|
||||
margin-left: 1%;
|
||||
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
#profile {
|
||||
|
@ -406,14 +393,14 @@ fieldset legend a {
|
|||
margin: 0 0 4px 0;
|
||||
}
|
||||
|
||||
#quicktags, .editform th, #postcustomsubmit {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#quicktags {
|
||||
margin-right: 1%;
|
||||
}
|
||||
|
||||
#save {
|
||||
width: 13em;
|
||||
}
|
||||
|
||||
#slugdiv {
|
||||
width: 9.4em;
|
||||
}
|
||||
|
@ -426,13 +413,10 @@ fieldset legend a {
|
|||
|
||||
#wphead {
|
||||
background: url(../wp-images/header-shadow.png) #f2f2f2 repeat-x bottom;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
padding: 4px 0 0 5px;
|
||||
}
|
||||
|
||||
#wphead a {
|
||||
background: url(../wp-images/wp-small.png) no-repeat;
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
height: 44px;
|
||||
|
@ -440,3 +424,9 @@ fieldset legend a {
|
|||
text-indent: -1000px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#wphead h1 {
|
||||
background: url(../wp-images/wp-small.png) no-repeat;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue