web/wp-content/themes/default/single.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 ?>
       
     9 
     8 
    10 	<div id="content" class="widecolumn" role="main">
     9 <div id="content" class="widecolumn" role="main">
    11 
       
    12 	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    10 	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    13 
    11 	
    14 		<div class="navigation">
    12 		<div class="navigation">
    15 			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    13 			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    16 			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    14 			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    17 		</div>
    15 		</div>
    18 
    16 		
    19 		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    17 		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    20 			<h2><?php the_title(); ?></h2>
    18 			<h2><?php the_title(); ?></h2>
    21 
       
    22 			<div class="entry">
    19 			<div class="entry">
    23 				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '</p>'); ?>
    20 				<?php the_content('<p class="serif">Lire la suite de l\'article &raquo;</p>'); ?>
    24 
    21 				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    25 				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    22 				<?php the_tags( '<p>Mots-clefs&nbsp;: ', ', ', '</p>'); ?> 
    26 				<?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?>
       
    27 
       
    28 				<p class="postmetadata alt">
    23 				<p class="postmetadata alt">
    29 					<small>
    24 					<small>
    30 						<?php /* This is commented, because it requires a little adjusting sometimes.
    25 						Cet article  a été publié 
    31 							You'll need to download this plugin, and follow the instructions:
    26 						<?php 
    32 							http://binarybonsai.com/wordpress/time-since/ */
    27 						/*
    33 							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ ?>
    28 							Cette partie est commentée parce qu'elle demande parfois un petit ajustement .
    34 						<?php printf(__('This entry was posted %1$s on %2$s at %3$s and is filed under %4$s.', 'kubrick'), $time_since, get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?>
    29 							Vous aurez besoin de télécharger ce plugin, et de suivre les instructions contenues dans la page :
    35 						<?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?> 
    30 							http://binarybonsai.com/wordpress/time-since/ 
    36 
    31 						*/
       
    32 						/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */
       
    33 						?>
       
    34 						le <?php the_time('l j F Y') ?> à <?php the_time() ?>
       
    35 						et est classé dans <?php the_category(', ') ?>.
       
    36 						Vous pouvez en suivre les commentaires par le biais du flux  
       
    37 						<?php post_comments_feed_link('RSS 2.0'); ?>. 
    37 						<?php if ( comments_open() && pings_open() ) {
    38 						<?php if ( comments_open() && pings_open() ) {
    38 							// Both Comments and Pings are open ?>
    39 							// Both Comments and Pings are open ?>
    39 							<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
    40 							Vous pouvez  <a href="#respond">laisser un commentaire</a>, ou <a href="<?php trackback_url(); ?>" rel="trackback">faire un trackback</a> depuis votre propre site.
    40 
       
    41 						<?php } elseif ( !comments_open() && pings_open() ) {
    41 						<?php } elseif ( !comments_open() && pings_open() ) {
    42 							// Only Pings are Open ?>
    42 							// Only Pings are Open ?>
    43 							<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
    43 							Les commentaires sont fermés, mais vous pouvez  <a href="<?php trackback_url(); ?> " rel="trackback">faire un trackback</a> depuis votre propre site.
    44 
       
    45 						<?php } elseif ( comments_open() && !pings_open() ) {
    44 						<?php } elseif ( comments_open() && !pings_open() ) {
    46 							// Comments are open, Pings are not ?>
    45 							// Comments are open, Pings are not ?>
    47 							<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?>
    46 							Vous pouvez aller directement à la fin et laisser un commentaire. Les pings ne sont pas autorisés.
    48 
       
    49 						<?php } elseif ( !comments_open() && !pings_open() ) {
    47 						<?php } elseif ( !comments_open() && !pings_open() ) {
    50 							// Neither Comments, nor Pings are open ?>
    48 							// Neither Comments, nor Pings are open ?>
    51 							<?php _e('Both comments and pings are currently closed.', 'kubrick'); ?>
    49 							Les commentaires et pings sont fermés.
    52 
    50 						<?php } edit_post_link('Modifier cet article','','.'); ?>
    53 						<?php } edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?>
    51 					</small>				
    54 
       
    55 					</small>
       
    56 				</p>
    52 				</p>
    57 
       
    58 			</div>
    53 			</div>
    59 		</div>
    54 		</div>
    60 
    55 		<?php comments_template(); ?>
    61 	<?php comments_template(); ?>
    56 	
    62 
       
    63 	<?php endwhile; else: ?>
    57 	<?php endwhile; else: ?>
    64 
    58 	
    65 		<p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
    59 		<p>Désolé, aucun article ne correspond à vos critères.</p>
    66 
    60 		
    67 <?php endif; ?>
    61 	<?php endif; ?>
    68 
    62 </div>
    69 	</div>
       
    70 
    63 
    71 <?php get_footer(); ?>
    64 <?php get_footer(); ?>