]> git.mjollnir.org Git - s9y.git/commitdiff
Grischa's additional admin (backend) class of serendipity_admin_comment_pending previ...
authordonchambers <donchambers>
Tue, 18 Sep 2007 01:31:06 +0000 (01:31 +0000)
committerdonchambers <donchambers>
Tue, 18 Sep 2007 01:31:06 +0000 (01:31 +0000)
include/admin/comments.inc.php

index 8cae9962f8473e24e21a9f4a7edfbb8efe19985e..1665e0f39c4f116a173f828407320ceb71af19db 100644 (file)
@@ -187,6 +187,9 @@ if ($serendipity['GET']['filter']['show'] == 'approved') {
 if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
     $c_type = 'TRACKBACK';
     $searchString .= "&amp;serendipity[filter][type]=TRACKBACK";
+} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') {
+    $c_type = 'PINGBACK';
+    $searchString .= "&amp;serendipity[filter][type]=PINGBACK";
 } elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
     $c_type = 'NORMAL';
     $searchString .= "&amp;serendipity[filter][type]=NORMAL";
@@ -197,6 +200,9 @@ if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
 if ($serendipity['GET']['filter']['type'] == 'TRACKBACK') {
     $c_type = 'TRACKBACK';
     $searchString .= "&amp;serendipity[filter][type]=TRACKBACK";
+} elseif ($serendipity['GET']['filter']['type'] == 'PINGBACK') {
+    $c_type = 'PINGBACK';
+    $searchString .= "&amp;serendipity[filter][type]=PINGBACK";
 } elseif ($serendipity['GET']['filter']['type'] == 'NORMAL') {
     $c_type = 'NORMAL';
     $searchString .= "&amp;serendipity[filter][type]=NORMAL";
@@ -314,6 +320,7 @@ function highlightComment(id, checkvalue) {
                 <option value=""><?php echo COMMENTS_FILTER_ALL ?></option>
                 <option value="NORMAL"<?php if ($c_type == 'NORMAL') echo ' selected="selected"' ?>><?php echo COMMENTS; ?></option>
                 <option value="TRACKBACK"<?php if ($c_type == 'TRACKBACK') echo ' selected="selected"' ?>><?php echo TRACKBACKS; ?></option>
+                <option value="PINGBACK"<?php if ($c_type == 'PINGBACK') echo ' selected="selected"' ?>><?php echo PINGBACKS; ?></option>
             </select></td>
     </tr>
     <tr>
@@ -388,6 +395,9 @@ foreach ($sql as $rs) {
 
     serendipity_plugin_api::hook_event('backend_view_comment', $comment, '&amp;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' : '');
 ?>
 <tr>
@@ -396,7 +406,7 @@ foreach ($sql as $rs) {
             <img style="width: 22px; height: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="<?php echo serendipity_getTemplateFile('admin/img/admin_msg_note.png'); ?>" alt="" />
 <?php   }?>
         <a name="c<?php echo $comment['id'] ?>"></a>
-        <?php echo ($comment['type'] == 'NORMAL' ? COMMENT : TRACKBACK) . ' #'. $comment['id'] .', '. IN_REPLY_TO .' <strong><a href="' . $comment['entry_url'] . '">'. $comment['title'] .'</a></strong>, '. ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))?>
+        <?php echo ($comment['type'] == 'NORMAL' ? COMMENT : ($comment['type'] == 'TRACKBACK' ? TRACKBACK : PINGBACK )) . ' #'. $comment['id'] .', '. IN_REPLY_TO .' <strong><a href="' . $comment['entry_url'] . '">'. $comment['title'] .'</a></strong>, '. ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))?>
     </td>
 </tr>
 <tr>