/**
 * Displays comment list, when there are any
 *
 * @author	Konstantin Obenland
 * @since	1.7.0 - 16.06.2012
 *
 * @return	void
 */
function the_bootstrap_comments_list()
{
    if (post_password_required()) {
        ?>
		<div id="comments">
			<p class="nopassword"><?php 
        _e('This post is password protected. Enter the password to view any comments.', 'the-bootstrap');
        ?>
</p>
		</div><!-- #comments -->
		<?php 
        return;
    }
    if (have_comments()) {
        ?>
		<div id="comments">
			<h2 id="comments-title">
				<?php 
        printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'the-bootstrap'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>');
        ?>
			</h2>
		
			<?php 
        the_bootstrap_comment_nav();
        ?>
		
			<ol class="commentlist unstyled">
				<?php 
        wp_list_comments(array('callback' => 'the_bootstrap_comment'));
        ?>
			</ol><!-- .commentlist .unstyled -->
		
			<?php 
        the_bootstrap_comment_nav();
        ?>
		
		</div><!-- #comments -->
	<?php 
    }
}
    printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'the-bootstrap'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>');
    ?>
		</h2>
	
		<?php 
    the_bootstrap_comment_nav();
    ?>
	
		<ol class="commentlist unstyled">
			<?php 
    wp_list_comments(array('callback' => 'the_bootstrap_comment'));
    ?>
		</ol><!-- .commentlist .unstyled -->
	
		<?php 
    the_bootstrap_comment_nav();
    ?>
	
	</div><!-- #comments -->
<?php 
}
if (!comments_open() and !is_page() and post_type_supports(get_post_type(), 'comments')) {
    ?>
	<p class="nocomments"><?php 
    _e('Comments are closed.', 'the-bootstrap');
    ?>
</p>
<?php 
}
comment_form(array('comment_field' => '<div class="comment-form-comment control-group"><label class="control-label" for="comment">' . _x('Comment', 'noun', 'the-bootstrap') . '</label><div class="controls"><textarea class="span7" id="comment" name="comment" rows="8" aria-required="true"></textarea></div></div>', 'comment_notes_before' => '', 'comment_notes_after' => '<div class="form-allowed-tags control-group"><label class="control-label">' . sprintf(__('You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s', 'the-bootstrap'), '</label><div class="controls"><pre>' . allowed_tags() . '</pre></div>') . '</div>
								 <div class="form-actions">', 'title_reply' => '<legend>' . __('Leave a reply', 'the-bootstrap') . '</legend>', 'title_reply_to' => '<legend>' . __('Leave a reply to %s', 'the-bootstrap') . '</legend>', 'must_log_in' => '<div class="must-log-in control-group controls">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'the-bootstrap'), wp_login_url(apply_filters('the_permalink', get_permalink(get_the_ID())))) . '</div>', 'logged_in_as' => '<div class="logged-in-as control-group controls">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'the-bootstrap'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink(get_the_ID())))) . '</div>'));