<?php
/**
 * The template for displaying the front page footer widgets.
 *
 * @package Claydell Media
 */
    
	if ( ! is_active_sidebar( 'front-footer-sidebar-1' ) 
		&& ! is_active_sidebar( 'front-footer-sidebar-2' ) 
		&& ! is_active_sidebar( 'front-footer-sidebar-3' ) )
	return;
?>

	<div id="front-footer-widget" class="secondary">
		<?php if ( is_active_sidebar( 'front-footer-sidebar-1' ) ) : ?>
		<div class="front-widget-container">
		<div id="front-footer-widget-1">
			<?php dynamic_sidebar('front-footer-sidebar-1'); ?>
		</div><!-- #front-footer-widget-1 -->
		<?php endif; ?>
		
		<?php if ( is_active_sidebar( 'front-footer-sidebar-2' ) ) : ?>
		<div id="front-footer-widget-2">
			<?php dynamic_sidebar('front-footer-sidebar-2'); ?>
		</div><!-- #front-footer-widget-2 -->
		<?php endif; ?>
		
		<?php if ( is_active_sidebar( 'front-footer-sidebar-3' ) ) : ?>
		<div id="front-footer-widget-3">
			<?php dynamic_sidebar('front-footer-sidebar-3'); ?>

			<aside id="meta" class="widget">
				<h3 class="widget-title"><?php _e( 'Social Media', 'claydell-media' ); ?></h3>
				<div class="social-media">
					<?php get_template_part( 'inc/socialmedia' ); ?>
				</div>
			</aside><!-- .social-media-->

			<aside id="meta" class="widget">
				<h3 class="widget-title"><?php _e( 'Meta', 'claydell-media' ); ?></h3>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
				</ul>
			</aside><!-- #meta .widget-->
		</div><!-- #front-footer-widget-3 -->
		</div><!-- .front-widget-container -->
		<?php endif; ?>
	</div><!-- #front-footer-widget .secondary -->