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 / classRole
FreshappprestamegamenuModule class: front-office hooks, menu data assembly (buildFrontData), CSS-variables generation and HTML panel cache generation.
AdminFreshappprestamegamenuControllerSingle tabbed BO screen: menus, design, generator, display position, performance, export/import.
views/templates/hook/megamenu.tplRenders the desktop bar and its panels.
views/templates/hook/panel.tplA single panel's fragment, pre-generated and cached when JS loading is active.
views/templates/hook/mobile.tpl / mobile-fragment.tplRenders the mobile panel (full-screen or accordion mode) and its cached fragments.
views/js/front.jsHover/focus opening, lazy panel loading, navigation and focus trap for the mobile panel.
Loading...
Back to top