<?php
/**
 * The main template file.
 *
 * Used to display the homepage when home.php doesn't exist.
 */
?>
<?php get_header(); ?>
<header class="page-main-header">
	<div>
		<?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
		<img src="<?php echo !empty($image)?$image : get_template_directory_uri().'/images/innerpage.jpg';?>" class="ht-page-header-img" alt="<?php the_title();?>" />
	</div>
	<div class="container">
		<?php the_title( '<h1 class="ht-main-title">', '</h1>' ); ?>
		<div class="clearfix"></div>
	</div>
</header><!-- .entry-header -->

<section id="inner-blog-section">
	<div class="home-page">
		<div class="container">
			<?php if ( have_posts() ) :
				$lz_fitness_lite_full_posts = get_theme_mod('lz_fitness_lite_full_posts');
				while ( have_posts() ) : the_post();
					lz_fitness_lite_archive_post();
				endwhile;
				lz_fitness_lite_post_navigation();
			endif; ?>
		</div><!-- .article -->
		</div>
</section>
<?php get_footer(); ?>
