Changeset 18244 for trunk/wp-content/themes/twentyeleven/image.php
- Timestamp:
- 06/10/2011 09:57:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/image.php
r18072 r18244 30 30 esc_attr( get_the_time() ), 31 31 get_the_date(), 32 wp_get_attachment_url(),32 esc_url( wp_get_attachment_url() ), 33 33 $metadata['width'], 34 34 $metadata['height'], 35 get_permalink( $post->post_parent),35 esc_url( get_permalink( $post->post_parent ) ), 36 36 get_the_title( $post->post_parent ) 37 37 ); … … 70 70 } 71 71 ?> 72 <a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php72 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 73 73 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); 74 74 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. … … 93 93 <footer class="entry-meta"> 94 94 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 95 <?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>.', 'twentyeleven' ), get_trackback_url() ); ?>95 <?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>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?> 96 96 <?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?> 97 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), get_trackback_url() ); ?>97 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyeleven' ), esc_url( get_trackback_url() ) ); ?> 98 98 <?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?> 99 99 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyeleven' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.