2018-04-02 08:29:19 +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-02-09 16:12:32 +01:00
|
|
|
<div class="col2 offset4">
|
|
|
|
<?php echo template::button('configModulesButton', [
|
|
|
|
'href' => helper::baseUrl() . 'config/modules',
|
|
|
|
'value' => 'Modules',
|
|
|
|
'ico' => 'download',
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
2020-11-21 15:09:10 +01:00
|
|
|
<?php echo template::button('configAdvancedButton', [
|
|
|
|
'href' => helper::baseUrl() . 'config/advanced',
|
|
|
|
'value' => 'Avancée',
|
|
|
|
'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>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2020-07-06 19:50:53 +02:00
|
|
|
<div class="block">
|
2020-11-21 15:26:41 +01:00
|
|
|
<h4>Identité</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', [
|
|
|
|
'label' => 'Titre du site',
|
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', [
|
|
|
|
'label' => 'Description du site',
|
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>
|
2020-05-12 16:28:10 +02:00
|
|
|
</div>
|
2020-08-13 14:11:33 +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>
|
|
|
|
<div class="col4">
|
2020-09-25 16:38:40 +02:00
|
|
|
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
2020-08-15 09:48:13 +02:00
|
|
|
'label' => 'Mentions légales',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' => $this->getData(['locale', 'legalPageId']),
|
2020-08-15 09:48:13 +02:00
|
|
|
'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">
|
2020-09-25 16:38:40 +02:00
|
|
|
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
2020-08-15 09:48:13 +02:00
|
|
|
'label' => 'Recherche dans le site',
|
2020-11-21 15:09:10 +01:00
|
|
|
'selected' => $this->getData(['locale', 'searchPageId']),
|
2020-08-15 09:48:13 +02:00
|
|
|
'help' => 'Sélectionner la page "Recherche" ou une page contenant le module "Recherche" permet d\'activer un lien dans le pied de page. '
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
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>
|
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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-04 20:42:23 +02:00
|
|
|
<?php echo template::formClose(); ?>
|