wp/wp-content/themes/twentythirteen/image.php
changeset 10 372f2766ea20
parent 7 cf61fcea0001
equal deleted inserted replaced
9:177826044cd9 10:372f2766ea20
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * The template for displaying image attachments
     3  * The template for displaying image attachments
     4  *
     4  *
     5  * @link https://codex.wordpress.org/Template_Hierarchy
     5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
     6  *
     6  *
     7  * @package WordPress
     7  * @package WordPress
     8  * @subpackage Twenty_Thirteen
     8  * @subpackage Twenty_Thirteen
     9  * @since Twenty Thirteen 1.0
     9  * @since Twenty Thirteen 1.0
    10  */
    10  */
    16 
    16 
    17 			<?php
    17 			<?php
    18 				// Start the Loop.
    18 				// Start the Loop.
    19 			while ( have_posts() ) :
    19 			while ( have_posts() ) :
    20 				the_post();
    20 				the_post();
    21 			?>
    21 				?>
    22 
    22 
    23 			<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
    23 			<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
    24 			<header class="entry-header">
    24 			<header class="entry-header">
    25 				<h1 class="entry-title"><?php the_title(); ?></h1>
    25 				<h1 class="entry-title"><?php the_title(); ?></h1>
    26 
    26 
    89 					<?php endif; ?>
    89 					<?php endif; ?>
    90 
    90 
    91 				</div><!-- .entry-content -->
    91 				</div><!-- .entry-content -->
    92 			</article><!-- #post -->
    92 			</article><!-- #post -->
    93 
    93 
    94 			<?php comments_template(); ?>
    94 				<?php comments_template(); ?>
    95 
    95 
    96 			<?php endwhile; // End the loop. ?>
    96 			<?php endwhile; // End the loop. ?>
    97 
    97 
    98 		</div><!-- #content -->
    98 		</div><!-- #content -->
    99 	</div><!-- #primary -->
    99 	</div><!-- #primary -->