(10.0.015.dev]

pull/4/head
Fred Tempez 3 years ago
parent 6144253853
commit e87172682c
  1. 2
      core/core.php
  2. 10
      core/module/config/view/index/index.php

@ -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 = [

@ -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'])
]); ?>

Loading…
Cancel
Save