1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<section class="Footer-locales">
<div class="u-relative">
<div class="o-flux" data-toggle="dropdown">
<div class="o-flux-body">
<div class="c-input u-alignLeft dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false" aria-controls="locale-dropdown">
<input type="text" id="footerSelectLocale" class="c-input-field is-focused u-white-bg u-cursorPointer" value="<?php if($_SESSION['locale']=='en_GB'){ echo 'English';}else{echo 'Français';}?> <?php echo $currency['symbol'];?>" readonly="">
<label for="footerSelectLocale" class="c-input-label">
<span>Language</span>
</label>
</div>
</div>
</div>
<div id="locale-dropdown" class="Dropdown Dropdown--locales dropdown-menu NavigationMenu NavigationMenu--locales u-clearfix" style="width: 250px;">
<ul class="u-reset u-right">
<?php
if($_SESSION['locale']=='en_GB')
{
$currecy=select_query("SELECT * FROM currency_table WHERE language='fr_FR'")[0];
?>
<li>
<a data-lang="fr_FR" class="lang notranslate js-optInExcluded" rel="nofollow">
<img src="https://d1ovtcjitiy70m.cloudfront.net/vi-1/images/icons/flags/svg/fr.svg" alt="" aria-hidden="true" width="20" height="15">
French <?php echo $currecy['symbol'];?>
</a>
</li>
<?php
}
else
{
$currecy=select_query("SELECT * FROM currency_table WHERE language='en_GB'")[0];
?>
<li>
<a data-lang="en_GB" class="lang notranslate js-optInExcluded" rel="nofollow">
<img src="https://d1ovtcjitiy70m.cloudfront.net/vi-1/images/icons/flags/svg/gb.svg" alt="" aria-hidden="true" width="20" height="15">
English <?php echo $currecy['symbol'];?>
</a>
</li>
<?php
}
?>
</ul>
</div> |
Partager