99 lines
3.3 KiB
PHP
99 lines
3.3 KiB
PHP
@extends('page')
|
|
|
|
@section('title')
|
|
Nieuws | {{$news->title}}
|
|
@endsection
|
|
|
|
@include('_mediaplayer')
|
|
|
|
@section('content')
|
|
<article class="article-content" itemscope itemtype="http://schema.org/Article">
|
|
<div class="article-header">
|
|
<div class="article-meta clearfix">
|
|
<span class="news-pubdate" data-short-date="{{Formatter::fullDate($news->published, 'w d m y')}}, {{$news->published->format("H:i")}}" datetime="{{$news->published->format('c')}}">
|
|
{{Formatter::relativeDate($news->published)}}, {{$news->published->format("H:i")}}
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h1 class="article-title" itemprop="headline">{{$news->title}}</h1>
|
|
{{--
|
|
@if($news->media && count($news->media) > 0)
|
|
@if(!$news->media[0]->title) @php($news->media[0]->title = $news->title) @endif
|
|
<div class="mediabox">
|
|
<div class="big-images owl-carousel">
|
|
<div>
|
|
<div class="mediabox-image">
|
|
<img src="{{$news->media[0]->url}}" alt="{{strip_tags($news->media[0]->title)}}" title="{{strip_tags($news->media[0]->title)}}"/>
|
|
<span class="mediabox-image-title">{{$news->media[0]->title}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="thumbs owl-carousel">
|
|
@if(count($news->media) > 1) @foreach($news->media as $image)
|
|
<div>
|
|
<img src="{{$image->url}}" alt="{{strip_tags($image->title)}}" title="{{strip_tags($image->title)}}" itemprop="image"/>
|
|
</div>
|
|
@endforeach @endif
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
@endif
|
|
--}}
|
|
|
|
@foreach($news->blocks as $block)
|
|
@if($block->type == "text")
|
|
{!!$block->text!!}
|
|
@elseif($block->type == "intro")
|
|
<div class="intro">{!!$block->text!!}</div>
|
|
@elseif($block->type == "quote")
|
|
<blockquote>
|
|
{!!$block->text!!}
|
|
<div class="author">{{$block->name}}</div>
|
|
</blockquote>
|
|
@elseif($block->type == "image")
|
|
<div class="mediabox-image">
|
|
<img src="{{$block->image->imageWide}}" alt="{{$block->image->title}}" title="{{$block->image->title}} ©{{$block->image->author}}"/>
|
|
<span class="mediabox-image-title">{{$block->image->imageWide}}</span>
|
|
</div>
|
|
@elseif($block->type == "video")
|
|
<video controls>
|
|
@foreach($block->video->streams as $stream)
|
|
<source src="{!!$stream->stream_url!!}" type="application/x-mpegurl" />
|
|
@endforeach
|
|
</video>
|
|
<span class="author">{{$block->video->author}}</span>
|
|
@endif
|
|
@endforeach
|
|
|
|
@if($podcast)
|
|
<div class="left_content">
|
|
<h2>Fragment</h2>
|
|
<p>{{ Formatter::relativeDate($podcast->created) }} uitgezonden @if($podcast->program) in <a href="{{ url('radio/programma' . $podcast->program->url ) }}">{{ $podcast->program->name }}</a> @endif </p>
|
|
<p>
|
|
<audio controls>
|
|
<source src="{{ $url = url( $apiUrl . 'podcast/download/' . $podcast->url . "?auth=" . $podcast->auth )}}" type="audio/mpeg" />
|
|
</audio>
|
|
</p>
|
|
<p><a href="{{ url('/radio/gemist/fragment/' . $podcast->url) }}" class="btn btn-default">Meer over dit fragment</a></p>
|
|
</div>
|
|
@endif
|
|
<hr />
|
|
|
|
|
|
<div class="article-bottom">
|
|
<div class="row">
|
|
<div class="col-md-6 col-sm-12 pull-right">
|
|
<a href="/contact?correction=true" class="block-ctalink" rel="nofollow">Correctie melden <i class="icon-arrow-small"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
|