<?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="blog-meta entry-meta">
                        <span class="tag-view">
                            <i class="uicon-see"></i><?php the_author_link(); ?>
                        </span>
                        <span>
                            <i class="uicon-time"></i>
                            <em class="shijian" datetime="<?php echo get_the_date(get_option( 'date_format' ));?>" itemprop="datePublished"></em>
                                <?php the_time(get_option( 'date_format' ));?>
                        </span>
                    </div>
                    <div class="content">
                    <?php  
                        the_content(); 
                    ?>
                    </div>
                    
                    <?php	
                        wp_link_pages( array(
                            'before'	=> '<div class="previous-next-post link-pages">' . __( 'Pages:', 'texas' ),
                            'after'		=> '</div><!--/.link-pages-->'
                        ) );
                    ?>
                </div><!-- .entry-content -->

                <?php //if( has_tag() ){?>
                <div class="tags" itemprop="keywords">
                    <?php the_tags( __('Tags: ','texas'), '', '' ); ?>
                </div> 
                <?php //}?>  
   
                
                <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>
                
            </article><!-- #post-## -->
            
            
            
            
            <p class="m0"> </p>
            <?php endwhile;endif; ?> 

            <?php if ( comments_open() ){  ?>
            <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(); ?>