From 099a32976324eec331b8e2ad097afefa8e55b758 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 30 Nov 2003 22:13:53 +0000 Subject: [PATCH] Made status dropdowns radio boxes, more moderation cleanups. Edit section now clean. git-svn-id: http://svn.automattic.com/wordpress/trunk@560 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 25 +++++------- wp-admin/edit.php | 4 +- wp-admin/wp-admin.css | 20 +++++++++- wp-admin/wp-edit.form.php | 43 ++++++++++---------- wp-admin/wp-moderation.php | 81 ++++++++++++++++++-------------------- wp-admin/wp-post.php | 7 ++-- 6 files changed, 92 insertions(+), 88 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 01789fb3f..0cec49030 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -38,8 +38,8 @@ ob_start(); ?>
@@ -143,16 +143,14 @@ echo $comments_nav_bar; if ($comments) { echo '
    '; foreach ($comments as $comment) { - ?> -
  1. - comment_ID); - - if ("unapproved" == $comment_status) { - echo ""; + if ('unapproved' == $comment_status) { + echo '
  2. '; + } else { + echo '
  3. '; } - ?> -

    Name: comment_author_email) { ?>| Email: comment_author_email) { ?> | URI: | IP:

    + ?> +

    Name: comment_author_email) { ?>| Email: comment_author_email) { ?> | URI: | IP:

    Posted | comment_ID."\">Edit"; echo " | comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete | "; } // end if any comments to show - ?> View Post

    - "; - } - ?> + ?> Edit Post

  4. diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 6dff1d677..08a70c09b 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -35,7 +35,7 @@ h2 { } label { - font-weight: bold; + cursor: pointer; } li { @@ -197,6 +197,24 @@ textarea, input, select { clear: both; } +#post label.selectit { + background-color: #eee; + padding: 0 2px; + display: block; + margin-bottom: 1px; + border-bottom: 1px solid #666; + font-size: 11px; +} + +#post label.selectit:hover { + background-color: #dadada; +} + +label input { + padding: 0; + margin: 0; +} + #profile { margin: 10px; } diff --git a/wp-admin/wp-edit.form.php b/wp-admin/wp-edit.form.php index a4fa93e81..438119428 100644 --- a/wp-admin/wp-edit.form.php +++ b/wp-admin/wp-edit.form.php @@ -8,6 +8,10 @@ function selected($selected, $current) { if ($selected == $current) echo ' selected="selected"'; } +function checked($checked, $current) { + if ($checked == $current) echo ' checked="checked"'; +} + switch($action) { case 'post': $submitbutton_text = 'Blog this!'; @@ -57,7 +61,7 @@ switch($action) { -