<?php /*
Template Name: Blog 
*/
if(is_page('blog')) {
   if (get_query_var('paged'))
      $paged = get_query_var('paged');
   else $paged = 1;
   query_posts("paged=$paged");
}   
	  
?>

<?php get_header(); ?>

 <div class="sixteen columns">
<div class="page-background">
	  <h2 class="blog-heading"><?php echo of_get_option('blogt_hdn'); ?></h2> <div class="blog-heading-sp"></div><div class="blog-heading-desc"><?php echo of_get_option('blogt_desc'); ?></div>
      <div class="clear"></div>
</div>	<!-- end: background --> 
<div class="s-space"></div>
 </div><!-- end: sixteen columns -->
 
  <div class="eleven columns">
   <div class="page-main">
   <div class="page-main-inn">
   
  <?php 
	
		
	if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>



						 <h2 class="blog-post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
						 <div class="blog-meta-info">Posted by <?php the_author_posts_link('') ?> on <?php the_time('M j, Y') ?> in <?php the_category(', ') ?> <span style="padding:0 3px 0 2px;">|</span> <a href="<?php comments_link(); ?>"> <?php comments_number ('0','1','%'); ?> Comments</a></div>
						   
							<?php if ( has_post_thumbnail() ) { ?>
							<div class="blog-post-fix-it">
							<a href="<?php the_permalink() ?>"> <?php the_post_thumbnail('thumb-blog'); ?></a></div>
						<?php } ?>
						
						    	
								
							<div class="blog-entry"><?php the_content_limit(260); ?></div>
                            <div class="blog-link"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read more </a></div>
                           					<?php endwhile; ?> 
											
<div class="pagi">

<div class="nav-links-next"><?php next_posts_link(__('&larr; Older Entries')) ?></div>
<div class="nav-links-previous"><?php previous_posts_link(__('Never Entries &rarr;')) ?></div>
			</div>
			
		<?php else : ?>
		
	

		<?php endif; ?>	
		</div></div>
		</div><!-- end: blog-main --> 
      



 
<?php get_sidebar(); ?>
<?php get_footer(); ?>
 
 




  

  




	  
	  
	  
	  










