forked from ZwiiCMS-Team/ZwiiCMS
Bug position du menu selon celle de la bannière
This commit is contained in:
parent
d09e928338
commit
ba107ac872
@ -443,42 +443,20 @@ class theme extends common {
|
|||||||
'imageContainer' => $this->getInput('themeHeaderImageContainer')
|
'imageContainer' => $this->getInput('themeHeaderImageContainer')
|
||||||
]]);
|
]]);
|
||||||
// Modification de la position du menu selon la position de la bannière
|
// Modification de la position du menu selon la position de la bannière
|
||||||
if ( $this->getInput('themeHeaderPosition') &&
|
if ( $this->getData(['theme','header','position']) == 'site' )
|
||||||
( $this->getData(['theme','menu','position']) !== 'site' ||
|
|
||||||
$this->getData(['theme','menu','position']) !== 'top') )
|
|
||||||
{
|
{
|
||||||
switch ($this->getInput('themeHeaderPosition')) {
|
$this->setData(['theme', 'menu', 'position',str_replace ('body-','site-',$this->getData(['theme','menu','position']))]);
|
||||||
case 'site' :
|
}
|
||||||
$position = str_replace ('body','site',$this->getData(['theme','menu','position']));
|
if ( $this->getData(['theme','header','position']) == 'body')
|
||||||
break;
|
{
|
||||||
case 'body' :
|
$this->setData(['theme', 'menu', 'position',str_replace ('site-','body-',$this->getData(['theme','menu','position']))]);
|
||||||
$position = str_replace ('site','body',$this->getData(['theme','menu','position']));
|
}
|
||||||
break;
|
if ( $this->getData(['theme','header','position']) == 'hide' &&
|
||||||
default:
|
( $this->getData(['theme','menu','position']) == 'body-first' ||
|
||||||
$position = $this->getData(['theme','menu','position']);
|
$this->getData(['theme','menu','position']) == 'site-first') )
|
||||||
}
|
{
|
||||||
|
$this->setData(['theme', 'menu', 'position','site']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setData(['theme', 'menu', [
|
|
||||||
'backgroundColor' => $this->getData(['theme', 'menu', 'backgroundColor']),
|
|
||||||
'backgroundColorSub' => $this->getData(['theme', 'menu', 'backgroundColorSub']),
|
|
||||||
'font' => $this->getData(['theme', 'menu', 'font']),
|
|
||||||
'fontSize' => $this->getData(['theme', 'menu', 'fontSize']),
|
|
||||||
'fontWeight' => $this->getData(['theme', 'menu', 'fontWeight']),
|
|
||||||
'height' => $this->getData(['theme', 'menu', 'height']),
|
|
||||||
'loginLink' => $this->getData(['theme', 'menu', 'loginLink']),
|
|
||||||
'margin' => $this->getData(['theme', 'menu', 'margin']),
|
|
||||||
'position' => $position,
|
|
||||||
'textAlign' => $this->getData(['theme', 'menu', 'textAlign']),
|
|
||||||
'textColor' => $this->getData(['theme', 'menu', 'textColor']),
|
|
||||||
'textTransform' => $this->getData(['theme','menu','textTransform']),
|
|
||||||
'fixed' => $this->getData(['theme','menu','fixed']),
|
|
||||||
'activeColorAuto' => $this->getData(['theme','menu','activeColorAuto']),
|
|
||||||
'activeColor' => $this->getData(['theme','menu','activeColor']),
|
|
||||||
'activeTextColor' => $this->getData(['theme','menu','activeTextColor']),
|
|
||||||
'radius' => $this->getData(['theme','menu','radius']),
|
|
||||||
'memberBar' => $this->getData(['theme','menu','memberBar'])
|
|
||||||
]]);
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'notification' => 'Modifications enregistrées',
|
'notification' => 'Modifications enregistrées',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user