wp/wp-content/themes/twentyfourteen/image.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
--- a/wp/wp-content/themes/twentyfourteen/image.php	Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-content/themes/twentyfourteen/image.php	Mon Oct 14 17:39:30 2019 +0200
@@ -18,45 +18,48 @@
 
 	<?php
 		// Start the Loop.
-		while ( have_posts() ) : the_post();
+	while ( have_posts() ) :
+		the_post();
 	?>
-			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-				<header class="entry-header">
-					<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
+		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+			<header class="entry-header">
+				<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
 
-					<div class="entry-meta">
+				<div class="entry-meta">
 
-						<span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span>
+					<span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span>
 
-						<span class="full-size-link"><a href="<?php echo esc_url( wp_get_attachment_url() ); ?>"><?php echo esc_html( $metadata['width'] ); ?> &times; <?php echo esc_html( $metadata['height'] ); ?></a></span>
+					<span class="full-size-link"><a href="<?php echo esc_url( wp_get_attachment_url() ); ?>"><?php echo esc_html( $metadata['width'] ); ?> &times; <?php echo esc_html( $metadata['height'] ); ?></a></span>
 
-						<span class="parent-post-link"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span>
-						<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
-					</div><!-- .entry-meta -->
-				</header><!-- .entry-header -->
+					<span class="parent-post-link"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span>
+					<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
+				</div><!-- .entry-meta -->
+			</header><!-- .entry-header -->
 
-				<div class="entry-content">
-					<div class="entry-attachment">
-						<div class="attachment">
-							<?php twentyfourteen_the_attached_image(); ?>
-						</div><!-- .attachment -->
+			<div class="entry-content">
+				<div class="entry-attachment">
+					<div class="attachment">
+						<?php twentyfourteen_the_attached_image(); ?>
+					</div><!-- .attachment -->
 
-						<?php if ( has_excerpt() ) : ?>
+					<?php if ( has_excerpt() ) : ?>
 						<div class="entry-caption">
 							<?php the_excerpt(); ?>
 						</div><!-- .entry-caption -->
 						<?php endif; ?>
-					</div><!-- .entry-attachment -->
+				</div><!-- .entry-attachment -->
 
-					<?php
-						the_content();
-						wp_link_pages( array(
+				<?php
+					the_content();
+					wp_link_pages(
+						array(
 							'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
 							'after'       => '</div>',
 							'link_before' => '<span>',
 							'link_after'  => '</span>',
-						) );
-					?>
+						)
+					);
+				?>
 				</div><!-- .entry-content -->
 			</article><!-- #post-## -->