From 819ff7ae9994de07b9c62e0de991811fcd6b7abe Mon Sep 17 00:00:00 2001 From: Matan Bareket Date: Sun, 26 Aug 2018 22:55:11 -0400 Subject: [PATCH] TEMPLATES: Make use of semantic HTML5 elements --- templates/components/box.tpl | 16 ++++++++-------- templates/components/roundbox.tpl | 12 ++++++------ templates/pages/news.tpl | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/templates/components/box.tpl b/templates/components/box.tpl index f628aae4..e989c8ff 100644 --- a/templates/components/box.tpl +++ b/templates/components/box.tpl @@ -1,15 +1,15 @@ -
+<{if $article}article{else}section{/if} class="box" {if $id}id="{$id}"{/if}> {if $head} -
+
{$head} -
+ {/if} {if $intro} -
+
{$intro} -
+ {/if} -
+
{$content} -
-
+ + diff --git a/templates/components/roundbox.tpl b/templates/components/roundbox.tpl index 68122a80..e31cfce5 100644 --- a/templates/components/roundbox.tpl +++ b/templates/components/roundbox.tpl @@ -1,10 +1,10 @@ -
+
{if $header} -
+
{$header} -
+ {/if} -
+
{$content} -
-
+ + diff --git a/templates/pages/news.tpl b/templates/pages/news.tpl index db9b4b25..370b4fa4 100644 --- a/templates/pages/news.tpl +++ b/templates/pages/news.tpl @@ -13,7 +13,7 @@ {$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 *}