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') '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
switch ($this->getInput('themeHeaderPosition') && if ( $this->getInput('themeHeaderPosition') &&
$this->getData(['theme','menu','position']) !== 'site' && $this->getData(['theme','menu','position']) !== 'site' &&
$this->getData(['theme','menu','position']) !== 'top' ) { $this->getData(['theme','menu','position']) !== 'top' )
case 'site' : {
$position = str_replace ('body','site',$this->getData(['theme','menu','position'])); switch ($this->getInput('themeHeaderPosition')) {
break; case 'site' :
case 'body' : $position = str_replace ('body','site',$this->getData(['theme','menu','position']));
$position = str_replace ('site','body',$this->getData(['theme','menu','position'])); break;
break; case 'body' :
default: $position = str_replace ('site','body',$this->getData(['theme','menu','position']));
$position = $this->getData(['theme','menu','position']); break;
default:
$position = $this->getData(['theme','menu','position']);
}
} }
$this->setData(['theme', 'menu', [ $this->setData(['theme', 'menu', [