2019-05-02 13:21:48 +02:00
< ? php
2019-12-03 14:56:32 +01:00
echo template :: formOpen ( 'pageEditForm' );
// Mise à jour de la liste des pages pour TinyMCE
$this -> pages2Json (); ?>
2018-04-02 08:29:19 +02:00
< div class = " row " >
2018-11-13 18:33:22 +01:00
< div class = " col2 " >
< ? php $href = helper :: baseUrl () . $this -> getUrl ( 2 ); ?>
2020-09-20 16:06:58 +02:00
< ? php if ( $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ]) === 'redirection' || 'code' ) $href = helper :: baseUrl (); ?>
2018-04-02 08:29:19 +02:00
< ? php echo template :: button ( 'pageEditBack' , [
'class' => 'buttonGrey' ,
2018-11-13 18:33:22 +01:00
'href' => $href ,
2018-04-02 08:29:19 +02:00
'ico' => 'left' ,
'value' => 'Retour'
]); ?>
</ div >
2020-09-20 16:06:58 +02:00
< div class = " col2 offset4 " >
< ? php echo template :: button ( 'pageEditDuplicate' , [
'href' => helper :: baseUrl () . 'page/duplicate/' . $this -> getUrl ( 2 ) . '&csrf=' . $_SESSION [ 'csrf' ],
'value' => 'Dupliquer' ,
'ico' => 'clone'
]); ?>
</ div >
< div class = " col2 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: button ( 'pageEditDelete' , [
'class' => 'buttonRed' ,
2019-01-04 23:27:35 +01:00
'href' => helper :: baseUrl () . 'page/delete/' . $this -> getUrl ( 2 ) . '&csrf=' . $_SESSION [ 'csrf' ],
2018-04-02 08:29:19 +02:00
'value' => 'Supprimer' ,
'ico' => 'cancel'
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: submit ( 'pageEditSubmit' ); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " info " >
< h4 > Informations générales </ h4 >
2018-04-02 08:29:19 +02:00
< div class = " row " >
2019-06-27 11:30:00 +02:00
< div class = " col8 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: text ( 'pageEditTitle' , [
'label' => 'Titre' ,
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'title' ])
]); ?>
</ div >
2019-06-27 11:30:00 +02:00
< div class = " col4 " >
2018-04-02 08:29:19 +02:00
< div class = " row " >
2019-06-30 22:03:53 +02:00
< div class = " col9 " >
2018-04-02 08:29:19 +02:00
< ? 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' ])
]); ?>
2020-05-02 10:30:55 +02:00
< ? php echo template :: hidden ( 'pageEditModuleIdOld' ,[ 'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ])]); ?>
< ? php echo template :: hidden ( 'pageEditModuleIdOldText' ,[
2021-02-09 18:04:24 +01:00
'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' ]))
2020-05-03 11:16:41 +02:00
]); ?>
2018-04-02 08:29:19 +02:00
</ div >
2019-06-30 22:03:53 +02:00
< div class = " col3 verticalAlignBottom " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: button ( 'pageEditModuleConfig' , [
'disabled' => ( bool ) $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'moduleId' ]) === false ,
2020-06-07 18:55:38 +02:00
'uniqueSubmission' => true ,
2018-04-02 08:29:19 +02:00
'value' => template :: ico ( 'gear' )
]); ?>
</ div >
</ div >
</ div >
</ div >
2019-01-30 19:38:17 +01:00
< div class = " row " >
2019-06-27 11:30:00 +02:00
< div class = " col4 " >
2019-04-13 22:25:10 +02:00
< ? php echo template :: select ( 'pageTypeMenu' , $module :: $typeMenu ,[
2020-08-15 10:03:36 +02:00
'label' => 'Aspect du lien' ,
2019-04-13 22:25:10 +02:00
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'typeMenu' ])
]); ?>
</ div >
2019-06-27 11:30:00 +02:00
< div class = " col4 " >
< ? php echo template :: file ( 'pageIconUrl' , [
2020-08-15 10:03:36 +02:00
'help' => 'Sélectionnez une image ou une icône de petite dimension' ,
2020-07-08 21:07:30 +02:00
'label' => 'Icône' ,
2019-06-27 11:30:00 +02:00
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'iconUrl' ])
]); ?>
</ div >
< div class = " col4 " >
2019-01-30 19:38:17 +01:00
< ? php echo template :: select ( 'configModulePosition' , $module :: $modulePosition ,[
2019-09-27 15:27:16 +02:00
'help' => 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.' ,
2020-08-15 10:03:36 +02:00
'label' => 'Position du module' ,
2019-01-30 19:38:17 +01:00
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'modulePosition' ])
]); ?>
</ div >
2019-06-27 11:30:00 +02:00
</ div >
2018-04-02 08:29:19 +02:00
</ div >
</ div >
</ div >
2020-06-07 17:04:02 +02:00
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: textarea ( 'pageEditContent' , [
'class' => 'editorWysiwyg' ,
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'content' ])
]); ?>
</ div >
</ div >
2018-04-02 08:29:19 +02:00
< div class = " row " >
2020-06-07 18:55:38 +02:00
< div class = " col12 " id = " pageEditBlockLayout " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " layout " >
2020-07-15 22:56:03 +02:00
< h4 > Mise en page
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-07 18:55:38 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col6 " >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: select ( 'pageEditBlock' , $module :: $pageBlocks , [
'label' => 'Gabarits de page / Barre latérale' ,
'help' => 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ) , 'block' ])
]); ?>
</ div >
</ div >
</ div >
< div class = " col6 " >
<!-- Sélection des barres latérales -->
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false , true )) : ?>
< ? php echo template :: hidden ( 'pageEditBarLeft' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barLeft' ])
]); ?>
< ? php else : ?>
< ? php echo template :: select ( 'pageEditBarLeft' , $module :: $pagesBarId , [
'label' => 'Barre latérale gauche :' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barLeft' ])
]); ?>
< ? php endif ; ?>
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false , true )) : ?>
< ? php echo template :: hidden ( 'pageEditBarRight' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'barRight' ])
]); ?>
< ? php else : ?>
< ? 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.'
2019-06-25 20:50:54 +02:00
]); ?>
2020-06-07 18:55:38 +02:00
</ div >
2019-05-02 13:21:48 +02:00
</ div >
2019-06-25 20:50:54 +02:00
</ div >
</ div >
2020-06-07 18:55:38 +02:00
</ div >
</ div >
< div class = " row " >
< div class = " col12 " id = " pageEditMenu " >
2020-06-12 18:22:34 +02:00
< div class = " block " id = " location " >
2020-07-15 22:56:03 +02:00
< h4 > Emplacement dans le menu
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-07 18:55:38 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: select ( 'pageEditPosition' , [], [
'label' => 'Position' ,
'help' => '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.'
2019-06-25 20:50:54 +02:00
]); ?>
2020-06-07 18:55:38 +02:00
</ div >
< div class = " col6 " >
< ? php if ( $this -> getHierarchy ( $this -> getUrl ( 2 ), false )) : ?>
< ? php echo template :: hidden ( 'pageEditParentPageId' , [
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'parentPageId' ])
]); ?>
< ? php else : ?>
< ? php echo template :: select ( 'pageEditParentPageId' , $module :: $pagesNoParentId , [
'label' => 'Page parent' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'parentPageId' ])
]); ?>
< ? php endif ; ?>
</ div >
2019-05-02 13:21:48 +02:00
</ div >
2020-07-08 21:15:38 +02:00
2020-06-07 18:55:38 +02:00
< div class = " row " >
2021-03-26 21:52:02 +01:00
< div class = " col4 " >
2020-06-07 18:55:38 +02:00
< ? php echo template :: checkbox ( 'pageEditDisable' , true , 'Désactivée' , [
2020-07-08 21:07:30 +02:00
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'disable' ]),
2020-06-07 18:55:38 +02:00
'help' => 'Une page désactivée n\'est pas cliquable en mode déconnecté, les pages enfants sont visibles et accessibles. La page d\'accueil n\'est pas désactivable.'
]); ?>
</ div >
2021-03-26 21:52:02 +01:00
< div class = " col4 " >
2020-07-08 21:15:38 +02:00
< ? php echo template :: checkbox ( 'pageEditTargetBlank' , true , 'Nouvel onglet' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'targetBlank' ])
2020-07-08 21:07:30 +02:00
]); ?>
</ div >
2021-03-26 21:52:02 +01:00
< div class = " col4 " >
< ? php echo template :: checkbox ( 'pageEditLity' , true , 'Fenêtre superposée' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'lity' ]),
'help' => 'Affiche la page dans une fenêtre superposée, cette option ne s\'applique pas en mode connecté.'
]); ?>
</ div >
2020-07-08 21:15:38 +02:00
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'pageEditHideTitle' , true , 'Titre masqué' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'hideTitle' ])
]); ?>
</ div >
< div class = " col6 " >
2020-07-08 21:07:30 +02:00
< ? php echo template :: checkbox ( 'pageEditbreadCrumb' , true , 'Fil d\'Ariane' , [
2020-07-08 21:15:38 +02:00
'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é.'
2020-07-08 21:07:30 +02:00
]); ?>
</ div >
2019-05-02 13:21:48 +02:00
</ div >
2020-06-07 18:55:38 +02:00
</ div >
2019-05-02 13:21:48 +02:00
</ div >
2019-06-25 20:50:54 +02:00
</ div >
2019-02-02 12:04:01 +01:00
</ div >
2020-06-07 18:55:38 +02:00
< div class = 'row' id = " pageEditAdvancedWrapper " >
2019-05-09 21:23:31 +02:00
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " advanced " >
2020-08-15 10:03:36 +02:00
< h4 > Options d ' emplacement avancées
2020-07-15 22:56:03 +02:00
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-07 18:55:38 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = " col6 " >
2020-07-08 21:07:30 +02:00
< ? php echo template :: checkbox ( 'pageEditHideMenuChildren' , true , 'Masquer les pages enfants dans le menu horizontal' , [
'checked' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'hideMenuChildren' ])
2020-06-07 18:55:38 +02:00
]); ?>
</ div >
< div class = " col6 " >
2020-07-08 21:07:30 +02:00
< ? php echo template :: checkbox ( 'pageEditHideMenuSide' , true , 'Masquer la page et les pages enfants dans le menu d\'une barre latérale' , [
2020-06-07 18:55:38 +02:00
'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 >
2019-05-09 21:23:31 +02:00
</ div >
</ div >
2018-04-02 08:29:19 +02:00
</ div >
</ div >
2020-06-07 18:55:38 +02:00
< div class = 'row' id = " pageEditSeoWrapper " >
2019-11-24 10:23:41 +01:00
< div class = " col12 " >
2020-06-11 11:25:53 +02:00
< div class = " block " id = " ceo " >
2020-07-15 22:56:03 +02:00
< h4 > Permission et référencement
< div class = " openClose " >
< ? php
2020-09-19 18:14:06 +02:00
echo template :: ico ( 'plus-circled' , 'right' );
echo template :: ico ( 'minus-circled' , 'right' );
2020-07-15 22:56:03 +02:00
?>
</ div >
</ h4 >
2020-06-07 18:55:38 +02:00
< div class = " blockContainer " >
< div class = " row " >
< div class = 'col6' >
< ? php echo template :: select ( 'pageEditGroup' , self :: $groupPublics , [
'label' => 'Groupe requis pour accéder à la page :' ,
'selected' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'group' ])
]); ?>
</ div >
< div class = 'col12' >
< ? php echo template :: text ( 'pageEditMetaTitle' , [
'label' => 'Méta-titre' ,
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'metaTitle' ])
2019-12-01 14:51:51 +01:00
]); ?>
2020-06-07 18:55:38 +02:00
< ? php echo template :: textarea ( 'pageEditMetaDescription' , [
'label' => 'Méta-description' ,
//'maxlength' => '500',
'value' => $this -> getData ([ 'page' , $this -> getUrl ( 2 ), 'metaDescription' ])
2019-12-01 14:51:51 +01:00
]); ?>
2020-06-07 18:55:38 +02:00
</ div >
</ div >
2019-12-01 14:51:51 +01:00
</ div >
2019-11-24 10:23:41 +01:00
</ div >
</ div >
</ div >
2019-05-02 13:21:48 +02:00
< ? php echo template :: formClose (); ?>