????

Your IP : 3.144.117.164


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/comments.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
 * tb_comment() which is located at functions/comments-callback.php
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Templates
 */

// Return if password is required
if ( post_password_required() ) {
	return;
}

// Add classes to the comments main wrapper
$comments_wrap_classes = ' comments-area clr';

if ( ! comments_open() && get_comments_number() < 1 ) {
	$comments_wrap_classes .= ' empty-closed-comments';
	return;
}

if ( 'full-screen' == tb_global_obj( 'post_layout' ) ) {
	$comments_wrap_classes .= ' container';
} ?>

<section id="comments" class="<?php echo $comments_wrap_classes; ?>">

	<?php if ( have_comments() ) : ?>

		<?php
		// Get comments title
		$comments_number = number_format_i18n( get_comments_number() );
		if ( '1' == $comments_number ) {
			$comments_title = __( 'This Post Has One Comment', 'tb' );
		} else {
			$comments_title = sprintf( __( 'This Post Has %s Comments', 'tb' ), $comments_number );
		}
		$comments_title = apply_filters( 'tb_comments_title', $comments_title );

		// Display comments heading
		tb_heading( array(
			'content'		=> $comments_title,
			'tag'			=> 'h2',
			'classes'		=> array( 'comments-title' ) ,
			'apply_filters'	=> 'comments',
		) ); ?>

		<ol class="comment-list">
			<?php
			// List comments
			wp_list_comments( array(
				'callback' => 'tb_comment',
				'style'    => 'ol'
			) ); ?>
		</ol><!-- .comment-list -->

		<?php
		// Display comment navigation
		if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>

			<nav class="navigation comment-navigation row clr" role="navigation">
				<h4 class="assistive-text section-heading heading"><span><?php _e( 'Comment navigation', 'tb' ); ?></span></h4>
				<div class="nav-previous span_12 col col-1"><?php previous_comments_link( __( '&larr; Older Comments', 'tb' ) ); ?></div>
				<div class="nav-next span_12 col"><?php next_comments_link( __( 'Newer Comments &rarr;', 'tb' ) ); ?></div>
			</nav>

		<?php endif; ?>

		<?php
		// Display comments closed message
		if ( ! comments_open() && get_comments_number() ) : ?>
			<p class="no-comments"><i class="icon-remove-circle"></i><?php _e( 'Comments are closed.' , 'tb' ); ?></p>
		<?php endif; ?>

	<?php endif; ?>

	<?php
	// The comment form
	comment_form( array(
		'cancel_reply_link'	=> '<i class="fa fa-times"></i>'. __ ( 'Cancel comment reply', 'tb' ),
	) ); ?>

</section><!-- #comments -->