From b8ade3de144fa19ad980b07c7529ed674bfe5aaa Mon Sep 17 00:00:00 2001 From: Mischa Spelt Date: Tue, 16 Jun 2020 16:55:55 +0200 Subject: [PATCH] imageWide ineens verdwenen van NH --- resources/views/newsitem.blade.php | 2 +- resources/views/partial/nh_story.blade.php | 30 +++++++++++++++++++--- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/resources/views/newsitem.blade.php b/resources/views/newsitem.blade.php index 4eed3c3f..c1548c1f 100644 --- a/resources/views/newsitem.blade.php +++ b/resources/views/newsitem.blade.php @@ -105,7 +105,7 @@ @endif @if(is_array($news->content)) - @include('partial/nh_story', ['content' => $news->content]); + @include('partial/nh_story', ['content' => $news->content]) @else

{!!$news->content!!}

diff --git a/resources/views/partial/nh_story.blade.php b/resources/views/partial/nh_story.blade.php index 789e8405..75007f07 100644 --- a/resources/views/partial/nh_story.blade.php +++ b/resources/views/partial/nh_story.blade.php @@ -20,8 +20,18 @@
{{$block->name}}
@elseif($block->type == "image") - - {{$block->image->title}} + image->imageWide)) + $image = $block->image->imageWide; + else if(isset($block->image->crops) && isset($block->image->crops->{'16:9'})) + foreach($block->image->crops->{'16:9'} as $image) break; + else if(isset($block->image->imageHigh)) + $image = $block->image->imageHigh; + else $image = null; + ?> + @if($image) + + {{$block->image->title}}
@if($block->image->title) @@ -31,6 +41,7 @@ {{$block->image->author}} @endif
+ @endif @elseif($block->type == "video" || $block->type == "headerVideo") @include('widgets/mediaplayer')