From c7559d198ebb0a1ff755ae79ae8d36b1970e1ebf Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 5 Oct 2004 07:13:51 +0000 Subject: [PATCH] Cosmetic tweaks. git-svn-id: http://svn.automattic.com/wordpress/trunk@1744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 2 +- wp-admin/edit-comments.php | 15 +++++++++------ wp-admin/moderation.php | 11 +++++++---- wp-admin/wp-admin.css | 1 + 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index a1d582a0b3..04f7cfdb40 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -153,7 +153,7 @@ $messages[3] = __('Category updated.');
-

add new)'), '#addcat') ?>

+

add new)'), '#addcat') ?>

diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index c0e4a6f3a9..f1ec72d05c 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -25,6 +25,7 @@ function checkAll(form) //-->
+

@@ -65,15 +66,17 @@ if (isset($_GET['s'])) { if ('view' == $mode) { if ($comments) { echo '
    '; + $i = 0; foreach ($comments as $comment) { + ++$i; $class = ''; $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); $comment_status = wp_get_comment_status($comment->comment_ID); - if ('unapproved' == $comment_status) { - echo '
  1. '; - } else { - echo '
  2. '; - } - ?> + if ('unapproved' == $comment_status) + $class .= ' unapproved'; + if ($i % 2) + $class .= ' alternate'; + echo "
  3. "; +?>

    comment_author_email) { ?>| comment_author_url) { ?> | |

    diff --git a/wp-admin/moderation.php b/wp-admin/moderation.php index 8a8a0af406..7555f1c0fc 100644 --- a/wp-admin/moderation.php +++ b/wp-admin/moderation.php @@ -134,16 +134,19 @@ if ($comments) { // list all comments that are waiting for approval $file = basename(__FILE__); ?> -

    +

    -
      +
        comment_date); $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'"); - - echo "\n\t
      1. "; + if ($i % 2) $class = 'class="alternate"'; + else $class = ''; + echo "\n\t
      2. "; ?>

        comment_author_email) { ?>| comment_author_email) { ?> | |

        diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 269a15bb79..5708d14839 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -145,6 +145,7 @@ textarea, input, select { .commentlist li { border-bottom: 1px solid #369; + padding: .3em 1em; } .ed_button {