Änderungen
Seitenverlauf
Update home/developer/MegaMenu Control Nutzung
erstellt
Mai 24, 2023
von
Michael Danielczok
Leerzeichenänderungen anzeigen
Inline
Nebeneinander
home/developer/MegaMenu-Control-Nutzung.md
0 → 100644
Seite @ anzeigen
8bc05a26
## MegaMenu Beispiel
```
php
<?php
$Menu
=
new
\QUI\Menu\MegaMenu
(
array
(
'showStart'
=>
true
,
'Project'
=>
$Site
->
getProject
()
));
// logo hinzufügen
$Menu
->
appendHTML
(
'<a href="{url id=1}" class="page-header-menu-logo" title="Zur Startseite">
<img src="'
.
$Engine
->
getTemplateVariable
(
'URL_TPL_DIR'
)
.
'bin/images/logo.png"/>
</a>'
);
```
```
html
<div
class=
"page-header-menu"
>
<div
class=
"grid-container"
>
{$Menu->create()}
</div>
</div>
```
## Control Nutzung in Smarty
```
{control control="\QUI\Menu\Elastic"}
{control control="\QUI\Menu\SlideOut"}
```
### Beispiel mit Einstellungen
```
{control
control="\QUI\Menu\DropDownMenu"
Site=$Start
icons=1
showHomeIcon=1
}
```
```
{control control="\QUI\Menu\SlideOut"
data-menu-right=10
data-menu-top=15
data-show-button-on-desktop=0
data-qui-options-menu-width=400
data-qui-options-menu-button=0
data-qui-options-touch=0
data-qui-options-buttonids=mobileMenu
}
```