<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package coral-parallax
 */
?>

	</div><!-- #content -->
    
 <?php if(is_front_page()){ ?>
 
 <div class="grid-container" >
 <h1 class="entry-title" style="color:#32bc66; border-top:1px solid #eee; padding-top:20px; padding-bottom:20px;" align="center">Products</h1>
 <?php dynamic_sidebar( 'home-products' ); ?>
 </div>
 
   
    <div class="message-sec">
   <div class="grid-container" >
   <div class="grid-85 push-10" >
	<?php dynamic_sidebar( 'message' ); ?>
    </div>
	</div>
    </div>
    
    <div id="upperwrap">
	<div id="upper" class="grid-container">
	<?php if ( is_active_sidebar( 'upper-1' ) || is_active_sidebar( 'upper-2' ) || is_active_sidebar( 'upper-3' ) || is_active_sidebar( 'upper-4' ) ) : ?>	

		<div id="upper-widgets" class="grid-parent grid-100 tablet-grid-100 mobile-grid-100">
			<?php if ( is_active_sidebar( 'upper-1' ) ) : ?>
			<div class="<?php coral_parallax_upper_widget_class(); ?>" id="upper-widget-1">
				<?php dynamic_sidebar( 'upper-1' ); ?>
			</div>
			<?php endif; ?>
			<?php if ( is_active_sidebar( 'upper-2' ) ) : ?>
			<div class="<?php coral_parallax_upper_widget_class(); ?>" id="upper-widget-2">
				<?php dynamic_sidebar( 'upper-2' ); ?>
			</div>
			<?php endif; ?>
			<?php if ( is_active_sidebar( 'upper-3' ) ) : ?>
			<div class="<?php coral_parallax_upper_widget_class(); ?>" id="upper-widget-3">
				<?php dynamic_sidebar( 'upper-3' ); ?>
			</div>
			<?php endif; ?>
			<?php if ( is_active_sidebar( 'upper-4' ) ) : ?>
			<div class="<?php coral_parallax_upper_widget_class(); ?>" id="upper-widget-4">
				<?php dynamic_sidebar( 'upper-4' ); ?>
			</div>
			<?php endif; ?>
		</div>
	<?php endif; ?>
	</div><!-- #upper -->
  </div>
  
 <?php }?>
    
    
  </div><!-- #contentwrap -->
  <div id="footerwrap">
	<footer id="colophon" class="site-footer grid-container" role="contentinfo">
		<div>
			<?php if ( is_active_sidebar( 'footer' ) ) dynamic_sidebar( 'footer' ); ?>
		</div>
		<?php /*?><div id="social1" class="egrid <?php coral_parallax_social_class(); ?>">
			<?php if ( has_nav_menu( 'social' ) ) : ?>
					<nav class="social-navigation alignright" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'coral-parallax' ); ?>">
						<?php
							wp_nav_menu( array(
								'theme_location' => 'social',
								'menu_class'     => 'social-links-menu',
								'depth'          => 1,
								'link_before'    => '<span class="screen-reader-text">',
								'link_after'     => '</span>' . '<i class="fa fa-question"></i>' ,
							) );
						?>
					</nav><!-- .social-navigation -->
			<?php endif; ?>
			<a id="designer" class="alignright" href="http://www.coralthemes.com/"><?php echo __( 'Coral Themes', 'coral-parallax' ); ?></a>
		</div><?php */?>
	</footer><!-- #colophon -->
  </div><!-- #footerwrap -->	
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
