PortableInfobox/templates/PortableInfoboxItemImage.mustache
idradm d4953f7680 Merge branch 'dev' into infobox-builder-feature-branch
# Conflicts:
#	extensions/wikia/AdminDashboard/AdminDashboardLogic.class.php
#	extensions/wikia/AssetsManager/config.php
#	extensions/wikia/EditPageLayout/templates/EditPageLayout_EditPage.php
2016-02-09 11:46:56 +01:00

19 lines
804 B
Plaintext

{{!
This template is linked with of mercury/front/templates/main/components/infobox-builder-item-image.hbs
Changing this template requires modifying the other in mercury repo.
}}
<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="{{key}}" 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>