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'); ?>
|
2021-11-01 20:05:09 +01:00
|
|
|
</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',
|
2024-09-05 11:02:01 +02:00
|
|
|
'value' => $this->getData(['config', 'favicon']),
|
|
|
|
'folder' => $this->getData(['config', 'favicon']) ? dirname($this->getData(['config', 'favicon'])) : ''
|
2021-10-30 12:31:24 +02:00
|
|
|
]); ?>
|
|
|
|
</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',
|
2024-09-05 11:02:01 +02:00
|
|
|
'value' => $this->getData(['config', 'faviconDark']),
|
|
|
|
'folder' => $this->getData(['config', 'faviconDark']) ? dirname($this->getData(['config', 'faviconDark'])) : ''
|
2021-10-30 12:31:24 +02:00
|
|
|
]); ?>
|
|
|
|
</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(),
|
2024-09-05 11:02:01 +02:00
|
|
|
'help' => 'Supprime le point d\'interrogation dans les URL, l\'option est indisponible avec les autres serveurs Web',
|
2024-11-28 20:31:49 +01:00
|
|
|
'disabled' => helper::checkServerSoftware() === false and $module->isModRewriteEnabled()
|
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'); ?>
|
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>
|
2023-07-23 22:21:33 +02:00
|
|
|
<div class="col3 offset1 verticalAlignBottom">
|
2024-09-05 11:02:01 +02:00
|
|
|
<pre>Version installée : <strong><?php echo common::ZWII_VERSION; ?></strong></pre>
|
|
|
|
<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-07-23 22:21:33 +02:00
|
|
|
<div class="col3 offset2 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'); ?>
|
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-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">
|
2024-09-05 11:02:01 +02: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">
|
2024-09-05 11:02:01 +02:00
|
|
|
<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'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>
|
2022-12-29 17:16:33 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|