Option d'affichage du sélecteur d'espaces
This commit is contained in:
parent
3e8da80e92
commit
489f3b0da6
@ -504,10 +504,14 @@ class layout extends common
|
|||||||
]) .
|
]) .
|
||||||
'</li>';
|
'</li>';
|
||||||
}
|
}
|
||||||
// Commandes pour les membres simples
|
|
||||||
|
/**
|
||||||
|
* Commandes pour les membres simples
|
||||||
|
* Affichage du sélecteur d'espaces
|
||||||
|
*/
|
||||||
if (
|
if (
|
||||||
$this->getUser('group') === self::GROUP_MEMBER
|
$this->getUser('group') === self::GROUP_MEMBER
|
||||||
&& $this->getData(['theme', 'menu', 'memberBar']) === true
|
&& $this->getData(['theme', 'menu', 'selectSpace']) === true
|
||||||
) {
|
) {
|
||||||
if ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))) {
|
if ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))) {
|
||||||
$itemsRight .= '<li><select id="barSelectCourse" >';
|
$itemsRight .= '<li><select id="barSelectCourse" >';
|
||||||
@ -517,6 +521,16 @@ class layout extends common
|
|||||||
}
|
}
|
||||||
$itemsRight .= '</select></li>';
|
$itemsRight .= '</select></li>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Commandes pour les membres simples
|
||||||
|
* Affichage des boutons gestionnaire de fichiers et mon compte
|
||||||
|
*/
|
||||||
|
if (
|
||||||
|
$this->getUser('group') === self::GROUP_MEMBER
|
||||||
|
&& $this->getData(['theme', 'menu', 'memberBar']) === true
|
||||||
|
) {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
($this->getUser('group') >= self::GROUP_MEMBER &&
|
($this->getUser('group') >= self::GROUP_MEMBER &&
|
||||||
$this->getUser('permission', 'filemanager') === true)
|
$this->getUser('permission', 'filemanager') === true)
|
||||||
|
@ -835,7 +835,8 @@ class init extends common
|
|||||||
'activeColor' => 'rgba(255, 255, 255, 1)',
|
'activeColor' => 'rgba(255, 255, 255, 1)',
|
||||||
'activeTextColor' => 'rgba(255, 255, 255, 1)',
|
'activeTextColor' => 'rgba(255, 255, 255, 1)',
|
||||||
'radius' => '0px',
|
'radius' => '0px',
|
||||||
'memberBar' => false,
|
'memberBar' => true,
|
||||||
|
'selectSpace' => true,
|
||||||
'burgerLogo' => '',
|
'burgerLogo' => '',
|
||||||
'burgerContent' => 'title',
|
'burgerContent' => 'title',
|
||||||
'width' => 'container'
|
'width' => 'container'
|
||||||
|
@ -594,6 +594,7 @@ class theme extends common
|
|||||||
'radius' => $this->getInput('themeMenuRadius'),
|
'radius' => $this->getInput('themeMenuRadius'),
|
||||||
'burgerTitle' => $this->getInput('themeMenuBurgerTitle', helper::FILTER_BOOLEAN),
|
'burgerTitle' => $this->getInput('themeMenuBurgerTitle', helper::FILTER_BOOLEAN),
|
||||||
'memberBar' => $this->getInput('themeMenuMemberBar', helper::FILTER_BOOLEAN),
|
'memberBar' => $this->getInput('themeMenuMemberBar', helper::FILTER_BOOLEAN),
|
||||||
|
'selectSpace' => $this->getInput('themeMenuSelectSpace', helper::FILTER_BOOLEAN),
|
||||||
'burgerLogo' => $this->getInput('themeMenuBurgerLogo'),
|
'burgerLogo' => $this->getInput('themeMenuBurgerLogo'),
|
||||||
'burgerContent' => $this->getInput('themeMenuBurgerContent')
|
'burgerContent' => $this->getInput('themeMenuBurgerContent')
|
||||||
]
|
]
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col1">
|
<div class="col1">
|
||||||
<?php /* echo template::button('themeMenuHelp', [
|
<?php /* echo template::button('themeMenuHelp', [
|
||||||
'href' => 'https://doc.zwiicms.fr/menu',
|
'href' => 'https://doc.zwiicms.fr/menu',
|
||||||
'target' => '_blank',
|
'target' => '_blank',
|
||||||
'value' => template::ico('help'),
|
'value' => template::ico('help'),
|
||||||
'class' => 'buttonHelp'
|
'class' => 'buttonHelp'
|
||||||
]); */?>
|
]); */?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset8">
|
<div class="col2 offset8">
|
||||||
<?php echo template::submit('themeMenuSubmit'); ?>
|
<?php echo template::submit('themeMenuSubmit'); ?>
|
||||||
@ -22,7 +22,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4><?php echo helper::translate('Paramètres'); ?>
|
<h4>
|
||||||
|
<?php echo helper::translate('Paramètres'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
@ -84,7 +85,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4><?php echo helper::translate('Contenu'); ?>
|
<h4>
|
||||||
|
<?php echo helper::translate('Contenu'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
@ -93,125 +95,134 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::checkbox('themeMenuMemberBar', true, 'Barre de membre', [
|
<?php echo template::checkbox('themeMenuSelectSpace', true, 'Sélecteur d\'espaces', [
|
||||||
'checked' => $this->getData(['theme', 'menu', 'memberBar']),
|
'checked' => $this->getData(['theme', 'menu', 'selectSpace']),
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::checkbox('themeMenuMemberBar', true, 'Barre de membre', [
|
||||||
|
'checked' => $this->getData(['theme', 'menu', 'memberBar']),
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::select('themeMenuBurgerContent', $module::$burgerContent, [
|
<?php echo template::select('themeMenuBurgerContent', $module::$burgerContent, [
|
||||||
'label' => 'Menu burger dans écran réduit',
|
'label' => 'Menu burger dans écran réduit',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'burgerContent']),
|
'selected' => $this->getData(['theme', 'menu', 'burgerContent']),
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col6" id="themeMenuBurgerLogoId"
|
||||||
<div class="row">
|
class="<?php if ($this->getData(['theme', 'menu', 'burgerContent']) !== 'logo')
|
||||||
<div id="themeMenuBurgerLogoId" class="col6 offset6 <?php if ($this->getData(['theme', 'menu', 'burgerContent']) !== 'logo') echo 'displayNone'; ?>">
|
echo 'displayNone'; ?>">
|
||||||
<?php $imageFile = file_exists(self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo'])) ? $this->getData(['theme', 'menu', 'burgerLogo']) : ""; ?>
|
<?php $imageFile = file_exists(self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo'])) ? $this->getData(['theme', 'menu', 'burgerLogo']) : ""; ?>
|
||||||
<?php echo template::file('themeMenuBurgerLogo', [
|
<?php echo template::file('themeMenuBurgerLogo', [
|
||||||
'help' => 'Sélectionner une image de dimensions adaptées',
|
'help' => 'Sélectionner une image de dimensions adaptées',
|
||||||
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
|
||||||
'label' => 'Logo du menu burger',
|
'label' => 'Logo du menu burger',
|
||||||
'type' => 1,
|
'type' => 1,
|
||||||
'value' => $imageFile
|
'value' => $imageFile
|
||||||
]);
|
]);
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col12">
|
||||||
<div class="col12">
|
<div class="block">
|
||||||
<div class="block">
|
<h4>
|
||||||
<h4><?php echo helper::translate('Couleurs'); ?>
|
<?php echo helper::translate('Couleurs'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('themeMenuTextColor', [
|
<?php echo template::text('themeMenuTextColor', [
|
||||||
'class' => 'colorPicker',
|
'class' => 'colorPicker',
|
||||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||||
'label' => 'Texte',
|
'label' => 'Texte',
|
||||||
'value' => $this->getData(['theme', 'menu', 'textColor'])
|
'value' => $this->getData(['theme', 'menu', 'textColor'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col4">
|
||||||
|
<?php echo template::text('themeMenuBackgroundColor', [
|
||||||
|
'class' => 'colorPicker',
|
||||||
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||||
|
'label' => 'Arrière plan',
|
||||||
|
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col4">
|
||||||
|
<?php echo template::text('themeMenuBackgroundColorSub', [
|
||||||
|
'class' => 'colorPicker',
|
||||||
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||||
|
'label' => 'Fond du sous-menu',
|
||||||
|
'value' => $this->getData(['theme', 'menu', 'backgroundColorSub'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="row">
|
||||||
<?php echo template::text('themeMenuBackgroundColor', [
|
<div class="col4">
|
||||||
'class' => 'colorPicker',
|
<?php echo template::text('themeMenuActiveTextColor', [
|
||||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
'class' => 'colorPicker',
|
||||||
'label' => 'Arrière plan',
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||||
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
|
'label' => 'Couleur texte page active',
|
||||||
]); ?>
|
'value' => $this->getData(['theme', 'menu', 'activeTextColor'])
|
||||||
</div>
|
]); ?>
|
||||||
<div class="col4">
|
</div>
|
||||||
<?php echo template::text('themeMenuBackgroundColorSub', [
|
<div class="col4 verticalAlignBottom">
|
||||||
'class' => 'colorPicker',
|
<?php
|
||||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
echo template::checkbox('themeMenuActiveColorAuto', true, 'Couleur de fond automatique', [
|
||||||
'label' => 'Fond du sous-menu',
|
'checked' => $this->getData(['theme', 'menu', 'activeColorAuto']),
|
||||||
'value' => $this->getData(['theme', 'menu', 'backgroundColorSub'])
|
]); ?>
|
||||||
]); ?>
|
</div>
|
||||||
</div>
|
<div class="col4">
|
||||||
</div>
|
<?php echo template::text('themeMenuActiveColor', [
|
||||||
<div class="row">
|
'class' => 'colorPicker',
|
||||||
<div class="col4">
|
'help' => 'Couleur de fond de la page sélectionnée dans le menu.<br>Le curseur horizontal règle le niveau de transparence.',
|
||||||
<?php echo template::text('themeMenuActiveTextColor', [
|
'label' => 'Fond page active',
|
||||||
'class' => 'colorPicker',
|
'value' => $this->getData(['theme', 'menu', 'activeColor'])
|
||||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
]); ?>
|
||||||
'label' => 'Couleur texte page active',
|
</div>
|
||||||
'value' => $this->getData(['theme', 'menu', 'activeTextColor'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col4 verticalAlignBottom">
|
|
||||||
<?php
|
|
||||||
echo template::checkbox('themeMenuActiveColorAuto', true, 'Couleur de fond automatique', [
|
|
||||||
'checked' => $this->getData(['theme', 'menu', 'activeColorAuto']),
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col4">
|
|
||||||
<?php echo template::text('themeMenuActiveColor', [
|
|
||||||
'class' => 'colorPicker',
|
|
||||||
'help' => 'Couleur de fond de la page sélectionnée dans le menu.<br>Le curseur horizontal règle le niveau de transparence.',
|
|
||||||
'label' => 'Fond page active',
|
|
||||||
'value' => $this->getData(['theme', 'menu', 'activeColor'])
|
|
||||||
]); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col12">
|
||||||
<div class="col12">
|
<div class="block">
|
||||||
<div class="block">
|
<h4>
|
||||||
<h4><?php echo helper::translate('Mise en forme du texte'); ?>
|
<?php echo helper::translate('Mise en forme du texte'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::select('themeMenuFont', $module::$fonts['name'], [
|
<?php echo template::select('themeMenuFont', $module::$fonts['name'], [
|
||||||
'label' => 'Fonte',
|
'label' => 'Fonte',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'font']),
|
'selected' => $this->getData(['theme', 'menu', 'font']),
|
||||||
'font' => $module::$fonts['family']
|
'font' => $module::$fonts['family']
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
|
<?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
|
||||||
'label' => 'Taille',
|
'label' => 'Taille',
|
||||||
'help' => 'Proportionnelle à la taille définie dans le site.',
|
'help' => 'Proportionnelle à la taille définie dans le site.',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
|
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
|
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
|
||||||
'label' => 'Style',
|
'label' => 'Style',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
|
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col3">
|
<div class="col3">
|
||||||
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
|
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
|
||||||
'label' => 'Casse',
|
'label' => 'Casse',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
|
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<?php echo template::formClose(); ?>
|
||||||
<?php echo template::formClose(); ?>
|
|
Loading…
Reference in New Issue
Block a user