web/wp-content/themes/default/single.php
changeset 136 bde1974c263b
equal deleted inserted replaced
135:53cff4b4a802 136:bde1974c263b
       
     1 <?php 
       
     2 /** 
       
     3  * @package WordPress 
       
     4  * @subpackage Default_Theme 
       
     5  */ 
       
     6 
       
     7 get_header(); ?>
       
     8 
       
     9 <div id="content" class="widecolumn" role="main">
       
    10 	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       
    11 	
       
    12 		<div class="navigation">
       
    13 			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
       
    14 			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
       
    15 		</div>
       
    16 		
       
    17 		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
       
    18 			<h2><?php the_title(); ?></h2>
       
    19 			<div class="entry">
       
    20 				<?php the_content('<p class="serif">Lire la suite de l\'article &raquo;</p>'); ?>
       
    21 				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
       
    22 				<?php the_tags( '<p>Mots-clefs&nbsp;: ', ', ', '</p>'); ?> 
       
    23 				<p class="postmetadata alt">
       
    24 					<small>
       
    25 						Cet article  a été publié 
       
    26 						<?php 
       
    27 						/*
       
    28 							Cette partie est commentée parce qu'elle demande parfois un petit ajustement .
       
    29 							Vous aurez besoin de télécharger ce plugin, et de suivre les instructions contenues dans la page :
       
    30 							http://binarybonsai.com/wordpress/time-since/ 
       
    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'); ?>. 
       
    38 						<?php if ( comments_open() && pings_open() ) {
       
    39 							// Both Comments and Pings are open ?>
       
    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.
       
    41 						<?php } elseif ( !comments_open() && pings_open() ) {
       
    42 							// Only Pings are Open ?>
       
    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 						<?php } elseif ( comments_open() && !pings_open() ) {
       
    45 							// Comments are open, Pings are not ?>
       
    46 							Vous pouvez aller directement à la fin et laisser un commentaire. Les pings ne sont pas autorisés.
       
    47 						<?php } elseif ( !comments_open() && !pings_open() ) {
       
    48 							// Neither Comments, nor Pings are open ?>
       
    49 							Les commentaires et pings sont fermés.
       
    50 						<?php } edit_post_link('Modifier cet article','','.'); ?>
       
    51 					</small>				
       
    52 				</p>
       
    53 			</div>
       
    54 		</div>
       
    55 		<?php comments_template(); ?>
       
    56 	
       
    57 	<?php endwhile; else: ?>
       
    58 	
       
    59 		<p>Désolé, aucun article ne correspond à vos critères.</p>
       
    60 		
       
    61 	<?php endif; ?>
       
    62 </div>
       
    63 
       
    64 <?php get_footer(); ?>