Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 781 Bytes
{#
Media Listing
Variables that are available:
- {{ mediaItems }}: Contains full urls to MediaItem items, f.e.: {{ items.source }}
- {{ title }}: A custom optional title that you can give when parsing from Custom module.
#}
{% if mediaItems %}
<section class="module-media-library widget-media-library-listing">
{% block widget_heading %}
{% if title %}
<header class="widget-heading">
<h3>{{ title|ucfirst }}</h3>
</header>
{% endif %}
{% endblock %}
{% block widget_body %}
<div class="widget-body">
<ul>
{% for mediaItem in mediaItems %}
<li>{{ mediaItem.getLinkHTML|raw }}</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block widget_footer %}{% endblock %}
</section>
{% endif %}
You can’t perform that action at this time.