web/wp-content/themes/twentyeleven/content-gallery.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    11 ?>
    11 ?>
    12 
    12 
    13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    14 	<header class="entry-header">
    14 	<header class="entry-header">
    15 		<hgroup>
    15 		<hgroup>
    16 			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    16 			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    17 			<h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
    17 			<h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
    18 		</hgroup>
    18 		</hgroup>
    19 
    19 
    20 		<div class="entry-meta">
    20 		<div class="entry-meta">
    21 			<?php twentyeleven_posted_on(); ?>
    21 			<?php twentyeleven_posted_on(); ?>
    43 				<figure class="gallery-thumb">
    43 				<figure class="gallery-thumb">
    44 					<a href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
    44 					<a href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
    45 				</figure><!-- .gallery-thumb -->
    45 				</figure><!-- .gallery-thumb -->
    46 
    46 
    47 				<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
    47 				<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
    48 						'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    48 						'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    49 						number_format_i18n( $total_images )
    49 						number_format_i18n( $total_images )
    50 					); ?></em></p>
    50 					); ?></em></p>
    51 			<?php endif; ?>
    51 			<?php endif; ?>
    52 			<?php the_excerpt(); ?>
    52 			<?php the_excerpt(); ?>
    53 		<?php endif; ?>
    53 		<?php endif; ?>
    86 		<?php endif; // End if $show_sep ?>
    86 		<?php endif; // End if $show_sep ?>
    87 		<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    87 		<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    88 		<?php endif; // End if comments_open() ?>
    88 		<?php endif; // End if comments_open() ?>
    89 
    89 
    90 		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    90 		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    91 	</footer><!-- #entry-meta -->
    91 	</footer><!-- .entry-meta -->
    92 </article><!-- #post-<?php the_ID(); ?> -->
    92 </article><!-- #post-<?php the_ID(); ?> -->