/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
- {# 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. #}
- <div class="choose-media-wrapper">
- <ul id="{{ #media }}" class="list clearfix">
- {% for media_id in ids %}
- <li id="{{ #medium.media_id }}" class="edit_media left clearfix">
- {% with m.rsc[media_id].medium as medium %}
- {% with m.rsc[media_id].title|striptags|default:_"untitled" as title %}
- <span id="{{ #choose.media_id }}" style="cursor: pointer">
- {% image media_id width=80 height=80 crop title=title %}
- </span>
- {% endwith %}
-
- {% wire id=#choose.media_id action={zmedia_choose id=media_id} %}
- {% endwith %}
- </li>
- {% endfor %}
- </ul>
- </div>