<div class="page-margin">
   <div class="footer-wrapper">
      <?php 
      $footer_ad = Wo_GetAd('footer', false);
      if (!empty($footer_ad) && $wo['page'] != 'admin' && $wo['page'] != 'welcome') {?>
      <div class="ad-placement-header-footer">
         <?php echo $footer_ad; ?>
      </div>
      <?php } ?>
      <hr>
      <ul class="list-inline <?php echo Wo_RightToLeft('pull-left');?>">
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=home');?>"><?php echo $wo['lang']['home'];?></a></li> - 
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=terms&type=about-us');?>"><?php echo $wo['lang']['about'];?></a></li> - 
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=contact-us');?>"><?php echo $wo['lang']['contact_us'];?></a></li> - 
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=terms&type=privacy-policy');?>"><?php echo $wo['lang']['privacy_policy'];?></a></li> - 
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=terms&type=terms');?>"><?php echo $wo['lang']['terms_of_use'];?></a></li> - 
         <li><a href="<?php echo Wo_SeoLink('index.php?tab1=terms&type=developers');?>"><?php echo $wo['lang']['developers'];?></a></li>
      </ul>
      <div class="<?php echo Wo_RightToLeft('pull-right');?>">
         <div class="dropdown dropup">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
            <i class="fa fa-language"></i> <?php echo $wo['lang']['language'];?> <span class="caret"></span>
            </a>
            <ul class="dropdown-menu" role="menu" style="width: 60px; min-width: 80px; font-size: 12px;">
               <?php
               foreach (Wo_GetLanguages() as $lang) {
                  $language = str_replace(".php", "" ,$lang);
                  $languages_name = ucfirst(strtolower($language));
                  $link = ($wo['config']['seoLink'] == 1) ? '?lang=' . $language: '?&lang=' . $language;
                ?>
               <li><a href="<?php echo $link;?>"><?php echo $languages_name;?></a></li>
               <?php } ?>
            </ul>
         </div>
      </div>
      <div class="clear"></div>
      <div class="footer-powered">
         <p><?php echo $wo['lang']['copyrights'];?></p>
      </div>
   </div>
</div>