changeset 3045:91a2ee74ca72

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 Feb 2024 20:05:53 +0300
parents 6c78190bc1cb
children 2be49a02a2e3
files xslt/article.xslt xslt/banner.xslt xslt/body.xslt xslt/news.xslt xslt/style.xslt xslt/versions.xslt
diffstat 6 files changed, 3 insertions(+), 90 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/article.xslt
+++ b/xslt/article.xslt
@@ -27,7 +27,6 @@
 <xsl:include href="style.xslt"/>
 <xsl:include href="body.xslt"/>
 <xsl:include href="menu.xslt"/>
-<xsl:include href="banner.xslt"/>
 <xsl:include href="content.xslt"/>
 <xsl:include href="books.xslt"/>
 <xsl:include href="directive.xslt"/>
@@ -40,15 +39,11 @@
 <xsl:template match="/article | /module">
     <html>
 
-    <xsl:if test="@lang = 'he'"> <xsl:attribute name="dir"> <xsl:text>rtl</xsl:text> </xsl:attribute> </xsl:if>
-
-    <xsl:if test="@lang = 'cn'"> <xsl:attribute name="lang"> <xsl:text>zh-CN</xsl:text> </xsl:attribute> </xsl:if>
-
     <head>
 
     <title> <xsl:value-of select="@name"/> </title>
 
-    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/></head>
+    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></head>
 
     <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
 </xsl:template>
deleted file mode 100644
--- a/xslt/banner.xslt
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  Copyright (C) Nginx, Inc.
-  -->
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-<xsl:variable select="'/banner/banner.html'" name="BANNER"/>
-
-<xsl:template name="banner_link">
-    <xsl:choose><xsl:when test="substring-after($DIRNAME, '/')">
-        <xsl:value-of select=" concat($ROOT, $BANNER) "/>
-    </xsl:when><xsl:otherwise>
-        <xsl:value-of select=" substring-after($BANNER, '/') "/>
-    </xsl:otherwise></xsl:choose>
-</xsl:template>
-
-<xsl:template name="banner">
-
-    <script>
-        window.addEventListener("load", function(e) {
-            fetch("<xsl:call-template name="banner_link"/>")
-                .then((response) => response.text())
-                .then((resp) => {
-                    document.getElementById("banner").innerHTML = resp;
-                })
-                .catch((error) => {
-                    console.warn(error);
-                });
-        });
-    </script>
-
-</xsl:template>
-
-</xsl:stylesheet>
--- a/xslt/body.xslt
+++ b/xslt/body.xslt
@@ -8,23 +8,11 @@
 
 <xsl:template name="body"><xsl:param name="lang"/>
 
-    <xsl:variable name="MENU_ALIGN">
-        <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>left</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>right</xsl:text> </xsl:otherwise></xsl:choose>
-    </xsl:variable>
-
-    <xsl:variable name="INDEX_ALIGN">
-        <xsl:choose><xsl:when test="$lang = 'he'"> <xsl:text>right</xsl:text> </xsl:when><xsl:otherwise> <xsl:text>left</xsl:text> </xsl:otherwise></xsl:choose>
-    </xsl:variable>
-
     <body>
 
-    <div id="banner">
-    </div>
-
     <div id="main">
     <div id="menu">
         <h1>
-            <xsl:if test="@lang = 'he'"> <xsl:attribute name="align"> <xsl:text>left</xsl:text> </xsl:attribute> </xsl:if>
             <a href="/">
                 <img src="/nginx.png" alt="nginx"/>
             </a>
@@ -45,8 +33,6 @@
               @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)">
             <span>
 
-            <xsl:if test="@lang = 'he'"> <xsl:attribute name="class"> <xsl:text>ltr</xsl:text> </xsl:attribute> </xsl:if>
-
             <blockquote class="note">
 
             <xsl:choose><xsl:when test="document(concat($XML, '/i18n.xml'))
@@ -63,7 +49,7 @@
         </xsl:if>
 
         <xsl:if test="@toc = 'yes' and section[@id and @name]">
-            <table width="100%"><tr><td align="{$INDEX_ALIGN}">
+            <table width="100%"><tr><td>
             <xsl:for-each select="section[@id and @name]">
                 <a href="#{@id}"> <xsl:value-of select="@name"/> </a><br/>
                 <xsl:for-each select="section[@id and @name]">
--- a/xslt/news.xslt
+++ b/xslt/news.xslt
@@ -28,7 +28,6 @@
 <xsl:include href="style.xslt"/>
 <xsl:include href="body.xslt"/>
 <xsl:include href="menu.xslt"/>
-<xsl:include href="banner.xslt"/>
 <xsl:include href="content.xslt"/>
 
 
@@ -39,7 +38,7 @@
 
     <title> <xsl:value-of select="@name"/> <xsl:if test="$YEAR"> <xsl:text>: </xsl:text> <xsl:value-of select="$YEAR"/> </xsl:if> </title>
 
-    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/></head>
+    <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></head>
 
     <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html>
 </xsl:template>
--- a/xslt/style.xslt
+++ b/xslt/style.xslt
@@ -16,12 +16,6 @@
                             text-align:     center;
                             margin:         0;
                             padding:        0; }
-        #banner           { background:     black;
-                            color:          #F2F2F2;
-                            line-height:    1.2em;
-                            padding:        .3em 0;
-                            box-shadow:     0 5px 10px black; }
-        #banner a         { color:          #00B140; }
         #main             { text-align:     left;
                             margin:         0 auto;
                             min-width:      32em;
@@ -107,26 +101,6 @@
                             height:100%; }
         ') "/>
 
-    <xsl:if test="$lang = 'he'">
-        <xsl:value-of select=" normalize-space('
-        pre               { text-align:     left;
-                            direction:      ltr; }
-        code              { direction:      ltr;
-                            unicode-bidi:   embed; }
-        .ltr              { direction:      ltr;
-                            unicode-bidi:   embed; }
-        ') "/>
-    </xsl:if>
-
-    <xsl:if test="$lang = 'cn'">
-        <xsl:value-of select=" normalize-space('
-        p                 { text-align:     left; }
-        li                { text-align:     left; }
-        dd                { text-align:     left; }
-        blockquote.note   { text-align:     left; }
-        ') "/>
-    </xsl:if>
-
     </style>
 </xsl:template>
 
--- a/xslt/versions.xslt
+++ b/xslt/versions.xslt
@@ -16,10 +16,4 @@
                 /versions/download[@tag='stable'][1]/item[1]/@ver"/>
 </xsl:template>
 
-<xsl:template match="commercial_version">
-    <a href="http://nginx.com/products/">
-    <xsl:apply-templates/>
-    </a>
-</xsl:template>
-
 </xsl:stylesheet>