/wp-content/themes/news/comment.php
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
- <?php
- /**
- * Comment Template
- *
- * The comment template displays an individual comment. This can be overwritten by templates specific
- * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
- * comment-trackback.php) in a child theme.
- *
- * @package News
- * @subpackage Template
- */
- global $post, $comment;
- ?>
- <li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
- <?php do_atomic( 'before_comment' ); // Before comment hook ?>
- <div class="comment-wrap">
- <?php do_atomic( 'open_comment' ); // Open comment hook ?>
- <?php echo hybrid_avatar(); ?>
- <?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>' ); ?>
- <div class="comment-content comment-text">
- <?php if ( '0' == $comment->comment_approved ) : ?>
- <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'news' ) . '</p>' ); ?>
- <?php endif; ?>
- <?php comment_text( $comment->comment_ID ); ?>
- </div><!-- .comment-content .comment-text -->
- <?php do_atomic( 'close_comment' ); // Close comment hook ?>
- </div><!-- .comment-wrap -->
- <?php do_atomic( 'after_comment' ); // After comment hook ?>
- <?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>