changeset 301:91e4b1f42614

macro.Image: added css class from arnica
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 26 Nov 2008 23:30:48 +0100
parents 7ccb9bd8983a
children 1e804e86b6f9
files data/plugin/macro/Image.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/Image.py	Wed Nov 26 23:13:01 2008 +0100
+++ b/data/plugin/macro/Image.py	Wed Nov 26 23:30:48 2008 +0100
@@ -247,5 +247,7 @@
     if '/' not in itemname:
         itemname = macro.formatter.page.page_name + '/' + itemname
     img = Image(macro.request, itemname, caption=alt)
-    return macro.formatter.image(src=img.url((width, height)), alt=img.caption)
+    return "%s%s%s" % ('<div class="arrange-thumbnails">', 
+                        macro.formatter.image(src=img.url((width, height)), alt=img.caption),
+                        '</div>')