<?php
/*
The comments page for urbanbold
*/

// don't load it if you can't comment
if ( post_password_required() ) {
  return;
}

?>

<?php // You can start editing here. ?>

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

    <h3 id="comments-title" class="h2"><?php comments_number( __( '<span>Нет</span> комментариев', 'urban-bold' ), __( '<span>1</span> комментарий', 'urban-bold' ), _n( '<span>%</span> комментариев', '<span>%</span> Comments', get_comments_number(), 'urban-bold' ) );?></h3>

    <section class="commentlist">
      <?php
        wp_list_comments( array(
          'style'             => 'div',
          'short_ping'        => true,
          'avatar_size'       => 80,
          'callback'          => 'urbanbold_comments',
          'type'              => 'all',
          'reply_text'        => 'Reply',
          'page'              => '',
          'per_page'          => '',
          'reverse_top_level' => null,
          'reverse_children'  => ''
        ) );
      ?>
    </section>

    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    	<nav class="navigation comment-navigation" role="navigation">
      	<div class="comment-nav-prev"><?php previous_comments_link( __( '&larr; Предыдущие комментарии', 'urban-bold' ) ); ?></div>
      	<div class="comment-nav-next"><?php next_comments_link( __( 'Следующие комментарии &rarr;', 'urban-bold' ) ); ?></div>
    	</nav>
    <?php endif; ?>

    <?php if ( ! comments_open() ) : ?>
    	<p class="no-comments"><?php _e( 'Комментарии закрыты.' , 'urban-bold' ); ?></p>
    <?php endif; ?>

  <?php endif; ?>

  <?php comment_form(); ?>