init WIP
@ -141,6 +141,16 @@ class common {
|
||||
self::GROUP_MODERATOR => 'Éditeur',
|
||||
self::GROUP_ADMIN => 'Administrateur'
|
||||
];
|
||||
// Langues proposées
|
||||
public static $i18nList = [
|
||||
'de' => 'Allemand (de)',
|
||||
'en' => 'Anglais (en)',
|
||||
'es' => 'Espagnol (es)',
|
||||
'fr' => 'Français (fr)',
|
||||
'it' => 'Italien (it)',
|
||||
'nl' => 'Néerlandais (nl)',
|
||||
'pt' => 'Portugais (pt)',
|
||||
];
|
||||
public static $timezone;
|
||||
private $url = '';
|
||||
// Données de site
|
||||
@ -2962,4 +2972,19 @@ class layout extends common {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Affiche le cadre avec les drapeaux
|
||||
*/
|
||||
public function showi18n() {
|
||||
if ( $this->getData(['translate','active']) === true
|
||||
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')) {
|
||||
echo '<div id="i18nContainer"><ul>';
|
||||
foreach (self::$i18nList as $key => $value) {
|
||||
echo '<li>';
|
||||
echo '<img class= "flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $key . '.png" />';
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ul></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -695,6 +695,7 @@ nav::before {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
/* Menu vertical */
|
||||
|
||||
.menuSide,
|
||||
@ -709,6 +710,29 @@ li .menuSideChild {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/* Container des drapeaux */
|
||||
|
||||
#i18nContainer {
|
||||
z-index: 100;
|
||||
position: absolute ;
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
margin: 5px;
|
||||
top: 5px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
#i18nContainer ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#i18nContainer img {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Corps */
|
||||
@media (min-width:768px) {
|
||||
|
@ -31,6 +31,7 @@ $lan = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); ?>
|
||||
<?php $layout->showBar(); ?>
|
||||
<?php endif;?>
|
||||
<?php $layout->showNotification(); ?>
|
||||
<?php $layout->showi18n();?>
|
||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
||||
<!-- Menu dans le fond du site avant la bannière -->
|
||||
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
|
||||
@ -193,7 +194,8 @@ $lan = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); ?>
|
||||
if ($blockleft !== "") :?>
|
||||
<div class="<?php echo $blockleft; ?>" id="contentLeft"><aside><?php $layout->showBarContentLeft(); ?></aside></div>
|
||||
<?php endif; ?>
|
||||
<div class="<?php echo $content; ?>" id="contentSite"><?php $layout->showContent();
|
||||
<div class="<?php echo $content; ?>" id="contentSite">
|
||||
<?php $layout->showContent();
|
||||
if (file_exists(self::DATA_DIR . 'body.inc.html')) {
|
||||
include(self::DATA_DIR . 'body.inc.html');
|
||||
}
|
||||
|
BIN
core/vendor/i18n/png/de.png
vendored
Normal file
After Width: | Height: | Size: 119 B |
BIN
core/vendor/i18n/png/en.png
vendored
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
core/vendor/i18n/png/es.png
vendored
Normal file
After Width: | Height: | Size: 287 B |
BIN
core/vendor/i18n/png/fr.png
vendored
Normal file
After Width: | Height: | Size: 96 B |
BIN
core/vendor/i18n/png/it.png
vendored
Normal file
After Width: | Height: | Size: 96 B |
BIN
core/vendor/i18n/png/nl.png
vendored
Normal file
After Width: | Height: | Size: 108 B |
BIN
core/vendor/i18n/png/pt.png
vendored
Normal file
After Width: | Height: | Size: 395 B |