forked from ZwiiCMS-Team/ZwiiCMS
filtrage bloc dans les page à éditer
This commit is contained in:
parent
418173956b
commit
1481cc5aca
@ -178,7 +178,7 @@ class common {
|
|||||||
'title' => 'Contact'
|
'title' => 'Contact'
|
||||||
],
|
],
|
||||||
'blockRight' => [
|
'blockRight' => [
|
||||||
'typeMenu' => 'text',
|
'typeMenu' => '',
|
||||||
'iconUrl' => '',
|
'iconUrl' => '',
|
||||||
'disable' => false,
|
'disable' => false,
|
||||||
'content' => '<p>Bloc à droite du site</p>',
|
'content' => '<p>Bloc à droite du site</p>',
|
||||||
@ -194,7 +194,7 @@ class common {
|
|||||||
'title' => 'blockRight'
|
'title' => 'blockRight'
|
||||||
],
|
],
|
||||||
'blockLeft' => [
|
'blockLeft' => [
|
||||||
'typeMenu' => 'text',
|
'typeMenu' => '',
|
||||||
'iconUrl' => '',
|
'iconUrl' => '',
|
||||||
'disable' => false,
|
'disable' => false,
|
||||||
'content' => '<p>Bloc à gauche du site</p>',
|
'content' => '<p>Bloc à gauche du site</p>',
|
||||||
@ -2032,8 +2032,6 @@ class layout extends common {
|
|||||||
$targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : '';
|
$targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : '';
|
||||||
// Mise en page du sous-item
|
// Mise en page du sous-item
|
||||||
|
|
||||||
// Menu Image
|
|
||||||
|
|
||||||
if ( $this->getData(['page',$childKey,'disable']) === true
|
if ( $this->getData(['page',$childKey,'disable']) === true
|
||||||
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') )
|
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') )
|
||||||
|
|
||||||
@ -2166,15 +2164,15 @@ class layout extends common {
|
|||||||
$leftItems .= '<option value="">Choisissez une page</option>';
|
$leftItems .= '<option value="">Choisissez une page</option>';
|
||||||
$currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2);
|
$currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2);
|
||||||
foreach($this->getHierarchy(null, false) as $parentPageId => $childrenPageIds) {
|
foreach($this->getHierarchy(null, false) as $parentPageId => $childrenPageIds) {
|
||||||
if ($this->getData(['page', $parentPageId]) === 'blockLeft'
|
if ($parentPageId === 'blockLeft'
|
||||||
OR $this->getData(['page', $parentPageId]) === 'blockRight') { continue; }
|
OR $parentPageId === 'blockRight') { continue; }
|
||||||
$leftItems .= '<option value="' . helper::baseUrl() . $parentPageId . '"' . ($parentPageId === $currentPageId ? ' selected' : false) . '>' . $this->getData(['page', $parentPageId, 'title']) . '</option>';
|
$leftItems .= '<option value="' . helper::baseUrl() . $parentPageId . '"' . ($parentPageId === $currentPageId ? ' selected' : false) . '>' . $this->getData(['page', $parentPageId, 'title']) . '</option>';
|
||||||
foreach($childrenPageIds as $childKey) {
|
foreach($childrenPageIds as $childKey) {
|
||||||
$leftItems .= '<option value="' . helper::baseUrl() . $childKey . '"' . ($childKey === $currentPageId ? ' selected' : false) . '> ' . $this->getData(['page', $childKey, 'title']) . '</option>';
|
$leftItems .= '<option value="' . helper::baseUrl() . $childKey . '"' . ($childKey === $currentPageId ? ' selected' : false) . '> ' . $this->getData(['page', $childKey, 'title']) . '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$leftItems .= '<option value="">-------------------</option>';
|
$leftItems .= '<option value="">-------------------</option>';
|
||||||
$leftItems .= '<option value="' . helper::baseUrl() . 'page/block">Edition des blocs</option>';
|
$leftItems .= '<option value="' . helper::baseUrl() . 'page/block">Édition des blocs</option>';
|
||||||
$leftItems .= '</select></li>';
|
$leftItems .= '</select></li>';
|
||||||
$leftItems .= '<li><a href="' . helper::baseUrl() . 'page/add" title="Créer une page">' . template::ico('plus') . '</a></li>';
|
$leftItems .= '<li><a href="' . helper::baseUrl() . 'page/add" title="Créer une page">' . template::ico('plus') . '</a></li>';
|
||||||
if(
|
if(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user