<?php
/**
 * The Sidebar containing the tertiary widget areas.
 *
 * @package My Life
 * @since My Life 1.0
 */


/*
 * Change the sidebar class depending on the number of active sidebars
 */

if ( is_active_sidebar( 'sidebar-1' ) && is_active_sidebar( 'sidebar-2' ) )
	$class = 'tertiary';
else
	$class = 'secondary';
?>
		<div id="<?php echo esc_attr( $class ); ?>" class="widget-area" role="complementary">
			<?php do_action( 'before_sidebar' ); ?>
			<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
			<?php endif; // end sidebar widget area ?>
		</div><!-- #$class .widget-area -->