web/wp-content/themes/default/image.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    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>
    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">
    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>
    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>
    18 				<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
    19 
    19 
    20 				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    20 				<?php the_content('<p class="serif">Lire la suite de cette entrée &raquo;</p>'); ?>
    21 
    21 
    22 				<div class="navigation">
    22 				<div class="navigation">
    23 					<div class="alignleft"><?php previous_image_link() ?></div>
    23 					<div class="alignleft"><?php previous_image_link() ?></div>
    24 					<div class="alignright"><?php next_image_link() ?></div>
    24 					<div class="alignright"><?php next_image_link() ?></div>
    25 				</div>
    25 				</div>
    26 				<br class="clear" />
    26 				<br class="clear" />
    27 
    27 
    28 				<p class="postmetadata alt">
    28 				<p class="postmetadata alt">
    29 					<small>
    29 					<small>
    30 						This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    30 						Cette entrée a été publiée le <?php the_time('l j F Y') ?> à <?php the_time() ?>
    31 						and is filed under <?php the_category(', ') ?>.
    31 						et est classée dans <?php the_category(', ') ?>.
    32 						<?php the_taxonomies(); ?>
    32 						<?php the_taxonomies(); ?>
    33 						You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
    33 						Vous pouvez en suivre les commentaires par le biais du flux  <?php post_comments_feed_link('RSS 2.0'); ?>.
    34 
    34 
    35 						<?php if ( comments_open() && pings_open() ) {
    35 						<?php if ( comments_open() && pings_open() ) {
    36 							// Both Comments and Pings are open ?>
    36 							// Both Comments and Pings are open ?>
    37 							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
    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 
       
    39 						<?php } elseif ( !comments_open() && pings_open() ) {
    38 						<?php } elseif ( !comments_open() && pings_open() ) {
    40 							// Only Pings are Open ?>
    39 							// Only Pings are Open ?>
    41 							Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
    40 							Les commentaires sont fermés, mais vous pouvez  <a href="<?php trackback_url(); ?> " rel="trackback">faire un trackback</a> depuis votre propre site.
    42 
       
    43 						<?php } elseif ( comments_open() && !pings_open() ) {
    41 						<?php } elseif ( comments_open() && !pings_open() ) {
    44 							// Comments are open, Pings are not ?>
    42 							// Comments are open, Pings are not ?>
    45 							You can skip to the end and leave a response. Pinging is currently not allowed.
    43 							Vous pouvez aller directement à la fin et laisser un commentaire. Les pings ne sont pas autorisés.
    46 
       
    47 						<?php } elseif ( !comments_open() && !pings_open() ) {
    44 						<?php } elseif ( !comments_open() && !pings_open() ) {
    48 							// Neither Comments, nor Pings are open ?>
    45 							// Neither Comments, nor Pings are open ?>
    49 							Both comments and pings are currently closed.
    46 							Les commentaires et pings sont fermés.
    50 
    47 
    51 						<?php } edit_post_link('Edit this entry.','',''); ?>
    48 						<?php } edit_post_link('Modifier cette entrée.','',''); ?>
    52 
    49 
    53 					</small>
    50 					</small>
    54 				</p>
    51 				</p>
    55 
    52 
    56 			</div>
    53 			</div>
    59 
    56 
    60 	<?php comments_template(); ?>
    57 	<?php comments_template(); ?>
    61 
    58 
    62 	<?php endwhile; else: ?>
    59 	<?php endwhile; else: ?>
    63 
    60 
    64 		<p>Sorry, no attachments matched your criteria.</p>
    61 		<p>Désolé, aucun fichier ne correspond à vos critères.</p>
    65 
    62 
    66 <?php endif; ?>
    63 <?php endif; ?>
    67 
    64 
    68 	</div>
    65 	</div>
    69 
    66