<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}
?>
	<section id="sidebar" class="secondary clearfix" role="complementary">
		<?php
			// Check if Sidebar has widgets
			if( is_active_sidebar('sidebar') ) : 
				dynamic_sidebar('sidebar');
			// Show hint where to add widgets
			else : ?>
			<aside class="widget">
				<h3 class="widgettitle"><?php _e('Widget Area', 'pmthemes'); ?></h3>
				<div class="textwidget">
					<p><?php _e('There are no active widgets to be displayed. Please go to Appearance -> Widgets to setup your sidebar.', 'pmthemes'); ?></p>
				</div>
			</aside>
		<?php endif; ?>
		<?php if ( is_active_sidebar( 'sidebar2' ) ) : ?>
			<div class="sideleft">
			<?php dynamic_sidebar( 'sidebar2' ); ?>
			</div>
		<?php endif; ?>
		<?php if ( is_active_sidebar( 'sidebar3' ) ) : ?>
			<div class="sideright">
			<?php dynamic_sidebar( 'sidebar3' ); ?>
			</div>
		<?php endif; ?>
	</section>
