Available layouts
Status: 95% — structure settled; one custompages conflict to resolve.
How layouts work
Each layout registered in theme.xml has one file:
layouts/<name>_layout.htmlThe file contains the layout's own chrome and {---} where the page content renders. Core inserts the file at the {---LAYOUT---} marker of theme.html, inside the shared <div class="page {PAGE_CLASS}"> wrapper — layout files therefore start at .page-wrapper (or their aside), never with .page itself.
Current layouts
layouts/dashboard_layout.html exists but is not registered in theme.xml, so it never renders. It is kept as a prepared variant, not dead code — but nothing has been verified against it.
Mobile drawers
Every layout except auth, memberdesk and raw carries three offcanvas panels, opened from the bottom navigation bar ({BOTTOM_NAV}, itself d-lg-none):
#panelLeft
#accLeft
101
#panelUser
#accUser
102
#panelLatest
#accLatest
103
On 3columns and sidebar these use offcanvas-lg — a real column from lg up, a drawer below. Elsewhere they are offcanvas … d-lg-none, drawers only.
The block is identical in every layout, and only 3columns addresses the areas with plain {MENUAREA=n}. Everywhere else it is {THEME_MENUAREA=n}, which mirrors that one layout's assignment — see Shared menu areas.
Layout contracts in CSS
Three values in style.css are shared between the layouts and their JS:
--nav-h is written inline on <body> by theme.html as a pre-measure default and corrected once the header is rendered — PHP cannot know the final height, because the navbar wraps at some widths and web fonts change the line box after load. It feeds .col-sticky and the scroll-margin-top on anchor targets, both of which land in the wrong place if it is stale.
The lg breakpoint itself cannot be a variable — CSS forbids var() inside @media — so it stays a Tabler constant. Changing it means changing .offcanvas-lg, .d-lg-none and the media queries together.
Magic shortcodes — {---CAPTION---} and {---BREADCRUMB---}
The page and sidebar layouts render a Tabler .page-header whose content comes from core magic shortcodes (e_render::getMagicShortcodes()):
{---CAPTION---}— the caption of the page's main render,{---BREADCRUMB---}— the current breadcrumb, by default rendered viae107::getForm()->breadcrumb().
Which render is "main" is designated by {SETSTYLE=default} — that is why those two layouts use default before {---} while the others use card.
Core also offers theme hooks: if theme_shortcodes defines sc_caption($caption) or sc_breadcrumb($bread), their return value replaces the marker instead of the default rendering.
{SETSTYLE} styles
Which style each layout uses and what tablestyle() renders for it is documented on theme.php. Rule of thumb: card for plain content layouts, default only for the layouts with the magic page header, card_header where the block needs a visible caption.
Per-layout behaviour without per-layout files
Body classes —
{BODY_CLASS}on the body tag, plus{LAYOUT_ID}, which expands to"layout-" + name2id(THEME_LAYOUT)and gives every layout a handle for CSS (see theme.html).Page wrapper classes —
{PAGE_CLASS}on the shared.pagewrapper (auth→page-center).Header/footer variants — the
{HEADER}/{FOOTER}shortcode switches (see Header & footer partials).
Last updated