2021-12-02 11:16:10 +01:00
< ? php echo template :: formOpen ( 'pageEditForm' ); ?>
2022-09-29 08:45:59 +02:00
< div class = " row " >
< div class = " col1 " >
2023-08-30 10:28:20 +02:00
< ? php echo template :: button ( 'configModulesBack' , [
2022-09-29 08:45:59 +02:00
'class' => 'buttonGrey' ,
2023-08-30 10:28:20 +02:00
'href' => helper :: baseUrl () . $this -> getUrl ( 2 ),
'value' => template :: ico ( 'left' )
2022-09-29 08:45:59 +02:00
]); ?>
</ div >
2024-09-05 11:02:01 +02:00
< div class = " col1 offset7 " >
2022-09-29 08:45:59 +02:00
< ? php echo template :: button ( 'pageEditDelete' , [
'class' => 'buttonRed' ,
2024-08-23 21:18:37 +02:00
'href' => helper :: baseUrl () . 'page/delete/' . $this -> getUrl ( 2 ) . '/' . self :: $siteContent ,
2022-09-29 08:45:59 +02:00
'value' => template :: ico ( 'trash' ),
'help' => 'Effacer la page'
2022-03-04 10:15:24 +01:00
]); ?>
2022-09-29 08:45:59 +02:00
</ div >
< div class = " col1 " >
< ? php echo template :: button ( 'pageEditDuplicate' , [
2024-09-05 11:02:01 +02:00
'href' => helper :: baseUrl () . 'page/duplicate/' . $this -> getUrl ( 2 ) . '/' . self :: $siteContent ,
2022-09-29 08:45:59 +02:00
'value' => template :: ico ( 'clone' ),
'help' => 'Dupliquer la page'
2022-03-04 10:15:24 +01:00
]); ?>
2022-09-29 08:45:59 +02:00
</ div >
< div class = " col2 " >
< ? php echo template :: submit ( 'pageEditSubmit' , [
'uniqueSubmission' => true
2022-05-06 18:55:14 +02:00
]); ?>
2022-03-04 10:15:24 +01:00
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< div class = " tab " >
< ? php echo template :: button ( 'pageEditContentButton' , [
'value' => 'Contenu' ,
2024-09-18 19:01:47 +02:00
'class' => 'buttonTab' ,
'href' => helper :: baseUrl () . 'page/register/content/' . $this -> geturl ( 2 )
2022-09-29 08:45:59 +02:00
]); ?>
2024-09-18 19:01:47 +02:00
< ? php echo template :: button ( 'pageEditPositionButton' , [
2022-09-29 08:45:59 +02:00
'value' => 'Menu' ,
2024-09-18 19:01:47 +02:00
'class' => 'buttonTab' ,
'href' => helper :: baseUrl () . 'page/register/position/' . $this -> geturl ( 2 )
2022-09-29 08:45:59 +02:00
]); ?>
< ? php echo template :: button ( 'pageEditExtensionButton' , [
'value' => 'Extension' ,
2024-09-18 19:01:47 +02:00
'class' => 'buttonTab' ,
'href' => helper :: baseUrl () . 'page/register/extension/' . $this -> geturl ( 2 )
2022-09-29 08:45:59 +02:00
]); ?>
< ? php echo template :: button ( 'pageEditLayoutButton' , [
'value' => 'Mise en page' ,
2024-09-18 19:01:47 +02:00
'class' => 'buttonTab' ,
'href' => helper :: baseUrl () . 'page/register/layout/' . $this -> geturl ( 2 )
2022-09-29 08:45:59 +02:00
]); ?>
< ? php echo template :: button ( 'pageEditPermissionButton' , [
'value' => 'Permission' ,
2024-09-18 19:01:47 +02:00
'class' => 'buttonTab' ,
'href' => helper :: baseUrl () . 'page/register/permission/' . $this -> geturl ( 2 )
2022-09-29 08:45:59 +02:00
]); ?>
</ div >
< div id = " pageEditContentContainer " class = " tabContent " >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Titres' ); ?>
2022-09-29 08:45:59 +02:00
</ h4 >
< div class = " row " >
< div class = " col8 " >
< ? php echo template :: text ( 'pageEditTitle' , [
'label' => 'Titre' ,
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'title' ])
]); ?>
2022-03-04 10:15:24 +01:00
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col4 " >
< ? php echo template :: text ( 'pageEditShortTitle' , [
'label' => 'Titre court' ,
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'shortTitle' ]),
'help' => 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditHideTitle' , true , 'Titre masqué dans la page' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'hideTitle' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditbreadCrumb' , true , 'Fil d\'Ariane dans le titre' , [
'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é.'
]); ?>
2022-04-13 16:11:41 +02:00
</ div >
2022-03-04 10:15:24 +01:00
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: textarea ( 'pageEditContent' , [
'class' => 'editorWysiwyg' ,
2023-11-15 10:28:26 +01:00
'value' => $this -> getPage ( $this -> getUrl ( 2 ), self :: $siteContent )
2022-09-29 08:45:59 +02:00
]); ?>
2022-03-04 10:15:24 +01:00
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
2022-03-04 10:15:24 +01:00
2022-09-29 08:45:59 +02:00
< div id = " pageEditPositionContainer " class = " tabContent " >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Emplacement dans le menu' ); ?>
2022-09-29 08:45:59 +02:00
</ h4 >
< div class = " blockContainer " >
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: select ( 'pageEditPosition' , [], [
'label' => 'Position' ,
'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.'
]); ?>
2021-12-02 11:16:10 +01:00
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col4 " >
2023-07-28 11:13:31 +02:00
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false )) : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: hidden ( 'pageEditParentPageId' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'parentPageId' ])
2021-12-02 11:16:10 +01:00
]); ?>
2023-07-28 11:13:31 +02:00
< ? php else : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: select ( 'pageEditParentPageId' , $module :: $pagesNoParentId , [
'label' => 'Page parent' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'parentPageId' ])
2022-03-04 10:15:24 +01:00
]); ?>
2022-09-29 08:45:59 +02:00
< ? php endif ; ?>
</ div >
< div class = " col4 " >
< ? php echo template :: select ( 'pageEditExtraPosition' , $module :: $extraPosition , [
2023-03-11 18:41:25 +01:00
'label' => 'Emplacement' ,
2022-09-29 08:45:59 +02:00
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'extraPosition' ]),
2022-10-14 10:20:29 +02:00
'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.'
2022-09-29 08:45:59 +02:00
]); ?>
2021-12-02 11:16:10 +01:00
</ div >
</ div >
2022-09-29 08:45:59 +02:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditDisable' , true , 'Page non cliquable' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'disable' ]),
'help' => 'Option active en mode déconnecté uniquement, les pages enfants sont visibles et accessibles.'
]); ?>
2021-12-02 11:16:10 +01:00
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditTargetBlank' , true , 'S\'ouvre dans un nouvel onglet' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'targetBlank' ])
]); ?>
2021-12-02 11:16:10 +01:00
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Options avancées' ); ?>
2022-09-29 08:45:59 +02:00
</ h4 >
< div class = " blockContainer " >
2022-04-13 16:11:41 +02:00
< div class = " row " >
2022-09-29 08:45:59 +02:00
< div class = " col3 " >
< ? php echo template :: select ( 'pageTypeMenu' , $module :: $typeMenu , [
'label' => 'Apparence' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'typeMenu' ])
2022-04-13 16:11:41 +02:00
]); ?>
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col9 " >
< ? php echo template :: file ( 'pageIconUrl' , [
'help' => 'Sélectionnez une image ou une icône de petite dimension' ,
2022-10-23 17:27:57 +02:00
'language' => $this -> getData ([ 'user' , $this -> getUser ( 'id' ), 'language' ]),
2022-09-29 08:45:59 +02:00
'label' => 'Icône' ,
2024-09-05 11:02:01 +02:00
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'iconUrl' ]),
'folder' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'iconUrl' ]) ? dirname ( $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'iconUrl' ])) : '' ,
2022-04-13 16:11:41 +02:00
]); ?>
</ div >
</ div >
< div class = " row " >
2022-09-29 08:45:59 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditHideMenuChildren' , true , 'Masquer les pages enfants dans le menu horizontal' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'hideMenuChildren' ])
2022-04-13 16:11:41 +02:00
]); ?>
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditHideMenuSide' , true , 'Masquer la page et les pages enfants dans le menu d\'une barre latérale' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'hideMenuSide' ]),
'help' => 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.'
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
2022-04-13 16:11:41 +02:00
2022-09-29 08:45:59 +02:00
< div id = " pageEditExtensionContainer " class = " tabContent " >
< div class = " row " >
< div class = " col6 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Module' ); ?>
2022-10-03 11:50:29 +02:00
</ h4 >
2022-09-29 08:45:59 +02:00
< div class = " row " >
< div class = " col10 " >
< ? php echo template :: hidden ( 'pageEditModuleRedirect' ); ?>
< ? php echo template :: select ( 'pageEditModuleId' , $module :: $moduleIds , [
'help' => 'En cas de changement de module, les données du module précédent seront supprimées.' ,
'label' => 'Module' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ])
]); ?>
< ? php echo template :: hidden ( 'pageEditModuleIdOld' , [ 'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ])]); ?>
< ? php echo template :: hidden ( 'pageEditModuleIdOldText' , [
'value' => array_key_exists ( $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ]), $module :: $moduleIds ) ? $module :: $moduleIds [ $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ])] : ucfirst ( $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ]))
]); ?>
2022-04-13 16:11:41 +02:00
</ div >
2022-09-29 08:45:59 +02:00
< div class = " col2 verticalAlignBottom " >
< ? php echo template :: button ( 'pageEditModuleConfig' , [
'disabled' => ( bool ) $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ]) === false ,
'uniqueSubmission' => true ,
'value' => template :: ico ( 'gear' )
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: select ( 'pageModulePosition' , $module :: $modulePosition , [
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.' ,
'label' => 'Position du module' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'modulePosition' ])
]); ?>
</ div >
2022-04-13 16:11:41 +02:00
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< div class = " col6 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Contenu avancé' ); ?>
</ h4 >
2022-09-29 08:45:59 +02:00
< div class = " row " >
< div class = " col6 offset3 " >
< ? php echo template :: button ( 'pageEditCssEditor' , [
'href' => helper :: baseUrl () . 'page/cssEditor/' . $this -> getUrl ( 2 ),
'value' => 'Éditeur CSS' ,
'help' => 'Feuille de style spécifique à la page.'
]); ?>
2022-04-13 16:11:41 +02:00
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< div class = " row " >
< div class = " col6 offset3 " >
< ? php echo template :: button ( 'pageEditJsEditor' , [
'href' => helper :: baseUrl () . 'page/jsEditor/' . $this -> getUrl ( 2 ),
'value' => 'Éditeur JS' ,
'help' => 'Instructions JS ou jquery spécifiques à la page.'
]); ?>
2022-04-13 16:11:41 +02:00
</ div >
</ div >
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
2022-04-13 16:11:41 +02:00
2022-09-29 08:45:59 +02:00
< div id = " pageEditLayoutContainer " class = " tabContent " >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Mise en page' ); ?>
2022-09-29 08:45:59 +02:00
</ h4 >
< div class = " blockContainer " >
< div class = " row " >
< div class = " col6 " >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: select ( 'pageEditBlock' , $module :: $pageBlocks , [
2022-10-03 14:04:47 +02:00
'label' => 'Gabarits de page - Barre latérale' ,
2022-09-29 08:45:59 +02:00
'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'block' ])
]); ?>
2022-03-04 10:15:24 +01:00
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< div class = " col6 " >
<!-- Sélection des barres latérales -->
2023-07-28 11:13:31 +02:00
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false , true )) : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: hidden ( 'pageEditBarLeft' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barLeft' ])
2022-03-04 10:15:24 +01:00
]); ?>
2023-07-28 11:13:31 +02:00
< ? php else : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: select ( 'pageEditBarLeft' , $module :: $pagesBarId , [
'label' => 'Barre latérale gauche :' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barLeft' ])
]); ?>
< ? php endif ; ?>
2023-07-28 11:13:31 +02:00
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false , true )) : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: hidden ( 'pageEditBarRight' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barRight' ])
]); ?>
2023-07-28 11:13:31 +02:00
< ? php else : ?>
2022-09-29 08:45:59 +02:00
< ? php echo template :: select ( 'pageEditBarRight' , $module :: $pagesBarId , [
'label' => 'Barre latérale droite :' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barRight' ])
]); ?>
< ? php endif ; ?>
< ? php echo template :: select ( 'pageEditDisplayMenu' , $module :: $displayMenu , [
'label' => 'Contenu du menu vertical' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'displayMenu' ]),
'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.'
]); ?>
2021-12-02 11:16:10 +01:00
</ div >
</ div >
2023-08-30 20:02:23 +02:00
< div class = " row navSelect " >
< div class = " col4 " >
< ? php echo template :: select ( 'pageEditNavLeft' , $module :: $navIconPosition , [
'label' => 'Bouton de navigation gauche' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'navLeft' ]),
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: select ( 'pageEditNavTemplate' , $module :: $navIconTemplate , [
'label' => 'Modèle' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'navTemplate' ]),
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: select ( 'pageEditNavRight' , $module :: $navIconPosition , [
'label' => 'Bouton de navigation droit' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'navRight' ]),
]); ?>
</ div >
</ div >
2021-12-02 11:16:10 +01:00
</ div >
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
2022-03-04 10:15:24 +01:00
2022-09-29 08:45:59 +02:00
< div id = " pageEditPermissionContainer " class = " tabContent " >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-07-28 11:13:31 +02:00
< h4 >
< ? php echo helper :: translate ( 'Permission et référencement' ); ?>
2022-09-29 08:45:59 +02:00
</ h4 >
< div class = " blockContainer " >
< div class = " row " >
< div class = 'col6' >
< ? php echo template :: select ( 'pageEditGroup' , self :: $groupPublics , [
2023-07-28 11:13:31 +02:00
'label' => 'Groupe minimal pour accéder à la page' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'group' ]),
'help' => 'Les groupes de niveau supérieur accèdent à la page.'
2022-09-29 08:45:59 +02:00
]); ?>
</ div >
2023-07-28 11:13:31 +02:00
< div class = " col6 " >
< div class = " pageEditGroupProfil displayNone "
id = " pageEditGroupProfil<?php echo self::GROUP_MEMBER; ?> " >
< ? php echo template :: select ( 'pageEditProfil' . self :: GROUP_MEMBER , $module :: $userProfils [ self :: GROUP_MEMBER ], [
'label' => 'Profil minimal pour accéder à la page' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'profil' ]),
'help' => 'Les profils de niveau supérieur accèdent à la page.' ,
]); ?>
</ div >
< div class = " pageEditGroupProfil displayNone "
id = " pageEditGroupProfil<?php echo self::GROUP_EDITOR; ?> " >
< ? php echo template :: select ( 'pageEditProfil' . self :: GROUP_EDITOR , $module :: $userProfils [ self :: GROUP_EDITOR ], [
'label' => 'Profil minimal pour accéder à la page' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'profil' ]),
'help' => 'Les profils de niveau supérieur accèdent à la page.' ,
]); ?>
</ div >
</ div >
</ div >
< div class = " row " >
2022-09-29 08:45:59 +02:00
< 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' ])
]); ?>
2022-04-13 16:11:41 +02:00
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >
< ? php echo template :: formClose (); ?>