2021-10-30 18:12:34 +02:00
< div id = " setupContainer " >
2021-10-30 12:31:24 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2021-11-03 12:28:53 +01:00
< h4 > Paramètres
2021-11-01 20:05:09 +01:00
< span id = " setupHelpButton " class = " helpDisplayButton " >
2022-01-07 10:22:08 +01:00
< a href = " https://doc.zwiicms.fr/parametres " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2021-11-04 18:49:15 +01:00
< ? php echo template :: ico ( 'help' , 'left' ); ?>
</ a >
2021-11-01 20:05:09 +01:00
</ span >
</ h4 >
2021-10-30 12:31:24 +02:00
< div class = " row " >
< div class = " col4 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: file ( 'configFavicon' , [
2021-10-30 12:31:24 +02:00
'type' => 1 ,
'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.' ,
'label' => 'Favicon' ,
'value' => $this -> getData ([ 'config' , 'favicon' ])
]); ?>
</ div >
< div class = " col4 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: file ( 'configFaviconDark' , [
2021-10-30 12:31:24 +02:00
'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' ])
]); ?>
</ div >
< div class = " col4 " >
2021-10-30 18:12:34 +02:00
< ? php echo template :: select ( 'configTimezone' , $module :: $timezones , [
2021-10-30 12:31:24 +02:00
'label' => 'Fuseau horaire' ,
'selected' => $this -> getData ([ 'config' , 'timezone' ]),
'help' => 'Le fuseau horaire est utile au bon référencement'
]); ?>
</ div >
</ div >
< div class = " row " >
2021-11-27 16:20:25 +01:00
< div class = " col6 " >
< ? php echo template :: checkbox ( 'configCookieConsent' , 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.'
]); ?>
</ div >
2021-10-30 12:31:24 +02:00
< div class = " col6 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: checkbox ( 'configRewrite' , true , 'URL intelligentes' , [
2021-10-30 12:31:24 +02:00
'checked' => helper :: checkRewrite (),
2022-01-08 12:38:51 +01:00
'help' => 'Supprime ? dans les URL et redirige sur le protocole HTTPS.'
2021-10-30 12:31:24 +02:00
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2021-11-02 18:05:05 +01:00
< h4 > Mise à jour automatisée
2021-11-01 20:05:09 +01:00
< span id = " updateHelpButton " class = " helpDisplayButton " >
2022-01-07 10:22:08 +01:00
< a href = " https://doc.zwiicms.fr/mise-a-jour " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2021-11-02 18:29:32 +01:00
< ? php echo template :: ico ( 'help' , 'left' ); ?>
</ a >
2021-11-01 20:05:09 +01:00
</ span >
</ h4 >
2021-10-30 12:31:24 +02:00
< div class = " row " >
2022-01-05 18:13:25 +01:00
< div class = " col6 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: checkbox ( 'configAutoUpdate' , true , 'Rechercher une mise à jour en ligne' , [
2021-10-30 12:31:24 +02:00
'checked' => $this -> getData ([ 'config' , 'autoUpdate' ]),
'help' => 'La vérification est quotidienne. Option désactivée si la configuration du serveur ne le permet pas.' ,
2022-01-05 18:13:25 +01:00
'disabled' => ! $module :: $onlineVersion
2021-10-30 12:31:24 +02:00
]); ?>
</ div >
2022-01-05 18:13:25 +01:00
< div class = " col6 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: checkbox ( 'configAutoUpdateHtaccess' , true , 'Préserver le fichier htaccess racine' , [
2021-10-30 12:31:24 +02:00
'checked' => $this -> getData ([ 'config' , 'autoUpdateHtaccess' ]),
'help' => 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.' ,
2022-01-05 18:13:25 +01:00
'disabled' => ! $module :: $onlineVersion
2021-10-30 12:31:24 +02:00
]); ?>
</ div >
2022-01-05 18:13:25 +01:00
</ div >
< div class = " row " >
< div class = " col6 " >
< ? php echo '<pre>Version installée : <strong>' . common :: ZWII_VERSION . '</strong></pre>' ; ?>
< ? php echo $module :: $onlineVersion ? '<pre>Version en ligne : <strong>' . $module :: $onlineVersion . '</strong></pre>' : '' ; ?>
</ div >
< div class = " col4 verticalAlignBottom " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: button ( 'configUpdateForced' , [
2021-10-30 12:31:24 +02:00
'ico' => 'download-cloud' ,
'href' => helper :: baseUrl () . 'install/update' ,
2022-01-05 18:13:25 +01:00
'value' => $module :: $updateButtonText ,
2021-10-30 12:31:24 +02:00
'class' => 'buttonRed' ,
2022-01-05 18:13:25 +01:00
'disabled' => ! $module :: $onlineVersion
2021-10-30 12:31:24 +02:00
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2021-11-02 16:43:24 +01:00
< h4 > Maintenance
2021-11-01 20:05:09 +01:00
< span id = " maintenanceHelpButton " class = " helpDisplayButton " >
2022-01-07 10:22:08 +01:00
< a href = " https://doc.zwiicms.fr/mode-maintenance " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2021-11-04 18:49:15 +01:00
< ? php echo template :: ico ( 'help' , 'left' ); ?>
</ a >
2021-11-01 20:05:09 +01:00
</ span >
</ h4 >
2021-10-30 12:31:24 +02:00
< div class = " row " >
< div class = " col6 " >
2021-10-30 18:36:43 +02:00
< ? php echo template :: checkbox ( 'configAutoBackup' , true , 'Sauvegarde automatique quotidienne du site' , [
2021-10-30 12:31:24 +02:00
'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-30 18:36:43 +02:00
< ? php echo template :: checkbox ( 'configMaintenance' , true , 'Site en maintenance' , [
2021-10-30 12:31:24 +02:00
'checked' => $this -> getData ([ 'config' , 'maintenance' ])
]); ?>
</ div >
</ div >
2022-02-18 12:43:48 +01:00
< div class = " row " >
< div class = " col4 offset1 " >
2021-10-30 12:31:24 +02:00
< ? php echo template :: button ( 'configBackupButton' , [
'href' => helper :: baseUrl () . 'config/backup' ,
2022-02-18 12:43:48 +01:00
'value' => 'Sauvegarder les données du site' ,
2021-10-30 12:31:24 +02:00
'ico' => 'download-cloud'
]); ?>
</ div >
2022-02-18 12:43:48 +01:00
< div class = " col4 offset1 " >
2021-10-30 12:31:24 +02:00
< ? php echo template :: button ( 'configRestoreButton' , [
'href' => helper :: baseUrl () . 'config/restore' ,
2022-02-18 12:43:48 +01:00
'value' => 'Restaurer les données du site' ,
2021-10-30 12:31:24 +02:00
'ico' => 'upload-cloud'
]); ?>
</ div >
2022-02-18 12:43:48 +01:00
</ div >
< div class = " row " >
< div class = " col4 offset1 " >
2021-10-30 12:31:24 +02:00
< ? php echo template :: button ( 'configBackupCopyButton' , [
'href' => helper :: baseUrl () . 'config/copyBackups' ,
2022-02-18 12:43:48 +01:00
'value' => 'Copier sauvegardes auto' ,
'ico' => 'docs'
]); ?>
</ div >
< div class = " col4 offset1 " >
< ? php echo template :: button ( 'configBackupDelButton' , [
'href' => helper :: baseUrl () . 'config/delBackups' ,
'value' => 'Vider dossier sauvegardes auto' ,
2022-02-25 10:04:46 +01:00
'ico' => 'trash' ,
2022-02-18 12:43:48 +01:00
'class' => 'buttonRed'
2022-01-21 19:11:51 +01:00
]); ?>
</ div >
2021-10-30 12:31:24 +02:00
</ div >
</ div >
</ div >
</ div >
</ div >