<?php
/**
 * @package WordPress
 * @subpackage wpthematic
 */

get_header(); ?>

<div class="row">
    
<div class="twelve columns">

	<?php if (have_posts()) : ?>

		
		<h2 class="pagetitle archives-icon"><?php printf( __( 'Mot clé : %s', 'wpthematic' ), single_tag_title( '', false ) ); ?></h2>
		<div class="navigation">
			<div class="alignleft"><?php next_posts_link(__('&laquo; Articles plus anciens', 'wpthematic')) ?></div>
			<div class="alignright"><?php previous_posts_link(__('Articles plus récents &raquo;', 'wpthematic')) ?></div>
		</div>

<div class="clearfix-default home-default"></div>
		<?php 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, 180, 180, 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><?php the_title(); ?></h2>
				<small class="time-icon"> <?php the_time(__('j F, Y', 'wpthematic')) ?> <!-- by <?php the_author() ?> --></small></br>
				<?php echo excerpt(50);?>
				</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(__('Editer', '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 class="navigation">
			<div class="alignleft"><?php next_posts_link(__('&laquo; Articles plus anciens', 'wpthematic')) ?></div>
			<div class="alignright"><?php previous_posts_link(__('Articles plus récents &raquo;', 'wpthematic')) ?></div>
		</div>

	<?php else : ?>

		<h2 class="center"><?php _e('Aucun article trouv&eacute;. Essayez une autre recherche ?'); ?></h2>
		<?php get_search_form(); ?>

	<?php endif; ?>


</div>

<?php  get_sidebar(); ?>
</div>
</div>

<?php get_footer(); ?>
