90 lines
3.8 KiB
PHP
90 lines
3.8 KiB
PHP
@foreach($items as $item)
|
|
<div class="row">
|
|
<div class="post single small_image">
|
|
<ul class="post_details clearfix">
|
|
<li class="detail date">
|
|
<i class="fa-regular fa-clock"></i>
|
|
{{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")))
|
|
| <em>bijgewerkt</em>:
|
|
@if($item->edited->format("d m") != $item->published->format("d m"))
|
|
{{strtolower(Formatter::relativeDate($item->edited))}}
|
|
@endif
|
|
om {{$item->edited->format("H:i")}} uur
|
|
@endif
|
|
</li>
|
|
@if($item->author)
|
|
<li class="detail author">{{$item->author}}</li>
|
|
@endif
|
|
</ul>
|
|
|
|
|
|
<div class="post_content page_margin_top clearfix">
|
|
<div class="content_box">
|
|
@if($item->images)
|
|
@if(count($item->images) == 1)
|
|
@if(!$item->images[0]->title) @php($item->images[0]->title = $item->title) @endif
|
|
<div class="post_image_box">
|
|
<a href="{{$imgBase . $item->images[0]->url}}" class="post_image prettyPhoto" rel="prettyPhoto" title="{{$item->images[0]->title}}">
|
|
<img src="{{$imgBase . $item->images[0]->url}}" alt="{{$item->images[0]->title}}">
|
|
</a>
|
|
<div class="sentence">
|
|
<span class="text">{{$item->images[0]->title}}</span>
|
|
@if(isset($item->images[0]->author))
|
|
<span class="author">{{$item->images[0]->author}}</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@else
|
|
<div class="horizontal_carousel_container gallery">
|
|
<ul class="horizontal_carousel visible-5 autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
|
@foreach($item->images as $image)
|
|
@if(!$image->title) @php($image->title = $item->title) @endif
|
|
<li>
|
|
<a href="{{$imgBase . $image->url}}" class="post_image prettyPhoto" rel="prettyPhoto[gallery-{{$item->id}}]" title="{{$image->title}}">
|
|
<img src="{{$imgBase . $image->url}}" alt="{{$image->title}}" title="{{$image->title}}">
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
<h3>{{$item->title}}</h3>
|
|
|
|
@if(is_array($item->content))
|
|
@include("partial/nh_story", ["content" => $item->content]);
|
|
@else
|
|
<div class="text">
|
|
<p>{!!$item->content!!}</p>
|
|
</div>
|
|
@endif
|
|
|
|
@if($item->video)
|
|
@include('widgets/mediaplayer')
|
|
@php(createVideoElement($item->video))
|
|
@endif
|
|
|
|
@if($item->source && $item->source->show)
|
|
<div class="post-source">
|
|
<p>Bron: {{$item->source->title}}</p>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@if($item->podcast)
|
|
@include("widgets/mediaplayer")
|
|
<div class="announcement">
|
|
<div>
|
|
<audio controls>
|
|
<source src="{{ $url = url( $apiUrl . "podcast/download" . $item->podcast->url . "?auth=" . $item->podcast->auth )}}" type="audio/mpeg" />
|
|
</audio>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
@endforeach
|