Code layout

Architecture

The module fits into one Module class, one ObjectModel and one admin controller.

Class / fileRole
FreshapphtmleverywhereModule class: installation, dynamic hook registration, the magic __call()/renderBlock() dispatcher, publishing CSS/JS files.
FreshappHtmlBlockObjectModel for a block (classes/FreshappHtmlBlock.php); syncs generated CSS/JS files on every add, update or delete.
AdminFreshapphtmleverywhereControllerBlock list and form; CodeMirror for raw code, the TinyMCE switch, and the menu-entry visibility toggle.
views/templates/hook/bloc.tplSmarty template for the wrapper injected on the storefront.
Loading...
Back to top