Bug déplacement menu à valider

This commit is contained in:
Fred Tempez 2021-03-22 11:30:34 +01:00
parent 8a7919cf6b
commit fed8fb6ab1
1 changed files with 14 additions and 11 deletions

View File

@ -424,17 +424,20 @@ class theme extends common {
'imageContainer' => $this->getInput('themeHeaderImageContainer')
]]);
// Modification de la position du menu selon la position de la bannière
switch ($this->getInput('themeHeaderPosition') &&
$this->getData(['theme','menu','position']) !== 'site' &&
$this->getData(['theme','menu','position']) !== 'top' ) {
case 'site' :
$position = str_replace ('body','site',$this->getData(['theme','menu','position']));
break;
case 'body' :
$position = str_replace ('site','body',$this->getData(['theme','menu','position']));
break;
default:
$position = $this->getData(['theme','menu','position']);
if ( $this->getInput('themeHeaderPosition') &&
$this->getData(['theme','menu','position']) !== 'site' &&
$this->getData(['theme','menu','position']) !== 'top' )
{
switch ($this->getInput('themeHeaderPosition')) {
case 'site' :
$position = str_replace ('body','site',$this->getData(['theme','menu','position']));
break;
case 'body' :
$position = str_replace ('site','body',$this->getData(['theme','menu','position']));
break;
default:
$position = $this->getData(['theme','menu','position']);
}
}
$this->setData(['theme', 'menu', [