2022-03-01 19:41:31 +01:00
< div id = " setupContainer " class = " tabContent " >
2021-10-30 12:31:24 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-10-03 11:50:29 +02:00
< h4 >< ? php echo helper :: translate ( 'Paramètres' ); ?>
2022-10-03 19:01:42 +02:00
<!--< span id = " setupHelpButton " class = " helpDisplayButton " >
2022-09-29 08:45:59 +02:00
< a href = " https://doc.zwiicms.fr/parametres " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2022-12-29 17:16:33 +01:00
< ? php //echo template::ico('help', ['margin' => 'left']);
?>
2022-10-03 19:01:42 +02:00
</ 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 ,
2022-10-23 17:27:57 +02:00
'language' => $this -> getData ([ 'user' , $this -> getUser ( 'id' ), 'language' ]),
2021-10-30 12:31:24 +02:00
'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 ,
2022-10-23 17:27:57 +02:00
'language' => $this -> getData ([ 'user' , $this -> getUser ( 'id' ), 'language' ]),
2021-10-30 12:31:24 +02:00
'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 " >
2022-09-29 08:45:59 +02:00
< ? 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.'
]); ?>
2021-11-27 16:20:25 +01:00
</ div >
2021-10-30 12:31:24 +02:00
< div class = " col6 " >
2022-04-28 12:51:25 +02:00
< ? php echo template :: checkbox ( 'configRewrite' , true , 'Apache URL intelligentes' , [
2021-10-30 12:31:24 +02:00
'checked' => helper :: checkRewrite (),
2022-04-28 12:51:25 +02:00
'help' => 'Supprime le point d\'interrogation dans les URL, l\'option est indisponible avec les autres serveurs Web' ,
2022-10-13 10:07:38 +02:00
'disabled' => stripos ( $_SERVER [ " SERVER_SOFTWARE " ], 'nginx' )
2021-10-30 12:31:24 +02:00
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-10-03 18:37:25 +02:00
< h4 >< ? php echo helper :: translate ( 'Mise à jour automatisée' ); ?>
2022-10-03 19:01:42 +02:00
<!--< span id = " updateHelpButton " class = " helpDisplayButton " >
2022-09-29 08:45:59 +02:00
< a href = " https://doc.zwiicms.fr/mise-a-jour " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2022-12-29 17:16:33 +01:00
< ? php //echo template::ico('help', ['margin' => 'left']);
?>
2021-11-02 18:29:32 +01:00
</ a >
2022-10-03 19:01:42 +02:00
</ span >-->
2021-11-01 20:05:09 +01:00
</ 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' , [
2022-09-29 08:45:59 +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.' ,
2023-02-06 21:45:41 +01:00
'disabled' => empty ( helper :: getOnlineVersion ( common :: ZWII_UPDATE_CHANNEL ))
2022-09-29 08:45:59 +02:00
]); ?>
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' , [
2022-09-29 08:45:59 +02:00
'checked' => $this -> getData ([ 'config' , 'autoUpdateHtaccess' ]),
'help' => 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.' ,
2023-02-06 21:45:41 +01:00
'disabled' => empty ( helper :: getOnlineVersion ( common :: ZWII_UPDATE_CHANNEL ))
2022-09-29 08:45:59 +02:00
]); ?>
2021-10-30 12:31:24 +02:00
</ div >
2022-01-05 18:13:25 +01:00
</ div >
< div class = " row " >
2023-02-07 11:21:21 +01:00
< div class = " col3 " >
< ? php echo template :: select ( 'configAutoUpdateDelay' , $module :: $updateDelay , [
'label' => 'Fréquence de recherche' ,
'selected' => $this -> getData ([ 'config' , 'autoUpdateDelay' ]),
]); ?>
</ div >
< div class = " col3 offset2 verticalAlignBottom " >
2023-02-05 19:10:42 +01:00
< pre > Version installée : < strong >< ? php echo common :: ZWII_VERSION ; ?> </strong></pre>
2023-02-06 21:45:41 +01:00
< pre > Version en ligne : < strong >< ? php echo helper :: getOnlineVersion ( common :: ZWII_UPDATE_CHANNEL ) ; ?> </strong></pre>
2022-01-05 18:13:25 +01:00
</ div >
2023-02-07 11:21:21 +01:00
< div class = " col3 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' ,
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-10-03 11:50:29 +02:00
< h4 >< ? php echo helper :: translate ( 'Maintenance' ); ?>
2022-10-03 19:01:42 +02:00
<!--< span id = " maintenanceHelpButton " class = " helpDisplayButton " >
2022-09-29 08:45:59 +02:00
< a href = " https://doc.zwiicms.fr/mode-maintenance " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2022-12-29 17:16:33 +01:00
< ? php //echo template::ico('help', ['margin' => 'left']);
?>
2021-11-04 18:49:15 +01:00
</ a >
2022-10-03 19:01:42 +02:00
</ span >-->
2021-11-01 20:05:09 +01:00
</ 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' , [
2022-09-29 08:45:59 +02:00
'checked' => $this -> getData ([ 'config' , 'autoBackup' ]),
2022-10-15 08:11:30 +02:00
'help' => 'Une archive du dossier /site/data est conservée pendant 30 jours. Activation recommandée'
2022-09-29 08:45:59 +02:00
]); ?>
2021-10-30 12:31:24 +02:00
</ 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 >
2022-05-08 18:07:41 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-10-03 11:50:29 +02:00
< h4 >< ? php echo helper :: translate ( 'Scripts externes' ); ?>
2022-10-03 19:01:42 +02:00
<!--< span id = " specialeHelpButton " class = " helpDisplayButton " >
2022-09-29 08:45:59 +02:00
< a href = " https://doc.zwiicms.fr/scripts-externes " target = " _blank " title = " Cliquer pour consulter l'aide en ligne " >
2022-12-29 17:16:33 +01:00
< ? php //echo template::ico('help', ['margin' => 'left']);
?>
2022-05-08 18:07:41 +02:00
</ a >
2022-10-03 19:01:42 +02:00
</ span >-->
2022-05-08 18:07:41 +02:00
</ h4 >
< div class = " row " >
2022-07-31 19:17:56 +02:00
< div class = " col4 offset1 verticalAlignBottom " >
2022-05-08 18:07:41 +02:00
< ? php echo template :: button ( 'socialScriptHead' , [
'href' => helper :: baseUrl () . 'config/script/head' ,
'value' => 'Script dans head' ,
'ico' => 'pencil'
]); ?>
</ div >
2022-07-31 19:17:56 +02:00
< div class = " col4 offset1 verticalAlignBottom " >
2022-05-08 18:07:41 +02:00
< ? php echo template :: button ( 'socialScriptBody' , [
'href' => helper :: baseUrl () . 'config/script/body' ,
'value' => 'Script dans body' ,
'ico' => 'pencil'
2022-09-29 08:45:59 +02:00
]); ?>
2022-05-08 18:07:41 +02:00
</ div >
</ div >
</ div >
</ div >
</ div >
2022-12-29 17:16:33 +01:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-12-30 08:48:35 +01:00
< h4 > ZwiiCMS < a href = " https://zwiicms.fr " target = " _blank " > Site Web </ a > - < a href = " https://forum.zwiicms.fr " target = " _blank " > Forum </ a >
2022-12-29 17:16:33 +01:00
</ h4 >
< div class = " row textAlignCenter " >
< div class = " col12 " >
< a rel = " license " href = " http://creativecommons.org/licenses/by-nc-nd/4.0/ " >< img alt = " Licence Creative Commons " style = " border-width:0 " src = " https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png " /></ a >
< p > Cette œuvre est mise à disposition selon les termes de la < a rel = " license " href = " http://creativecommons.org/licenses/by-nc-nd/4.0/ " > Licence Creative Commons Attribution - Pas d & #39;Utilisation Commerciale - Pas de Modification 4.0 International.</a></p>
< p > Pour voir une copie de cette licence , visitez http :// creativecommons . org / licenses / by - nc - nd / 4.0 / ou écrivez à Creative Commons , PO Box 1866 , Mountain View , CA 94042 , USA .</ p >
</ div >
</ div >
</ div >
</ div >
</ div >
2022-09-29 08:45:59 +02:00
</ div >