TEMPLATES: Make use of semantic HTML5 elements

This commit is contained in:
Matan Bareket committed 2018-08-27 00:08:59 -04:00
1 parent 0ce6ab24c0
commit 819ff7ae99
3 files changed
+15 -15

No files matched your search

+8 -8
View File
@@ -1,15 +1,15 @@
<div class="box" {if $id}id="{$id}"{/if}>
<{if $article}article{else}section{/if} class="box" {if $id}id="{$id}"{/if}>
{if $head}
<div class="head">
<header class="head">
{$head}
</div>
</header>
{/if}
{if $intro}
<div class="intro">
<section class="intro">
{$intro}
</div>
</section>
{/if}
<div class="content">
<section class="content">
{$content}
</div>
</div>
</section>
</{if $article}article{else}section{/if}>
+6 -6
View File
@@ -1,10 +1,10 @@
<div class="round-box">
<section class="round-box">
{if $header}
<div class="header">
<header class="header">
{$header}
</div>
</header>
{/if}
<div class="content{if $class} {$class}{/if}">
<section class="content{if $class} {$class}{/if}">
{$content}
</div>
</div>
</section>
</section>
+1 -1
View File
@@ -13,7 +13,7 @@
</div>
{$news->getContent()}
{/capture}
{include "components/box.tpl" id=$id head=$smarty.capture.head content=$smarty.capture.content}
{include "components/box.tpl" id=$id head=$smarty.capture.head content=$smarty.capture.content article="true"}
{/foreach}
{* Only show the 'more news' link if we're on the main page *}