38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
@foreach($content as $block)
|
|
@if($block->type == "headerRichA")
|
|
@php($block->image->url = $block->image->crops->{'16:9'}->{'1600'})
|
|
<a href="{{$block->image->url}}" class="post_image page_margin_top prettyPhoto" title="{{$block->image->title}}">
|
|
<img src="{{$block->image->url}}" alt="{{$block->image->title}}">
|
|
</a>
|
|
<div class="sentence margin_top_10">
|
|
<span class="text">{{$block->image->title}}</span>
|
|
@if($block->image->author)
|
|
<span class="author">{{$block->image->author}}</span>
|
|
@endif
|
|
</div>
|
|
@elseif($block->type == "text")
|
|
<div class="text">{!!$block->text!!}</div>
|
|
@elseif($block->type == "intro")
|
|
<h3 class="excerpt">{{strip_tags($block->text)}}</h3>
|
|
@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")
|
|
@include('widgets/mediaplayer')
|
|
<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
|
|
|