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/14 10:29:35 UTC
svn commit: r385773 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft
Author: thorsten
Date: Tue Mar 14 01:29:33 2006
New Revision: 385773
URL: http://svn.apache.org/viewcvs?rev=385773&view=rev
Log:
FOR-797 updating contract
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft?rev=385773&r1=385772&r2=385773&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/siteinfo-credits.ft Tue Mar 14 01:29:33 2006
@@ -17,7 +17,7 @@
-->
<forrest:contract xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
xmlns:forrest="http://apache.org/forrest/templates/1.0"
- name="siteinfo-credits" type="nugget">
+ name="siteinfo-credits">
<description>
<p> Output the credits.<br/>Credits are typically rendered as a set of
small clickable images in the page footer. </p>
@@ -38,29 +38,35 @@
</forrest:properties>
</forrest:contract>]]></usage>
<forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
- format="html" name="siteinfo-credits" inputFormat="xsl" body="true"
- head="false">
+ name="siteinfo-credits" inputFormat="xsl" >
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template name="siteinfo-credits-body">
- <xsl:param name="siteinfo-credits"/>
- <xsl:if test="$siteinfo-credits/credits">
- <div id="credits">
- <xsl:for-each
- select="$siteinfo-credits/credits/credit[not(@role='pdf')]">
- <div class="credit">
- <xsl:call-template name="renderlogo">
- <xsl:with-param name="name" select="name"/>
- <xsl:with-param name="url" select="url"/>
- <xsl:with-param name="logo" select="image"/>
- <xsl:with-param name="root" select="$root"/>
- <xsl:with-param name="width" select="width"/>
- <xsl:with-param name="height" select="height"/>
- </xsl:call-template>
+ <xsl:include href="cocoon://prepare.contract.html.branding-logo"/>
+ <xsl:param name="siteinfo-credits"/>
+ <xsl:param name="defaultVariables" select="'test.html'"/>
+ <xsl:variable name="root" select="$defaultVariables/*/*[@name='root']/@value"/>
+ <xsl:template match="/">
+ <forrest:content>
+ <forrest:part>
+ <xsl:if test="$siteinfo-credits/credits">
+ <div id="credits">
+ <xsl:for-each
+ select="$siteinfo-credits/credits/credit[not(@role='pdf')]">
+ <div class="credit">
+ <xsl:call-template name="renderlogo">
+ <xsl:with-param name="name" select="name"/>
+ <xsl:with-param name="url" select="url"/>
+ <xsl:with-param name="logo" select="image"/>
+ <xsl:with-param name="root" select="$root"/>
+ <xsl:with-param name="width" select="width"/>
+ <xsl:with-param name="height" select="height"/>
+ </xsl:call-template>
+ </div>
+ </xsl:for-each>
</div>
- </xsl:for-each>
- </div>
- </xsl:if>
+ </xsl:if>
+ </forrest:part>
+ </forrest:content>
</xsl:template>
</xsl:stylesheet>
</forrest:template>