From 8749bb4110fd73bb3ab7fa117ae8e9a98087b208 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 11 Apr 2017 12:40:26 -0400 Subject: [PATCH] Move template name classes to body to allow all header and footer, not just main content, to be styled by template. --- themes/bootstrap3/templates/layout/layout.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/templates/layout/layout.phtml b/themes/bootstrap3/templates/layout/layout.phtml index 10634007395..0b37235de96 100644 --- a/themes/bootstrap3/templates/layout/layout.phtml +++ b/themes/bootstrap3/templates/layout/layout.phtml @@ -121,7 +121,7 @@ JS; ?> <?=$this->headScript()?> </head> - <body class="<?=$this->layoutClass('offcanvas-row')?><? if ($this->layout()->rtl): ?> rtl<? endif; ?>"> + <body class="template-dir-<?=$this->templateDir?> template-name-<?=$this->templateName?> <?=$this->layoutClass('offcanvas-row')?><? if ($this->layout()->rtl): ?> rtl<? endif; ?>"> <? // Set up the search box -- there are three possible cases: // 1. No search box was set; we should default to the normal box // 2. It was set to false; we should display nothing @@ -164,7 +164,7 @@ JS; <? endif; ?> </div> </header> - <div role="main" class="main template-dir-<?=$this->templateDir?> template-name-<?=$this->templateName?>"> + <div role="main" class="main"> <div id="content" class="container"> <?=$this->layout()->content ?> </div> -- GitLab