2021-10-01 15:53:38 +02:00
|
|
|
<?php echo template::formOpen('configForm');?>
|
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">
|
|
|
|
<?php echo template::button('addonIndexHelp', [
|
|
|
|
'class' => 'buttonHelp',
|
|
|
|
'ico' => 'help',
|
|
|
|
'value' => 'Aide'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-05-20 21:52:09 +02:00
|
|
|
<div class="col2 offset4">
|
2020-11-21 15:09:10 +01:00
|
|
|
<?php echo template::button('configAdvancedButton', [
|
|
|
|
'href' => helper::baseUrl() . 'config/advanced',
|
2021-05-20 21:52:09 +02:00
|
|
|
'value' => 'Avancée',
|
2020-11-21 15:09:10 +01:00
|
|
|
'ico' => 'cog-alt',
|
2020-05-12 16:28:10 +02:00
|
|
|
]); ?>
|
2020-05-25 11:58:54 +02:00
|
|
|
</div>
|
2020-05-12 16:28:10 +02:00
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('configSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-09 10:41:19 +02:00
|
|
|
<!-- Aide à propos de la configuration du site, view index -->
|
|
|
|
<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="col12">
|
2020-07-06 19:50:53 +02:00
|
|
|
<div class="block">
|
2021-10-01 15:53:38 +02:00
|
|
|
<h4>Langues étrangères</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::checkbox('configI18n', true, 'Activer la gestion des langues étrangères', [
|
|
|
|
'checked' => $this->getData(['config', 'i18n', 'enable']),
|
|
|
|
'help'=> 'Une nouvelle icône apparaîtra dans la barre d\'administration. Consultez l\'aide de la page concernée pour en apprendre plus.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Identité du site</h4>
|
2020-07-06 19:50:53 +02:00
|
|
|
<div class="row">
|
2020-09-27 12:41:13 +02:00
|
|
|
<div class="col9">
|
2020-07-06 19:50:53 +02:00
|
|
|
<?php echo template::text('configTitle', [
|
2021-10-02 14:15:27 +02:00
|
|
|
'label' => 'Titre du site '. template::flag('20px') ,
|
2020-11-21 15:09:10 +01:00
|
|
|
'value' => $this->getData(['locale', 'title']),
|
2020-07-06 19:50:53 +02:00
|
|
|
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-09-27 12:41:13 +02:00
|
|
|
<div class="col3">
|
2020-09-27 12:32:34 +02:00
|
|
|
<?php echo template::text('configVersion', [
|
|
|
|
'label' => 'ZwiiCMS Version',
|
|
|
|
'value' => common::ZWII_VERSION,
|
|
|
|
'readonly' => true
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-07-06 19:50:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::textarea('configMetaDescription', [
|
2021-10-02 14:15:27 +02:00
|
|
|
'label' => 'Description du site ' . template::flag('20px'),
|
2020-11-21 15:09:10 +01:00
|
|
|
'value' => $this->getData(['locale', 'metaDescription']),
|
2020-09-28 15:48:03 +02:00
|
|
|
'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.'
|
2020-07-06 19:50:53 +02:00
|
|
|
]); ?>
|
2020-05-25 11:58:54 +02:00
|
|
|
</div>
|
2021-10-01 15:53:38 +02:00
|
|
|
</div
|
|
|
|
><p>Le titre et la description sont spécifiques aux traductions rédigées du site.</p>
|
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">
|
|
|
|
<h4>Pages spéciales</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php
|
|
|
|
$pages = $this->getData(['page']);
|
|
|
|
foreach($pages as $page => $pageId) {
|
|
|
|
if ($this->getData(['page',$page,'block']) === 'bar' ||
|
2020-09-14 21:15:55 +02:00
|
|
|
$this->getData(['page',$page,'disable']) === true) {
|
2020-08-15 09:48:13 +02:00
|
|
|
unset($pages[$page]);
|
|
|
|
}
|
|
|
|
}
|
2020-09-14 21:15:55 +02:00
|
|
|
$orphans = $this->getData(['page']);
|
|
|
|
foreach($orphans as $page => $pageId) {
|
|
|
|
if ($this->getData(['page',$page,'block']) === 'bar' ||
|
|
|
|
$this->getData(['page',$page,'disable']) === true ||
|
|
|
|
$this->getdata(['page',$page, 'position']) !== 0) {
|
|
|
|
unset($orphans[$page]);
|
|
|
|
}
|
|
|
|
}
|
2020-08-15 09:48:13 +02:00
|
|
|
echo template::select('configHomePageId', helper::arrayCollumn($pages, 'title', 'SORT_ASC'), [
|
|
|
|
'label' => 'Accueil du site',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' =>$this->getData(['locale', 'homePageId']),
|
2020-08-15 09:48:13 +02:00
|
|
|
'help' => 'La première page que vos visiteurs verront.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-09-12 09:52:30 +02:00
|
|
|
<div class="col4">
|
2020-08-15 09:48:13 +02:00
|
|
|
<?php
|
2020-09-25 11:50:14 +02:00
|
|
|
echo template::select('configPage403', array_merge(['none' => 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [
|
2020-08-15 09:48:13 +02:00
|
|
|
'label' => 'Accès interdit, erreur 403',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' =>$this->getData(['locale', 'page403']),
|
2020-09-14 21:15:55 +02:00
|
|
|
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
|
2020-08-15 09:48:13 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php
|
2020-09-25 11:50:14 +02:00
|
|
|
echo template::select('configPage404', array_merge(['none' => 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [
|
2020-09-12 09:52:30 +02:00
|
|
|
'label' => 'Page inexistante, erreur 404',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' =>$this->getData(['locale', 'page404']),
|
2020-09-14 21:15:55 +02:00
|
|
|
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
|
2020-08-15 09:48:13 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-01 15:53:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
|
|
|
'label' => 'Mentions légales',
|
|
|
|
'selected' => $this->getData(['locale', 'legalPageId']),
|
|
|
|
'help' => 'Les mentions légales sont obligatoires en France. Une option du pied de page ajoute un lien discret vers cette page.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
|
|
|
'label' => 'Recherche dans le site',
|
|
|
|
'selected' => $this->getData(['locale', 'searchPageId']),
|
|
|
|
'help' => 'Sélectionnez une page contenant le module \'Recherche\'. Une option du pied de page ajoute un lien discret vers cette page.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-09-12 09:52:30 +02:00
|
|
|
<div class="col4">
|
|
|
|
<?php
|
2020-09-25 11:50:14 +02:00
|
|
|
echo template::select('configPage302', array_merge(['none' => 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [
|
2020-09-12 09:52:30 +02:00
|
|
|
'label' => 'Site en maintenance',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' =>$this->getData(['locale', 'page302']),
|
2020-09-14 21:15:55 +02:00
|
|
|
'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.'
|
2020-09-12 09:52:30 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-08-15 09:48:13 +02:00
|
|
|
</div>
|
2021-10-01 15:53:38 +02:00
|
|
|
<p>Adaptez la sélection de ces pages pour chaque traduction rédigée.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Etiquettes des pages spéciales dans le pied de page</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::text('configLegalPageLabel', [
|
2021-10-02 14:15:27 +02:00
|
|
|
'label' => 'Mentions légales ' . template::flag('20px'),
|
2021-10-01 15:53:38 +02:00
|
|
|
'placeholder' => 'Mentions légales',
|
|
|
|
'value' => $this->getData(['locale', 'legalPageLabel']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::text('configSearchPageLabel', [
|
2021-10-02 14:15:27 +02:00
|
|
|
'label' => 'Rechercher ' . template::flag('20px'),
|
2021-10-01 15:53:38 +02:00
|
|
|
'placeholder' => 'Rechercher',
|
|
|
|
'value' => $this->getData(['locale', 'searchPageLabel']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
2021-10-02 12:56:29 +02:00
|
|
|
<?php echo template::text('configSitemapPageLabel', [
|
2021-10-02 14:15:27 +02:00
|
|
|
'label' => 'Plan du site ' . template::flag('20px'),
|
2021-10-01 15:53:38 +02:00
|
|
|
'placeholder' => 'Plan du site',
|
2021-10-02 12:56:29 +02:00
|
|
|
'value' => $this->getData(['locale', 'sitemapPageLabel']),
|
2021-10-01 15:53:38 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-04 17:59:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-04 20:42:23 +02:00
|
|
|
<?php echo template::formClose(); ?>
|