changeset 544:1507ec5ba69a

Regenerated
author Sergey Budnevitch <sb@waeme.net>
date Wed, 20 Jun 2012 13:50:58 +0000
parents 9085f0c59dc6
children e97b46d1842d
files xslt/article.xslt xslt/books.xslt xslt/download.xslt xslt/error.xslt xslt/ga.xslt xslt/news.xslt xslt/security.xslt
diffstat 7 files changed, 48 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/article.xslt
+++ b/xslt/article.xslt
@@ -29,6 +29,8 @@
 
    <xsl:include href="content.xslt"/>
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:include href="versions.xslt"/>
 
    <xsl:template match="/article | /module">
@@ -45,6 +47,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">
@@ -68,6 +72,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">
--- a/xslt/books.xslt
+++ b/xslt/books.xslt
@@ -21,6 +21,8 @@
 
    <xsl:include href="menu.xslt"/>
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:include href="content.xslt"/>
 
    <xsl:template match="/article">
@@ -36,6 +38,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">
--- a/xslt/download.xslt
+++ b/xslt/download.xslt
@@ -21,6 +21,8 @@
 
    <xsl:include href="menu.xslt"/>
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:include href="content.xslt"/>
 
    <xsl:template match="/article">
@@ -36,6 +38,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">
--- a/xslt/error.xslt
+++ b/xslt/error.xslt
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:output indent="no" version="4.0" encoding="utf-8" method="html"/>
 
    <xsl:strip-space elements="*"/>
@@ -20,6 +22,8 @@
 
             </style>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <body>
new file mode 100644
--- /dev/null
+++ b/xslt/ga.xslt
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+   <xsl:template name="ga">
+
+      <script type="text/javascript">
+
+        var _gaq = _gaq || [];
+        _gaq.push(['_setAccount', 'UA-27974099-2']);
+        _gaq.push(['_setDomainName', 'nginx.org']);
+        _gaq.push(['_trackPageview']);
+
+        (function() {
+           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+        })();
+
+    </script>
+   </xsl:template>
+
+</xsl:stylesheet>
--- a/xslt/news.xslt
+++ b/xslt/news.xslt
@@ -23,6 +23,8 @@
 
    <xsl:include href="menu.xslt"/>
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:include href="content.xslt"/>
 
    <xsl:template match="/news">
@@ -44,6 +46,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">
--- a/xslt/security.xslt
+++ b/xslt/security.xslt
@@ -21,6 +21,8 @@
 
    <xsl:include href="menu.xslt"/>
 
+   <xsl:include href="ga.xslt"/>
+
    <xsl:include href="content.xslt"/>
 
    <xsl:template match="/article">
@@ -36,6 +38,8 @@
                <xsl:with-param select="@lang" name="lang"/>
             </xsl:call-template>
 
+            <xsl:call-template name="ga"/>
+
          </head>
 
          <xsl:call-template name="body">