<?php get_header(); ?>

			<div id="content">
				
						
						<div id="inner-content" class="wrap cf">


						<?php
								/*
								* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
								* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
								*/
								$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
								foreach ( $attachments as $k => $attachment ) :
								if ( $attachment->ID == $post->ID )
								break;
								endforeach;

								?>
							
						<div class="page-item">
							<header class="entry-header"> 
							  <h2 class="entry-title">
							    <?php the_title(); ?>
							  </h2>
							</header>
							<div class="the-post-content entry-content" style="text-align:center;">
								<img src="<?php echo esc_url( wp_get_attachment_url( $attachment->ID) ); ?>">
							</div>

						</div>

						


					</div>
					

			</div>

<?php get_footer(); ?>