<?php /**
 * The template for displaying image attachments
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */

// Retrieve attachment metadata.
$metadata = wp_get_attachment_metadata();

get_header();
?>

	<section id="primary" class="content-area image-attachment">
		<div id="content" class="site-content" role="main"><center><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>&#13;
<!-- kvadrat2 -->&#13;
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6024983979000104" data-ad-slot="6512403466" data-ad-format="auto" data-full-width-responsive="true"></ins>&#13;
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>&#13;
</center>&#13;
<div style="height:20px"></div>

	<?php // Start the Loop.
	while ( have_posts() ) :
		the_post();
		?>
		<article id="post-&lt;?php the_ID(); ?&gt;" post_class>&gt;
			<header class="entry-header">
				<?php the_title( '<h1 class="entry-title">', '' ); ?&gt;

				<div class="entry-meta">

					<span class="entry-date"><time class="entry-date" datetime="&lt;?php echo esc_attr( get_the_date( 'c' ) ); ?&gt;"><?php echo esc_html( get_the_date() ); ?></time></span>

					<span class="full-size-link"><a href="&lt;?php%20echo%20esc_url(%20wp_get_attachment_url()%20);%20?&gt;"><?php echo esc_html( $metadata['width'] ); ?> &times; <?php echo esc_html( $metadata['height'] ); ?></a></span>

					<span class="parent-post-link"><a href="&lt;?php%20echo%20esc_url(%20get_permalink(%20%24post-&gt;post_parent%20)%20);%20?&gt;" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?&gt;</a></span>
					<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '' ); ?&gt;
				</div><!-- .entry-meta -->
			</header><!-- .entry-header -->

			<div class="entry-content">
				<div class="entry-attachment">
					<div class="attachment">
						<?php twentyfourteen_the_attached_image(); ?>
					</div><!-- .attachment -->

					<?php if ( has_excerpt() ) : ?>
						<div class="entry-caption">
							<?php the_excerpt(); ?>
						</div><!-- .entry-caption -->
						<?php endif; ?>
				</div><!-- .entry-attachment -->

				<?php the_content();
					wp_link_pages(
						array(
							'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
							'after'       =&gt; '</div>',
							'link_before' =&gt; '<span>',
							'link_after'  =&gt; '</span>',
						)
					);
				?&gt;
				</div><!-- .entry-content -->
			</article><!-- #post-<?php the_ID(); ?> -->

			<nav id="image-navigation" class="navigation image-navigation">
				<div class="nav-links">
				<?php previous_image_link( false, '<div class="previous-image">' . __( 'Previous Image', 'twentyfourteen' ) . '</div>' ); ?&gt;
				<?php next_image_link( false, '<div class="next-image">' . __( 'Next Image', 'twentyfourteen' ) . '</nav><center><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>&#13;
<!-- kvadrat2 -->&#13;
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6024983979000104" data-ad-slot="6512403466" data-ad-format="auto" data-full-width-responsive="true"></ins>&#13;
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>&#13;
</center>&#13;
<div style="height:20px"></div></div>' ); ?&gt;
				<!-- .nav-links -->
			<!-- #image-navigation -->

			<?php comments_template(); ?>

		<?php endwhile; // End of the loop. ?>

		<!-- #content -->
	</section><!-- #primary -->

<?php get_sidebar();
get_footer();
</body>