revert page edit

This commit is contained in:
Fred Tempez 2025-01-30 16:36:32 +01:00
parent ced97ca145
commit 037e95def6
2 changed files with 1139 additions and 730 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,421 +1,404 @@
<?php echo template::formOpen('pageEditForm'); ?> <?php echo template::formOpen('pageEditForm'); ?>
<div class="row"> <!-- Variable transmise à TinyMCE -->
<div class="col1"> <div id="zwii_site_content" data-variable="<?php echo htmlspecialchars(isset($_SESSION['ZWII_SITE_CONTENT']) ? $_SESSION['ZWII_SITE_CONTENT'] : 'home'); ?>"></div>
<?php echo template::button('configModulesBack', [ <div class="row">
'class' => 'buttonGrey', <div class="col1">
'href' => helper::baseUrl() . $this->getUrl(2), <?php echo template::button('configModulesBack', [
'value' => template::ico('left') 'class' => 'buttonGrey',
]); ?> 'href' => helper::baseUrl() . $this->getUrl(2),
</div> 'value' => template::ico('left')
<div class="col1 offset7"> ]); ?>
<?php echo template::button('pageEditDelete', [ </div>
'class' => 'buttonRed', <div class="col1 offset7">
'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '/' . self::$siteContent, <?php echo template::button('pageEditDelete', [
'value' => template::ico('trash'), 'class' => 'buttonRed',
'help' => 'Effacer la page' 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '/' . self::$siteContent,
]); ?> 'value' => template::ico('trash'),
</div> 'help' => 'Effacer la page'
<div class="col1"> ]); ?>
<?php echo template::button('pageEditDuplicate', [ </div>
'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '/' . self::$siteContent, <div class="col1">
'value' => template::ico('clone'), <?php echo template::button('pageEditDuplicate', [
'help' => 'Dupliquer la page' 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '/' . self::$siteContent,
]); ?> 'value' => template::ico('clone'),
</div> 'help' => 'Dupliquer la page'
<div class="col2"> ]); ?>
<?php echo template::submit('pageEditSubmit', [ </div>
'uniqueSubmission' => true <div class="col2">
]); ?> <?php echo template::submit('pageEditSubmit', [
</div> 'uniqueSubmission' => true
</div> ]); ?>
<div class="tab"> </div>
<?php echo template::button('pageEditContentButton', [ </div>
'value' => 'Contenu',
'class' => 'buttonTab', <div class="tab">
]); ?> <?php echo template::button('pageEditContentButton', [
<?php echo template::button('pageEditPositionButton', [ 'value' => 'Contenu',
'value' => 'Menu', 'class' => 'buttonTab',
'class' => 'buttonTab', //'href' => helper::baseUrl() . 'page/register/content/' . $this->geturl(2)
]); ?> ]); ?>
<?php echo template::button('pageEditExtensionButton', [ <?php echo template::button('pageEditPositionButton', [
'value' => 'Extension', 'value' => 'Menu',
'class' => 'buttonTab', 'class' => 'buttonTab',
]); ?> //'href' => helper::baseUrl() . 'page/register/position/' . $this->geturl(2)
<?php echo template::button('pageEditLayoutButton', [ ]); ?>
'value' => 'Mise en page', <?php echo template::button('pageEditExtensionButton', [
'class' => 'buttonTab', 'value' => 'Extension',
]); ?> 'class' => 'buttonTab',
<?php echo template::button('pageEditPermissionButton', [ //'href' => helper::baseUrl() . 'page/register/extension/' . $this->geturl(2)
'value' => 'Permission', ]); ?>
'class' => 'buttonTab', <?php echo template::button('pageEditLayoutButton', [
]); ?> 'value' => 'Mise en page',
</div> 'class' => 'buttonTab',
//'href' => helper::baseUrl() . 'page/register/layout/' . $this->geturl(2)
<?php ]); ?>
// Données dynamiques à insérer dans le JavaScript <?php echo template::button('pageEditPermissionButton', [
$data = [ 'value' => 'Permission',
'translate-delete' => helper::translate('Confirmer la suppression de la page'), 'class' => 'buttonTab',
'translate-module-delete' => helper::translate('Confirmer la suppression des données du module'), //'href' => helper::baseUrl() . 'page/register/permission/' . $this->geturl(2)
'translate-none' => helper::translate('Ne pas afficher'), ]); ?>
'translate-begin' => helper::translate('Au début'), </div>
'translate-after' => helper::translate('Après'),
'hierarchy' => json_encode($this->getHierarchy()), <!-- Champ caché pour transmettre l'onglet-->
'pages' => $module->getPageInfo(), <?php echo template::hidden('containerSelected'); ?>
'position-initial' => $this->getData(['page', $this->getUrl(2), 'position']),
'current-page' => $this->getUrl(2), <div id="pageEditContentContainer" class="tabContent">
'page-layout' => $this->getData(['user', $this->getUser('id'), 'view', 'page']) <div class="row">
]; <div class="col12">
<div class="block">
// Génération du contenu JavaScript <h4>
echo '<div id="pageEditDataContainer"'; <?php echo helper::translate('Titres'); ?>
foreach ($data as $key => $value) { </h4>
// Convertit explicitement les valeurs null en chaîne vide <div class="row">
$sanitizedValue = $value ?? ''; <div class="col8">
echo ' data-' . htmlspecialchars($key) . '="' . htmlspecialchars((string)$sanitizedValue) . '"'; <?php echo template::text('pageEditTitle', [
} 'label' => 'Titre',
echo '></div>'; 'value' => $this->getData(['page', $this->getUrl(2), 'title'])
?> ]); ?>
</div>
<!-- Champ caché pour transmettre l'onglet--> <div class="col4">
<?php echo template::hidden('containerSelected'); ?> <?php echo template::text('pageEditShortTitle', [
'label' => 'Titre court',
<div id="pageEditContentContainer" class="tabContent"> 'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']),
<div class="row"> 'help' => 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.'
<div class="col12"> ]); ?>
<div class="block"> </div>
<h4> </div>
<?php echo helper::translate('Titres'); ?> <div class="row">
</h4> <div class="col6">
<div class="row"> <?php echo template::checkbox('pageEditHideTitle', true, 'Titre masqué dans la page', [
<div class="col8"> 'checked' => $this->getData(['page', $this->getUrl(2), 'hideTitle'])
<?php echo template::text('pageEditTitle', [ ]); ?>
'label' => 'Titre', </div>
'value' => $this->getData(['page', $this->getUrl(2), 'title']) <div class="col6">
]); ?> <?php echo template::checkbox('pageEditbreadCrumb', true, 'Fil d\'Ariane dans le titre', [
</div> 'checked' => $this->getData(['page', $this->getUrl(2), 'breadCrumb']),
<div class="col4"> 'help' => 'Affiche le nom de la page parente suivi du nom de la page, le titre ne doit pas être masqué.'
<?php echo template::text('pageEditShortTitle', [ ]); ?>
'label' => 'Titre court', </div>
'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']), </div>
'help' => 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.' </div>
]); ?> </div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col12">
<div class="col6"> <?php echo template::textarea('pageEditContent', [
<?php echo template::checkbox('pageEditHideTitle', true, 'Titre masqué dans la page', [ 'class' => 'editorWysiwyg',
'checked' => $this->getData(['page', $this->getUrl(2), 'hideTitle']) 'value' => $this->getPage($this->getUrl(2), self::$siteContent)
]); ?> ]); ?>
</div> </div>
<div class="col6"> </div>
<?php echo template::checkbox('pageEditbreadCrumb', true, 'Fil d\'Ariane dans le titre', [ </div>
'checked' => $this->getData(['page', $this->getUrl(2), 'breadCrumb']),
'help' => 'Affiche le nom de la page parente suivi du nom de la page, le titre ne doit pas être masqué.' <div id="pageEditPositionContainer" class="tabContent">
]); ?> <div class="row">
</div> <div class="col12">
</div> <div class="block">
</div> <h4>
</div> <?php echo helper::translate('Emplacement dans le menu'); ?>
</div> </h4>
<div class="row"> <div class="blockContainer">
<div class="col12"> <div class="row">
<?php echo template::textarea('pageEditWysiwyg', [ <div class="col4">
'class' => 'editorWysiwyg', <?php echo template::select('pageEditPosition', [], [
'value' => $this->getPage($this->getUrl(2), self::$siteContent) 'label' => 'Position',
]); ?> 'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.'
</div> ]); ?>
</div> </div>
</div> <div class="col4">
<?php if ($this->getHierarchy($this->getUrl(2), false)): ?>
<div id="pageEditPositionContainer" class="tabContent"> <?php echo template::hidden('pageEditParentPageId', [
<div class="row"> 'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
<div class="col12"> ]); ?>
<div class="block"> <?php else: ?>
<h4> <?php echo template::select('pageEditParentPageId', page::$pagesNoParentId, [
<?php echo helper::translate('Emplacement dans le menu'); ?> 'label' => 'Page parent',
</h4> 'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
<div class="blockContainer"> ]); ?>
<div class="row"> <?php endif; ?>
<div class="col4"> </div>
<?php echo template::select('pageEditPosition', [], [ <div class="col4">
'label' => 'Position', <?php echo template::select('pageEditExtraPosition', page::$extraPosition, [
'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.' 'label' => 'Emplacement',
]); ?> 'selected' => $this->getData(['page', $this->getUrl(2), 'extraPosition']),
</div> 'help' => 'Le menu accessoire est aligné à droite de la barre de menu, c\'est un emplacement réservé aux drapeaux et au bouton de connexion.'
<div class="col4"> ]); ?>
<?php if ($this->getHierarchy($this->getUrl(2), false)): ?> </div>
<?php echo template::hidden('pageEditParentPageId', [ </div>
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId']) <div class="row">
]); ?> <div class="col6">
<?php else: ?> <?php echo template::checkbox('pageEditDisable', true, 'Page non cliquable', [
<?php echo template::select('pageEditParentPageId', page::$pagesNoParentId, [ 'checked' => $this->getData(['page', $this->getUrl(2), 'disable']),
'label' => 'Page parent', 'help' => 'Option active en mode déconnecté uniquement, les pages enfants sont visibles et accessibles.'
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId']) ]); ?>
]); ?> </div>
<?php endif; ?> <div class="col6">
</div> <?php echo template::checkbox('pageEditTargetBlank', true, 'S\'ouvre dans un nouvel onglet', [
<div class="col4"> 'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank'])
<?php echo template::select('pageEditExtraPosition', page::$extraPosition, [ ]); ?>
'label' => 'Emplacement', </div>
'selected' => $this->getData(['page', $this->getUrl(2), 'extraPosition']), </div>
'help' => 'Le menu accessoire est aligné à droite de la barre de menu, c\'est un emplacement réservé aux drapeaux et au bouton de connexion.' </div>
]); ?> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col12">
<?php echo template::checkbox('pageEditDisable', true, 'Page non cliquable', [ <div class="block">
'checked' => $this->getData(['page', $this->getUrl(2), 'disable']), <h4>
'help' => 'Option active en mode déconnecté uniquement, les pages enfants sont visibles et accessibles.' <?php echo helper::translate('Options avancées'); ?>
]); ?> </h4>
</div> <div class="blockContainer">
<div class="col6"> <div class="row">
<?php echo template::checkbox('pageEditTargetBlank', true, 'S\'ouvre dans un nouvel onglet', [ <div class="col3">
'checked' => $this->getData(['page', $this->getUrl(2), 'targetBlank']) <?php echo template::select('pageTypeMenu', page::$typeMenu, [
]); ?> 'label' => 'Apparence',
</div> 'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu'])
</div> ]); ?>
</div> </div>
</div> <div class="col9">
</div> <?php echo template::file('pageIconUrl', [
</div> 'help' => 'Sélectionnez une image ou une icône de petite dimension',
<div class="row"> 'language' => $this->getData(['user', $this->getUser('id'), 'language']),
<div class="col12"> 'label' => 'Icône',
<div class="block"> 'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']),
<h4> 'folder' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) ? dirname($this->getData(['page', $this->getUrl(2), 'iconUrl'])) : '',
<?php echo helper::translate('Options avancées'); ?> ]); ?>
</h4> </div>
<div class="blockContainer"> </div>
<div class="row"> <div class="row">
<div class="col3"> <div class="col6">
<?php echo template::select('pageTypeMenu', page::$typeMenu, [ <?php echo template::checkbox('pageEditHideMenuChildren', true, 'Masquer les pages enfants dans le menu horizontal', [
'label' => 'Apparence', 'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuChildren'])
'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu']) ]); ?>
]); ?> </div>
</div> <div class="col6">
<div class="col9"> <?php echo template::checkbox('pageEditHideMenuSide', true, 'Masquer la page et les pages enfants dans le menu d\'une barre latérale', [
<?php echo template::file('pageIconUrl', [ 'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuSide']),
'help' => 'Sélectionnez une image ou une icône de petite dimension', 'help' => 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.'
'language' => $this->getData(['user', $this->getUser('id'), 'language']), ]); ?>
'label' => 'Icône', </div>
'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']), </div>
'folder' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) ? dirname($this->getData(['page', $this->getUrl(2), 'iconUrl'])) : '', </div>
]); ?> </div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col6">
<?php echo template::checkbox('pageEditHideMenuChildren', true, 'Masquer les pages enfants dans le menu horizontal', [ <div id="pageEditExtensionContainer" class="tabContent">
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuChildren']) <div class="row">
]); ?> <div class="col6">
</div> <div class="block">
<div class="col6"> <h4>
<?php echo template::checkbox('pageEditHideMenuSide', true, 'Masquer la page et les pages enfants dans le menu d\'une barre latérale', [ <?php echo helper::translate('Module'); ?>
'checked' => $this->getData(['page', $this->getUrl(2), 'hideMenuSide']), </h4>
'help' => 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.' <div class="row">
]); ?> <div class="col10">
</div> <?php echo template::hidden('pageEditModuleRedirect'); ?>
</div> <?php echo template::select('pageEditModuleId', page::$moduleIds, [
</div> 'help' => 'En cas de changement de module, les données du module précédent seront supprimées.',
</div> 'label' => 'Module',
</div> 'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId'])
</div> ]); ?>
</div> <?php echo template::hidden('pageEditModuleIdOld', ['value' => $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?>
<?php echo template::hidden('pageEditModuleIdOldText', [
<div id="pageEditExtensionContainer" class="tabContent"> 'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']), page::$moduleIds) ? page::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId']))
<div class="row"> ]); ?>
<div class="col6"> </div>
<div class="block"> <div class="col2 verticalAlignBottom">
<h4> <?php echo template::button('pageEditModuleConfig', [
<?php echo helper::translate('Module'); ?> 'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false,
</h4> 'uniqueSubmission' => true,
<div class="row"> 'value' => template::ico('gear')
<div class="col10"> ]); ?>
<?php echo template::hidden('pageEditModuleRedirect'); ?> </div>
<?php echo template::select('pageEditModuleId', page::$moduleIds, [ </div>
'help' => 'En cas de changement de module, les données du module précédent seront supprimées.', <div class="row">
'label' => 'Module', <div class="col12">
'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId']) <?php echo template::select('pageModulePosition', page::$modulePosition, [
]); ?> 'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.',
<?php echo template::hidden('pageEditModuleIdOld', ['value' => $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?> 'label' => 'Position du module',
<?php echo template::hidden('pageEditModuleIdOldText', [ 'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
'value' => array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']), page::$moduleIds) ? page::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId'])) ]); ?>
]); ?> </div>
</div>
<div class="col2 verticalAlignBottom"> </div>
<?php echo template::button('pageEditModuleConfig', [ </div>
'disabled' => (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false, </div>
'uniqueSubmission' => true, <div class="col6">
'value' => template::ico('gear') <div class="block">
]); ?> <h4>
</div> <?php echo helper::translate('Contenu avancé'); ?>
</div> </h4>
<div class="row"> <div class="row">
<div class="col12"> <div class="col6 offset3">
<?php echo template::select('pageModulePosition', page::$modulePosition, [ <?php echo template::button('pageEditCssEditor', [
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.', 'href' => helper::baseUrl() . 'page/cssEditor/' . $this->getUrl(2),
'label' => 'Position du module', 'value' => 'Éditeur CSS',
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition']) 'help' => 'Feuille de style spécifique à la page.'
]); ?> ]); ?>
</div> </div>
</div>
</div> <div class="row">
</div> <div class="col6 offset3">
</div> <?php echo template::button('pageEditJsEditor', [
<div class="col6"> 'href' => helper::baseUrl() . 'page/jsEditor/' . $this->getUrl(2),
<div class="block"> 'value' => 'Éditeur JS',
<h4> 'help' => 'Instructions JS ou jquery spécifiques à la page.'
<?php echo helper::translate('Contenu avancé'); ?> ]); ?>
</h4> </div>
<div class="row"> </div>
<div class="col6 offset3"> </div>
<?php echo template::button('pageEditCssEditor', [ </div>
'href' => helper::baseUrl() . 'page/cssEditor/' . $this->getUrl(2), </div>
'value' => 'Éditeur CSS', </div>
'help' => 'Feuille de style spécifique à la page.'
]); ?> <div id="pageEditLayoutContainer" class="tabContent">
</div> <div class="row">
</div> <div class="col12">
<div class="row"> <div class="block">
<div class="col6 offset3"> <h4>
<?php echo template::button('pageEditJsEditor', [ <?php echo helper::translate('Mise en page'); ?>
'href' => helper::baseUrl() . 'page/jsEditor/' . $this->getUrl(2), </h4>
'value' => 'Éditeur JS', <div class="blockContainer">
'help' => 'Instructions JS ou jquery spécifiques à la page.' <div class="row">
]); ?> <div class="col6">
</div> <div class="row">
</div> <div class="col12">
</div> <?php echo template::select('pageEditBlock', page::$pageBlocks, [
</div> 'label' => 'Gabarits de page - Barre latérale',
</div> 'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.',
</div> 'selected' => $this->getData(['page', $this->getUrl(2), 'block'])
]); ?>
<div id="pageEditLayoutContainer" class="tabContent"> </div>
<div class="row"> </div>
<div class="col12"> </div>
<div class="block"> <div class="col6">
<h4> <!-- Sélection des barres latérales -->
<?php echo helper::translate('Mise en page'); ?> <?php if ($this->getHierarchy($this->getUrl(2), false, true)): ?>
</h4> <?php echo template::hidden('pageEditBarLeft', [
<div class="blockContainer"> 'value' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
<div class="row"> ]); ?>
<div class="col6"> <?php else: ?>
<div class="row"> <?php echo template::select('pageEditBarLeft', page::$pagesBarId, [
<div class="col12"> 'label' => 'Barre latérale gauche :',
<?php echo template::select('pageEditBlock', page::$pageBlocks, [ 'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
'label' => 'Gabarits de page - Barre latérale', ]); ?>
'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.', <?php endif; ?>
'selected' => $this->getData(['page', $this->getUrl(2), 'block']) <?php if ($this->getHierarchy($this->getUrl(2), false, true)): ?>
]); ?> <?php echo template::hidden('pageEditBarRight', [
</div> 'value' => $this->getData(['page', $this->getUrl(2), 'barRight'])
</div> ]); ?>
</div> <?php else: ?>
<div class="col6"> <?php echo template::select('pageEditBarRight', page::$pagesBarId, [
<!-- Sélection des barres latérales --> 'label' => 'Barre latérale droite :',
<?php if ($this->getHierarchy($this->getUrl(2), false, true)): ?> 'selected' => $this->getData(['page', $this->getUrl(2), 'barRight'])
<?php echo template::hidden('pageEditBarLeft', [ ]); ?>
'value' => $this->getData(['page', $this->getUrl(2), 'barLeft']) <?php endif; ?>
]); ?> <?php echo template::select('pageEditDisplayMenu', page::$displayMenu, [
<?php else: ?> 'label' => 'Contenu du menu vertical',
<?php echo template::select('pageEditBarLeft', page::$pagesBarId, [ 'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']),
'label' => 'Barre latérale gauche :', 'help' => 'Par défaut le menu est affiché APRES le contenu de la page. Pour le positionner à un emplacement précis, insérez [MENU] dans le contenu de la page.'
'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft']) ]); ?>
]); ?> </div>
<?php endif; ?> </div>
<?php if ($this->getHierarchy($this->getUrl(2), false, true)): ?> <div class="row navSelect">
<?php echo template::hidden('pageEditBarRight', [ <div class="col4">
'value' => $this->getData(['page', $this->getUrl(2), 'barRight']) <?php echo template::select('pageEditNavLeft', page::$navIconPosition, [
]); ?> 'label' => 'Bouton de navigation gauche',
<?php else: ?> 'selected' => $this->getData(['page', $this->getUrl(2), 'navLeft']),
<?php echo template::select('pageEditBarRight', page::$pagesBarId, [ ]); ?>
'label' => 'Barre latérale droite :', </div>
'selected' => $this->getData(['page', $this->getUrl(2), 'barRight']) <div class="col4">
]); ?> <?php echo template::select('pageEditNavTemplate', page::$navIconTemplate, [
<?php endif; ?> 'label' => 'Modèle',
<?php echo template::select('pageEditDisplayMenu', page::$displayMenu, [ 'selected' => $this->getData(['page', $this->getUrl(2), 'navTemplate']),
'label' => 'Contenu du menu vertical', ]); ?>
'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']), </div>
'help' => 'Par défaut le menu est affiché APRES le contenu de la page. Pour le positionner à un emplacement précis, insérez [MENU] dans le contenu de la page.' <div class="col4">
]); ?> <?php echo template::select('pageEditNavRight', page::$navIconPosition, [
</div> 'label' => 'Bouton de navigation droit',
</div> 'selected' => $this->getData(['page', $this->getUrl(2), 'navRight']),
<div class="row navSelect"> ]); ?>
<div class="col4"> </div>
<?php echo template::select('pageEditNavLeft', page::$navIconPosition, [ </div>
'label' => 'Bouton de navigation gauche', </div>
'selected' => $this->getData(['page', $this->getUrl(2), 'navLeft']), </div>
]); ?> </div>
</div> </div>
<div class="col4"> </div>
<?php echo template::select('pageEditNavTemplate', page::$navIconTemplate, [
'label' => 'Modèle', <div id="pageEditPermissionContainer" class="tabContent">
'selected' => $this->getData(['page', $this->getUrl(2), 'navTemplate']), <div class="row">
]); ?> <div class="col12">
</div> <div class="block">
<div class="col4"> <h4>
<?php echo template::select('pageEditNavRight', page::$navIconPosition, [ <?php echo helper::translate('Permission et référencement'); ?>
'label' => 'Bouton de navigation droit', </h4>
'selected' => $this->getData(['page', $this->getUrl(2), 'navRight']), <div class="blockContainer">
]); ?> <div class="row">
</div> <div class='col6'>
</div> <?php echo template::select('pageEditGroup', self::$groupPublics, [
</div> 'label' => 'Groupe minimal pour accéder à la page',
</div> 'selected' => $this->getData(['page', $this->getUrl(2), 'group']),
</div> 'help' => 'Les groupes de niveau supérieur accèdent à la page.'
</div> ]); ?>
</div> </div>
<div class="col6">
<div id="pageEditPermissionContainer" class="tabContent"> <div class="pageEditGroupProfil displayNone"
<div class="row"> id="pageEditGroupProfil<?php echo self::GROUP_MEMBER; ?>">
<div class="col12"> <?php echo template::select('pageEditProfil' . self::GROUP_MEMBER, page::$userProfils[self::GROUP_MEMBER], [
<div class="block"> 'label' => 'Profil minimal pour accéder à la page',
<h4> 'selected' => $this->getData(['page', $this->getUrl(2), 'profil']),
<?php echo helper::translate('Permission et référencement'); ?> 'help' => 'Les profils de niveau supérieur accèdent à la page.',
</h4> ]); ?>
<div class="blockContainer"> </div>
<div class="row"> <div class="pageEditGroupProfil displayNone"
<div class='col6'> id="pageEditGroupProfil<?php echo self::GROUP_EDITOR; ?>">
<?php echo template::select('pageEditGroup', self::$groupPublics, [ <?php echo template::select('pageEditProfil' . self::GROUP_EDITOR, page::$userProfils[self::GROUP_EDITOR], [
'label' => 'Groupe minimal pour accéder à la page', 'label' => 'Profil minimal pour accéder à la page',
'selected' => $this->getData(['page', $this->getUrl(2), 'group']), 'selected' => $this->getData(['page', $this->getUrl(2), 'profil']),
'help' => 'Les groupes de niveau supérieur accèdent à la page.' 'help' => 'Les profils de niveau supérieur accèdent à la page.',
]); ?> ]); ?>
</div> </div>
<div class="col6"> </div>
<div class="pageEditGroupProfil displayNone" </div>
id="pageEditGroupProfil<?php echo self::GROUP_MEMBER; ?>"> <div class="row">
<?php echo template::select('pageEditProfil' . self::GROUP_MEMBER, page::$userProfils[self::GROUP_MEMBER], [ <div class='col12'>
'label' => 'Profil minimal pour accéder à la page', <?php echo template::text('pageEditMetaTitle', [
'selected' => $this->getData(['page', $this->getUrl(2), 'profil']), 'label' => 'Méta-titre',
'help' => 'Les profils de niveau supérieur accèdent à la page.', 'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle'])
]); ?> ]); ?>
</div> <?php echo template::textarea('pageEditMetaDescription', [
<div class="pageEditGroupProfil displayNone" 'label' => 'Méta-description',
id="pageEditGroupProfil<?php echo self::GROUP_EDITOR; ?>"> //'maxlength' => '500',
<?php echo template::select('pageEditProfil' . self::GROUP_EDITOR, page::$userProfils[self::GROUP_EDITOR], [ 'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
'label' => 'Profil minimal pour accéder à la page', ]); ?>
'selected' => $this->getData(['page', $this->getUrl(2), 'profil']), </div>
'help' => 'Les profils de niveau supérieur accèdent à la page.', </div>
]); ?> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class='col12'>
<?php echo template::text('pageEditMetaTitle', [
'label' => 'Méta-titre',
'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle'])
]); ?>
<?php echo template::textarea('pageEditMetaDescription', [
'label' => 'Méta-description',
//'maxlength' => '500',
'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>