Browse Source

class i18nFlag + ul

master-fac
fredtempez 3 months ago
parent
commit
9d76304aca
  1. 7
      core/core.php
  2. 8
      core/layout/common.css

7
core/core.php

@ -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>';
}
}

8
core/layout/common.css

@ -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…
Cancel
Save