Changeset 19379
- Timestamp:
- 11/21/2011 04:20:49 PM (13 years ago)
- Location:
- trunk/wp-content/themes/twentyeleven
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/image.php
r19376 r19379 13 13 <div id="content" role="main"> 14 14 15 <?php the_post(); ?>15 <?php while ( have_posts() ) : the_post(); ?> 16 16 17 <nav id="nav-single">18 <h3 class="assistive-text"><?php _e( 'Image navigation', 'twentyeleven' ); ?></h3>19 <span class="nav-previous"><?php previous_image_link( false, __( '← Previous' , 'twentyeleven' ) ); ?></span>20 <span class="nav-next"><?php next_image_link( false, __( 'Next →' , 'twentyeleven' ) ); ?></span>21 </nav><!-- #nav-single -->17 <nav id="nav-single"> 18 <h3 class="assistive-text"><?php _e( 'Image navigation', 'twentyeleven' ); ?></h3> 19 <span class="nav-previous"><?php previous_image_link( false, __( '← Previous' , 'twentyeleven' ) ); ?></span> 20 <span class="nav-next"><?php next_image_link( false, __( 'Next →' , 'twentyeleven' ) ); ?></span> 21 </nav><!-- #nav-single --> 22 22 23 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>24 <header class="entry-header">25 <h1 class="entry-title"><?php the_title(); ?></h1>23 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 24 <header class="entry-header"> 25 <h1 class="entry-title"><?php the_title(); ?></h1> 26 26 27 <div class="entry-meta">28 <?php29 $metadata = wp_get_attachment_metadata();30 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'twentyeleven' ),31 esc_attr( get_the_time() ),32 get_the_date(),33 esc_url( wp_get_attachment_url() ),34 $metadata['width'],35 $metadata['height'],36 esc_url( get_permalink( $post->post_parent ) ),37 get_the_title( $post->post_parent )38 );39 ?>40 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>41 </div><!-- .entry-meta -->27 <div class="entry-meta"> 28 <?php 29 $metadata = wp_get_attachment_metadata(); 30 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'twentyeleven' ), 31 esc_attr( get_the_time() ), 32 get_the_date(), 33 esc_url( wp_get_attachment_url() ), 34 $metadata['width'], 35 $metadata['height'], 36 esc_url( get_permalink( $post->post_parent ) ), 37 get_the_title( $post->post_parent ) 38 ); 39 ?> 40 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 41 </div><!-- .entry-meta --> 42 42 43 </header><!-- .entry-header -->43 </header><!-- .entry-header --> 44 44 45 <div class="entry-content">45 <div class="entry-content"> 46 46 47 <div class="entry-attachment">48 <div class="attachment">47 <div class="entry-attachment"> 48 <div class="attachment"> 49 49 <?php 50 50 /** … … 71 71 } 72 72 ?> 73 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php74 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );75 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.76 ?></a>73 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 74 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); 75 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. 76 ?></a> 77 77 78 <?php if ( ! empty( $post->post_excerpt ) ) : ?>79 <div class="entry-caption">80 <?php the_excerpt(); ?>81 </div>82 <?php endif; ?>83 </div><!-- .attachment -->78 <?php if ( ! empty( $post->post_excerpt ) ) : ?> 79 <div class="entry-caption"> 80 <?php the_excerpt(); ?> 81 </div> 82 <?php endif; ?> 83 </div><!-- .attachment --> 84 84 85 </div><!-- .entry-attachment -->85 </div><!-- .entry-attachment --> 86 86 87 <div class="entry-description">88 <?php the_content(); ?>89 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>90 </div><!-- .entry-description -->87 <div class="entry-description"> 88 <?php the_content(); ?> 89 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> 90 </div><!-- .entry-description --> 91 91 92 </div><!-- .entry-content -->92 </div><!-- .entry-content --> 93 93 94 </article><!-- #post-<?php the_ID(); ?> -->94 </article><!-- #post-<?php the_ID(); ?> --> 95 95 96 <?php comments_template(); ?> 96 <?php comments_template(); ?> 97 98 <?php endwhile; // end of the loop. ?> 97 99 98 100 </div><!-- #content --> -
trunk/wp-content/themes/twentyeleven/page.php
r17959 r19379 18 18 <div id="content" role="main"> 19 19 20 <?php the_post(); ?>20 <?php while ( have_posts() ) : the_post(); ?> 21 21 22 <?php get_template_part( 'content', 'page' ); ?>22 <?php get_template_part( 'content', 'page' ); ?> 23 23 24 <?php comments_template( '', true ); ?> 24 <?php comments_template( '', true ); ?> 25 26 <?php endwhile; // end of the loop. ?> 25 27 26 28 </div><!-- #content --> -
trunk/wp-content/themes/twentyeleven/showcase.php
r18348 r19379 23 23 <div id="content" role="main"> 24 24 25 <?php the_post(); ?>25 <?php while ( have_posts() ) : the_post(); ?> 26 26 27 27 <?php … … 33 33 get_template_part( 'content', 'intro' ); 34 34 ?> 35 36 <?php endwhile; ?> 35 37 36 38 <?php -
trunk/wp-content/themes/twentyeleven/sidebar-page.php
r17959 r19379 14 14 <div id="content" role="main"> 15 15 16 <?php the_post(); ?>16 <?php while ( have_posts() ) : the_post(); ?> 17 17 18 <?php get_template_part( 'content', 'page' ); ?>18 <?php get_template_part( 'content', 'page' ); ?> 19 19 20 <?php comments_template( '', true ); ?> 20 <?php comments_template( '', true ); ?> 21 22 <?php endwhile; // end of the loop. ?> 21 23 22 24 </div><!-- #content -->
Note: See TracChangeset
for help on using the changeset viewer.