[yelp-xsl] html.xsl: Added html.{top|bottom}.custom



commit c9a839750c1d4b8fc1a335010a377260e62dca7a
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Nov 1 09:48:53 2011 -0400

    html.xsl: Added html.{top|bottom}.custom

 xslt/common/html.xsl |   42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 08e49e8..a8767e8 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -257,6 +257,9 @@ as ${node} to this template.
     </head>
     <body>
       <xsl:apply-templates mode="html.body.attr.mode" select="$node"/>
+      <xsl:call-template name="html.top.custom">
+        <xsl:with-param name="node" select="$node"/>
+      </xsl:call-template>
       <div class="all">
         <div class="header"> 
           <xsl:call-template name="html.header.custom">
@@ -274,6 +277,9 @@ as ${node} to this template.
           </xsl:call-template>
         </div>
       </div>
+      <xsl:call-template name="html.bottom.custom">
+        <xsl:with-param name="node" select="$node"/>
+      </xsl:call-template>
     </body>
   </html>
 </xsl:template>
@@ -305,6 +311,38 @@ implement this node to add attributes for styling, data, or other purposes.
 
 
 <!--**==========================================================================
+html.top.custom
+Stub to output HTML at the top of the page.
+:Stub: true
+:Revision: version="1.0" date="2011-11-01" status="final"
+$node: The node a page is being created for.
+
+This template is a stub, called by *{html.page}. It is called before the
+#{div.all} wrapper div. Override this template to provide site-specific HTML
+at the top of the page.
+-->
+<xsl:template name="html.top.custom">
+  <xsl:param name="node" select="."/>
+</xsl:template>
+
+
+<!--**==========================================================================
+html.bottom.custom
+Stub to output HTML at the bottom of the page.
+:Stub: true
+:Revision: version="1.0" date="2011-11-01" status="final"
+$node: The node a page is being created for.
+
+This template is a stub, called by *{html.page}. It is called after the
+#{div.all} wrapper div. Override this template to provide site-specific HTML
+at the bottom of the page.
+-->
+<xsl:template name="html.bottom.custom">
+  <xsl:param name="node" select="."/>
+</xsl:template>
+
+
+<!--**==========================================================================
 html.header.custom
 Stub to output custom header content.
 :Stub: true
@@ -594,12 +632,12 @@ div.sect div.sect {
 }
 div.trails {
   margin: 0;
+  padding: 0.5em 2em 0.5em 2em;
   background-color: </xsl:text>
     <xsl:value-of select="$color.gray_background"/><xsl:text>;
 }
 div.trail {
-  font-size: 0.83em;
-  margin: 0 2.2em 0.2em 2.2em;
+  margin: 0.2em 0 0 0;
   padding: 0;
   text-indent: -1em;
   color: </xsl:text>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]