2019-02-02 22:34:48 +00:00
|
|
|
<div class="pi-media-collection" {{#if source}} data-source="{{source}}"{{/if}}{{#if item-name}} data-item-name="{{item-name}}"{{/if}}>
|
2018-08-12 13:56:54 +00:00
|
|
|
<ul class="pi-media-collection-tabs">
|
2018-08-12 09:45:29 +00:00
|
|
|
{{#each images}}<li class="pi-tab-link pi-item-spacing{{#if isFirst}} current{{/if}}" data-pi-tab="pi-tab-{{ref}}">{{{caption}}}</li>{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{#each images}}
|
2018-08-12 13:56:54 +00:00
|
|
|
<div class="pi-media-collection-tab-content{{#if isFirst}} current{{/if}}" id="pi-tab-{{ref}}">
|
2019-02-02 22:34:48 +00:00
|
|
|
<figure class="pi-item pi-media{{#if isImage}} pi-image{{/if}}{{#if isVideo}} pi-video{{/if}}{{#if isAudio}} pi-audio{{/if}}"{{#if source}} data-source="{{source}}"{{/if}}{{#if item-name}} data-item-name="{{item-name}}"{{/if}}>
|
2018-08-12 13:56:54 +00:00
|
|
|
<a href="{{url}}" class="{{#if isImage}}image image-thumbnail{{/if}}{{#if isVideo}}video{{/if}}{{#if isAudio}}audio{{/if}}" title="{{alt}}">
|
2018-08-12 09:45:29 +00:00
|
|
|
{{#if isImage}}<img src="{{thumbnail}}" srcset="{{thumbnail}} 1x, {{thumbnail2x}} 2x" class="pi-image-thumbnail" alt="{{alt}}" width="{{{width}}}" height="{{{height}}}"/>
|
2018-08-12 10:46:37 +00:00
|
|
|
{{else}}{{#if isVideo}}<video src="{{url}}" class="pi-video-player" controls="true" controlsList="nodownload" preload="metadata">{{alt}}</video>
|
|
|
|
{{else}}{{#if isAudio}}<audio src="{{url}}" class="pi-audio-player" controls="true" controlsList="nodownload">{{alt}}</audio>
|
2023-07-24 17:13:33 +00:00
|
|
|
{{else}}{{alt}}{{/if}}{{/if}}{{/if}}{{{htmlAfter}}}
|
2018-08-12 09:45:29 +00:00
|
|
|
</a>
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|