Add carousel block type to nhnewsstory

This commit is contained in:
2020-03-27 17:11:40 +01:00
parent 2233b0c3b0
commit 3f186eed4c
2 changed files with 16 additions and 1 deletions

View File

@@ -2735,6 +2735,9 @@ li.detail.category
{
width: 240px;
}
.horizontal_carousel_container a.slider_control {
top: 50% !important;
}
.column_2_3 .horizontal_carousel_container.thin .horizontal_carousel.visible-5>li,
.gallery_popup .horizontal_carousel_container.thin .horizontal_carousel.visible-8 > li
{

View File

@@ -39,6 +39,18 @@
@endforeach
</video>
<span class="author">{{$block->video->author}}</span>
@endif
@elseif($block->type == "carousel")
<div class="horizontal_carousel_container gallery">
<ul class="horizontal_carousel visible-5 autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750">
@foreach($block->items as $image)
<li>
<a href="{{$image->image->imageWide}}" class="post_image prettyPhoto" rel="prettyPhoto[gallery]" title="{{$image->image->title}} &copy; {{$image->image->author}}">
<img src="{{$image->image->imageWide}}" alt="{{$image->image->title}}" title="{{$image->image->title}}">
</a>
</li>
@endforeach
</ul>
</div>
@endif
@endforeach