class i18nFlag + ul

This commit is contained in:
fredtempez 2021-11-12 09:24:53 +01:00
parent 72a936e9ef
commit 9d76304aca
2 changed files with 7 additions and 8 deletions

View File

@ -2070,17 +2070,16 @@ class common {
( isset($_COOKIE['ZWII_I18N_SCRIPT'])
AND $_COOKIE['ZWII_I18N_SCRIPT'] === $key
) ) {
$select = ' id="i18nFlagSelected" ';
$select = ' class="i18nFlagSelected" ';
} else {
$select = ' id="i18nFlag" ';
$select = ' class="i18nFlag" ';
}
echo '<li>';
echo '<a href="' . helper::baseUrl() . 'translate/language/' . $key . '/' . $this->getData(['config', 'i18n',$key]) . '/' . $this->getUrl(0) . '"><img ' . $select . ' class="flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $key . '.png" /></a>';
echo '<a href="' . helper::baseUrl() . 'translate/language/' . $key . '/' . $this->getData(['config', 'i18n',$key]) . '/' . $this->getUrl(0) . '"><img ' . $select . ' class="flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $key . '.png" alt=' . $key . '/></a>';
echo '</li>';
}
}
echo '</ul>';
}
}

View File

@ -697,11 +697,11 @@ li .menuSideChild {
/* Drapeaux */
#i18nFlag {
.i18nFlag {
width: 70%;
}
#i18nFlagSelected {
.i18nFlagSelected {
width: 100%;
}
@ -714,12 +714,12 @@ li .menuSideChild {
@media screen and (max-width:1024px){
#i18nFlag {
.i18nFlag {
width: 100%;
padding: 5px;
}
#i18nFlagSelected {
.i18nFlagSelected {
width: 130%;
padding: 5px;
}