<?php
/**
 * @package WordPress
 * @subpackage OctuorDeFrance_theme
 */
get_header();
?>




    <div id="mainColumnLeft">
      <div id="navLocal">&nbsp;</div>
      <div id="mainContent">
        
        <div class="mainContent_title">
          <h2><?php _e("Derniers billets", "languoctuor"); ?></h2>
        </div>
        <div class="clear"></div>
        
        <div class="mainContent_content">
          <ul class="list-default">

					<?php wp_reset_query(); ?>
					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
					
            <li class="item-blogPost" id="post-<?php the_ID(); ?>">
              <div class="blogPostHeader">
                <div class="blogPostDateCalendar">
                  <div class="gizmoCalendarSheet">
					          <?php 
					            $pDay = date('d', strtotime($post->post_date));
					            $pMonth = date('M', strtotime($post->post_date));
					            $pYear = date('Y', strtotime($post->post_date));
					          ?>
                    <div class="gizmoCalendarSheet_sheet">
                      <div class="gizmoCalendarSheet_day"><?php echo $pDay; ?></div>
                      <div class="gizmoCalendarSheet_month"><?php echo strtoupper($pMonth); ?></div>
                    </div>
                    <div class="gizmoCalendarSheet_year"><?php echo $pYear; ?></div>
                  </div>
                </div>
                <div class="itemTitle blogPostTitle"><h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3></div>
              </div>
              <div class="blogPostContent">
                <?php the_content(); ?>
                <div class="clear"></div>
              </div>
              <div class="blogPostFooter">
                <div class="blogPostComments">
                  <div class="blogPostsCommentsNb"><?php comments_popup_link(__('Soyez le premier &agrave; ajouter un commentaire', 'languoctuor'), __('D&eacute;j&agrave; un commentaire, ajoutez le votre', 'languoctuor'), __('% commentaires, ajoutez le votre', 'languoctuor')); ?></div>
                </div>
                <div class="blogPostDate"><?php _e("Publi&eacute; le", "languoctuor"); ?> <span class="date"><?php the_time(__('d/m/Y')) ?></span></div><div class="blogPostCategory"><?php _e("dans", "languoctuor"); ?> : <?php the_category(', '); ?></div>
                <div class="blogPostTags">
                  <?php if (has_tag()) : ?>
                  <?php the_tags('<span>Tags :</span>&nbsp;', ', ', ''); ?> 
                  <?php endif; ?>
                </div>
                <div class="clear"></div>
              </div>
            </li>

					<?php endwhile; else: ?>
					<p><?php _e('Pas de billet trouv&eacute;.'); ?></p>
					<?php endif; ?>
					
          </ul>
          
	          <div class="gizmoPagination">
	            <ul class="gizmoPagination_pages">
	              <li class="pagePrev"><?php previous_posts_link( '< '.__("Billets pr&eacute;c&eacute;dents", "languoctuor") ) ?></li>
	              <li class="pageNext"><?php next_posts_link( __("Billets suivants", "languoctuor").' >' ) ?></li>
	            </ul>
	            <div class="clear"></div>
	          </div>          
         
        </div>
        
        <div class="mainContent_discoverability">
          <div class="mainContent_discoverability_label"><?php _e("D&eacute;couvrez aussi", "languoctuor"); ?> :</div>
          <ul class="list-discoverability">
	            <?php
	            $args = array( 'post_type' => 'discoverabilities', 'p' => '330' );
	            $loop = new WP_Query( $args );
	            while ( $loop->have_posts() ) : $loop->the_post();
	              include( TEMPLATEPATH . '/discoverabilities-item.php' );
	            endwhile;
	            ?>
	            <?php
	            $args = array( 'post_type' => 'discoverabilities', 'p' => '334' );
	            $loop = new WP_Query( $args );
	            while ( $loop->have_posts() ) : $loop->the_post();
	              include( TEMPLATEPATH . '/discoverabilities-item.php' );
	            endwhile;
	            ?>
          </ul>
          <div class="clear"></div>
        </div>

    
      </div>
    </div>

<?php get_sidebar('blog'); ?>


<?php get_footer(); ?>





