PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_base/templates/_body_media.tpl

https://code.google.com/p/zotonic/
Smarty Template | 14 lines | 14 code | 0 blank | 0 comment | 3 complexity | d74b663619f2a313971a4f866ce7b034 MD5 | raw file
 1{% ifequal align "block" %}
 2	{% ifequal m.rsc[id].medium.mime "text/html-video-embed" %}
 3		<section class="video-wrapper">
 4			{% media m.rsc[id].medium %}
 5		</section>
 6	{% else %}
 7		<figure class="image-wrapper block-level-image">
 8			{% media m.rsc[id].medium width=size.width height=size.height crop=crop class=align link=link alt=m.rsc[id].title %}
 9			{% if m.rsc[id].summary %}<p class="image-caption">{{ m.rsc[id].summary }}</p>{% endif %}
10		</figure>	
11	{% endifequal %}
12{% else %}
13	{% media m.rsc[id].medium width=size.width height=size.height crop=crop class=align link=link alt=m.rsc[id].title %}
14{% endifequal %}