<!-- BEGIN sidebar -->
<div id="sidebar">

	<?php if ( !function_exists('dynamic_sidebar')
	|| !dynamic_sidebar(1) ) : ?>

	<!-- begin search -->
	<div class="box">
	<h2>جستجو</h2>
	<form action="<?php echo get_option('home'); ?>/">
	<input type="text" name="s" value="<?php the_search_query(); ?>" />
	<button type="submit"></button>
	</form>
	</div>
	<!-- end search -->
	
	<!-- begin blog subscription -->
	<div class="box">
	<h2>اشتراک</h2>
	<ul class="subscribe">
	<li class="rss1"><a href="#">RSS</a></li>
	<li class="rss2"><a href="#">RSS</a></li>
	<li class="twitter"><a href="#">Twitter</a></li>
	<li class="linkedin"><a href="#">LinkedIn</a></li>
	<li class="stumbleupon"><a href="#">StumbleUpon</a></li>
	<li class="delicious"><a href="#">Delicious</a></li>
	<li class="facebook"><a href="#">Facebook</a></li>
	</ul>
	</div>
	<!-- end blog subscription -->
	
	<!-- begin advertisement -->
	<div class="box">
	<h2>تبلیغات</h2>
	<div class="ads">
	<a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad125x125.jpg" alt="Advertisement" /></a>
	<a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad125x125.jpg" alt="Advertisement" /></a>
	<a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad125x125.jpg" alt="Advertisement" /></a>
	<a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad125x125.jpg" alt="Advertisement" /></a>
	</div>
	</div>
	<!-- end advertisement -->
	
	<!-- begin popular articles -->
	<div class="box">
	<h2>مطالب پرطرفدار</h2>
	<ul class="popular">
	<?php dp_popular_posts(4); ?>
	</ul>
	</div>
	<!-- end popular articles -->
	
	<!-- begin flickr photos -->
	<div class="box">
	<h2>تصاویر فلیکر</h2>
	<div class="flickr">
	<?php if (function_exists('get_flickrRSS')) get_flickrRSS(); ?>
	</div>
	</div>
	<!-- end flickr photos -->
	
	<!-- begin featured video -->
	<div class="box">
	<h2>ویدئو</h2>
	<div class="video">
	<script type="text/javascript">showVideo('<?php echo dp_settings("youtube") ?>');</script>
	</div>
	</div>
	<!-- end featured video -->
	
	<!-- begin tag cloud -->
	<div class="box">
	<h2>ابرچسب</h2>
	<div class="tags">
	<?php wp_tag_cloud(); ?>
	</div>
	</div>
	<!-- end tag cloud -->
	
	<?php endif; ?>

</div>
<!-- END sidebar -->
