mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-23 02:51:06 +01:00
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying Comments.
|
|
*
|
|
* The area of the page that contains both current comments
|
|
* and the comment form. The actual display of comments is
|
|
* handled by a callback to czr_fn_comment_callback()
|
|
*
|
|
* @package Customizr
|
|
* @since Customizr 1.0
|
|
*/
|
|
if ( apply_filters( 'czr_ms', false ) ) {
|
|
do_action( 'czr_ms_tmpl', 'comments' );
|
|
return;
|
|
}
|
|
|
|
|
|
if ( ! apply_filters( 'tc_render_comments_template', true ) )
|
|
return;
|
|
|
|
/*
|
|
* If the current post is protected by a password and
|
|
* the visitor has not yet entered the password we will
|
|
* return early without loading the comments.
|
|
*/
|
|
|
|
if ( have_comments() ) {
|
|
echo apply_filters( 'tc_comment_separator', '<hr class="featurette-divider '. current_filter() .'">' );
|
|
}
|
|
?>
|
|
|
|
<div id="comments" class="<?php echo implode( ' ', apply_filters( 'tc_comments_wrapper_class' , array('comments-area') ) ) ?>" >
|
|
<?php
|
|
comment_form();
|
|
if ( have_comments() && apply_filters( 'tc_display_comment_list', true ) )
|
|
do_action ( '__comment' );
|
|
?>
|
|
</div><!-- //#comments .comments-area -->
|