[library-web] include legal notice on all docbook pages
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] include legal notice on all docbook pages
- Date: Mon, 27 Jan 2014 15:29:13 +0000 (UTC)
commit 88987abc1efff2d339635b9f54e66ea2017cfded
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Jan 27 15:28:31 2014 +0000
include legal notice on all docbook pages
data/skin/lgo2010.css | 14 ++++++++++++++
data/xslt/db2html.xsl | 18 ++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/data/skin/lgo2010.css b/data/skin/lgo2010.css
index d8d9a4e..3943db0 100644
--- a/data/skin/lgo2010.css
+++ b/data/skin/lgo2010.css
@@ -465,3 +465,17 @@ table tbody tr td p
br + br {
display: none;
}
+
+.docbook-legal-stuff > h3 {
+ text-align: center;
+ cursor: pointer;
+ font-size: 100%;
+}
+
+.docbook-legal-stuff > div {
+ font-size: 80%;
+}
+
+.docbook-legal-stuff > div dt {
+ font-size: 100%;
+}
diff --git a/data/xslt/db2html.xsl b/data/xslt/db2html.xsl
index 3afe67d..989c7d4 100644
--- a/data/xslt/db2html.xsl
+++ b/data/xslt/db2html.xsl
@@ -424,6 +424,7 @@ span.label { display: none; }
<xsl:with-param name="css_file" select="$depth_of_chunk = 0"/>
</xsl:call-template>
<xsl:call-template name="db2html.division.head.extra"/>
+ <script type="text/javascript" src="/js/jquery.js"></script>
</head>
<body>
<xsl:call-template name="db2html.division.top">
@@ -480,6 +481,23 @@ span.label { display: none; }
<xsl:with-param name="prev_node" select="$prev_node"/>
<xsl:with-param name="next_node" select="$next_node"/>
</xsl:call-template>
+ <xsl:if test="$db.chunk.max_depth != 0 and $template != 'info'">
+ <!-- include a copy of legal stuff on all pages -->
+ <div class="docbook-legal-stuff">
+ <h3 onclick="$(this).next().toggle()">
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$libgo.lang"/><xsl:with-param name="msgid"
+ select="'aboutlabel'"/></xsl:call-template>
+ </h3>
+ <div style="display: none;">
+ <xsl:call-template name="db2html.info.copyrights">
+ <xsl:with-param name="node" select="$node"/>
+ <xsl:with-param name="info" select="//article/articleinfo"/>
+ </xsl:call-template>
+ <xsl:apply-templates mode="db2html.info.mode" select="//article/articleinfo/legalnotice"/>
+ </div>
+ </div>
+ </xsl:if>
</div>
<xsl:copy-of select="$sidebar"/>
<div id="footer_art" class="default"> </div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]