Code layout
Architecture
The module fits into one Module class, one ObjectModel and one admin controller.
| Class / file | Role |
|---|---|
Freshapphtmleverywhere | Module class: installation, dynamic hook registration, the magic __call()/renderBlock() dispatcher, publishing CSS/JS files. |
FreshappHtmlBlock | ObjectModel for a block (classes/FreshappHtmlBlock.php); syncs generated CSS/JS files on every add, update or delete. |
AdminFreshapphtmleverywhereController | Block list and form; CodeMirror for raw code, the TinyMCE switch, and the menu-entry visibility toggle. |
| views/templates/hook/bloc.tpl | Smarty template for the wrapper injected on the storefront. |