From: donchambers Date: Tue, 18 Sep 2007 01:31:06 +0000 (+0000) Subject: Grischa's additional admin (backend) class of serendipity_admin_comment_pending previ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fb29fe8be7f054b0bf216bd284c4f2d0ac7d841b;p=s9y.git Grischa's additional admin (backend) class of serendipity_admin_comment_pending previously committed only to /trunk/ --- diff --git a/include/admin/comments.inc.php b/include/admin/comments.inc.php index 8cae996..1665e0f 100644 --- a/include/admin/comments.inc.php +++ b/include/admin/comments.inc.php @@ -187,6 +187,9 @@ if ($serendipity['GET']['filter']['show'] == 'approved') { if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') { $c_type = 'TRACKBACK'; $searchString .= "&serendipity[filter][type]=TRACKBACK"; +} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') { + $c_type = 'PINGBACK'; + $searchString .= "&serendipity[filter][type]=PINGBACK"; } elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') { $c_type = 'NORMAL'; $searchString .= "&serendipity[filter][type]=NORMAL"; @@ -197,6 +200,9 @@ if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') { if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') { $c_type = 'TRACKBACK'; $searchString .= "&serendipity[filter][type]=TRACKBACK"; +} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') { + $c_type = 'PINGBACK'; + $searchString .= "&serendipity[filter][type]=PINGBACK"; } elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') { $c_type = 'NORMAL'; $searchString .= "&serendipity[filter][type]=NORMAL"; @@ -314,6 +320,7 @@ function highlightComment(id, checkvalue) { + @@ -388,6 +395,9 @@ foreach ($sql as $rs) { serendipity_plugin_api::hook_event('backend_view_comment', $comment, '&serendipity[page]='. $page . $searchString); $class = 'serendipity_admin_list_item_' . (($i % 2 == 0 ) ? 'even' : 'uneven'); + if ($comment['status'] == 'pending') { + $class .= ' serendipity_admin_comment_pending'; + } $header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote' : ''); ?> @@ -396,7 +406,7 @@ foreach ($sql as $rs) { - '. $comment['title'] .', '. ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))?> + '. $comment['title'] .', '. ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))?>