From 4d7447f66ab6d63bb4afae6a65074d396454ba8b Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Wed, 21 Sep 2016 16:26:28 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Menu=20wechsel=20=C3=BCber=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.xml | 38 ++++++++++++++++++++++++++++++++++++++ src/QUI/Menu/MegaMenu.php | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 settings.xml diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..578f898 --- /dev/null +++ b/settings.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<quiqqer> + <project> + + <settings> + <config> + <section name="menu.settings"> + <conf name="type"> + <type><![CDATA[string]]></type> + </conf> + </section> + </config> + + + <window> + <categories> + <category name="menu"> + <text>Menu</text> + <icon>fa fa-menu</icon> + + <settings title="menu.settings" name="menu.settings"> + <title> + QUI Template Einstellungen + </title> + <select conf="menu.settings.type"> + <text>Header-Logo</text> + <option value="Standard">MegaMenu - mit Unterseiten</option> + <option value="Image">MegaMenu - Grosse Seitenbilder</option> + </select> + </settings> + </category> + </categories> + + </window> + </settings> + + </project> +</quiqqer> \ No newline at end of file diff --git a/src/QUI/Menu/MegaMenu.php b/src/QUI/Menu/MegaMenu.php index 15ace15..d41560d 100644 --- a/src/QUI/Menu/MegaMenu.php +++ b/src/QUI/Menu/MegaMenu.php @@ -23,7 +23,7 @@ public function __construct($attributes = array()) 'showStart' => false, 'Start' => false, 'data-qui' => 'package/quiqqer/menu/bin/MegaMenu', - 'display' => '' + 'display' => $this->getProject()->getConfig('menu.settings.type') )); parent::__construct($attributes); -- GitLab