<?php
get_header();
include get_template_directory() . '/inc/menus/menu.php';
?>

<main role="main">

	<?php include get_template_directory() . '/inc/slides/ken-burns-slides.php'; ?>



	<section>
		<?php
		$front_page_id = get_option('page_on_front');

		if ($front_page_id) :
			global $post;
			$post = get_post($front_page_id);

			if ($post) :
				setup_postdata($post);
				?>

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<?php the_content(); ?>
				</article>

				<?php
				wp_reset_postdata();
			else :
				?>
				<article>
					<h2><?php _e('Front page content not found.', 'kipya'); ?></h2>
				</article>
				<?php
			endif;
		else :
			?>
			<article>
				<h2><?php _e('No front page is set in Settings → Reading.', 'kipya'); ?></h2>
			</article>
			<?php
		endif;
		?>
	</section>

</main><!-- Main Area -->


<?php get_footer(); ?>