Changeset 14384 for trunk/wp-content/themes/twentyten/attachment.php
- Timestamp:
- 05/03/2010 07:16:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/attachment.php
r14037 r14384 35 35 get_the_date() 36 36 ); 37 if ( wp_attachment_is_image() ) { 38 $size = getimagesize( wp_get_attachment_url() ); 39 printf( __( ' at <a href="%1$s" title="Link to full-size image">%2$s × %3$s</a>', 'twentyten'), 40 wp_get_attachment_url(), 41 $size[0], 42 $size[1] 43 ); 44 } 37 45 ?> 38 46 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 42 50 <div class="entry-attachment"> 43 51 <?php if ( wp_attachment_is_image() ) : ?> 44 <p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 45 echo wp_get_attachment_image( $post->ID, array( $content_width, $content_width ) ); // max $content_width wide or high. 52 <p class="attachment"><a href="<?php echo twentyten_get_next_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 53 $attachment_size = apply_filters( 'twentyten_attachment_size', 900 ); 54 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. 46 55 ?></a></p> 47 56 … … 65 74 $tag_list = get_the_tag_list(); 66 75 if ( '' != $tag_list ) { 67 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );76 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 68 77 } else { 69 $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );78 $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 70 79 } 71 80 printf( … … 97 106 </div><!-- #container --> 98 107 99 <?php get_sidebar(); ?>100 108 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.