Path : /home/vishqocm/vishalwebtech.in/blog/wp-content/themes/katerio/
File Upload :
Current File : /home/vishqocm//vishalwebtech.in//blog/wp-content/themes/katerio/single.php

<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Katerio
 */

get_header();
?>
<div id="primary" class="content-area">
	<?php while ( have_posts() ) : the_post(); ?>
		<?php
		$post_prev = get_previous_post();
		if ( th90_opt( 'single_ajax_cat' ) ) {
			$post_prev = get_previous_post( true );
		}

		if ( th90_opt( 'single_ajax_post' ) && ! empty( $post_prev ) && ! th90_is_amp() ) : ?>
			<div id="single-post-ajax" class="single-post-ajax" data-nextid="<?php echo esc_attr( $post_prev->ID) ; ?>" data-nexturl="<?php echo esc_url( get_permalink( $post_prev->ID ) ); ?>">
				<div class="single-inner-ajax" data-previd="<?php echo esc_attr( get_the_ID() ); ?>" data-prevurl="<?php echo esc_url( get_permalink() ); ?>" data-image="<?php echo esc_url( th90_post_thumbnail_url() ); ?>" data-desc="<?php th90_the_excerpt(); ?>">
					<?php get_template_part( 'template-parts/article/article', th90_opt_override( 'override_post_layout', 'post_layout' ) ); ?>
				</div>
			</div>
			<div id="single-point-ajax" class="single-point-ajax"></div>
		<?php
		else :
			get_template_part( 'template-parts/article/article', th90_opt_override( 'override_post_layout', 'post_layout' ) );
		endif;
		?>

	<?php endwhile; ?>
</div><!-- #primary -->

<?php
get_footer();