2021-10-29 16:14:51 +02:00
< ? php echo template :: formOpen ( 'configAdvancedForm' ); ?>
2021-10-29 18:34:01 +02:00
< div class = " helpDisplayContent " >
< ? php echo file_get_contents ( 'core/module/config/view/index/index.help.html' ) ; ?>
</ div >
2020-05-12 16:28:10 +02:00
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'configBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl ( false ),
'ico' => 'home' ,
'value' => 'Accueil'
]); ?>
</ div >
2021-05-09 10:41:19 +02:00
< div class = " col2 " >
2021-10-29 16:14:51 +02:00
< ? php echo template :: button ( 'configAdvancedHelp' , [
2021-05-09 10:41:19 +02:00
'class' => 'buttonHelp' ,
'ico' => 'help' ,
'value' => 'Aide'
]); ?>
</ div >
2021-10-29 16:14:51 +02:00
< div class = " col2 offset6 " >
< ? php echo template :: submit ( 'configAdvancedSubmit' ); ?>
2020-05-12 16:28:10 +02:00
</ div >
</ div >
2021-10-29 16:14:51 +02:00
<!-- Aide à propos de la configuration du site , view advanced -->
2020-05-12 16:28:10 +02:00
< div class = " row " >
< div class = " col12 " >
2021-10-29 16:14:51 +02:00
< div class = " row textAlignCenter " >
< div class = " col2 " >
< ? php echo template :: button ( 'configAdvancedButton' , [
'href' => helper :: baseUrl () . 'config/index' ,
2021-10-29 18:34:01 +02:00
'value' => 'Paramètres'
2021-10-29 16:14:51 +02:00
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'configAdvancedButton' , [
'href' => helper :: baseUrl () . 'config/locale' ,
'value' => 'Localisation'
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'configAdvancedButton' , [
'href' => helper :: baseUrl () . 'config/social' ,
'value' => 'Référencement'
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'configAdvancedButton' , [
'href' => helper :: baseUrl () . 'config/safety' ,
'value' => 'Sécurité'
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'configAdvancedButton' , [
'href' => helper :: baseUrl () . 'config/network' ,
'value' => 'Réseau'
]); ?>
2021-10-01 15:53:38 +02:00
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2021-10-29 16:14:51 +02:00
< h4 > Paramètres </ h4 >
2020-07-06 19:50:53 +02:00
< div class = " row " >
2021-10-29 16:14:51 +02:00
< div class = " col4 " >
< ? php echo template :: file ( 'configAdvancedFavicon' , [
'type' => 1 ,
'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon' ,
'value' => $this -> getData ([ 'config' , 'favicon' ])
2020-07-06 19:50:53 +02:00
]); ?>
</ div >
2021-10-29 16:14:51 +02:00
< div class = " col4 " >
< ? php echo template :: file ( 'configAdvancedFaviconDark' , [
'type' => 1 ,
'help' => 'Sélectionnez une icône adaptée à un thème sombre.<br>Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon thème sombre' ,
'value' => $this -> getData ([ 'config' , 'faviconDark' ])
2020-09-27 12:32:34 +02:00
]); ?>
</ div >
2021-10-29 16:14:51 +02:00
< div class = " col4 " >
< ? php echo template :: select ( 'configAdvancedTimezone' , $module :: $timezones , [
'label' => 'Fuseau horaire' ,
'selected' => $this -> getData ([ 'config' , 'timezone' ]),
'help' => 'Le fuseau horaire est utile au bon référencement'
2020-07-06 19:50:53 +02:00
]); ?>
2020-05-25 11:58:54 +02:00
</ div >
2021-10-29 14:01:59 +02:00
</ div >
< div class = " row " >
2021-10-29 16:14:51 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configAdvancedCookieConsent' , true , 'Message de consentement aux cookies' , [
'checked' => $this -> getData ([ 'config' , 'cookieConsent' ]),
'help' => 'Activation obligatoire selon les lois françaises sauf si vous utilisez votre propre système de consentement.'
2021-10-29 14:01:59 +02:00
]); ?>
</ div >
2021-10-29 16:14:51 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'rewrite' , true , 'URL intelligentes' , [
'checked' => helper :: checkRewrite (),
'help' => 'Vérifiez d\'abord que votre serveur autorise l\'URL rewriting (ce qui n\'est pas le cas chez Free).'
2021-10-29 14:01:59 +02:00
]); ?>
</ div >
</ div >
2021-06-04 13:00:35 +02:00
</ div >
</ div >
</ div >
2020-08-15 09:48:13 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2021-10-29 16:14:51 +02:00
< h4 > Mises à jour automatisée </ h4 >
< ? php $updateError = helper :: urlGetContents ( common :: ZWII_UPDATE_URL . common :: ZWII_UPDATE_CHANNEL . '/version' ); ?>
2020-08-15 09:48:13 +02:00
< div class = " row " >
< div class = " col4 " >
2021-10-29 16:14:51 +02:00
< ? php echo template :: checkbox ( 'configAdvancedAutoUpdate' , true , 'Rechercher une mise à jour en ligne' , [
'checked' => $this -> getData ([ 'config' , 'autoUpdate' ]),
'help' => 'La vérification est quotidienne. Option désactivée si la configuration du serveur ne le permet pas.' ,
'disabled' => ! $updateError
]); ?>
2020-08-15 09:48:13 +02:00
</ div >
2020-09-12 09:52:30 +02:00
< div class = " col4 " >
2021-10-29 16:14:51 +02:00
< ? php echo template :: checkbox ( 'configAdvancedAutoUpdateHtaccess' , true , 'Préserver le fichier htaccess racine' , [
'checked' => $this -> getData ([ 'config' , 'autoUpdateHtaccess' ]),
'help' => 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.' ,
'disabled' => ! $updateError
2020-08-15 09:48:13 +02:00
]); ?>
</ div >
< div class = " col4 " >
2021-10-29 16:14:51 +02:00
< ? php echo template :: button ( 'configAdvancedUpdateForced' , [
'ico' => 'download-cloud' ,
'href' => helper :: baseUrl () . 'install/update' ,
'value' => 'Mise à jour manuelle' ,
'class' => 'buttonRed' ,
'disabled' => ! $updateError
]); ?>
2020-08-15 09:48:13 +02:00
</ div >
2021-10-01 15:53:38 +02:00
</ div >
2021-10-29 16:14:51 +02:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
< h4 > Maintenance </ h4 >
2021-10-01 15:53:38 +02:00
< div class = " row " >
2021-10-29 19:25:17 +02:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configAdvancedAutoBackup' , true , 'Sauvegarde automatique quotidienne du site' , [
'checked' => $this -> getData ([ 'config' , 'autoBackup' ]),
'help' => 'Une archive contenant le dossier /site/data est copiée dans le dossier \'site/backup\'. La sauvegarde est conservée pendant 30 jours.</p><p>Les fichiers du site ne sont pas sauvegardés automatiquement. Activation recommandée.'
]); ?>
</ div >
< div class = " col6 " >
2021-10-29 16:14:51 +02:00
< ? php echo template :: checkbox ( 'configAdvancedMaintenance' , true , 'Site en maintenance' , [
'checked' => $this -> getData ([ 'config' , 'maintenance' ])
2021-10-01 15:53:38 +02:00
]); ?>
</ div >
2021-10-29 19:25:17 +02:00
</ div >
< div class = " rows textAlignCenter " >
2021-10-29 16:14:51 +02:00
< div class = " col3 " >
< ? php echo template :: button ( 'configBackupButton' , [
'href' => helper :: baseUrl () . 'config/backup' ,
'value' => 'Sauvegarder' ,
'ico' => 'download-cloud'
2021-10-01 15:53:38 +02:00
]); ?>
</ div >
2021-10-29 16:14:51 +02:00
< div class = " col3 " >
< ? php echo template :: button ( 'configRestoreButton' , [
'href' => helper :: baseUrl () . 'config/restore' ,
'value' => 'Restaurer' ,
'ico' => 'upload-cloud'
]); ?>
</ div >
< div class = " col3 " >
< ? php echo template :: button ( 'configBackupCopyButton' , [
'href' => helper :: baseUrl () . 'config/copyBackups' ,
'value' => 'Backups Auto ➜ FileManager'
]); ?>
2020-09-12 09:52:30 +02:00
</ div >
2020-08-15 09:48:13 +02:00
</ div >
2021-05-04 17:59:15 +02:00
</ div >
</ div >
</ div >
2019-07-04 20:42:23 +02:00
< ? php echo template :: formClose (); ?>