<div id="sidebar">

<?php
/**
 * The Sidebar containing the primary and secondary widget areas.
 *
 * @package WordPress
 * @subpackage Starkers
 * @since Starkers HTML5 3.0
 */
?>

	<aside>
        
        <a href="http://www.pionco.ir/FA/%D9%BE%D8%B1%D9%88%DA%98%D9%87-%D9%87%D8%A7/" class="ProjectMenuIcon"><img src="<?php bloginfo('template_directory'); ?>/images/SideBarIcon01.png"></a>
        <p class="ProjectMenuText"><a href="http://www.pionco.ir/FA/%D9%BE%D8%B1%D9%88%DA%98%D9%87-%D9%87%D8%A7/">لیست تمامی پروژه ها</a></p>
        
        <a href="http://www.pionco.ir/FA/category/under_construction/" class="ProjectMenuIcon"><img src="<?php bloginfo('template_directory'); ?>/images/SideBarIcon02.png"></a>
        <p class="ProjectMenuText"><a href="http://www.pionco.ir/FA/category/under_construction/">پروژه های در دست اجرا</a></p>
        
        <a href="http://www.pionco.ir/FA/category/ended/" class="ProjectMenuIcon"><img src="<?php bloginfo('template_directory'); ?>/images/SideBarIcon03.png"></a>
        <p class="ProjectMenuText"><a href="http://www.pionco.ir/FA/category/ended/">پروژه های خاتمه یافته</a></p>
        
        <a href="http://www.pionco.ir/FA/category/done_by_manager/" class="ProjectMenuIcon"><img src="<?php bloginfo('template_directory'); ?>/images/SideBarIcon04.png"></a>
        <p class="ProjectMenuText"><a href="http://www.pionco.ir/FA/category/done_by_manager/">پروژه های انجام شده توسط مدیر عامل</a></p>
        
        <img class="ProjectMenuIcon" src="<?php bloginfo('template_directory'); ?>/images/SideBarIcon05.png">
        <p class="ProjectMenuText">جستجو در سایت ...</p>
          
        
		<ul>

            
<?php
	/* When we call the dynamic_sidebar() function, it'll spit out
	 * the widgets for that widget area. If it instead returns false,
	 * then the sidebar simply doesn't exist, so we'll hard-code in
	 * some default sidebar stuff just in case.
	 */
	if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
	
			<li>
				<?php get_search_form(); ?>
			</li>

			<li>
				<h3><?php _e( 'Archives', 'starkers' ); ?></h3>
				<ul>
					<?php wp_get_archives( 'type=monthly' ); ?>
				</ul>
			</li>

			<li>
				<h3><?php _e( 'Meta', 'starkers' ); ?></h3>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
				</ul>
			</li>

		<?php endif; // end primary widget area ?>
		</ul>

<?php
	// A second sidebar for widgets, just because.
	if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>

			<ul>
				<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
			</ul>

<?php endif; ?>
	
	</aside>
</div>	
<div class="clear"></div>