PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/priv/skel/blog/templates/_body_media.tpl

https://code.google.com/p/zotonic/
Smarty Template | 14 lines | 14 code | 0 blank | 0 comment | 3 complexity | 43e2ef32fefb99095cd7fda1be18ce7f 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|default:width height=size.height|default:height crop=crop class=align link=link alt=m.rsc[id].title %}
 9            {% with id|summary as summary %}{% if summary %}<p class="image-caption">{{ summary }}</p>{% endif %}{% endwith %}
10		</figure>	
11	{% endifequal %}
12{% else %}
13	{% media m.rsc[id].medium width=size.width|default:width height=size.height|default:height crop=crop class=align link=link alt=m.rsc[id].title %}
14{% endifequal %}