<?php
/**
 * The Template for displaying the single photo posts
 *
 * @package WordPress
 * @subpackage Tattoopress
 * @version 3.3.4
 */
get_header( 'photo' );
?>
	<div id="primary" class="content-area">
		<main id="content" class="site-content clearfix" role="main">
			<?php /* The loop */ ?>

			<?php
			while ( have_posts() ) :
				the_post();

				/*
				 * Attachment post content
				 */
				get_template_part( tattoopress_get_template_dirname() . '/components/attachment/content', 'single' );

			endwhile;
			?>
			<div class="wrap photo-meta-container">
				<div class="photo-tags">
					<?php echo get_the_term_list( get_the_ID(), 'photo_tag', '<strong>' . esc_html__( 'Tags', 'tattoopress' ) . '</strong>: ', ', ', '' ); ?>
				</div>
				<?php if ( tattoopress_get_related_photos() ) : ?>
					<hr class="similar-photos-separator">
					<h3 class="similar-photos-title">
						<?php esc_html_e( 'Similar Photos', 'tattoopress' ); ?>
					</h3>
					<div class="similar-photos clearfix">
						<?php echo tattoopress_get_related_photos(); ?>
					</div><!-- .similar-photo -->
				<?php endif; ?>
				<?php
					/**
					 * After content
					 */
					do_action( 'tattoopress_attachment_content_after' );
				?>
			</div>
		</main><!-- main#content .site-content-->
	</div><!-- #primary .content-area -->
<?php
get_footer( 'photo' );
?>
