<?php get_header(); ?>

<section class="main-body">
<div id="content" class="site-content container">
	<div itemscope itemtype="http://schema.org/WebPage" id="crumbs" class="breadcrumb">
        <?php if(get_theme_mod( 'enable_breadcrumb_check',1 )){texas_breadcrumb_trail();} ?> 
	</div>
            
    <div id="primary" class="content-area <?php if( get_theme_mod( 'siderbar_layout','right-sidebar') != 'no-sidebar'){echo 'col-md-8';}?> ct-float" itemscope itemtype="http://schema.org/Article">
        <div id="main" class="site-main single-blog" role="main">
        
        
            <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>            
            <article id="post-<?php the_ID(); ?>" <?php post_class('blog'); ?>>
                <div class="entry-content" itemprop="articleBody">
                    <h1 id="p-title"><strong><?php the_title(); ?></strong></h1>

                    <div class="content">
                    <?php  
                        the_content(); 
                    ?>
                    </div>
                    <p class="clear"></p>
                    
                    <?php
                        wp_link_pages( array(
                            'before'	=> '<div class="previous-next-post link-pages">' . __( 'Pages:', 'texas' ),
                            'after'		=> '</div><!--/.link-pages-->'
                        ) );
                    
                    
                    ?>
                    
                </div><!-- .entry-content -->
    
                <?php  if(get_previous_post() || get_next_post()){?>
                <div class="previous-next-post row">
                    <div class="col-md-6 text-left">
                        <i class='uicon-angle-left'></i> <?php previous_post_link('%link'); ?>
                    </div>
                    <div class="col-md-6 text-right">
                        <?php next_post_link('%link'); ?> <i class='uicon-angle-right'></i>
                    </div>
                </div>
                <?php }?>
                
            </article><!-- #post-## -->
            
            <p class="m0"> </p>
            
            
            <?php endwhile;endif; ?> 

            <?php if ( comments_open() || get_comments_number() ){  ?>
            <article id="post-<?php the_ID(); ?>" <?php post_class('blog'); ?>>
                <div class="entry-content" itemprop="articleBody"> 

                <?php
                    $withcomments = "1";
                    comments_template();
                ?> 
                </div>
            </article><!-- #post-## -->                

            <?php } ?>
            
            <p class="m15"> </p>
        </div><!-- #main -->
    </div><!-- #primary -->

    <?php if( get_theme_mod( 'siderbar_layout','right-sidebar') != 'no-sidebar'){get_sidebar();}?>    
    
    <p class="clear"></p>
</div><!--div class="container"-->
</section><!--section class="main-body"-->
            
<?php get_footer(); ?>