diff --git a/src/QUI/Bricks/Controls/ContentSwitcher.php b/src/QUI/Bricks/Controls/ContentSwitcher.php index 8a4f54a35dfd24326e96bacde3043623939db8dc..cb752a5dd92da615d305bcf6ca18280d152a3094 100644 --- a/src/QUI/Bricks/Controls/ContentSwitcher.php +++ b/src/QUI/Bricks/Controls/ContentSwitcher.php @@ -46,10 +46,16 @@ public function getBody() $Engine = QUI::getTemplateManager()->getEngine(); $entries = $this->getAttribute('entries'); + echo "<pre>"; + var_dump($entries); + echo "</pre>"; + if (is_string($entries)) { $entries = json_decode($entries, true); } + + $Engine->assign(array( 'this' => $this, 'entries' => $entries diff --git a/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.php b/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.php index 285f3e97d1f42dce4b3d521d13136332a00e49b0..831fff9fb015d5656da6ad00512bd5a9bbf91279 100644 --- a/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.php +++ b/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.php @@ -151,6 +151,17 @@ public function getBody() ); } + // fallback for existed sliders (showarrows was a checkbox input) + switch ($this->getAttribute('showarrows')) { + case false: + echo "checkbox war false"; + $this->setAttribute('showarrows', 'hide'); + break; + case 1: + echo "checkbox war TRUE"; + $this->setAttribute('showarrows', 'showHoverScale'); + break; + } if ($this->getAttribute('showarrows')) { $this->setAttribute( 'data-qui-options-showarrows',