Changeset 13128 for trunk/wp-content/themes/twentyten/attachment.php
- Timestamp:
- 02/14/2010 01:00:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/attachment.php
r13111 r13128 6 6 <?php the_post(); ?> 7 7 8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">← <?php echo get_the_title($post->post_parent)?></a></p>8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title($post->post_parent), 1 ) ); ?>" rel="gallery">← <?php echo get_the_title($post->post_parent); ?></a></p> 9 9 10 10 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 12 12 13 13 <div class="entry-meta"> 14 <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten'); ?></span>14 <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten' ); ?></span> 15 15 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 16 <span class="meta-sep"> |</span>17 <span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten'); ?></span>18 <span class="entry-date"><abbr class="published" title="<?php the_time( 'Y-m-d\TH:i:sO') ?>"><?php echo get_the_date(); ?></abbr></span>19 <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>16 <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span> 17 <span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten' ); ?></span> 18 <span class="entry-date"><abbr class="published" title="<?php the_time() ?>"><?php echo get_the_date(); ?></abbr></span> 19 <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ); ?> 20 20 </div><!-- .entry-meta --> 21 21 … … 33 33 </div><!-- #nav-below --> 34 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>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 36 <?php endif; ?> 37 37 </div> 38 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>38 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div> 39 39 40 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>41 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>40 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 41 <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?> 42 42 43 43 </div><!-- .entry-content --> … … 49 49 get_permalink(), 50 50 the_title_attribute('echo=0'), 51 get_post_comments_feed_link() ) ?>51 get_post_comments_feed_link() ); ?> 52 52 53 53 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 54 <?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() ) ?>54 <?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() ); ?> 55 55 <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?> 56 <?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>.', 'twentyten' ), get_trackback_url() ) ?>56 <?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>.', 'twentyten' ), get_trackback_url() ); ?> 57 57 <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?> 58 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ) ?>58 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?> 59 59 <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?> 60 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?>60 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?> 61 61 <?php endif; ?> 62 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>62 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?> 63 63 </div><!-- .entry-utility --> 64 64 </div><!-- #post-<?php the_ID(); ?> -->
Note: See TracChangeset
for help on using the changeset viewer.