{PAGE_CLASS}
Status: done (100%)
Per-layout classes for the shared .page wrapper.
Usage
<div class="page {PAGE_CLASS}">Used once, in theme.html. The wrapper is shared by every layout — layout files start inside it, at .page-wrapper — so anything that has to sit on .page itself comes from here.
The case that made it necessary is auth, which needs Tabler's page-center to vertically centre the login card.
The wrapper itself lives in theme.html rather than in each layout because the {---HEADER---} partial has to render inside .page — Tabler's structure is .page > header > .page-wrapper.
Code
// {PAGE_CLASS} - see docs: {PAGE_CLASS}.
function sc_page_class($parm = null)
{
switch(defset('THEME_LAYOUT'))
{
case 'auth':
return 'page-center';
}
return '';
}Notes
THEME_LAYOUT via defset() inside the method — see theme_shortcodes.php.
Last updated