forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r106316 - in forrest/trunk/plugins/org.apache.forrest.plugin.fbits: . nuggets src/documentation/content/xdocs
Date Tue, 23 Nov 2004 17:31:16 GMT
Author: thorsten
Date: Tue Nov 23 09:31:15 2004
New Revision: 106316

Added:
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xml   (contents,
props changed)
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xsl   (contents,
props changed)
Modified:
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
Log:
trying to create a usecase for the logo nuggets.


Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xml?view=auto&rev=106316
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xml	Tue Nov
23 09:31:15 2004
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+<contract name="fontsize-fct" nc="fontsize" tlc="content">
+  <description>
+    This functions lets you change the size of the font you are using in the site with a
jscript.
+  </description>
+  <xhtml>
+    <head>
+      <script type="text/javascript" language="javascript" 
+        src="{$root}skin/fontsize.js"></script>
+    </head>
+    <body onload="init()">
+      <script type="text/javascript">ndeSetTextSize();</script>
+      <div class="trail">
+            Font size: 
+              &#160;<input type="button" onclick="ndeSetTextSize('reset'); return
false;" title="Reset text" class="resetfont" value="Reset"/>      
+              &#160;<input type="button" onclick="ndeSetTextSize('decr'); return false;"
title="Shrink text" class="smallerfont" value="-a"/>
+              &#160;<input type="button" onclick="ndeSetTextSize('incr'); return false;"
title="Enlarge text" class="biggerfont" value="+a"/>
+      </div>
+    </body>
+  </xhtml>
+</contract>

Added: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xsl?view=auto&rev=106316
==============================================================================
--- (empty file)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/nuggets/c-logo-nugget.xsl	Tue Nov
23 09:31:15 2004
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<contract name="logo" nc="logo" tlc="branding">
+  <description>
+    This nugget will create the logos.
+  </description>
+</contract>
+<xsl:template match="logo" mode="xhtml">
+<xsl:param name="contract">project</xsl:param>
+<xsl:comment>+
+    |start Logo
+    +</xsl:comment> 
+     <div class="{$contract}logo">
+        <xsl:call-template name="renderlogo">
+            <xsl:with-param name="name" select="$config/{$contract}-name"/>
+            <xsl:with-param name="url" select="$config/{$contract}-url"/>
+            <xsl:with-param name="logo" select="$config/{$contract}-logo"/>
+            <xsl:with-param name="root" select="$root"/>
+            <xsl:with-param name="description" select="$config/{$contract}-description"/>
+        </xsl:call-template>
+      </div>
+<xsl:comment>+
+    |end Logo
+    +</xsl:comment> 
+</xsl:template>
+</xsl:stylesheet>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap?view=diff&rev=106316&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r1=106315&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r2=106316
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	Tue Nov 23 09:31:15
2004
@@ -52,7 +52,7 @@
 </contracts>
 -->
   <map:pipeline>
-    <map:match pattern="contracts-dir.get">
+    <map:match pattern="contracts-dir-fbits.get">
 		  <map:generate type="directory" src="fbits">
         <map:parameter name="depth" value="1"/>
         <!-- sorted alphabetically -->
@@ -61,6 +61,18 @@
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
+  
+  <map:pipeline>
+    <map:match pattern="contracts-dir-nuggets.get">
+		  <map:generate type="directory" src="nuggets">
+        <map:parameter name="depth" value="1"/>
+        <!-- sorted alphabetically -->
+      	<map:parameter name="reverse" value="false"/>
+      </map:generate>
+      <map:serialize type="xml"/>
+    </map:match>
+  </map:pipeline>
+  
   <!-- transform this dir-list -->
   <map:pipeline>
     <map:match pattern="contracts.get">
@@ -72,6 +84,7 @@
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
+  
   
   <map:pipeline>
     <map:match pattern="ft.get">

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml?view=diff&rev=106316&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml&r1=106315&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml&r2=106316
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/src/documentation/content/xdocs/site.xml
Tue Nov 23 09:31:15 2004
@@ -39,7 +39,8 @@
   </about>
   <fbits label="fbits" >
     <static-sample label="static-sample" href="static.get"/>
-    <contracts-dir label="contracts-dir" href="contracts-dir.get"/> 
+    <contracts-dir-fbits label="contracts-dir-fbits" href="contracts-dir-fbits.get"/>
+    <contracts-dir-nuggets label="contracts-dir-nuggets" href="contracts-dir-nuggets.get"/>

     <contracts label="contracts" href="contracts.get"/>
     <ft label="ft" href="ft.get"/>
   </fbits>

Mime
View raw message