<?php 
    /* Template Name: Blog */
    get_header(); 
?>
   <div class="row">
   
   
 <div id="sub_banner">
<h1>
<?php the_title(); ?>
</h1>
</div>



<div id="content" >
<div class="top-content">
<!--Content-->
  <?php  

	 $args = array(
				   'post_type' => 'post',
				   'cat' => ''.$hathor['blog_cat_id'].'',
				   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
				   );
	$the_query = new WP_Query( $args );
 ?>
                <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
                   
                <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> </div>
               
<div id="content" class="content_blog blog_style_b1" role="main">
			<div class="b1_pic_wrapper ">
							<?php the_post_thumbnail('large'); ?>
						</div>
                        
					<article class="post_format_standard odd">
						<div class="post_info_1">
							<?php edit_post_link(); ?>
							<div class="post_date"><span class="day"><?php the_time( ('j') ); ?></span><span class="month"><?php the_time( ('M') ); ?></span></div>
                            
					        
			        	</div>
                        
						<div class="title_area">
							<h1 class="post_title"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
						</div>
                        
						<div class="post_info post_info_2">
                        <?php if(of_get_option('dissauth_checkbox') == "0"){ ?>
							<span class="post_author">Posted by: <a class="post_author"><?php the_author(); ?></a></span><?php } ?>
							<span class="post_info_delimiter"></span>
                            <?php if(of_get_option('disscats_checkbox') == "0"){ ?>
                           <?php if( has_category() ) { ?>
							<span class="post_categories">
								<span class="cats_label"><?php _e('Categories:', 'hathor'); ?></span>
								<a class="cat_link"><?php the_category(' '); ?></a>
							
							</span>
							
							<?php } ?><?php } ?>
                          <div class="post_comments"><a><span class="comments_number"> <?php comments_popup_link( __( 'No comments', 'hathor' ), __( '1 Comment', 'hathor' ), __( '% Comments', 'hathor' )); ?> </span><span class="icon-comment"></span></a></div>  
                            
						</div>
                        
						
						<div class="post_content">
							<p><?php the_excerpt(); ?></p>
							
						</div>
                        <div class="readmore"><a href="<?php the_permalink();?>" class="more-link"><?php _e('Read more', 'hathor'); ?></a></div>
						<div class="post_info post_info_3 clearboth">
                        <?php if(of_get_option('disscats_checkbox') == "0"){ ?>
							<span class="post_tags">
								<?php if( has_tag() ) { ?><span class="tags_label"><?php _e('Tags:', 'hathor'); ?></span><?php } ?>
								<?php if( has_tag() ) { ?><a class="tag_link"><?php the_tags('','  '); ?></a>
								
							</span><?php } ?><?php } ?>
						</div>
					</article>
                    <div class="share">
					<?php get_template_part('share_this');?></div>
                    <div class="sep-20"><img  src="<?php echo get_template_directory_uri(); ?>/images/sep-shadow.png" /></div>
                    </div>
  <?php endwhile ?>
  <?php get_template_part('pagination'); ?> 
</div>
<?php if(of_get_option('nosidebar_checkbox') == "0"){ ?><?php get_sidebar();?><?php } ?>
</div></div></div>
<?php get_footer(); ?>