Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 1.12 KB
{#
Media Slider with BxSlider
Variables that are available:
- {{ mediaItem }}: Contains the MediaItem
- {{ title }}: A custom optional title that you can give when parsing from Custom module.
#}
{% if mediaItem %}
<section class="module-media-library widget-media-library-one-random-image" itemscope itemtype="http://schema.org/ImageGallery">
{% block widget_heading %}
{% if title %}
<header class="widget-heading">
<h3>{{ title|ucfirst }}</h3>
</header>
{% endif %}
{% endblock %}
{% block widget_body %}
<div class="widget-body">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
{% if mediaItem.type == 'movie' %}
{{ mediaItem.getIncludeHTML()|raw }}
{% else %}
<img itemprop="thumbnail" class="img-polaroid img-responsive" src="{{ (mediaItem.getWebPath('media_library_one_image_large')) }}" itemprop="thumbnail" alt="{{ mediaItem.title }}" />
{% endif %}
</figure>
</div>
{% endblock %}
{% block widget_footer %}{% endblock %}
</section>
{% endif %}
You can’t perform that action at this time.