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