<!-- Start Fly ADS -->
<div class="fly_ads_right">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('flay_ad_right');?>
    </div>  

<div class="fly_ads_left">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('flay_ad_left');?>
    </div>

<!-- End Of Fly ADS -->

<?php if( is_user_logged_in() ) : ?>
<div id="fixeduser">
<a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('active_page');?>" class="active-stream" title="فعاليات الموقع"></a>
<a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('smfourms_page');?>" class="fourms-dis" title="نقاشات الاعضاء"></a>
<a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('group_page');?>" class="user-groups" title="مجموعات الاعضاء"></a>
<a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('members_page');?>" class="site-members" title="اعضاء الموقع"></a>
<a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('activeing_page');?>" class="active-account" title="تفعيل العضويه !"></a>
</div>
<?php else : ?>
<?php endif ?>

 </div>
<!-- End Of Colums erea -->

<!-- start of sidbar erea -->
<div id="sidbar">
<div class="tophash"></div>
<div class="centerhash">

<?php get_sidebar(); ?>

</div>
<div class="bottomhash"></div>

</div>
</div>
<!--- end of sidbar erea -->
<div class="clear"></div>
<div class="w960px" style="margin-top: 20px; text-align: center;">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('footer_adss');?>
</div>


<div class="bottomhash"></div>

<div class="clear"></div>
<div class="w960px">
</div>
<!-- start of bottom widget -->
<div id="bottom-widget">


				<?php dynamic_sidebar( 'sidebar-footer' ); ?>





</div>
<div class="clear"></div>
<div class="w960px">
<div id="site_map_footer">
	<?php wp_nav_menu( array( 'theme_location' => 'sitemap-menu', 'container' => false ) ); ?>



<div class="footer_stats">
<h2>احصائيات الموقع</h2>
<?php
$count_posts = wp_count_posts();
$posts = $count_posts->publish;
$count_pages = wp_count_posts('page');
$pages = $count_pages->publish;
$count_comments = get_comment_count();
$comments = $count_comments['approved'];
$user_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->users;");
?>

<div class="articel" title="عدد الاخبار و المقالات">
<span class="artic"></span>
اخبار : <?php echo "".$posts."" ?>
</div>

<div class="footer_comm_author" title="عدد الصفحات المنشوره">
<span class="userreg"></span>
صفحات : <?php echo "".$pages."" ?>
</div>

<div class="footer_comm_author" title="عدد التعليقات">
<span class="commmments"></span>
التعيقات : <?php echo "".$comments."" ?>
</div>

<div class="footer_comm_author" title="الاعضاء المسجلين">
<span class="registttter"></span>
الاعضاء : <?php echo "".$user_count."" ?>
</div>
</div>

</div>
</br></br>
<div style="text-align: center;
margin-top: 110;
width: 100%;
padding-top: 100px;">
Powered by <a style="color:#666" title="Community Legend V 3.0.1"  href="http://mhgoz.com/mcl.php">
Mhgoz Community Legend V 3.0.1
</a>
</div>
<!-- end of bottom widget -->
<script>
<?php global $MHGOZ_Options; $MHGOZ_Options->show('js_code');?>
</script>
<?php global $MHGOZ_Options; $MHGOZ_Options->show('analytecs_code');?>
<style>
<?php global $MHGOZ_Options; $MHGOZ_Options->show('css_code');?>
body{background-image:url(<?php echo get_template_directory_uri(); ?>/theme-files/img/bgs/<?php global $MHGOZ_Options; $MHGOZ_Options->show('site_background');?>) !important;}
</style> 
<!-- start of footer --->
<div id="footer">
<span class="right mhgozfont">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('site_footer_rights');?>
<br>
<div class="footer_menu">
	<?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'container' => false ) ); ?>
</div>
</span>
<a href="http://mhgoz.com" class="left" title="يعمل بواسطه - محجوز بريس" target="_blank"></a> 

</div>
</div>

<!-- end of footer --->


</div>
<!-- end of main body erea -->
	<p id="back-top">
		<a href="#top"><span></span>الاعلى</a>
	</p>

</body>
</html>