Author: dward
Date: 2008-01-11 00:06:54 +0100 (Fri, 11 Jan 2008)
New Revision: 6757
Modified:
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
Log:
- CURRIKI-1407
- Use new default logo and size other appropriately
Modified:
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
2008-01-10 18:16:57 UTC (rev 6756)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
2008-01-10 23:06:54 UTC (rev 6757)
@@ -1025,10 +1025,21 @@
#set($m_logo = $srcdoc.getAttachmentURL($logofilename))
#else
#set($srcdoc = $xwiki.getDocument("Groups.WebHome"))
- #set($m_logo = $srcdoc.getAttachmentURL("default_logo.png"))
+ #set($logofilename = "default_logo.gif")
+ #set($m_logo = $srcdoc.getAttachmentURL($logofilename))
#end
+#set($logowidth = $xwiki.image.getWidth($srcdoc.fullName,$logofilename))
+#set($logoheight = $xwiki.image.getHeight($srcdoc.fullName,$logofilename))
+#if($logowidth > 121)
+ #set($logowidth = 121)
+#end
+#if($logoheight > 83)
+ #set($logoheight = 83)
+#end
<div id="asset-metadatas-block-groupimg">
-<a href="${sUrl}"><img src="$m_logo" /></a>
+<a href="${sUrl}">
+<img src="$m_logo" width="$logowidth" height="$logoheight"
title="${s.getDisplayTitle()}" alt="${s.getDisplayTitle()}" />
+</a>
</div>
<div id="asset-metadatas-block-groupname">
<span style="font-size: 90%; color:
#919179;">$msg.get("asset.groupfrom")</span>
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications