-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.html
16 lines (16 loc) · 1.14 KB
/
carousel.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div id="{{'block'+block.id}}" class="owl-carousel" ng-controller="CarouselController as carouselCtrl">
<div ng-repeat="content in carouselCtrl.contents track by $index" ng-if="content.fields[blockConfig.imageField]">
<a ng-href="{{content.detailPageUrl}}" >
<img ng-if="!isArray(content.fields[blockConfig.imageField])" class="lazyOwl" data-src="{{rubedo.imageUrl.getUrlByMediaId(content.fields[blockConfig.imageField],carouselCtrl.getImageOptions())}}"
alt="{{content.fields.text}}"
title="{{content.fields.text}}">
<img ng-if="isArray(content.fields[blockConfig.imageField])" class="lazyOwl" data-src="{{rubedo.imageUrl.getUrlByMediaId(content.fields[blockConfig.imageField][0],carouselCtrl.getImageOptions())}}"
alt="{{content.fields.text}}"
title="{{content.fields.text}}">
<div ng-if="blockConfig.showCaption" class="rubedo-caption">
<h3>{{content.fields.text}}</h3>
<p ng-if="blockConfig.showSummary">{{content.fields.summary}}</p>
</div>
</a>
</div>
</div>