forked from ZwiiCMS-Team/ZwiiCMS
barre_menu_position
This commit is contained in:
parent
a75d3af0ce
commit
aa46570acb
@ -1820,7 +1820,23 @@ class layout extends common {
|
|||||||
* @param page chargée
|
* @param page chargée
|
||||||
*/
|
*/
|
||||||
public function showBarContentLeft() {
|
public function showBarContentLeft() {
|
||||||
|
// Position du marqueur
|
||||||
|
|
||||||
|
if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) === 'none') {
|
||||||
|
// Pas de menu
|
||||||
echo $this->core->output['contentLeft'];
|
echo $this->core->output['contentLeft'];
|
||||||
|
} else {
|
||||||
|
// On recherche la position du menu
|
||||||
|
$mark = strpos('[]',$this->core->output['contentLeft']);
|
||||||
|
// pas de marqueur menu après le texte
|
||||||
|
if ($mark === 0 ) {
|
||||||
|
echo $this->core->output['contentLeft'];
|
||||||
|
echo '<div id="menuSideLeft>' . $this->showMenuSide($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) === 'parents' ? false : true) .'</div>';
|
||||||
|
} else {
|
||||||
|
// Placer le menu autour du texte
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,21 +169,10 @@
|
|||||||
<?php
|
<?php
|
||||||
if ($blockleft !== "") :?>
|
if ($blockleft !== "") :?>
|
||||||
<div class="<?php echo $blockleft; ?>" id="contentLeft">
|
<div class="<?php echo $blockleft; ?>" id="contentLeft">
|
||||||
<?php
|
<?php $layout->showBarContentLeft(); ?>
|
||||||
// Détermine si le bloc a un menu à inclure
|
|
||||||
$layout->showBarContentLeft();
|
|
||||||
// Type de menu affiché
|
|
||||||
// 0 : aucun
|
|
||||||
// 1 : menu complet
|
|
||||||
// 2 : sous-menu de la page parente
|
|
||||||
if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) !== 'none') {
|
|
||||||
?> <div id="menuSideLeft"><?php
|
|
||||||
$layout->showMenuSide($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) === 'parents' ? false : true);
|
|
||||||
?></div><?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; die();?>
|
||||||
|
|
||||||
<div class="<?php echo $content; ?>
|
<div class="<?php echo $content; ?>
|
||||||
" id="contentSite"><?php $layout->showContent(); ?>
|
" id="contentSite"><?php $layout->showContent(); ?>
|
||||||
</div>
|
</div>
|
||||||
@ -193,10 +182,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// Détermine si le bloc a un menu à inclure
|
// Détermine si le bloc a un menu à inclure
|
||||||
$layout->showBarContentRight();
|
$layout->showBarContentRight();
|
||||||
// Type de menu affiché
|
|
||||||
// 0 : aucun
|
|
||||||
// 1 : menu complet
|
|
||||||
// 2 : sous-menu de la page parente
|
|
||||||
if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'displayMenu']) !== 'none') {
|
if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'displayMenu']) !== 'none') {
|
||||||
?> <div id="menuSideRight"><?php
|
?> <div id="menuSideRight"><?php
|
||||||
$layout->showMenuSide($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'displayMenu']) === 'parents' ? false : true);
|
$layout->showMenuSide($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'displayMenu']) === 'parents' ? false : true);
|
||||||
|
Loading…
Reference in New Issue
Block a user