Advertisement
alchymyth

comment counter

Mar 28th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ninja_comment($comment, $args, $depth) {
  2. $GLOBALS['comment'] = $comment; ?>
  3. <?php static $c_number = 1;
  4. echo "<div class='comment_number grid_2 push_5'>".$c_number++."</div>"; ?>
  5.  
  6. <aside <?php comment_class('grid_13 push_5'); ?> id="li-comment-<?php comment_ID() ?>">
  7. <div id="comment-<?php comment_ID(); ?>">
  8. <div class="comment-author vcard">
  9.  
  10.  
  11. <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement