From eeb84c5be16ecca239adae9c851bc0f7db0875a1 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 4 Mar 2023 01:46:45 +0300 Subject: blog: support ToC --- skin/base.skin.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'skin/base.skin.php') diff --git a/skin/base.skin.php b/skin/base.skin.php index 3374555..d39a0a8 100644 --- a/skin/base.skin.php +++ b/skin/base.skin.php @@ -13,6 +13,12 @@ $app_config = json_encode([ 'cookieHost' => $config['cookie_host'], ]); +$body_class = []; +if ($opts['full_width']) + $body_class = 'full-width'; +else if ($opts['wide']) + $body_class = 'wide'; + return << @@ -26,7 +32,7 @@ return <<renderMeta($meta)} {$ctx->renderStatic($static, $theme)} - if_true($opts['full_width'], ' class="full-width"')}> + if_true($body_class, ' class="'.$body_class.'"')}> {$ctx->renderHeader($theme, renderLogo($ctx, $opts['logo_path_map'], $opts['logo_link_map']))}
{$unsafe_body}
-- cgit v1.2.3