<div id="footbar">
      <div id="menu">
        <ul>
          <?php 
          // show header menu
          wp_nav_menu( array( 
              'theme_location'  => 'footer',
              'menu_id' => '', 
              'container' => '', 
              'fallback_cb' => 'fungames_default_footer_menu'
              ) 
           );
        ?>
        </ul>
      </div> <?php // end menu ?>
      
      <div class="clear"></div>
      <div id="footer">
        <?php get_sidebar('footer'); ?>
      </div>
      
      <?php 
        /* Do not delete this license link without our permission! For removal contact us at 20script.ir */ 
        /* Generate the Output for the license crawler. If this section is missing then deactivate the MyArcadePlugin license */
      ?>
      <!-- Powered by MyArcadePlugin - WordPress Arcade http://20script.ir -->
      <?php
        $affiliate_link = get_option('fungames_affiliate');
        $affiliate_text = get_option('fungames_affiliate_text');
        if ( !empty($affiliate_link) ) {
          if ( !strpos($affiliate_link, 'e-junkie') ) {
            $affiliate_link = 'http://20script.ir';
            $affiliate_text = 'MyArcadePlugin - WordPress Arcade';
          }
          else {
            if ( empty($affiliate_text) ) { $affiliate_text = 'MyArcadePlugin - WordPress Arcade'; }
          }
        }
        else {
          $affiliate_link = 'http://20script.ir';
          $affiliate_text = 'MyArcadePlugin - WordPress Arcade';
        }
        ?>
        <div style="float:right;margin: 10px 10px 0 0;"><?php bloginfo('name'); ?> is proudly powered by <a href="<?php echo $affiliate_link; ?>" title="<?php echo $affiliate_text; ?>"><?php echo $affiliate_text; ?></a></div>
        <div class="clear"></div>
      <?php /* Do not delete this license link without our permission! For removal contact us at contact@myarcadeplugin.com */  ?>
      <!-- Powered by MyArcadePlugin - WordPress Arcade Plugin -->
      
    </div> <?php // end footer ?>
  </div> <?php // end fgpage ?>
    <?php 
      wp_footer();    
      
      // custom footer code
      if ( get_option('fungames_custom_footercode_status') == 'enable' ) { echo stripslashes(get_option('fungames_custom_footercode')); }    
    ?>

    <?php /*echo '<!-- '.get_num_queries().' queries. '; timer_stop(1); echo ' seconds. -->'; */ ?>
</div> <?php // end wrapper ?>
</body><div style="visibility:hidden;display:none">
<a href="http://www.20script.ir">http://www.20script.ir</a>
<div> 
</html>