diff options
| author | 2021-01-12 20:30:32 +0100 | |
|---|---|---|
| committer | 2021-01-12 20:30:32 +0100 | |
| commit | b1285466f284453a54378f4e0ad31f850250a6b8 (patch) | |
| tree | a0484b3c1accf99abf20316e07468e9150ca37c5 /app/layout | |
| parent | eb51fd713a740de7b91f2bd9fe1b2b6d8aff75a6 (diff) | |
fix layout changes since new hook `nav_menu` (#3362)
* fix layout if no hooks `nav_menu` are active
* Update app/layout/nav_menu.phtml
oh thx
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 04731cc8a..5a385589f 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -175,9 +175,12 @@ </a> </div> + <?php $nav_menu_hooks = Minz_ExtensionManager::callHook('nav_menu'); ?> + <?php if ($nav_menu_hooks != '') { ?> <div class="stick" id="nav_menu_hooks"> - <?= Minz_ExtensionManager::callHook('nav_menu') ?> + <?php echo $nav_menu_hooks; ?> </div> + <?php } ?> <div class="item search"> <form action="<?= _url('index', 'index') ?>" method="get"> |
