imageWide ineens verdwenen van NH
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(is_array($news->content))
|
@if(is_array($news->content))
|
||||||
@include('partial/nh_story', ['content' => $news->content]);
|
@include('partial/nh_story', ['content' => $news->content])
|
||||||
@else
|
@else
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<p>{!!$news->content!!}</p>
|
<p>{!!$news->content!!}</p>
|
||||||
|
|||||||
@@ -20,8 +20,18 @@
|
|||||||
<div class="author">{{$block->name}}</div>
|
<div class="author">{{$block->name}}</div>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
@elseif($block->type == "image")
|
@elseif($block->type == "image")
|
||||||
<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="{{$block->image->imageWide}}" title="{{$block->image->title}} © {{$block->image->author}}">
|
<?php
|
||||||
<img src="{{$block->image->imageWide}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image" alt="{{$block->image->title}}" title="" style="display: block;">
|
if(isset($block->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)
|
||||||
|
<a class="post_image page_margin_top prettyPhoto" rel="prettyPhoto" href="{{$image}}" title="{{$block->image->title}} © {{$block->image->author}}">
|
||||||
|
<img src="{{$image}}" class="attachment-small-slider-thumb size-small-slider-thumb wp-post-image" alt="{{$block->image->title}}" title="" style="display: block;">
|
||||||
</a>
|
</a>
|
||||||
<div class="sentence">
|
<div class="sentence">
|
||||||
@if($block->image->title)
|
@if($block->image->title)
|
||||||
@@ -31,6 +41,7 @@
|
|||||||
<span class="author">{{$block->image->author}}</span>
|
<span class="author">{{$block->image->author}}</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
@elseif($block->type == "video" || $block->type == "headerVideo")
|
@elseif($block->type == "video" || $block->type == "headerVideo")
|
||||||
@include('widgets/mediaplayer')
|
@include('widgets/mediaplayer')
|
||||||
<video controls>
|
<video controls>
|
||||||
@@ -43,11 +54,22 @@
|
|||||||
<div class="horizontal_carousel_container gallery">
|
<div class="horizontal_carousel_container gallery">
|
||||||
<ul class="horizontal_carousel visible-5 autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
<ul class="horizontal_carousel visible-5 autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
|
||||||
@foreach($block->items as $image)
|
@foreach($block->items as $image)
|
||||||
|
<?php
|
||||||
|
if(isset($image->image->imageWide))
|
||||||
|
$img = $image->image->imageWide;
|
||||||
|
else if(isset($image->image->crops) && isset($image->image->crops->{'16:9'}))
|
||||||
|
foreach($image->image->crops->{'16:9'} as $img) break;
|
||||||
|
else if(isset($image->image->imageHigh))
|
||||||
|
$img = $image->image->imageHigh;
|
||||||
|
else $img = null;
|
||||||
|
?>
|
||||||
|
@if($img)
|
||||||
<li>
|
<li>
|
||||||
<a href="{{$image->image->imageWide}}" class="post_image prettyPhoto" rel="prettyPhoto[gallery]" title="{{$image->image->title}} © {{$image->image->author}}">
|
<a href="{{$img}}" class="post_image prettyPhoto" rel="prettyPhoto[gallery]" title="{{$image->image->title}} © {{$image->image->author}}">
|
||||||
<img src="{{$image->image->imageWide}}" alt="{{$image->image->title}}" title="{{$image->image->title}}">
|
<img src="{{$img}}" alt="{{$image->image->title}}" title="{{$image->image->title}}">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user