2018-04-02 08:29:19 +02:00
< ? php echo template :: formOpen ( 'configForm' ); ?>
2019-12-10 10:53:31 +01:00
< div class = " notranslate " >
2018-04-02 08:29:19 +02:00
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'configBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl ( false ),
'ico' => 'home' ,
'value' => 'Accueil'
]); ?>
</ div >
2019-12-10 10:53:31 +01:00
< div class = " col3 offset5 " >
< ? php echo template :: button ( 'configManageButton' , [
'href' => helper :: baseUrl () . 'config/manage' ,
'value' => 'Sauvegarder / Restaurer'
]); ?>
</ div >
< div class = " col2 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: submit ( 'configSubmit' ); ?>
</ div >
</ div >
< div class = " row " >
2019-06-07 23:18:44 +02:00
< div class = " col12 " >
2018-04-02 08:29:19 +02:00
< div class = " block " >
< h4 > Informations générales </ h4 >
2019-06-08 13:24:17 +02:00
< div class = " row " >
< div class = " col4 " >
2019-12-16 14:09:46 +01:00
< ? php
$pages = $this -> getData ([ 'page' ]);
foreach ( $pages as $page => $pageId ) {
if ( $this -> getData ([ 'page' , $page , 'block' ]) === 'bar' ||
$this -> getData ([ 'page' , $page , 'disable' ]) === true ) {
unset ( $pages [ $page ]);
}
}
echo template :: select ( 'configHomePageId' , helper :: arrayCollumn ( $pages , 'title' , 'SORT_ASC' ), [
2019-06-08 13:24:17 +02:00
'label' => 'Page d\'accueil' ,
2019-12-11 22:42:05 +01:00
'selected' => $this -> getData ([ 'config' , 'homePageId' ])
2019-06-08 13:24:17 +02:00
]); ?>
</ div >
< div class = " col8 " >
< ? php echo template :: text ( 'configTitle' , [
'label' => 'Titre du site' ,
'value' => $this -> getData ([ 'config' , 'title' ]),
2019-12-11 22:42:05 +01:00
'help' => 'Le titre apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
2019-06-08 13:24:17 +02:00
]); ?>
</ div >
</ div >
2018-04-02 08:29:19 +02:00
< ? php echo template :: textarea ( 'configMetaDescription' , [
'label' => 'Description du site' ,
2018-10-24 22:48:10 +02:00
'value' => $this -> getData ([ 'config' , 'metaDescription' ]),
2019-12-11 22:42:05 +01:00
'help' => 'La description apparaît dans les partages sur les réseaux sociaux.'
2018-04-02 08:29:19 +02:00
]); ?>
</ div >
2019-06-07 23:18:44 +02:00
</ div >
</ div >
< div class = " row " >
2019-12-10 10:53:31 +01:00
< div class = " col12 " >
2018-04-02 08:29:19 +02:00
< div class = " block " >
2019-06-12 09:45:42 +02:00
< h4 > Réglages </ h4 >
2019-06-24 21:52:24 +02:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: file ( 'configFavicon' , [
'type' => 1 ,
'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon' ,
'value' => $this -> getData ([ 'config' , 'favicon' ])
]); ?>
2019-02-14 18:58:10 +01:00
</ div >
2019-06-24 21:52:24 +02:00
< div class = " col6 " >
< ? php echo template :: select ( 'itemsperPage' , $module :: $ItemsList , [
'label' => 'Articles par page' ,
'selected' => $this -> getData ([ 'config' , 'itemsperPage' ]),
'help' => 'Modules Blog et News'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
2019-06-12 09:45:42 +02:00
< ? php echo template :: select ( 'configTimezone' , $module :: $timezones , [
'label' => 'Fuseau horaire' ,
2019-07-04 20:42:23 +02:00
'selected' => $this -> getData ([ 'config' , 'timezone' ]),
'help' => 'Le fuseau horaire est utile au bon référencement'
2019-06-12 09:45:42 +02:00
]); ?>
2019-06-24 21:52:24 +02:00
</ div >
< div class = " col6 " >
< ? php $listePageId = array_merge ([ '' => 'Sélectionner' ] , helper :: arrayCollumn ( $this -> getData ([ 'page' ]), 'title' , 'SORT_ASC' ) );
?>
< ? php echo template :: select ( 'configLegalPageId' , $listePageId , [
2019-07-04 20:42:23 +02:00
'label' => 'Mentions légales' ,
'selected' => $this -> getData ([ 'config' , 'legalPageId' ]),
'help' => 'Les mentions légales sont obligatoires en France'
2019-06-24 21:52:24 +02:00
]); ?>
</ div >
</ div >
2019-12-10 10:53:31 +01:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configCookieConsent' , true , 'Message de consentement aux cookies' , [
'checked' => $this -> getData ([ 'config' , 'cookieConsent' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'rewrite' , true , 'Réécriture d\'URL' , [
'checked' => helper :: checkRewrite (),
'help' => 'Vérifiez d\'abord que votre serveur l\'autorise : ce n\'est pas le cas chez Free.'
]); ?>
</ div >
2019-11-21 22:18:42 +01:00
</ div >
2019-12-10 10:53:31 +01:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configMaintenance' , true , 'Site en maintenance' , [
'checked' => $this -> getData ([ 'config' , 'maintenance' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configAutoUpdate' , true , 'Mise à jour automatique' , [
'checked' => $this -> getData ([ 'config' , 'autoUpdate' ]),
2019-12-11 22:46:07 +01:00
'help' => 'Vérification quotidienne des mises à jour.'
2019-12-10 10:53:31 +01:00
]); ?>
</ div >
</ div >
2019-06-07 23:18:44 +02:00
</ div >
2018-04-02 08:29:19 +02:00
</ div >
2019-12-10 10:53:31 +01:00
</ div >
< div class = " row " >
2019-06-08 20:21:51 +02:00
< div class = " col6 " >
2018-04-02 08:29:19 +02:00
< div class = " block " >
< h4 > Réseaux sociaux </ h4 >
< div class = " row " >
2019-12-10 10:53:31 +01:00
< div class = " col6 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: text ( 'configSocialFacebookId' , [
2019-05-02 13:21:48 +02:00
'help' => 'Saisissez votre ID : https://www.facebook.com/[ID].' ,
2018-04-02 08:29:19 +02:00
'label' => 'Facebook' ,
'value' => $this -> getData ([ 'config' , 'social' , 'facebookId' ])
]); ?>
</ div >
2019-12-10 10:53:31 +01:00
< div class = " col6 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: text ( 'configSocialInstagramId' , [
2019-05-02 13:21:48 +02:00
'help' => 'Saisissez votre ID : https://www.instagram.com/[ID].' ,
2018-04-02 08:29:19 +02:00
'label' => 'Instagram' ,
'value' => $this -> getData ([ 'config' , 'social' , 'instagramId' ])
]); ?>
</ div >
2019-12-10 10:53:31 +01:00
</ div >
2019-06-08 13:24:17 +02:00
< div class = " row " >
2019-12-10 10:53:31 +01:00
< div class = " col6 " >
< ? php echo template :: text ( 'configSocialYoutubeId' , [
'help' => 'Saisissez votre ID : https://www.youtube.com/channel/[ID].' ,
'label' => 'Youtube' ,
'value' => $this -> getData ([ 'config' , 'social' , 'youtubeId' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: text ( 'configSocialTwitterId' , [
'help' => 'Saisissez votre ID : https://twitter.com/[ID].' ,
'label' => 'Twitter' ,
2018-04-02 08:29:19 +02:00
'value' => $this -> getData ([ 'config' , 'social' , 'twitterId' ])
]); ?>
</ div >
2019-12-10 10:53:31 +01:00
</ div >
< div class = " row " >
< div class = " col6 " >
2019-03-05 09:46:34 +01:00
< ? php echo template :: text ( 'configSocialPinterestId' , [
2019-06-12 09:45:42 +02:00
'help' => 'Saisissez votre ID : https://pinterest.com/[ID].' ,
2019-03-05 09:46:34 +01:00
'label' => 'Pinterest' ,
'value' => $this -> getData ([ 'config' , 'social' , 'pinterestId' ])
2018-04-02 08:29:19 +02:00
]); ?>
2019-03-05 09:46:34 +01:00
</ div >
2019-12-10 10:53:31 +01:00
< div class = " col6 " >
2019-06-12 09:45:42 +02:00
< ? php echo template :: text ( 'configSocialLinkedinId' , [
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].' ,
'label' => 'Linkedin' ,
'value' => $this -> getData ([ 'config' , 'social' , 'linkedinId' ])
]); ?>
</ div >
</ div >
< div class = " row " >
2019-12-10 10:53:31 +01:00
< div class = " col6 offset3 " >
2019-06-12 09:45:42 +02:00
< ? php echo template :: text ( 'configSocialGithubId' , [
'help' => 'Saisissez votre ID Github : https://github.com/[ID].' ,
'label' => 'Github' ,
'value' => $this -> getData ([ 'config' , 'social' , 'githubId' ])
2019-05-02 13:21:48 +02:00
]); ?>
</ div >
2018-04-02 08:29:19 +02:00
</ div >
</ div >
2019-06-07 23:18:44 +02:00
</ div >
2019-12-10 10:53:31 +01:00
<!--</ div >
< div class = " row " >-->
2019-06-07 23:18:44 +02:00
< div class = " col6 " >
< div class = " block " >
2019-06-08 20:15:55 +02:00
< h4 > Référencement </ h4 >
2019-06-12 09:45:42 +02:00
< div class = " row " >
2019-12-04 17:23:03 +01:00
< div class = " col5 " >
< ? php echo template :: button ( 'configMetaImage' , [
'href' => helper :: baseUrl () . 'config/configMetaImage' ,
'value' => 'Rafraîchir la capture d\'écran Open Graph'
]); ?>
2019-06-07 23:18:44 +02:00
</ div >
2019-12-04 17:23:03 +01:00
< div class = " col5 offset2 " >
2019-06-08 20:15:55 +02:00
< ? php echo template :: button ( 'configSiteMap' , [
'href' => helper :: baseUrl () . 'config/generateFiles' ,
'value' => 'Générer sitemap.xml et robots.txt'
]); ?>
</ div >
2019-06-08 13:24:17 +02:00
</ div >
2019-12-04 17:23:03 +01:00
< div class = " row " >
< div class = " col12 textAlignCenter " >
< img src = " <?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.png';?> " data - tippy - content = " Cette capture d'écran est nécessaire aux partages sur les réseaux sociaux. Elle est régénérée lorsque le fichier 'screenshot.png' est effacé du gestionnaire de fichiers. " />
</ div >
</ div >
2019-06-07 23:18:44 +02:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2019-06-08 13:24:17 +02:00
< ? php
// Lire le contenu des fichiers de script
$headerFile = " " ;
2019-06-07 23:18:44 +02:00
if ( file_exists ( self :: DATA_DIR . 'head.inc.html' )) {
$headerFile = file_get_contents ( self :: DATA_DIR . 'head.inc.html' );
}
2019-06-08 13:24:17 +02:00
$bodyFile = " " ;
2019-06-07 23:18:44 +02:00
if ( file_exists ( self :: DATA_DIR . 'body.inc.html' )) {
$bodyFile = file_get_contents ( self :: DATA_DIR . 'body.inc.html' );
2019-06-08 13:24:17 +02:00
}
2019-06-07 23:18:44 +02:00
?>
< div class = " block " >
2019-06-08 13:24:17 +02:00
< h4 > Options avancées </ h4 >
< div class = " row " >
2019-06-08 21:29:48 +02:00
< div class = " col3 " >
2019-06-08 13:24:17 +02:00
< ? php echo template :: text ( 'configAnalyticsId' , [
'help' => 'Saisissez l\'ID de suivi.' ,
'label' => 'Google Analytics' ,
'placeholder' => 'UA-XXXXXXXX-X' ,
'value' => $this -> getData ([ 'config' , 'analyticsId' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: textarea ( 'configScriptHead' , [
2019-06-12 09:45:42 +02:00
'label' => 'Insérer un script dans "Head"' ,
2019-06-08 13:24:17 +02:00
'value' => $headerFile
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: textarea ( 'configScriptBody' , [
2019-06-12 09:45:42 +02:00
'label' => 'Insérer un script dans "Body"' ,
2019-06-08 13:24:17 +02:00
'value' => $bodyFile
]); ?>
</ div >
</ div >
2019-06-07 23:18:44 +02:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2019-06-12 09:45:42 +02:00
< h4 > Versions système </ h4 >
2019-06-07 23:18:44 +02:00
< div class = " row " >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-02-14 18:58:10 +01:00
< ? php echo template :: text ( 'configVersion' , [
2019-05-02 13:21:48 +02:00
'label' => 'ZwiiCMS' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
2019-02-15 08:44:33 +01:00
'value' => common :: ZWII_VERSION
2019-02-14 18:58:10 +01:00
]); ?>
2019-06-12 09:45:42 +02:00
</ div >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-06-12 09:45:42 +02:00
< ? php echo template :: text ( 'moduleBlogVersion' , [
'label' => 'Blog' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
2019-06-12 09:45:42 +02:00
'value' => blog :: BLOG_VERSION
2019-02-14 18:58:10 +01:00
]); ?>
2019-06-07 23:18:44 +02:00
</ div >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-02-14 18:58:10 +01:00
< ? php echo template :: text ( 'moduleFormVersion' , [
2019-06-08 13:24:17 +02:00
'label' => 'Form' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
'value' => form :: FORM_VERSION
]); ?>
</ div >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-02-14 18:58:10 +01:00
< ? php echo template :: text ( 'moduleGalleryVersion' , [
2019-06-08 13:24:17 +02:00
'label' => 'Gallery' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
'value' => gallery :: GALLERY_VERSION
]); ?>
2019-06-07 23:18:44 +02:00
</ div >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-02-14 18:58:10 +01:00
< ? php echo template :: text ( 'moduleNewsVersion' , [
2019-06-08 13:24:17 +02:00
'label' => 'News' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
'value' => news :: NEWS_VERSION
]); ?>
</ div >
2019-06-08 13:24:17 +02:00
< div class = " col2 " >
2019-06-12 09:45:42 +02:00
< ? php echo template :: text ( 'moduleRedirectionVersion' , [
'label' => 'Redirection' ,
2019-02-14 18:58:10 +01:00
'readonly' => true ,
2019-06-12 09:45:42 +02:00
'value' => redirection :: REDIRECTION_VERSION
2019-02-14 18:58:10 +01:00
]); ?>
2019-06-12 09:45:42 +02:00
</ div >
2019-06-07 23:18:44 +02:00
</ div >
2018-04-02 08:29:19 +02:00
</ div >
</ div >
</ div >
2019-12-10 10:53:31 +01:00
</ div >
2019-07-04 20:42:23 +02:00
< ? php echo template :: formClose (); ?>