- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/content-gallery.php
r42343 r43571 33 33 <?php if ( post_password_required() ) : ?> 34 34 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 35 <?php35 <?php 36 36 else : 37 37 $images = twentyeleven_get_gallery_images(); … … 39 39 $total_images = count( $images ); 40 40 $image = reset( $images ); 41 ?>41 ?> 42 42 <figure class="gallery-thumb"> 43 43 <a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> … … 45 45 46 46 <p><em> 47 <?php48 printf(49 _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),50 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',51 number_format_i18n( $total_images )52 );53 47 <?php 48 printf( 49 _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ), 50 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', 51 number_format_i18n( $total_images ) 52 ); 53 ?> 54 54 </em></p> 55 55 <?php endif; // end twentyeleven_get_gallery_images() check ?> 56 <?php the_excerpt(); ?>56 <?php the_excerpt(); ?> 57 57 <?php endif; ?> 58 58 <?php … … 63 63 ) 64 64 ); 65 ?>65 ?> 66 66 </div><!-- .entry-content --> 67 67 <?php endif; ?> … … 73 73 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 74 74 if ( $categories_list ) : 75 ?>75 ?> 76 76 <span class="cat-links"> 77 <?php77 <?php 78 78 printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); 79 $show_sep = true;79 $show_sep = true; 80 80 ?> 81 81 </span> … … 86 86 if ( $tags_list ) : 87 87 if ( $show_sep ) : 88 ?>88 ?> 89 89 <span class="sep"> | </span> 90 90 <?php endif; // End if $show_sep ?> … … 98 98 99 99 <?php if ( comments_open() ) : ?> 100 <?php if ( $show_sep ) : ?>100 <?php if ( $show_sep ) : ?> 101 101 <span class="sep"> | </span> 102 102 <?php endif; // End if $show_sep ?>
Note: See TracChangeset
for help on using the changeset viewer.