Mercurial > hg > nginx-site
changeset 694:2ced25001893
Regenerated.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 01 Oct 2012 13:50:19 +0000 |
parents | 095d1972dad9 |
children | 2eb83e89b239 |
files | xslt/article.xslt xslt/body.xslt xslt/menu.xslt xslt/style.xslt |
diffstat | 4 files changed, 140 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/xslt/article.xslt Fri Sep 28 11:14:47 2012 +0000 +++ b/xslt/article.xslt Mon Oct 01 13:50:19 2012 +0000 @@ -11,6 +11,10 @@ <xsl:param name="ORIGIN"/> + <xsl:param name="NOLANGORIGIN"/> + + <xsl:param name="TRANS"/> + <xsl:variable select="/article/@link | /module/@link" name="LINK"/> <xsl:variable select="/article/@lang | /module/@lang" name="LANG"/> @@ -66,4 +70,4 @@ </html> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file
--- a/xslt/body.xslt Fri Sep 28 11:14:47 2012 +0000 +++ b/xslt/body.xslt Mon Oct 01 13:50:19 2012 +0000 @@ -35,6 +35,76 @@ <tr> <td width="70%"> + + <div id="banner"> + + <xsl:if test="@lang = 'he'"> + <xsl:attribute name="class"> + <xsl:text>ltr</xsl:text> + </xsl:attribute> + </xsl:if> + + <center> + + <table> + + <tr> + + <td align="center"> + + <a href="http://nginx.com/support.html"> + + <strong>nginx professional services</strong> + + </a> + + </td> + + </tr> + + <tr> + + <td align="center"> + + <i>Prioritize. Save time. Stay focused.</i> + + </td> + + </tr> + + </table> + + </center> + + </div> + + </td> + + <td align="right"> + + <xsl:if test="@lang = 'he'"> + <xsl:attribute name="align"> + <xsl:text>left</xsl:text> + </xsl:attribute> + </xsl:if> + + <a href="http://nginx.org"> + + <img src="http://nginx.org/nginx.gif" alt="nginx" border="0"/> + + </a> + + </td> + + </tr> + + </table> + + <table width="100%"> + + <tr> + + <td width="70%"> <center> <h3> @@ -50,13 +120,6 @@ <td rowspan="2" align="{$MENU_ALIGN}" valign="top"> - <a href="http://nginx.org"> - - <img src="/nginx.gif" alt="nginx" border="0"/> - - </a> - <br/> - <br/> <xsl:apply-templates select="document(concat($XML, '/menu.xml')) /menus/menu[@lang = $lang]/item"/> @@ -187,4 +250,4 @@ </body> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file
--- a/xslt/menu.xslt Fri Sep 28 11:14:47 2012 +0000 +++ b/xslt/menu.xslt Mon Oct 01 13:50:19 2012 +0000 @@ -22,41 +22,82 @@ </xsl:when> <xsl:otherwise> + <xsl:choose> - <a> - - <xsl:attribute name="href"> + <xsl:when test="@switchlang != ''"> <xsl:choose> - <xsl:when test="starts-with(@href, $DIRNAME)"> - <xsl:choose> + <xsl:when test="contains($TRANS, @switchlang)"> + + <a> - <xsl:when test="substring-after(@href, $DIRNAME) = ''"> - ./</xsl:when> + <xsl:attribute name="href"> + <xsl:choose> + + <xsl:when test="$ROOT != '' "> - <xsl:otherwise> + <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/', $NOLANGORIGIN)"/> + </xsl:when> + + <xsl:otherwise> - <xsl:value-of select=" substring-after(@href, $DIRNAME)"/> - </xsl:otherwise> - </xsl:choose> + <xsl:value-of select=" concat(@switchlang, '/', $NOLANGORIGIN)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> + + <xsl:value-of select=" normalize-space(text())"/> + + </a> </xsl:when> <xsl:otherwise> - <xsl:value-of select=" concat($ROOT, @href)"/> + <a class="notrans"> + <xsl:value-of select=" normalize-space(text())"/> + </a> </xsl:otherwise> </xsl:choose> - </xsl:attribute> + </xsl:when> + + <xsl:otherwise> + + <a> - <xsl:value-of select=" normalize-space(text())"/> + <xsl:attribute name="href"> + <xsl:choose> - </a> + <xsl:when test="starts-with(@href, $DIRNAME)"> + <xsl:choose> + + <xsl:when test="substring-after(@href, $DIRNAME) = ''"> + ./</xsl:when> + + <xsl:otherwise> - <xsl:if test="@lang"> - <xsl:text> [</xsl:text> - <xsl:value-of select="@lang"/> - <xsl:text>]</xsl:text> - </xsl:if> + <xsl:value-of select=" substring-after(@href, $DIRNAME)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + + <xsl:otherwise> + + <xsl:value-of select=" concat($ROOT, @href)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:attribute> + + <xsl:value-of select=" normalize-space(text())"/> + + </a> + + <xsl:if test="@lang"> + <xsl:text> [</xsl:text> + <xsl:value-of select="@lang"/> + <xsl:text>]</xsl:text> + </xsl:if> + </xsl:otherwise> + </xsl:choose> <br/> </xsl:otherwise> @@ -109,4 +150,4 @@ <br/> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file
--- a/xslt/style.xslt Fri Sep 28 11:14:47 2012 +0000 +++ b/xslt/style.xslt Mon Oct 01 13:50:19 2012 +0000 @@ -5,7 +5,7 @@ <xsl:param name="lang"/> <style type="text/css"> - <xsl:value-of select=" normalize-space(' body { font-family: Georgia, serif; } p { text-align: justify; } table.news p { margin-top: 0; } table.news td { vertical-align: baseline; } table.news .date { text-align: right; padding-right: 0.5em; white-space: nowrap; } div.directive { background: #EEEEEE; padding: 10pt 10pt 10pt 0; } div.directive td { vertical-align: baseline; } div.directive pre { padding: 0; margin: 0; } div.directive p { margin: 5pt 0 0 0; font-size: 80%; } span.initial { font-size: 200%; float: left; padding-right: 10pt;} li { text-align: justify; padding-top: 0.5em; } .compact li { padding-top: 0; } dt { padding-top: 0.5em; } .compact dt { padding-top: 0; } dd { text-align: justify; } td.list { background: #EEEEEE; } blockquote.note { text-align: justify; background: #EEEEEE; border: none; margin: 1em; padding: 0.5em; } blockquote.example { background: transparent; border: none; margin: 1em; padding: 0.5em; } blockquote.example pre { padding: 0; margin: 0; } sup { font-size: 50%; } ')"/> + <xsl:value-of select=" normalize-space(' body { font-family: Georgia, serif; } p { text-align: justify; } table.news p { margin-top: 0; } table.news td { vertical-align: baseline; } table.news .date { text-align: right; padding-right: 0.5em; white-space: nowrap; } div.directive { background: #EEEEEE; padding: 10pt 10pt 10pt 0; } div.directive td { vertical-align: baseline; } div.directive pre { padding: 0; margin: 0; } div.directive p { margin: 5pt 0 0 0; font-size: 80%; } div#banner { background: #EEEEEE; padding: 10pt 10pt 10pt 0; } a.notrans { color: gray; text-decoration:none; } span.initial { font-size: 200%; float: left; padding-right: 10pt;} li { text-align: justify; padding-top: 0.5em; } .compact li { padding-top: 0; } dt { padding-top: 0.5em; } .compact dt { padding-top: 0; } dd { text-align: justify; } td.list { background: #EEEEEE; } blockquote.note { text-align: justify; background: #EEEEEE; border: none; margin: 1em; padding: 0.5em; } blockquote.example { background: transparent; border: none; margin: 1em; padding: 0.5em; } blockquote.example pre { padding: 0; margin: 0; } sup { font-size: 50%; } ')"/> <xsl:if test="$lang = 'he'"> @@ -15,4 +15,4 @@ </style> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file