<article id="post-<?php the_ID(); ?>" <?php post_class('single'); ?> itemscope="" itemtype="http://schema.org/BlogPosting">
<div class="container">
    <div class="row">

        <!--Content Section Start Here-->
        <div class="single_post">
            <div class="single_post_bg">
                <?php
                if(has_post_thumbnail()) {
                    the_post_thumbnail('full');
                }
                ?>
            </div>

            <div class="space"></div>

            <div class="single_content">

                <div class="space"></div>
 			
                  <div class="col-md-12">
                    <?php
                   	/* translators: %s: Name of current post */
					the_content( sprintf(
						__( 'Continue reading %s', 'air-free' ),
						the_title( '<span class="screen-reader-text">', '</span>', false )
					) );
							
					wp_link_pages( array(
						'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'air-free' ) . '</span>',
						'after'       => '</div>',
						'link_before' => '<span>',
						'link_after'  => '</span>',
						'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'air-free' ) . ' </span>%',
						'separator'   => '<span class="screen-reader-text">, </span>',
					) );
					
                    ?>
                </div>
     
                <div class="clearfix"></div>
                <div class="space"></div>
				
                <div class="col-md-6 col-xs-12">
                    <div class="pull-left pre_btn"><?php echo previous_post_link('%link', __('Previous', 'air-free'), TRUE); ?></div>
                </div>

                <div class="col-md-6 col-xs-12">
                    <div class="pull-right"><?php echo next_post_link('%link', __('Next', 'air-free'), TRUE); ?></div>
                </div>
				
                <div class="height50"></div>

                
                <?php
					// Author bio.
					if ( is_single() && get_the_author_meta( 'description' ) ) :
						get_template_part( 'author-bio' );
					endif;
					?> 	

                <div class="clearfix"></div>
                <div class="height"></div>
 
                <!--Content Section End Here-->


            </div>

        </div>

        <div class="col-md-3 pull-right">
            <div id="triangle-down"></div>
        </div>

    </div>
</div>
	<?php
        comments_template();
    ?>
    
      <div class="container comment-pagination post-pagination">
    	<?php paginate_comments_links(); ?>
    </div>

<div class="col-md-12 leave_row">
    <div class="container">
        <?php
        global $current_user;
        get_currentuserinfo();

        $fields =  array(

            'author' => '<div class="form-group"><input type="text" class="form-control" id="author" name="author" placeholder="'.__('Name', 'air-free').'" value="'.esc_attr($current_user->user_login).'"></div>',
            'email' => '<div class="form-group"><input type="email" class="form-control" id="email" name="email" placeholder="'.__('E-Mail', 'air-free').'" value="'.esc_attr($current_user->user_email).'"></div>',
            'url' => '<div class="form-group"><input type="text" class="form-control" id="url" name="url" placeholder="'.__('Website', 'air-free').'" value=""></div>'
        );

        $args = array(
            'id_form'           => 'commentform',
            'id_submit'         => 'add_contacts',
            'class_submit'      => 'btn btn-primary',
            'name_submit'       => 'submit',
            'title_reply'       => '<h2>'.__('Leave a Reply', 'air-free').'</h2>',
            'title_reply_to'    => '<h2>'.__('Leave a Reply to %s', 'air-free').'</h2>',
            'cancel_reply_link' => __('Cancel Reply', 'air-free'),
            'label_submit'      => __('Post Comment', 'air-free'),
            'format'            => 'xhtml',

            'comment_field' => '<div class="form-group"><textarea id="comment" name="comment" class="form-control" rows="6"></textarea></div>',

            'must_log_in' => '<p class="must-log-in">' .
                sprintf(
                    __( 'You must be <a href="%s">logged in</a> to post a comment.', 'air-free' ),
                    wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )
                ) . '</p>',

            'logged_in_as' => '<p class="logged-in-as">' .
                sprintf(
                    __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'air-free' ),
                    admin_url( 'profile.php' ),
                    $current_user->user_login,
                    wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) )
                ) . '</p>',

            'comment_notes_before' => '<p class="comment-notes">' .
                __( 'Your email address will not be published.', 'air-free' ).
                '</p>',

            'comment_notes_after' => '<p class="form-allowed-tags">' .
                sprintf(
                    __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s', 'air-free' ),
                    ' <code>' . allowed_tags() . '</code>'
                ) . '</p>',

            'fields' => apply_filters( 'comment_form_default_fields', $fields ),
        );
        comment_form($args);
        ?>
    </div>
</div>

</article>

