<?php
/**
 * The template for displaying the footer.
 *
 * Www.20script.ir
 * @subpackage Link
 */
?>
	</div>

		<!-- Begin footer -->
		<div class="footer_wrapper">
		
		<div id="footer">
			<ul class="sidebar_widget">
				<?php dynamic_sidebar('Footer Sidebar'); ?>
			</ul>
			
			<br class="clear"/>
		
		</div>
		
		<div id="copyright">
			<div id="copyright_left">
		    <?php
		    	/**
		    	 * Get footer text
		    	 */
	
		    	$pp_footer_text = get_option('pp_footer_text');
	
		    	if(empty($pp_footer_text))
		    	{
		    		$pp_footer_text = 'شما میتوانید متن فوتر را در قسمت تنظیمات پوسته تغییر دهید.';
		    	}
		    	
		    	echo stripslashes(html_entity_decode($pp_footer_text));
		    ?><br>قالب سایت: <a href="http://Www.20script.ir/" rel="dofollow" title="بیست اسکریپت">بیست اسکریپت
		</div>
		<div class="social_wrapper">
		    <ul>
		    	<?php
				    $pp_facebook_username = get_option('pp_facebook_username');
				    
				    if(!empty($pp_facebook_username))
				    {
				?>
				<li><a href="http://facebook.com/<?php echo $pp_facebook_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/facebook.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_twitter_username = get_option('pp_twitter_username');
				    
				    if(!empty($pp_twitter_username))
				    {
				?>
				<li><a href="http://twitter.com/<?php echo $pp_twitter_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/twitter.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_flickr_username = get_option('pp_flickr_username');
				    
				    if(!empty($pp_flickr_username))
				    {
				?>
				<li><a title="Flickr" href="http://flickr.com/people/<?php echo $pp_flickr_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/flickr.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_youtube_username = get_option('pp_youtube_username');
				    
				    if(!empty($pp_youtube_username))
				    {
				?>
				<li><a title="Youtube" href="http://youtube.com/user/<?php echo $pp_youtube_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/youtube.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_vimeo_username = get_option('pp_vimeo_username');
				    
				    if(!empty($pp_vimeo_username))
				    {
				?>
				<li><a title="Vimeo" href="http://vimeo.com/<?php echo $pp_vimeo_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/vimeo.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_tumblr_username = get_option('pp_tumblr_username');
				    
				    if(!empty($pp_tumblr_username))
				    {
				?>
				<li><a title="Tumblr" href="http://<?php echo $pp_tumblr_username; ?>.tumblr.com"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/tumblr.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_google_username = get_option('pp_google_username');
				    
				    if(!empty($pp_google_username))
				    {
				?>
				<li><a title="Google+" href="<?php echo $pp_google_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/google.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_dribbble_username = get_option('pp_dribbble_username');
				    
				    if(!empty($pp_dribbble_username))
				    {
				?>
				<li><a title="Dribbble" href="http://dribbble.com/<?php echo $pp_dribbble_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/dribbble.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_digg_username = get_option('pp_digg_username');
				    
				    if(!empty($pp_digg_username))
				    {
				?>
				<li><a title="Digg" href="http://digg.com/<?php echo $pp_digg_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/digg.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_linkedin_username = get_option('pp_linkedin_username');
				    
				    if(!empty($pp_linkedin_username))
				    {
				?>
				<li><a title="Linkedin" href="<?php echo $pp_linkedin_username; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/linkedin.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_pinterest_username = get_option('pp_pinterest_username');
				    
				    if(!empty($pp_pinterest_username))
				    {
				?>
				<li><a title="Pinterest" href="http://pinterest.com/<?php echo $pp_pinterest_username; ?>" target="_blank"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/pinterest.png" alt=""/></a></li>
				<?php
				    }
				?>
				<?php
				    $pp_feedburner_id = get_option('pp_feedburner_id');
				    
				    if(!empty($pp_feedburner_id))
				    {
				?>
				<li><a href="<?php echo $pp_feedburner_id; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/social_black/rss.png" alt=""/></a></li>
				<?php
				    }
				?>
		    </ul>
		</div>
		</div>
		
		</div>
		<!-- End footer -->
		
	</div>
	<!-- End template wrapper -->

<?php
		/**
    	*	Setup Google Analyric Code
    	**/
    	include (TEMPLATEPATH . "/google-analytic.php");
?>

<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
</body>
<link rel="canonical" href="http://www.20script.ir" />
</html>