2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('configForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('configBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl(false),
|
|
|
|
'ico' => 'home',
|
|
|
|
'value' => 'Accueil'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?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>
|
2018-10-24 15:50:07 +02:00
|
|
|
<?php echo template::select('configHomePageId', helper::arrayCollumn($this->getData(['page']), 'title', 'SORT_ASC'), [
|
|
|
|
'label' => 'Page d\'accueil',
|
|
|
|
'selected' => $this->getData(['config', 'homePageId'])
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::text('configTitle', [
|
|
|
|
'label' => 'Titre du site',
|
2018-10-24 22:48:10 +02:00
|
|
|
'value' => $this->getData(['config', 'title']),
|
2019-05-02 13:21:48 +02:00
|
|
|
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
|
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-05-02 13:21:48 +02:00
|
|
|
'help' => 'Elle 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">
|
|
|
|
<div class="col6">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="block">
|
|
|
|
<h4>Options avancées</h4>
|
2019-06-07 23:18:44 +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'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('configAnalyticsId', [
|
|
|
|
'help' => 'Saisissez l\'ID de suivi.',
|
|
|
|
'label' => 'Google Analytics',
|
|
|
|
'placeholder' => 'UA-XXXXXXXX-X',
|
|
|
|
'value' => $this->getData(['config', 'analyticsId'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-02-14 18:58:10 +01:00
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
<?php echo template::checkbox('configCookieConsent', true, 'Message de consentement pour l\'utilisation des cookies', [
|
|
|
|
'checked' => $this->getData(['config', 'cookieConsent'])
|
|
|
|
]); ?>
|
|
|
|
<?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.'
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::select('itemsperPage', $module::$ItemsList, [
|
|
|
|
'label' => 'Articles par page ("Blog" et "News")',
|
|
|
|
'selected' => $this->getData(['config', 'itemsperPage'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Réseaux sociaux</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?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-03-05 09:46:34 +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-03-05 09:46:34 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="col6">
|
2019-03-05 09:46:34 +01:00
|
|
|
<?php echo template::text('configSocialYoutubeId', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'help' => 'Saisissez votre ID : https://www.youtube.com/channel/[ID].',
|
2019-03-05 09:46:34 +01:00
|
|
|
'label' => 'Youtube',
|
|
|
|
'value' => $this->getData(['config', 'social', 'youtubeId'])
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('configSocialTwitterId', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'help' => 'Saisissez votre ID : https://twitter.com/[ID].',
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Twitter',
|
|
|
|
'value' => $this->getData(['config', 'social', 'twitterId'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-03-05 09:46:34 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="col6">
|
2019-03-05 09:46:34 +01:00
|
|
|
<?php echo template::text('configSocialPinterestId', [
|
2019-05-02 13:21:48 +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-05-02 13:21:48 +02:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('configSocialLinkedinId', [
|
|
|
|
'help' => 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[CETTE PARTIE].',
|
|
|
|
'label' => 'Linkedin',
|
|
|
|
'value' => $this->getData(['config', 'social', 'linkedinId'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="block">
|
2019-06-07 23:18:44 +02:00
|
|
|
<h4>Système</h4>
|
|
|
|
<?php echo template::select('configTimezone', $module::$timezones, [
|
|
|
|
'label' => 'Fuseau horaire',
|
|
|
|
'selected' => $this->getData(['config', 'timezone'])
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::checkbox('configMaintenance', true, 'Site en maintenance', [
|
|
|
|
'checked' => $this->getData(['config', 'maintenance'])
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::checkbox('configAutoBackup', true, 'Sauvegarde automatique', [
|
|
|
|
'checked' => $this->getData(['config', 'autoBackup']),
|
|
|
|
'help' => 'Le fichier de données est copié quotidiennement dans le dossier \'site/backup\'. La sauvegarde est conservée pendant 30 jours.'
|
|
|
|
]); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col10 offset1">
|
|
|
|
<?php echo template::button('configExport', [
|
|
|
|
'href' => helper::baseUrl() . 'config/backup',
|
|
|
|
'value' => 'Exporter une copie du site<br>(données, thème et fichiers)'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-14 18:58:10 +01:00
|
|
|
<div class="row">
|
2019-06-07 23:18:44 +02:00
|
|
|
<div class="col10 offset1">
|
|
|
|
<?php echo template::button('configSiteMap', [
|
|
|
|
'href' => helper::baseUrl() . 'config/generateFiles',
|
|
|
|
'value' => 'Générer sitemap.xml et robots.txt'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Copie d'écran OpenGraph</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col8 offset2">
|
|
|
|
<img src='<?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.png';?>' />
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col10 offset1">
|
|
|
|
<?php echo template::button('configMetaImage', [
|
|
|
|
'href' => helper::baseUrl() . 'config/configMetaImage',
|
|
|
|
'value' => 'Rafraîchir la capture d\'écran'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p>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.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php
|
|
|
|
// Lire le contenu du fichier script sinon le créer
|
|
|
|
if (file_exists( self::DATA_DIR . 'head.inc.html')) {
|
|
|
|
$headerFile = file_get_contents (self::DATA_DIR . 'head.inc.html');
|
|
|
|
} else {
|
|
|
|
$headerFile = "";
|
|
|
|
touch (self::DATA_DIR . 'head.inc.html');
|
|
|
|
}
|
|
|
|
if (file_exists( self::DATA_DIR . 'body.inc.html')) {
|
|
|
|
$bodyFile = file_get_contents (self::DATA_DIR . 'body.inc.html');
|
|
|
|
} else {
|
|
|
|
$bodyFile = "";
|
|
|
|
touch (self::DATA_DIR . 'body.inc.html');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="block">
|
|
|
|
<h4>Scripts HTML à insérer dans la page</h4>
|
|
|
|
<?php echo template::textarea('configScriptHead', [
|
|
|
|
'label' => 'Head',
|
|
|
|
'value' => $headerFile
|
|
|
|
]); ?>
|
|
|
|
<?php echo template::textarea('configScriptBody', [
|
|
|
|
'label' => 'Body',
|
|
|
|
'value' => $bodyFile
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Information sur les versions</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
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
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
<div class="col4">
|
2019-02-14 18:58:10 +01:00
|
|
|
<?php echo template::text('moduleRedirectionVersion', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'label' => 'Module "Redirection"',
|
2019-02-14 18:58:10 +01:00
|
|
|
'readonly' => true,
|
|
|
|
'value' => redirection::REDIRECTION_VERSION
|
|
|
|
]); ?>
|
2019-06-07 23:18:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="col4">
|
2019-02-14 18:58:10 +01:00
|
|
|
<?php echo template::text('moduleFormVersion', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'label' => 'Module "Form"',
|
2019-02-14 18:58:10 +01:00
|
|
|
'readonly' => true,
|
|
|
|
'value' => form::FORM_VERSION
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
2019-02-14 18:58:10 +01:00
|
|
|
<?php echo template::text('moduleGalleryVersion', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'label' => 'Module "Gallery"',
|
2019-02-14 18:58:10 +01:00
|
|
|
'readonly' => true,
|
|
|
|
'value' => gallery::GALLERY_VERSION
|
|
|
|
]); ?>
|
2019-06-07 23:18:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="col4">
|
2019-02-14 18:58:10 +01:00
|
|
|
<?php echo template::text('moduleNewsVersion', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'label' => 'Module "News"',
|
2019-02-14 18:58:10 +01:00
|
|
|
'readonly' => true,
|
|
|
|
'value' => news::NEWS_VERSION
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
<div class="col4">
|
2019-02-14 18:58:10 +01:00
|
|
|
<?php echo template::text('moduleBlogVersion', [
|
2019-05-02 13:21:48 +02:00
|
|
|
'label' => 'Module "Blog"',
|
2019-02-14 18:58:10 +01:00
|
|
|
'readonly' => true,
|
|
|
|
'value' => blog::BLOG_VERSION
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-07 23:18:44 +02:00
|
|
|
<?php echo template::formClose(); ?>
|