forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From diwa...@apache.org
Subject svn commit: r226418 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
Date Fri, 29 Jul 2005 23:10:34 GMT
Author: diwaker
Date: Fri Jul 29 16:10:33 2005
New Revision: 226418

URL: http://svn.apache.org/viewcvs?rev=226418&view=rev
Log:
Added the siteinfo-credits contract. I haven't added it to the default view file yet, but
you can see what the output looks like at http://floatingsun.net


Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
  (with props)

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft?rev=226418&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
Fri Jul 29 16:10:33 2005
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2002-2004 The Apache Software Foundation or its licensors,
+as applicable.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<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">
+
+    <description>
+      Output the credits. Currently the credits are read from skinconf.xml,
+      but this will likely change in near future.
+    </description>
+
+    <usage><![CDATA[<forrest:contract name="siteinfo-credits"/>]]></usage>
+    <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+        format="xhtml" name="siteinfo-credits" inputFormat="xsl" body="true" head="false">
+        <xsl:stylesheet version="1.1" 
+            xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+            <xsl:template name="siteinfo-credits-body">
+                <div id="credits">
+                    <xsl:if test="$config/credits">
+                        <xsl:for-each select="$config/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>
+                    </xsl:if>
+                </div>
+            </xsl:template>
+        </xsl:stylesheet>
+    </forrest:template>
+</forrest:contract>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/siteinfo-credits.ft
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message