Ticket #9015: 9015.attachment.diff
File 9015.attachment.diff, 2.5 KB (added by , 15 years ago) |
---|
-
attachment.php
21 21 22 22 <div class="entry-content"> 23 23 <div class="entry-attachment"> 24 <?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640)); ?>25 <p class="attachment"><a href="<?php echo wp_get_attachment_url( $post->id); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a>24 <?php if ( wp_attachment_is_image() ) : $att_image = wp_get_attachment_image_src( $post->ID, array(640,640)); ?> 25 <p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a> 26 26 </p> 27 27 28 28 29 29 <div id="nav-below" class="navigation"> 30 <div class="nav-previous"><?php previous_image_link( false); ?></div>31 <div class="nav-next"><?php next_image_link( false); ?></div>30 <div class="nav-previous"><?php previous_image_link(); ?></div> 31 <div class="nav-next"><?php next_image_link(); ?></div> 32 32 </div><!-- #nav-below --> 33 33 <?php else : ?> 34 <a href="<?php echo wp_get_attachment_url( $post->ID) ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename($post->guid) ?></a>34 <a href="<?php echo wp_get_attachment_url() ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename($post->guid) ?></a> 35 35 <?php endif; ?> 36 36 </div> 37 37 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div> … … 47 47 get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ), 48 48 get_permalink(), 49 49 the_title_attribute('echo=0'), 50 comments_rss() ) ?>50 get_post_comments_feed_link() ) ?> 51 51 52 52 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 53 53 <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?>