Advertisement
srcrane

ninja comment function

Mar 27th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. function ninja_comment($comment, $args, $depth) {
  2. $GLOBALS['comment'] = $comment; ?>
  3. <?php
  4. $x= get_comments_number();
  5. for ($i=1; $i<=$x; $i++)
  6. {
  7. echo "<div class='comment_number grid_2 push_5'>".$i."</div>";
  8.  
  9. }
  10.  
  11. ?>
  12.  
  13. <aside <?php comment_class('grid_13 push_5'); ?> id="li-comment-<?php comment_ID() ?>">
  14. <div id="comment-<?php comment_ID(); ?>">
  15. <div class="comment-author vcard">
  16.  
  17.  
  18. <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
  19. </div>
  20. <?php if ($comment->comment_approved == '0') : ?>
  21. <em><?php _e('Your comment is awaiting moderation.') ?></em>
  22. <br />
  23. <?php endif; ?>
  24.  
  25. <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>
  26.  
  27. <?php comment_text() ?>
  28.  
  29. <div class="reply">
  30. <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
  31. </div>
  32. </div>
  33. </aside>
  34.  
  35. <?php
  36.  
  37. }
  38.  
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement