forked from ZwiiCMS-Team/ZwiiCMS
11506 bug barre de membres
This commit is contained in:
parent
61c14b4189
commit
ece2ed97ad
@ -1551,7 +1551,7 @@ class common {
|
||||
}
|
||||
// Affichage de la barre de membre simple
|
||||
if ( $this->getUser('group') === self::GROUP_MEMBER
|
||||
&& $this->getData(['theme','footer','displayMemberBar']) === true
|
||||
&& $this->getData(['theme','footer','memberBar']) === true
|
||||
) {
|
||||
$items .= '<span id="footerDisplayMemberAccount"';
|
||||
$items .= $this->getData(['theme','footer','displaymemberAccount']) === false ? ' class="displayNone"' : '';
|
||||
@ -1669,9 +1669,7 @@ class common {
|
||||
}
|
||||
// Commandes pour les membres simples
|
||||
if($this->getUser('group') == self::GROUP_MEMBER
|
||||
&& ( $this->getData(['theme','menu','memberBar']) === true
|
||||
|| $this->getData(['theme','footer','displayMemberBar']) === false
|
||||
)
|
||||
&& $this->getData(['theme','menu','memberBar']) === true
|
||||
) {
|
||||
if( $this->getData(['user', $this->getUser('id') , 'files']) === true) $itemsRight .= '<li><a href="' . helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR.'core.json') .'" data-tippy-content="Gérer les fichiers" data-lity>' . template::ico('folder') . '</a></li>';
|
||||
$itemsRight .= '<li><a href="' . helper::baseUrl() . 'user/edit/' . $this->getUser('id'). '/' . $_SESSION['csrf'] . '" data-tippy-content="Gérer mon compte">' . template::ico('user', 'right') . '</a></li>';
|
||||
|
@ -837,7 +837,17 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
|
||||
// Mise à jour
|
||||
$this->setData(['core', 'dataVersion', 11400]);
|
||||
}
|
||||
// Version 11.5.06
|
||||
if ($this->getData(['core', 'dataVersion']) < 11506) {
|
||||
|
||||
// Renommage de la barre de membre dans le pied de page
|
||||
$data = $this->getData(['theme', 'footer', 'displayMemberBar']);
|
||||
$this->setData(['theme', 'footer', 'memberBar', $data]);
|
||||
$this->deleteData(['theme', 'footer', 'displayMemberBar']);
|
||||
|
||||
// Mise à jour
|
||||
$this->setData(['core', 'dataVersion', 11506]);
|
||||
}
|
||||
// Version 12.0.00
|
||||
if ($this->getData(['core', 'dataVersion']) < 12000) {
|
||||
// Supprime un cookie non nécessaire
|
||||
@ -850,4 +860,4 @@ if ($this->getData(['core', 'dataVersion']) < 12000) {
|
||||
|
||||
// Mise à jour
|
||||
$this->setData(['core', 'dataVersion', 11400]);
|
||||
}
|
||||
}
|
@ -255,7 +255,7 @@ class init extends common {
|
||||
'displayCookie' => false,
|
||||
'displayLegal' => false,
|
||||
'displaySearch' => false,
|
||||
'displayMemberBar' => false,
|
||||
'memberBar' => true,
|
||||
'template' => '3'
|
||||
],
|
||||
'header' => [
|
||||
@ -298,7 +298,7 @@ class init extends common {
|
||||
'activeColor' => 'rgba(255, 255, 255, 1)',
|
||||
'activeTextColor' => 'rgba(255, 255, 255, 1)',
|
||||
'radius' => '0px',
|
||||
'memberBar' => true,
|
||||
'memberBar' => false,
|
||||
'burgerLogo' => '',
|
||||
'burgerContent' => 'title',
|
||||
'width' => 'container'
|
||||
|
@ -379,7 +379,7 @@ class theme extends common {
|
||||
'displayCookie' => $this->getInput('themefooterDisplayCookie', helper::FILTER_BOOLEAN),
|
||||
'displayLegal' => $this->getInput('themeFooterDisplayLegal', helper::FILTER_BOOLEAN),
|
||||
'displaySearch' => $this->getInput('themeFooterDisplaySearch', helper::FILTER_BOOLEAN),
|
||||
'displayMemberBar'=> $this->getInput('themeFooterDisplayMemberBar', helper::FILTER_BOOLEAN),
|
||||
'memberBar'=> $this->getInput('themeFooterMemberBar', helper::FILTER_BOOLEAN),
|
||||
'template' => $this->getInput('themeFooterTemplate')
|
||||
]]);
|
||||
|
||||
|
@ -118,8 +118,8 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('themeFooterDisplayMemberBar', true, 'Barre du membre', [
|
||||
'checked' => $this->getData(['theme', 'footer', 'displayMemberBar']),
|
||||
<?php echo template::checkbox('themeFooterMemberBar', true, 'Barre du membre', [
|
||||
'checked' => $this->getData(['theme', 'footer', 'memberBar']),
|
||||
'help' => 'Affiche les icônes de gestion du compte et de déconnexion des membres simples connectés, ne s\'applique pas aux éditeurs et administrateurs.'
|
||||
]); ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user