<?php
/**
 * 
 * Template Name: blog page avec sidebar
 */

get_header(); ?>

<div class="row">
			<!-- Wide Column -->
			<div class="twelve columns">
<?php 
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args= array(
			'showposts' => 0,
			'cat' => 0,
			'paged'=> $paged
			);
			
query_posts($args); while (have_posts()) : the_post();
?>

		

			<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
				
                
                <div class="home_default_img">
				 <?php 
if (has_post_thumbnail()) { ?>
<?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); $image = sp_resize( $img_url, 680, 250, true ); ?>
<a href=" <?php the_permalink() ?>" title="<?php the_title(); ?>"><img  src="<?php echo $image ?>" border="0"/></a>  
<?php  } else { } ?>
				</div>
                <div class="entry">
                <h2><a href=" <?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
				<small class="time-icon"> <?php the_time(__('j F, Y', 'wpthematic')) ?> <!-- by <?php the_author() ?> --></small></br>
				<?php echo excerpt(110);?>
				</div>
</div>
          
				<div class="postmetadata"><div class="tags-icon"><?php the_tags(__('', 'wpthematic','') . ' ', ', '); ?></div><div class="category-icon"><?php printf(__(' %s', 'wpthematic'), get_the_category_list(', ','')); ?> </div> <?php edit_post_link(__('<div class="edit-icon">Editer</div>', 'wpthematic')); ?> <div class="comments-icon"> <?php comments_popup_link(__('0','wpthematic'), __('1', 'wpthematic'), __('%', 'wpthematic'), '', __('Commentaires Fermer', 'wpthematic') ); ?></div></div>
			
            <div class="clearfix-default home-default"></div>

		<?php endwhile; ?>



	</div>
   
<?php  get_sidebar(); ?>
    </div>
    </div>
 <?php wpthematic_pagination();?>
   <div class="clear"></div>
<?php get_footer(); ?>