You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2006/03/15 20:33:26 UTC
svn commit: r386149 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
Author: thorsten
Date: Wed Mar 15 11:33:26 2006
New Revision: 386149
URL: http://svn.apache.org/viewcvs?rev=386149&view=rev
Log:
FOR-832 - allowing to decide for the prefix of the url rewrite. Instead of *always* using 'themes/' one can specify now <css prefix="yourPrefix/" .../>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft?rev=386149&r1=386148&r2=386149&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft Wed Mar 15 11:33:26 2006
@@ -106,7 +106,19 @@
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
- <xsl:attribute name="href"> <xsl:value-of select="$root"/>themes/<xsl:value-of
+ <xsl:variable name="prefix">
+ <xsl:choose>
+ <xsl:when test="@prefix">
+ <xsl:value-of select="@prefix"/>
+ </xsl:when>
+ <xsl:otherwise>
+ themes/
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:attribute name="href"> <xsl:value-of
+ select="$root"/><xsl:value-of
+ select="normalize-space($prefix)"/><xsl:value-of
select="@url"/> </xsl:attribute>
<xsl:if test="@media">
<xsl:attribute name="media">