Add date to news
This commit is contained in:
parent
83d7d0b970
commit
c28ab18fee
|
@ -21,7 +21,7 @@
|
||||||
{else}
|
{else}
|
||||||
{foreach $newsList as $news}
|
{foreach $newsList as $news}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header d-flex justify-content-between align-items-center">
|
||||||
<h5>
|
<h5>
|
||||||
{ifset $news["link"]}
|
{ifset $news["link"]}
|
||||||
<a href="{$news["link"]}" n:attr="target => $news['external'] ? '_blank'">
|
<a href="{$news["link"]}" n:attr="target => $news['external'] ? '_blank'">
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
{$news["title"]}
|
{$news["title"]}
|
||||||
{/ifset}
|
{/ifset}
|
||||||
</h5>
|
</h5>
|
||||||
|
<div>{strtotime($news["added"])|fullDate}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="card-text">{$news["description"]|noescape}</p>
|
<p class="card-text">{$news["description"]|noescape}</p>
|
||||||
|
|
Loading…
Reference in New Issue