forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r321106 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft
Date Fri, 14 Oct 2005 13:17:39 GMT
Author: cdupoirieux
Date: Fri Oct 14 06:17:32 2005
New Revision: 321106

URL: http://svn.apache.org/viewcvs?rev=321106&view=rev
Log:
Add use role as prefix funxtionality :
if true then the credit is displayed if the filename starts with the role.
This let the customizer have only one file.fv and dispatch the credits in the different pages...

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft?rev=321106&r1=321105&r2=321106&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.themes/resources/templates/pelt/siteinfo-credits.ft
Fri Oct 14 06:17:32 2005
@@ -48,37 +48,39 @@
         <xsl:param name="box-location"></xsl:param>
         <xsl:param name="top-separator">false</xsl:param>
         <xsl:param name="use-role-as-prefix">false</xsl:param>
-        <xsl:comment> |start siteinfo-credits </xsl:comment>
-        <div id="{$box-location}">
-          <xsl:if test="$top-separator = 'true'">
-            <hr/>
-          </xsl:if>
-          <xsl:for-each 
-            select="$siteinfo-credits/credits/credit[not(@role='pdf')]">
-            <xsl:variable name="name" select="name"/>
-            <xsl:variable name="url" select="url"/>
-            <xsl:variable name="image" select="image"/>
-            <xsl:variable name="width" select="width"/>
-            <xsl:variable name="height" select="height"/>
-            <a href="{$url}">
-              <img alt="{$name} - logo" title="{$name}" border="0">
-                <xsl:attribute name="src">
-                  <xsl:if test="not(starts-with($image, 'http://'))">
-                    <xsl:value-of select="$root"/>
-                  </xsl:if>
-                  <xsl:value-of select="$image"/>
-                </xsl:attribute>
-                <xsl:attribute name="style">
-                  <xsl:if test="$width">width: <xsl:value-of 
-                    select="$width"/>px;</xsl:if>
-                  <xsl:if test="$height">height: <xsl:value-of 
-                    select="$height"/>px;</xsl:if>
-                </xsl:attribute>
-              </img>
-            </a>
-          </xsl:for-each>
+        <xsl:if test="$siteinfo-credits/credits/credit[starts-with( $filename, concat(
@role, '.') )]">
+          <xsl:comment> |start siteinfo-credits </xsl:comment>
+          <div id="{$box-location}">
+            <xsl:if test="$top-separator = 'true'">
+              <hr/>
+            </xsl:if>
+            <xsl:for-each 
+              select="$siteinfo-credits/credits/credit[starts-with( $filename, concat( @role,
'.') )]">
+              <xsl:variable name="name" select="name"/>
+              <xsl:variable name="url" select="url"/>
+              <xsl:variable name="image" select="image"/>
+              <xsl:variable name="width" select="width"/>
+              <xsl:variable name="height" select="height"/>
+              <a href="{$url}">
+                <img alt="{$name} - logo" title="{$name}" border="0">
+                  <xsl:attribute name="src">
+                    <xsl:if test="not(starts-with($image, 'http://'))">
+                      <xsl:value-of select="$root"/>
+                    </xsl:if>
+                    <xsl:value-of select="$image"/>
+                  </xsl:attribute>
+                  <xsl:attribute name="style">
+                    <xsl:if test="$width">width: <xsl:value-of 
+                      select="$width"/>px;</xsl:if>
+                    <xsl:if test="$height">height: <xsl:value-of 
+                      select="$height"/>px;</xsl:if>
+                  </xsl:attribute>
+                </img>
+              </a>
+            </xsl:for-each>
+          </div>
           <xsl:comment>+ |end siteinfo-credits +</xsl:comment>
-        </div>
+        </xsl:if>
       </xsl:template>
     </xsl:stylesheet>
   </forrest:template>



Mime
View raw message