Laatste nieuws balk met datum/tijd
This commit is contained in:
5
website/public/css/nhgooi.css
vendored
5
website/public/css/nhgooi.css
vendored
@@ -59,12 +59,11 @@ button[disabled]:hover
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.posted_by abbr.when
|
||||
.latest_news_scrolling_list .when
|
||||
{
|
||||
float: right;
|
||||
color: #7C7C7C;
|
||||
font-size: 12px;
|
||||
margin-top: 7px;
|
||||
margin-left: 2em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ $latest_news = json_decode(Storage::disk('local')->get('laatste_nieuws.json'));
|
||||
<li class="right"><a href="#"></a></li>
|
||||
<li class="posts">
|
||||
<ul class="latest_news_scrolling_list">
|
||||
@foreach($item as $latest_news)
|
||||
@foreach($latest_news as $item)
|
||||
@php($item = new \Model\NewsItem($item))
|
||||
<li>
|
||||
<a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a>
|
||||
<span class="when">{{Formatter::relativeDate($item->published)}} {{$item->published->format('H:i')}}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user