web/wp-content/themes/default/image.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 
       
    10 	<div id="content" class="widecolumn">
       
    11 
       
    12   <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       
    13 
       
    14 		<div class="post" id="post-<?php the_ID(); ?>">
       
    15 			<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
       
    16 			<div class="entry">
       
    17 				<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
       
    18 				<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
       
    19 
       
    20 				<?php the_content('<p class="serif">Lire la suite de cette entrée &raquo;</p>'); ?>
       
    21 
       
    22 				<div class="navigation">
       
    23 					<div class="alignleft"><?php previous_image_link() ?></div>
       
    24 					<div class="alignright"><?php next_image_link() ?></div>
       
    25 				</div>
       
    26 				<br class="clear" />
       
    27 
       
    28 				<p class="postmetadata alt">
       
    29 					<small>
       
    30 						Cette entrée a été publiée le <?php the_time('l j F Y') ?> à <?php the_time() ?>
       
    31 						et est classée dans <?php the_category(', ') ?>.
       
    32 						<?php the_taxonomies(); ?>
       
    33 						Vous pouvez en suivre les commentaires par le biais du flux  <?php post_comments_feed_link('RSS 2.0'); ?>.
       
    34 
       
    35 						<?php if ( comments_open() && pings_open() ) {
       
    36 							// Both Comments and Pings are open ?>
       
    37 							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.
       
    38 						<?php } elseif ( !comments_open() && pings_open() ) {
       
    39 							// Only Pings are Open ?>
       
    40 							Les commentaires sont fermés, mais vous pouvez  <a href="<?php trackback_url(); ?> " rel="trackback">faire un trackback</a> depuis votre propre site.
       
    41 						<?php } elseif ( comments_open() && !pings_open() ) {
       
    42 							// Comments are open, Pings are not ?>
       
    43 							Vous pouvez aller directement à la fin et laisser un commentaire. Les pings ne sont pas autorisés.
       
    44 						<?php } elseif ( !comments_open() && !pings_open() ) {
       
    45 							// Neither Comments, nor Pings are open ?>
       
    46 							Les commentaires et pings sont fermés.
       
    47 
       
    48 						<?php } edit_post_link('Modifier cette entrée.','',''); ?>
       
    49 
       
    50 					</small>
       
    51 				</p>
       
    52 
       
    53 			</div>
       
    54 
       
    55 		</div>
       
    56 
       
    57 	<?php comments_template(); ?>
       
    58 
       
    59 	<?php endwhile; else: ?>
       
    60 
       
    61 		<p>Désolé, aucun fichier ne correspond à vos critères.</p>
       
    62 
       
    63 <?php endif; ?>
       
    64 
       
    65 	</div>
       
    66 
       
    67 <?php get_footer(); ?>