Déplacement du bouton langues à droite du sélecteur toujours affiché
This commit is contained in:
parent
2758ec5f1b
commit
1d083f5f19
@ -907,21 +907,22 @@ class layout extends common
|
|||||||
$leftItems = '';
|
$leftItems = '';
|
||||||
// Sélecteur de langues
|
// Sélecteur de langues
|
||||||
if ($this->getUser('group') >= self::GROUP_EDITOR) {
|
if ($this->getUser('group') >= self::GROUP_EDITOR) {
|
||||||
$c = 0;
|
|
||||||
$leftItem = '';
|
$leftItem = '';
|
||||||
foreach (self::$languages as $key => $value) {
|
foreach (self::$languages as $key => $value) {
|
||||||
if (is_dir(self::DATA_DIR . $key)) {
|
if (is_dir(self::DATA_DIR . $key)) {
|
||||||
$c++;
|
|
||||||
$location = helper::baseUrl() . 'language/content/' . $key;
|
$location = helper::baseUrl() . 'language/content/' . $key;
|
||||||
$leftItem .= '<option name="' . $key . '" value="' . $location . '" ' . ($key === self::$i18nContent ? 'selected' : '') . '>' . $value . '</option>';
|
$leftItem .= '<option name="' . $key . '" value="' . $location . '" ' . ($key === self::$i18nContent ? 'selected' : '') . '>' . $value . '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($c > 1) {
|
|
||||||
$leftItems .= '<li><select id="barSelectLanguage" >';
|
$leftItems .= '<li><select id="barSelectLanguage" >';
|
||||||
$leftItems .= $leftItem;
|
$leftItems .= $leftItem;
|
||||||
$leftItems .= '</select></li>';
|
$leftItems .= '</select></li>';
|
||||||
|
$leftItems .= '<li>' . template::ico('flag', [
|
||||||
|
'help' => 'Langues',
|
||||||
|
'href' => helper::baseUrl() . 'language'
|
||||||
|
]) . '</li>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Liste des pages
|
// Liste des pages
|
||||||
if ($this->getUser('group') >= self::GROUP_EDITOR) {
|
if ($this->getUser('group') >= self::GROUP_EDITOR) {
|
||||||
$leftItems .= '<li><select id="barSelectPage">';
|
$leftItems .= '<li><select id="barSelectPage">';
|
||||||
@ -1057,10 +1058,6 @@ class layout extends common
|
|||||||
'help' => 'Modules',
|
'help' => 'Modules',
|
||||||
'href' => helper::baseUrl() . 'plugin'
|
'href' => helper::baseUrl() . 'plugin'
|
||||||
]) . '</li>';
|
]) . '</li>';
|
||||||
$rightItems .= '<li>' . template::ico('flag', [
|
|
||||||
'help' => 'Langues',
|
|
||||||
'href' => helper::baseUrl() . 'language'
|
|
||||||
]) . '</li>';
|
|
||||||
$rightItems .= '<li>' . template::ico('cog-alt', [
|
$rightItems .= '<li>' . template::ico('cog-alt', [
|
||||||
'help' => 'Configuration',
|
'help' => 'Configuration',
|
||||||
'href' => helper::baseUrl() . 'config'
|
'href' => helper::baseUrl() . 'config'
|
||||||
|
Loading…
Reference in New Issue
Block a user