View difference between Paste ID: VuMiVdiU and 62iK5nTx
SHOW: | | - or go back to the newest paste.
1
function ninja_comment($comment, $args, $depth) {
2
   $GLOBALS['comment'] = $comment; ?>
3-
    <?php
3+
    <?php   static $c_number = 1; 
4-
  $x= get_comments_number();
4+
 echo "<div class='comment_number grid_2 push_5'>".$c_number++."</div>"; ?>
5-
for ($i=1; $i<=$x; $i++)
5+
6-
  {
6+
7-
  echo "<div class='comment_number grid_2 push_5'>".$i."</div>";
7+
8-
  
8+
9-
  }
9+
10-
  
10+
11-
?>
11+
12
      </div>
13
      <?php if ($comment->comment_approved == '0') : ?>
14
         <em><?php _e('Your comment is awaiting moderation.') ?></em>
15
         <br />
16
      <?php endif; ?>
17
18
      <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
19
20
      <?php comment_text() ?>
21
22
      <div class="reply">
23
         <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
24
      </div>
25
     </div>
26
     </aside>
27
28
<?php
29
30
        }
31
       
32
?>