PageRenderTime 48ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/news/comment.php

https://bitbucket.org/lgorence/quickpress
PHP | 42 lines | 19 code | 13 blank | 10 comment | 2 complexity | a7f40d9949996405490ee5d3311c648c MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * Comment Template
  4. *
  5. * The comment template displays an individual comment. This can be overwritten by templates specific
  6. * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
  7. * comment-trackback.php) in a child theme.
  8. *
  9. * @package News
  10. * @subpackage Template
  11. */
  12. global $post, $comment;
  13. ?>
  14. <li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
  15. <?php do_atomic( 'before_comment' ); // Before comment hook ?>
  16. <div class="comment-wrap">
  17. <?php do_atomic( 'open_comment' ); // Open comment hook ?>
  18. <?php echo hybrid_avatar(); ?>
  19. <?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta comment-meta-data">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link]</div>' ); ?>
  20. <div class="comment-content comment-text">
  21. <?php if ( '0' == $comment->comment_approved ) : ?>
  22. <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'news' ) . '</p>' ); ?>
  23. <?php endif; ?>
  24. <?php comment_text( $comment->comment_ID ); ?>
  25. </div><!-- .comment-content .comment-text -->
  26. <?php do_atomic( 'close_comment' ); // Close comment hook ?>
  27. </div><!-- .comment-wrap -->
  28. <?php do_atomic( 'after_comment' ); // After comment hook ?>
  29. <?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>