Code layout
Architecture
The module has no heavy ORM dependency: menus and blocks are read and written with direct SQL against two dedicated tables.
| File / class | Role |
|---|---|
Freshappprestamegamenu | Module class: front-office hooks, menu data assembly (buildFrontData), CSS-variables generation and HTML panel cache generation. |
AdminFreshappprestamegamenuController | Single tabbed BO screen: menus, design, generator, display position, performance, export/import. |
views/templates/hook/megamenu.tpl | Renders the desktop bar and its panels. |
views/templates/hook/panel.tpl | A single panel's fragment, pre-generated and cached when JS loading is active. |
views/templates/hook/mobile.tpl / mobile-fragment.tpl | Renders the mobile panel (full-screen or accordion mode) and its cached fragments. |
views/js/front.js | Hover/focus opening, lazy panel loading, navigation and focus trap for the mobile panel. |