forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r164717 - in /forrest/trunk/main: fresh-site/src/documentation/skinconf.xml webapp/skins/pelt/xslt/html/site2xhtml.xsl
Date Tue, 26 Apr 2005 02:17:41 GMT
Author: crossley
Date: Mon Apr 25 19:17:40 2005
New Revision: 164717

URL: http://svn.apache.org/viewcvs?rev=164717&view=rev
Log:
The "copyright-link" from skinconf was not being used.
Default link colour is white, so show an example override with extra-css.

Modified:
    forrest/trunk/main/fresh-site/src/documentation/skinconf.xml
    forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl

Modified: forrest/trunk/main/fresh-site/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/skinconf.xml?rev=164717&r1=164716&r2=164717&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/skinconf.xml (original)
+++ forrest/trunk/main/fresh-site/src/documentation/skinconf.xml Mon Apr 25 19:17:40 2005
@@ -158,7 +158,7 @@
        used in your documentation.
     -->
   <extra-css>
-    <!--Example of b. 
+    <!--Example:
         To define the css definition of a new element that you may have used
         in the class attribute of a <p> node. 
         e.g. <p class="quote"/>
@@ -169,6 +169,11 @@
       background-color: #f0f0f0;
       font-family: monospace;
     }
+    <!--Example:
+        To override the colours of links only in the footer.
+    -->
+    #footer a { color: #0F3660; }
+    #footer a:visited { color: #009999; }
   </extra-css>
 
   <colors>

Modified: forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl?rev=164717&r1=164716&r2=164717&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl Mon Apr 25 19:17:40 2005
@@ -283,10 +283,28 @@
 document.write("Last Published: " + document.lastModified);
 //  -->]]></script></div>
 
-          <div class="copyright">
- Copyright &#169;<xsl:text> </xsl:text><xsl:value-of select="$config/year"/><xsl:text>
</xsl:text><xsl:value-of select="$config/vendor"/>
-          </div>
-          
+      <div class="copyright">
+        Copyright &#169;
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="$config/year"/>
+        <xsl:text> </xsl:text>
+        <xsl:choose>
+          <xsl:when test="$config/copyright-link">
+            <a>
+              <xsl:attribute name="href">
+                <xsl:value-of select="$config/copyright-link"/>
+              </xsl:attribute>
+            <xsl:value-of select="$config/vendor"/>
+            </a>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:value-of select="$config/year"/>
+            <xsl:text> </xsl:text>
+            <xsl:value-of select="$config/vendor"/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </div>
+
           <xsl:if test="$filename = 'index.html'">
             <div id="logos" >
             <xsl:if test="$config/disable-compliance-links/@align">



Mime
View raw message