Liveblog - start work
This commit is contained in:
@@ -1,89 +1,101 @@
|
||||
@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>
|
||||
@foreach($items as $news)
|
||||
<div class="post_body">
|
||||
<h2>{{ $news->title }}</h2>
|
||||
<ul class="post_details clearfix">
|
||||
<li class="detail date">
|
||||
<i class="fa-regular fa-clock"></i>
|
||||
{{Formatter::relativeDate($news->published)}} om {{$news->published->format('H:i')}}
|
||||
@if($news->edited && ($news->edited->format('d m H i') != $news->published->format('d m H i')))
|
||||
| bijgewerkt:
|
||||
@if($news->edited->format('d m') != $news->published->format('d m'))
|
||||
{{strtolower(Formatter::relativeDate($news->edited))}}
|
||||
@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/stream" . $item->podcast->url . "?auth=" . $item->podcast->auth )}}" type="audio/mpeg" />
|
||||
</audio>
|
||||
</div>
|
||||
</div>
|
||||
om {{$news->edited->format('H:i')}} uur
|
||||
@endif
|
||||
</li>
|
||||
@if($news->author)
|
||||
<li class="detail author"><i class="fa-solid fa-pen"></i> {{$news->author}}</li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="post_content clearfix">
|
||||
<div class="content_box">
|
||||
@if($news->images)
|
||||
@if(count($news->images) == 1)
|
||||
<div class="post_image_box">
|
||||
<a href="{{$imgBase . $news->images[0]->url}}" class="post_image prettyPhoto" rel="prettyPhoto"
|
||||
title="{{$news->images[0]->title}}">
|
||||
<img src='{{$imgBase . $news->images[0]->url}}' alt='{{$news->images[0]->title}}'>
|
||||
</a>
|
||||
<div class="sentence">
|
||||
<span class="text">{{$news->images[0]->title}}</span>
|
||||
@if(isset($news->images[0]->author))
|
||||
<span class="author">{{$news->images[0]->author}}</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="horizontal_carousel_container thin page_margin_top gallery_control">
|
||||
<ul
|
||||
class="horizontal_carousel control-for-post-gallery visible-5 autoplay-0 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
||||
@foreach($news->images as $image)
|
||||
<li>
|
||||
<a href="#"><img src='{{$imgBase . $image->url}}'></a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<div id="control-by-post-gallery" class="horizontal_carousel_container big margin_top_10">
|
||||
<ul id="post-gallery"
|
||||
class="horizontal_carousel visible-1 autoplay-0 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
||||
@foreach($news->images as $image)
|
||||
<li>
|
||||
<a href="{{$imgBase . $image->url}}" data-rel="gallery" title="{{$image->title}}">
|
||||
<span class="icon fullscreen animated"></span>
|
||||
<img src='{{$imgBase . $image->url}}' alt='{{$image->title}}'>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- @if($news->type == "nhnieuws") --}}
|
||||
{{-- @include('partial/nh_story', ['content' => $news->content]) --}}
|
||||
{{-- @elseif($news->type == "artikel") --}}
|
||||
{{-- @include('partial/block_story', ['content' => $news->content]) --}}
|
||||
{{-- @else --}}
|
||||
<div class="text">
|
||||
<p>{!!$news->content!!}</p>
|
||||
</div>
|
||||
{{-- @endif --}}
|
||||
|
||||
@if($news->podcast)
|
||||
@include('widgets/podcastplayer', ['podcast' => $news->podcast])
|
||||
@endif
|
||||
|
||||
@if($news->source && $news->source->show)
|
||||
<div class="post-source">
|
||||
<p>Bron: {{$news->source->title}}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{--
|
||||
@include('widgets/share')
|
||||
--}}
|
||||
|
||||
{{-- <div class="share_buttons row">
|
||||
<div class="col-12 col-md-auto">
|
||||
<a data-share="native" href="javascript:void(0)" class="btn">
|
||||
<i class="fa-solid fa-share"></i>
|
||||
Delen
|
||||
</a>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
<hr />
|
||||
@endforeach
|
||||
Reference in New Issue
Block a user