PortableInfobox/templates/PortableInfoboxItemImage.mustache

15 lines
624 B
Plaintext
Raw Normal View History

<figure class="pi-item pi-image">
<a href="{{url}}" class="image image-thumbnail{{#isVideo}} video video-thumbnail small{{/isVideo}}"
title="{{alt}}">
<img src="{{thumbnail}}" class="pi-image-thumbnail" alt="{{alt}}" width="{{{width}}}" height="{{{height}}}"
data-{{media-type}}-key="{{name}}" data-{{media-type}}-name="{{name}}"/>
{{#isVideo}}
{{#duration}}
<span class="duration" itemprop="duration">{{duration}}</span>
{{/duration}}
<span class="play-circle"></span>
{{/isVideo}}
</a>
{{#caption}}<figcaption class="pi-item-spacing pi-caption">{{{caption}}}</figcaption>{{/caption}}
</figure>