<?php
/* Set Default value when theme option not save at first time setup */
global $wp_query;
$theme_options_data = theme_options_data();
if ( is_page_template( 'page-templates/homepage.php' ) ) {
	$file = thim_template_path();
	include $file;
	return;
} else {
	$file = thim_template_path();
	get_header();
	?>
	<section class="content-area">
		<?php
		// show top heading
		if ( is_404() ) {
			//echo 'test';
			get_template_part( 'inc/templates/404', 'top' );
		} else {
			get_template_part( 'inc/templates/heading', 'top' );
		}
		//show content
		do_action( 'thim_wrapper_loop_start' );
		include $file;
		do_action( 'thim_wrapper_loop_end' );
		?>
	</section>
	<?php
	get_footer();
}
?>