%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/gachan/www/wp-content/themes/jekas/
Upload File :
Create Path :
Current File : /home/gachan/www/wp-content/themes/jekas/comments.php

<?php
/**
 * The template for displaying comments.
 *
 * The area of the page that contains both current comments
 * and the comment form.
 *
 * @package jekas
 */

/*
 * 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 ( post_password_required() ) {
	return;
}
$page_comments = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
?>
<?php if ( have_comments() ) : ?>
	<div class="row">
		<div class="vertical_line">
			<div class="circle_bottom"></div>
		</div>

		<div class="post">
			<div class = "col-md-12 text-center"><h2><?php esc_html_e('Comments Post','jekas')?></h2></div>

			<?php wp_list_comments(array('type' => 'comment','callback' => 'jekas_comment_element','page' => $page_comments))?>

			<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
				<div class="row padding_top">
					<div class="col-md-12 text-center">
						<?php jekas_comments_pagination()?>
					</div>
				</div>

			<?php endif; // check for comment navigation ?>

			<?php
			// If comments are closed and there are comments, let's leave a little note, shall we?
			if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
			?>
			<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'jekas' ); ?></p>
		</div>
	</div>
<?php endif; ?>
</div>

<div id="commen_form" class="info_resalt border_top">
	<div class="post"><?php jekas_comment_form(); ?></div>
</div>
<?php else: ?>
	<?php if (comments_open()): ?>
	<div class="row padding_bottom">
		<div class="vertical_line">
			<div class="circle_bottom"></div>
		</div>
		<?php endif?>
		<div class="post"><?php jekas_comment_form(); ?></div>

	</div>
<?php endif;?>




Zerion Mini Shell 1.0