Bug path dans bannière perso + theme moderne

This commit is contained in:
Fred Tempez 2021-12-13 17:07:32 +01:00
parent 7d07753abf
commit b66ce54ac3
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -437,6 +437,9 @@ class theme extends common {
public function header() { public function header() {
// Soumission du formulaire // Soumission du formulaire
if($this->isPost()) { if($this->isPost()) {
// Modification des URL des images dans la bannière perso
$featureContent = $this->getInput('themeHeaderText', null);
$featureContent = str_replace(helper::baseUrl(false,false), './', $featureContent);
// Si une image est positionnée, l'arrière en transparent. // Si une image est positionnée, l'arrière en transparent.
$this->setData(['theme', 'header', [ $this->setData(['theme', 'header', [
'backgroundColor' => $this->getInput('themeHeaderBackgroundColor'), 'backgroundColor' => $this->getInput('themeHeaderBackgroundColor'),
@ -458,7 +461,7 @@ class theme extends common {
'imageContainer' => $this->getInput('themeHeaderImageContainer'), 'imageContainer' => $this->getInput('themeHeaderImageContainer'),
'tinyHidden' => $this->getInput('themeHeaderTinyHidden', helper::FILTER_BOOLEAN), 'tinyHidden' => $this->getInput('themeHeaderTinyHidden', helper::FILTER_BOOLEAN),
'feature' => $this->getInput('themeHeaderFeature'), 'feature' => $this->getInput('themeHeaderFeature'),
'featureContent' => $this->getInput('themeHeaderText', null) 'featureContent' => $featureContent
]]); ]]);
// 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->getData(['theme','header','position']) == 'site' ) if ( $this->getData(['theme','header','position']) == 'site' )