mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
TEMPLATES: Make use of semantic HTML5 elements
This commit is contained in:
1 parent
0ce6ab24c0
commit
819ff7ae99
3 files changed
+15
-15
No files matched your search
@@ -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}>
|
||||
@@ -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>
|
||||
@@ -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 *}
|
||||
|
||||
Reference in new issue
Block a user