web/wp-content/themes/default/index.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
     1 <?php
     1 <?php 
     2 /**
     2 /** 
     3  * @package WordPress
     3  * @package WordPress 
     4  * @subpackage Default_Theme
     4  * @subpackage Default_Theme 
     5  */
     5  */ 
     6 
     6 
     7 get_header(); ?>
     7 get_header(); ?>
     8 
     8 
     9 	<div id="content" class="narrowcolumn" role="main">
     9 <div id="content" class="narrowcolumn" role="main">
    10 
       
    11 	<?php if (have_posts()) : ?>
    10 	<?php if (have_posts()) : ?>
    12 
    11 	
    13 		<?php while (have_posts()) : the_post(); ?>
    12 		<?php while (have_posts()) : the_post(); ?>
    14 
    13 		
    15 			<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    14 			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    16 				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    15 				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent vers <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    17 				<small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
    16 				<small><?php the_time('j F Y') ?> <!-- par <?php the_author() ?> --></small>
    18 
       
    19 				<div class="entry">
    17 				<div class="entry">
    20 					<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    18 					<?php the_content('Lire le reste de cet article &raquo;'); ?>
    21 				</div>
    19 				</div>
    22 
    20 				<p class="postmetadata"><?php the_tags('Mots-clefs&nbsp;: ', ', ', '<br />'); ?> Publié dans <?php the_category(', ') ?> | <?php edit_post_link('Modifier', '', ' | '); ?>  <?php comments_popup_link('Aucun commentaire »', '1 commentaire »', '% commentaires »', 'comments-link', 'Les commentaires sont fermés'); ?></p>
    23 				<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
       
    24 			</div>
    21 			</div>
    25 
    22 			
    26 		<?php endwhile; ?>
    23 		<?php endwhile; ?>
    27 
    24 		
    28 		<div class="navigation">
    25 		<div class="navigation">
    29 			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
    26 			<div class="alignleft"><?php next_posts_link('&laquo; Articles plus anciens') ?></div>
    30 			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
    27 			<div class="alignright"><?php previous_posts_link('Articles plus récents &raquo;') ?></div>
    31 		</div>
    28 		</div>
    32 
    29 		
    33 	<?php else : ?>
    30 	<?php else : ?>
    34 
    31 	
    35 		<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
    32 		<h2 class="center">Introuvable</h2>
    36 		<p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
    33 		<p class="center">Désolé, mais vous cherchez quelque chose qui ne se trouve pas ici.</p>
    37 		<?php get_search_form(); ?>
    34 		<?php get_search_form(); ?>
    38 
    35 		
    39 	<?php endif; ?>
    36 	<?php endif; ?>
    40 
    37 </div>
    41 	</div>
    38 	
    42 
       
    43 <?php get_sidebar(); ?>
    39 <?php get_sidebar(); ?>
    44 
       
    45 <?php get_footer(); ?>
    40 <?php get_footer(); ?>