forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r424989 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft
Date Mon, 24 Jul 2006 10:00:31 GMT
Author: thorsten
Date: Mon Jul 24 03:00:30 2006
New Revision: 424989

URL: http://svn.apache.org/viewvc?rev=424989&view=rev
Log:
FOR-797 - Move all v3 resources and code to the new plugins
Updating the theme-switcher contract.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft?rev=424989&r1=424988&r2=424989&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-theme-switcher.ft
Mon Jul 24 03:00:30 2006
@@ -62,11 +62,26 @@
     format="html" name="branding-theme-switcher" inputFormat="xsl" body="true" head="true">
     <xsl:stylesheet version="1.1" 
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+        <xsl:param name="branding-theme-switcher-defaultTheme" />
+        <xsl:param name="branding-theme-switcher-profiler" />
+        <xsl:param name="branding-theme-switcher-a" select="false"/>
+        <xsl:param name="branding-theme-switcher-select" select="false"/>
+        <xsl:variable name="seperator" select="$branding-theme-switcher-a/@seperator"/>
+        <xsl:variable name="caption" select="$branding-theme-switcher-a/@caption"/>
+        <xsl:variable name="captionSelect" select="$branding-theme-switcher-select/@caption"/>
+        <xsl:variable name="defaultTheme" select="$branding-theme-switcher-defaultTheme/@defaultTheme"/>
+        <xsl:variable name="profilerActivated" select="$branding-theme-switcher-profiler/@activated"/>
+          
+        <xsl:template match="/">
+            <forrest:part>
+                <xsl:call-template name="branding-theme-switcher-body"/>
+            </forrest:part>
+            <forrest:part xpath="/html/head">
+                <xsl:call-template name="branding-theme-switcher-head"/>
+            </forrest:part>
+        </xsl:template>
+        
         <xsl:template name="branding-theme-switcher-head">
-          <xsl:param name="branding-theme-switcher-defaultTheme" />
-          <xsl:param name="branding-theme-switcher-profiler" />
-          <xsl:variable name="defaultTheme" select="$branding-theme-switcher-defaultTheme/@defaultTheme"/>
-          <xsl:variable name="profilerActivated" select="$branding-theme-switcher-profiler/@activated"/>
           <script type="text/javascript"
               src="{$root}themes/cssStyleSwitcher.js">&#160;</script>
           <script type="text/javascript"> 
@@ -74,12 +89,8 @@
               select="$defaultTheme"/>','<xsl:value-of 
               select="$profilerActivated"/>'); </script>
         </xsl:template>
+        
         <xsl:template name="branding-theme-switcher-body">
-          <xsl:param name="branding-theme-switcher-a" select="false"/>
-          <xsl:param name="branding-theme-switcher-select" select="false"/>
-          <xsl:variable name="seperator" select="$branding-theme-switcher-a/@seperator"/>
-          <xsl:variable name="caption" select="$branding-theme-switcher-a/@caption"/>
-          <xsl:variable name="captionSelect" select="$branding-theme-switcher-select/@caption"/>
           <xsl:if test="$branding-theme-switcher-a!='false'">
             <xsl:value-of select="$caption"/>
             <span id="theme-switcher-dyn-a">dynamic theme switcher links</span>



Mime
View raw message