Current File : /home/kelaby89/cartel.express/wp-content/themes/detailx/image.php
<?php
/**
 * The template to display the attachment
 *
 * @package DETAILX
 * @since DETAILX 1.0
 */


get_header();

while ( have_posts() ) {
	the_post();

	// Display post's content
	get_template_part( apply_filters( 'detailx_filter_get_template_part', 'templates/content', 'single-' . detailx_get_theme_option( 'single_style' ) ), 'single-' . detailx_get_theme_option( 'single_style' ) );

	// Parent post navigation.
	$detailx_posts_navigation = detailx_get_theme_option( 'posts_navigation' );
	if ( 'links' == $detailx_posts_navigation ) {
		?>
		<div class="nav-links-single<?php
			if ( ! detailx_is_off( detailx_get_theme_option( 'posts_navigation_fixed', 0 ) ) ) {
				echo ' nav-links-fixed fixed';
			}
		?>">
			<?php
			the_post_navigation( apply_filters( 'detailx_filter_post_navigation_args', array(
					'prev_text' => '<span class="nav-arrow"></span>'
						. '<span class="meta-nav" aria-hidden="true">' . esc_html__( 'Published in', 'detailx' ) . '</span> '
						. '<span class="screen-reader-text">' . esc_html__( 'Previous post:', 'detailx' ) . '</span> '
						. '<h5 class="post-title">%title</h5>'
						. '<span class="post_date">%date</span>',
			), 'image' ) );
			?>
		</div>
		<?php
	}

	// Comments
	do_action( 'detailx_action_before_comments' );
	comments_template();
	do_action( 'detailx_action_after_comments' );
}

get_footer();