PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_admin/templates/_choose_media.tpl

https://code.google.com/p/zotonic/
Smarty Template | 19 lines | 17 code | 2 blank | 0 comment | 1 complexity | 032c67b2779f5c47b89b418e6ebb20c2 MD5 | raw file
 1{# Used in the TinyMCE editor to insert a media item in the running text. Expects the 'ids' argument to be set to a number of media items. #}
 2
 3<div class="choose-media-wrapper">
 4	<ul id="{{ #media }}" class="list clearfix">
 5		{% for media_id in ids %}
 6			<li id="{{ #medium.media_id }}" class="edit_media left clearfix">
 7				{% with m.rsc[media_id].medium as medium %}
 8					{% with m.rsc[media_id].title|striptags|default:_"untitled" as title %}
 9						<span id="{{ #choose.media_id }}" style="cursor: pointer">
10							{% image media_id width=80 height=80 crop title=title %}
11						</span>
12					{% endwith %}
13				
14					{% wire id=#choose.media_id action={zmedia_choose id=media_id} %}
15				{% endwith %}
16			</li>
17		{% endfor %}
18	</ul>
19</div>