RP_Rave1_theme/comments.php

87 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2024-11-06 10:10:48 +00:00
<?php
if ( post_password_required() ) {
return;
}
if ( have_comments() ) : ?>
<div class="comments">
<a name="comments"></a>
<div class="comments-title-container">
<h2 class="comments-title fleft">
<?php
$comment_count = count( $wp_query->comments_by_type['comment'] );
echo $comment_count . ' ' . _n( 'Hozzászólás', 'Hozzászólás', $comment_count, 'escapium' ); ?>
</h2>
<?php if ( comments_open() ) : ?>
<h2 class="add-comment-title fright"><a href="#respond"><?php _e( 'Szólj hozzá', 'escapium' ) . ' &rarr;'; ?></a></h2>
<?php endif; ?>
<div class="clear"></div>
</div><!-- .comments-title-container -->
<ol class="commentlist">
<?php wp_list_comments( array( 'type' => 'comment', 'callback' => 'escapium_comment' ) ); ?>
</ol>
<?php if ( ! empty( $comments_by_type['pings'] ) ) : ?>
<div class="pingbacks">
<div class="pingbacks-inner">
<h3 class="pingbacks-title">
<?php
$pingback_count = count( $wp_query->comments_by_type['pings'] );
echo $pingback_count . ' ' . _n( 'Pingback', 'Pingbacks', $pingback_count, 'escapium' ); ?>
</h3>
<ol class="pingbacklist">
<?php wp_list_comments( array( 'type' => 'pings', 'callback' => 'escapium_comment' ) ); ?>
</ol>
</div>
</div>
<?php endif; ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="comment-nav-below" role="navigation">
<div class="post-nav-older fleft"><?php previous_comments_link( '&laquo; ' . __( 'Older Comments', 'escapium' ) ); ?></div>
<div class="post-nav-newer fright"><?php next_comments_link( __( 'Newer Comments', 'escapium' ) . ' &raquo;' ); ?></div>
<div class="clear"></div>
</div><!-- .comment-nav-below -->
<?php endif; ?>
</div><!-- .comments -->
<?php endif; ?>
<?php if ( ! comments_open() && ! is_page() ) : ?>
<p class="nocomments"><?php _e( 'Komment szekció lezárva.', 'escapium' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>