Changeset 13129 for trunk/wp-content/themes/twentyten/attachment.php
- Timestamp:
- 02/14/2010 01:12:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/attachment.php
r13128 r13129 22 22 <div class="entry-content"> 23 23 <div class="entry-attachment"> 24 <?php if ( wp_attachment_is_image( $post->ID) ) : ?>25 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php26 echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high.27 ?></a></p>24 <?php if ( wp_attachment_is_image() ) : ?> 25 <p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 26 echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high. 27 ?></a></p> 28 28 29 30 <div id="nav-below" class="navigation"> 31 <div class="nav-previous"><?php previous_image_link( false ); ?></div> 32 <div class="nav-next"><?php next_image_link( false ); ?></div> 33 </div><!-- #nav-below --> 34 <?php else : ?> 35 <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(get_permalink()); ?></a> 36 <?php endif; ?> 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> 32 </div><!-- #nav-below --> 33 <?php else : ?> 34 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a> 35 <?php endif; ?> 37 36 </div> 38 37 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
Note: See TracChangeset
for help on using the changeset viewer.