<?php 
$pages = Wo_GetCustomPages();
?>
<div class="page-margin">
	<div class="footer-wrapper long_foooter">
		<hr>
		<div class="footer-powered <?php echo Wo_RightToLeft('pull-left');?>">
			<p>
				<?php 
					$copy = str_replace('{site_name}', $wo['config']['siteName'], $wo['lang']['copyrights']);
					echo $copy = str_replace('{date}', date('Y'), $copy);
				?>
			</p>
		</div>
		<div class="lang_selct dropup <?php echo Wo_RightToLeft('pull-right');?>">
			<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
				<svg fill="#7a7a7a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" class="feather feather-translate" style="margin-top: -3px;width: 15px;height: 15px;"><path d="M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z" /></svg> 
				<?php echo $wo['lang']['language'];?>
			</a>
			<ul class="dropdown-menu sun_lang_select_menu">
               <?php
               $langs = Wo_LangsNamesFromDB();
               if (count($langs) > 0) {
                   foreach ($langs as $key => $wo['langs']) {
                   	if ($wo['config'][$wo['langs']] == 1) {
                     $language = $wo['langs'];
                     $languages_name = ucfirst($wo['langs']);
                     $link = ($wo['config']['seoLink'] == 1) ? '?lang=' . $language: '?&lang=' . $language;
                ?>
               <li class="language_select"><a href="<?php echo $link;?>" rel="nofollow" class="<?php echo $languages_name;?>"><?php echo $languages_name;?></a></li>
               <?php } } } ?>
            </ul>
		</div>
		<div class="clear"></div>
		<ul class="list-inline text-center">
			<li><a href="<?php echo $wo['config']['site_url'];?>"><?php echo $wo['lang']['home'];?></a></li>
			<li><a href="<?php echo Wo_SeoLink('index.php?link1=terms&type=about-us');?>"><?php echo $wo['lang']['about'];?></a></li>
			<li><a href="<?php echo Wo_SeoLink('index.php?link1=contact-us');?>"><?php echo $wo['lang']['contact_us'];?></a></li>
			<li><a href="<?php echo Wo_SeoLink('index.php?link1=terms&type=privacy-policy');?>"><?php echo $wo['lang']['privacy_policy'];?></a></li>
			<li><a href="<?php echo Wo_SeoLink('index.php?link1=terms&type=terms');?>"><?php echo $wo['lang']['terms_of_use'];?></a></li>
			<?php  if ($wo['config']['blogs'] == 1) { ?>
				<li><a href="<?php echo Wo_SeoLink('index.php?link1=blogs');?>"><?php echo $wo['lang']['blog'];?></a></li>
			<?php }?>
			<?php if ($wo['config']['developers_page'] == 1)  { ?>
				<li><a data-ajax="?link1=developers" href="<?php echo Wo_SeoLink('index.php?link1=developers');?>"><?php echo $wo['lang']['developers'];?></a></li>
			<?php } ?>
			<?php if (count($pages) > 0) { ?>
				<li>
					<div class="dropdown dropup">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
							<?php echo $wo['lang']['more'];?> <span class="caret"></span>
						</a>
						<ul class="dropdown-menu" role="menu" style="width: auto; min-width: 100px; font-size: 11px;">
							<?php
								if (count($pages) > 0) {
								foreach ($pages as $key => $page) {
							?>
								<li><a href="<?php echo Wo_SeoLink('index.php?link1=site-pages&page_name=' . $page['page_name']);?>"><?php echo $page['page_title'];?></a></li>
							<?php } } ?>
						</ul>
					</div>
				</li> 
			<?php } ?>
		</ul>
	</div>
</div>