<?php
/**
 * The template used for displaying page content in page.php
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php narayana_article_schema( 'CreativeWork' ); ?>>
	<div class="inside-article">
		<?php
		/**
		 * narayana_before_content hook.
		 *
		 *
		 * @hooked narayana_featured_page_header_inside_single - 10
		 */
		do_action( 'narayana_before_content' );

		if ( narayana_show_title() ) : ?>

			<header class="entry-header">
				<?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
			</header><!-- .entry-header -->

		<?php endif;

		/**
		 * narayana_after_entry_header hook.
		 *
		 *
		 * @hooked narayana_post_image - 10
		 */
		do_action( 'narayana_after_entry_header' );
		?>

		<div class="entry-content" itemprop="text">
			<?php
			the_content();

			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'narayana' ),
				'after'  => '</div>',
			) );
			?>
		</div><!-- .entry-content -->

		<?php
		/**
		 * narayana_after_content hook.
		 *
		 */
		do_action( 'narayana_after_content' );
		?>
	</div><!-- .inside-article -->
</article><!-- #post-## -->
