Change logo Add luister and kijk icons Tip de streekredactie points to whatsapp 088-8505651 Add s to Podcast Removed waterschapsverkiezingen from menu Podcast autoplay disabled Remove Gooische Courant and NH Nieuws Changed NH Gooi to Over NH Gooi Added padding and border-radios to homepage posts Changed header 12px to 14px Add now and next programs to homepage Add new button to programs Changed contact text Add fallback image to program guide Make items height equally in program guide
36 lines
1.8 KiB
PHP
36 lines
1.8 KiB
PHP
<ul id="{{$id}}" class="blog">
|
|
@foreach($news as $item)
|
|
<li class="post">
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<a href="{{url($item->url)}}" title="{{$item->title}}">
|
|
@if($item->video)
|
|
<span class="icon video"></span>
|
|
@elseif($item->images && count($item->images) > 1)
|
|
<span class="icon gallery"></span>
|
|
@endif
|
|
<img src='{{$item->images && count($item->images) ? $imgBase . $item->images[0]->url : '/images/noimage.png'}}'
|
|
alt='img'>
|
|
</a>
|
|
</div>
|
|
<div class="col-8">
|
|
<h2 class="post_title"><a class="clipText clipText-3" href="{{url($item->url)}}"
|
|
title="{{$item->title}}">{!!$item->title!!}</a></h2>
|
|
<?php
|
|
$time = Formatter::relativeDate($item->published) . ' om ' . $item->published->format('H:i');
|
|
if ($item->edited && ($item->edited->format('d m H i') != $item->published->format('d m H i'))) {
|
|
$time .= ' | bijgewerkt: '
|
|
. ($item->edited->format('d m') != $item->published->format('d m') ? strtolower(Formatter::relativeDate($item->edited)) : '')
|
|
. $item->edited->format('H:i') . ' uur';
|
|
}
|
|
$time = str_replace(' ', ' ', $time);
|
|
?>
|
|
<span class="post_date" title="{{$time}}">
|
|
<i class="fa-regular fa-clock"></i> {{$time}}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|