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;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.posted_by abbr.when
|
.latest_news_scrolling_list .when
|
||||||
{
|
{
|
||||||
float: right;
|
float: right;
|
||||||
color: #7C7C7C;
|
color: #7C7C7C;
|
||||||
font-size: 12px;
|
margin-left: 2em;
|
||||||
margin-top: 7px;
|
|
||||||
text-decoration: none;
|
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="right"><a href="#"></a></li>
|
||||||
<li class="posts">
|
<li class="posts">
|
||||||
<ul class="latest_news_scrolling_list">
|
<ul class="latest_news_scrolling_list">
|
||||||
@foreach($item as $latest_news)
|
@foreach($latest_news as $item)
|
||||||
|
@php($item = new \Model\NewsItem($item))
|
||||||
<li>
|
<li>
|
||||||
<a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a>
|
<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>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user