(10.0.015.dev]

This commit is contained in:
Fred Tempez 2019-12-16 14:09:46 +01:00
parent 6144253853
commit e87172682c
2 changed files with 10 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
const ZWII_VERSION = '10.0.014.dev';
const ZWII_VERSION = '10.0.015.dev';
public static $actions = [];
public static $coreModuleIds = [

View File

@ -25,7 +25,15 @@
<h4>Informations générales</h4>
<div class="row">
<div class="col4">
<?php echo template::select('configHomePageId', helper::arrayCollumn($this->getData(['page']), 'title', 'SORT_ASC'), [
<?php
$pages = $this->getData(['page']);
foreach($pages as $page => $pageId) {
if ($this->getData(['page',$page,'block']) === 'bar' ||
$this->getData(['page',$page,'disable']) === true) {
unset($pages[$page]);
}
}
echo template::select('configHomePageId', helper::arrayCollumn($pages, 'title', 'SORT_ASC'), [
'label' => 'Page d\'accueil',
'selected' =>$this->getData(['config', 'homePageId'])
]); ?>