summaryrefslogtreecommitdiffstats
path: root/kdoctools/customization/kde-navig.xsl
blob: 2e8a9e717cfd2b4918748ce969c4716af1d60a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">
  
  <xsl:template match="email">
    <xsl:call-template name="inline.monoseq">
      <xsl:with-param name="content">
        <xsl:text>(</xsl:text>
        <xsl:call-template name="replaceCharsInString">
          <xsl:with-param name="stringIn" select="."/>
          <xsl:with-param name="charsIn" select="'@'"/>
          <xsl:with-param name="charsOut" select="' AT '"/>
        </xsl:call-template>
        <xsl:text>)</xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:template>
  <xsl:template name="replaceCharsInString">
    <xsl:param name="stringIn"/>
    <xsl:param name="charsIn"/>
    <xsl:param name="charsOut"/>
    <xsl:choose>
      <xsl:when test="contains($stringIn,$charsIn)">
        <xsl:value-of select="concat(substring-before($stringIn,$charsIn),$charsOut)"/>
        <xsl:call-template name="replaceCharsInString">
          <xsl:with-param name="stringIn" select="substring-after($stringIn,$charsIn)"/>
          <xsl:with-param name="charsIn" select="$charsIn"/>
          <xsl:with-param name="charsOut" select="$charsOut"/>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$stringIn"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  
  
  <xsl:template name="header.navigation">
    <xsl:param name="prev" select="/foo"/>
    <xsl:param name="next" select="/foo"/>
    <xsl:variable name="home" select="/*[1]"/>
    <xsl:variable name="up" select="parent::*"/>
    <xsl:if test="$suppress.navigation = '0'">
      <div style="background-image: url({$kde.common}top-middle.png); width: 100%; height: 131px;">
        <div style="position: absolute; 
                    right: 0px;">
          <img src="{$kde.common}top-right-konqueror.png"
            style="margin: 0px" alt="" />
          </div>
            <div style="position: absolute;
                        top: 25px; 
                        right: 100px; 
                        text-align: right; 
                        font-size: xx-large; 
                        font-weight: bold; 
                        text-shadow: #fff 0px 0px 5px; 
                        color: #444">
              <xsl:apply-templates select="." mode="title.markup"/>
            </div>
          </div>
          
          <div style="margin-top: 20px; background-color: #white; 
                      color: black;
                      margin-left: 20px; 
                      margin-right: 20px;">
            <div style="position: absolute; 
                        left: 20px;">
              <xsl:if test="count($prev)>0">
                <a accesskey="p">
                  <xsl:attribute name="href">
                    <xsl:call-template name="href.target">
                      <xsl:with-param name="object" select="$prev"/>
                    </xsl:call-template>
                  </xsl:attribute>
                  <xsl:call-template name="gentext.nav.prev"/>
                </a>
              </xsl:if>
            </div>
            <div style="position: absolute; 
                        right: 20px;">
              <xsl:if test="count($next)>0">
                <a accesskey="n">
                  <xsl:attribute name="href">
                    <xsl:call-template name="href.target">
                      <xsl:with-param name="object" select="$next"/>
                    </xsl:call-template>
                  </xsl:attribute>
                  <xsl:call-template name="gentext.nav.next"/>
                </a>
              </xsl:if>
            </div>
            <div class="navCenter">
              <xsl:choose>
                <xsl:when test="count($up) > 0 and $up != $home">
                  <xsl:apply-templates select="$up" mode="title.markup"/>
                </xsl:when>
                <xsl:otherwise>&#160;</xsl:otherwise>
              </xsl:choose>
            </div>
          </div>
          
        </xsl:if>
      </xsl:template>

<!-- ==================================================================== -->

<xsl:template name="footer.navigation">
  <xsl:param name="prev" select="/foo"/>
  <xsl:param name="next" select="/foo"/>
  <xsl:variable name="home" select="/*[1]"/>
  <xsl:variable name="up" select="parent::*"/>

  <xsl:if test="$suppress.navigation = '0'">

    <div style="background-color: #white; color: black; 
                margin-top: 20px; margin-left: 20px; 
                margin-right: 20px;">
      <div style="position: absolute; left: 20px;">
<xsl:if test="count($prev)>0">
              <a accesskey="p">
                <xsl:attribute name="href">
                  <xsl:call-template name="href.target">
                    <xsl:with-param name="object" select="$prev"/>
                  </xsl:call-template>
                </xsl:attribute>
                <xsl:call-template name="gentext.nav.prev"/>
              </a>
            </xsl:if>
          </div>
          <div style="position: absolute; right: 20px;">
            <xsl:if test="count($next)>0">
              <a accesskey="n">
                <xsl:attribute name="href">
                  <xsl:call-template name="href.target">
                    <xsl:with-param name="object" select="$next"/>
                  </xsl:call-template>
                </xsl:attribute>
                <xsl:call-template name="gentext.nav.next"/>
              </a>
            </xsl:if>
          </div>
          <div align="center">
            <xsl:choose>
              <xsl:when test="$home != .">
                <a accesskey="h">
                  <xsl:attribute name="href">
                    <xsl:call-template name="href.target">
                      <xsl:with-param name="object" select="$home"/>
                    </xsl:call-template>
                  </xsl:attribute>
                  <xsl:call-template name="gentext.nav.home"/>
                </a>
              </xsl:when>
              <xsl:otherwise>&#160;</xsl:otherwise>
            </xsl:choose>
          </div>
        </div>
    <div style="background-color: #white; 
	color: black;
        margin-left: 20px; 
	margin-right: 20px;">
      <div class="navLeft">
        <xsl:apply-templates select="$prev" mode="title.markup"/>
        <xsl:text>&#160;</xsl:text>
      </div>
      <div class="navRight">
        <xsl:text>&#160;</xsl:text>
        <xsl:apply-templates select="$next" mode="title.markup"/>
      </div>
      <div class="navCenter">
            <xsl:choose>
              <xsl:when test="count($up)>0">
                <a accesskey="u">
                  <xsl:attribute name="href">
                    <xsl:call-template name="href.target">
                      <xsl:with-param name="object" select="$up"/>
                    </xsl:call-template>
                  </xsl:attribute>
                  <xsl:call-template name="gentext.nav.up"/>
                </a>
              </xsl:when>
              <xsl:otherwise>&#160;</xsl:otherwise>
            </xsl:choose>
          </div>
          
          
          
      </div>
      <br/>
      <br/>

      <div class="bannerBottom" style="background-image: url({$kde.common}bottom-middle.png);
                                       background-repeat: x-repeat; 
                                       width: 100%; 
                                       height: 100px; 
                                       bottom:0px;">
	
        <div class="BannerBottomRight">
          <img src="{$kde.common}bottom-right.png" style="margin: 0px" alt=""/>
        </div>
        <div class="bannerBottomLeft">
          <img src="{$kde.common}bottom-left.png" style="margin: 0px;" alt=""/>
        </div>
<div id="comments" style="position:relative; top: 5px; left: 1em; height:85px; width: 50%; color: #cfe1f6">
	<p>Would you like to comment or contribute an update to this page?<br/>
        Send feedback to the <a href="mailto:trinity-devel@lists.pearsoncomputing.net" style="background:transparent; color:#cfe1f6; text-decoration: underline;">TDE Development Team</a></p>
	</div>

      </div>

  </xsl:if>
</xsl:template>

</xsl:stylesheet>