forked from ZwiiCMS-Team/ZwiiCMS
class i18nFlag + ul
This commit is contained in:
parent
72a936e9ef
commit
9d76304aca
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user