Easier to maintain template structure
This the head and footer don't have to be included everytime and the hierarchy is easier to read
This commit is contained in:
parent
de74808459
commit
ac8c53375a
11 changed files with 201 additions and 195 deletions
18
templates/page.tpl
Normal file
18
templates/page.tpl
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html lang="{$locale->getLocale()->getBcp47()}">
|
||||
{include file='inc/head.tpl'}
|
||||
<body>
|
||||
<div class="page {$class}">
|
||||
{include file='inc/header.tpl'}
|
||||
<div class="wrapper">
|
||||
<main class="main">
|
||||
{block name="main"}{/block}
|
||||
</main>
|
||||
</div>
|
||||
{include file='inc/footer.tpl'}
|
||||
</div>
|
||||
{if isset($debug_render)}
|
||||
{$debug_render->render()}
|
||||
{/if}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue