You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@jakarta.apache.org by cr...@apache.org on 2001/07/27 00:54:35 UTC
cvs commit: jakarta-site2/xdocs/stylesheets project.xml site.vsl
craigmcc 01/07/26 15:54:35
Modified: xdocs/stylesheets project.xml site.vsl
Log:
If a <logo> element is included in the "project.xml" page, support
different URLs for image to be displayed, and the project home page to
which this image will be a hyperlink, using the "href" and "home"
attributes, respectively.
Revision Changes Path
1.15 +7 -2 jakarta-site2/xdocs/stylesheets/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-site2/xdocs/stylesheets/project.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- project.xml 2001/04/30 20:38:03 1.14
+++ project.xml 2001/07/26 22:54:35 1.15
@@ -3,8 +3,13 @@
href="http://jakarta.apache.org/">
<title>The Jakarta Site</title>
- <!-- uncomment and put your project logo here!
- <logo href="http://jakarta.apache.org/images/jakarta-logo.gif">The Jakarta Project</logo>
+
+ <!-- If you want your project logo hyperlinked to the project home
+ page in the upper right corner of each generated page, set "href"
+ to the URL of the image, "home" to the URL of the home page,
+ and uncomment the following element
+ <logo href="http://jakarta.apache.org/images/jakarta-logo.gif"
+ home="http://jakarta.apache.org/">The Jakarta Project</logo>
-->
<body>
1.20 +2 -2 jakarta-site2/xdocs/stylesheets/site.vsl
Index: site.vsl
===================================================================
RCS file: /home/cvs/jakarta-site2/xdocs/stylesheets/site.vsl,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- site.vsl 2001/07/10 22:39:34 1.19
+++ site.vsl 2001/07/26 22:54:35 1.20
@@ -203,9 +203,9 @@
<td align="right">
#set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
#if ( $logoString.startsWith("/") )
-<a href="$project.getAttributeValue("href")"><img src="$relativePath$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
+<a href="$project.getAttributeValue("home")"><img src="$relativePath$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
#else
-<a href="$project.getAttributeValue("href")"><img src="$relativePath/$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
+<a href="$project.getAttributeValue("home")"><img src="$relativePath/$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
#end
</td>
#else