--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/shared/imagemap/zmi/templates/render.pt Fri Mar 16 08:17:54 2018 +0100
@@ -0,0 +1,23 @@
+<div class="padding-y-5" i18n:domain="pyams_content"
+ data-ams-plugins="pyams_content"
+ tal:attributes="data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content')">
+ <img usemap="#imagemap_preview"
+ tal:define="image i18n:context.image"
+ tal:attributes="src extension:absolute_url(image);"
+ data-ams-callback="PyAMS_content.imgmap.initSummary" />
+ <map name="imagemap_preview">
+ <tal:loop repeat="area context.areas.values()">
+ <tal:var define="item context.get_association(area)"
+ condition="item and item.visible">
+ <area shape="poly"
+ tal:define="info view.get_item_info(item);
+ area_title i18n:area.title;
+ item_title i18n:info.user_title;
+ title area_title or item_title;"
+ tal:attributes="coords area.area;
+ href item.get_url(request);
+ title title;" />
+ </tal:var>
+ </tal:loop>
+ </map>
+</div>