<?php
/**
 * Sidebar Template
 *
 * The Sidebar template houses the HTML used for the Primary & Secondary Widget Area 
 * sidebars. It will first check if the sidebars is active before displaying anything.
 *
 * @package Swedish Greys
 * @subpackage Template
 */

if (!in_array('layout-1col-fixed', get_body_class())) :

	if ( is_active_sidebar('primary_widget_area') ) : ?>
		<div id="primary" class="aside primary-aside widget-area">
    		<ul class="xoxo">
    	    	<?php dynamic_sidebar('primary_widget_area'); ?>
    	    </ul>
		</div><!-- #primary .widget-area -->
	<?php endif; ?>

	<?php if ( is_active_sidebar('secondary_widget_area') ) : ?>
		<div id="secondary" class="aside secondary-aside widget-area">
			<ul class="xoxo">
				<?php dynamic_sidebar('secondary_widget_area'); ?>
			</ul>
		</div><!-- #secondary .widget-area -->
	<?php endif; 
endif;?>