[foundation-web] Make sure vote.gnome.org gets its css files from static.gnome.org



commit 6b54a69b29bc6ec0962e4676160fb19d51639655
Author: Andrea Veri <av gnome org>
Date:   Wed Feb 19 16:58:13 2014 +0100

    Make sure vote.gnome.org gets its css files from static.gnome.org

 include/add-header.xsl |   21 ++++-----------------
 include/evilsedhack    |   20 +++-----------------
 2 files changed, 7 insertions(+), 34 deletions(-)
---
diff --git a/include/add-header.xsl b/include/add-header.xsl
index 857e02e..1ed4ccb 100644
--- a/include/add-header.xsl
+++ b/include/add-header.xsl
@@ -26,8 +26,8 @@
 
   <xsl:template match="head">
     <head xmlns="http://www.w3.org/1999/xhtml";>
-      <link rel="stylesheet" type="text/css" href="https://www-old.gnome.org/default.css"; />
-      <link rel="stylesheet" type="text/css" href="https://foundation-old.gnome.org/foundation.css"; />
+      <link rel="stylesheet" type="text/css" href="https://static.gnome.org/css/vote/default.css"; />
+      <link rel="stylesheet" type="text/css" href="https://static.gnome.org/css/vote/foundation.css"; />
       <link rel="icon" type="image/png" href="https://www-old.gnome.org/img/logo/foot-16.png"; />
       <xsl:copy-of select="@*" />
       <xsl:apply-templates select="node()" />
@@ -42,8 +42,8 @@
       </div>
 
       <div id="hdr">
-       <div id="logo"><a href="{$root}/"><img src="https://www-old.gnome.org/img/spacer"; alt="Home" 
/></a></div>
-        <div id="banner"><img src="https://www-old.gnome.org/img/spacer"; alt="" /></div>
+       <div id="logo"><a href="{$root}/"><img src="https://static.gnome.org/img/spacer"; alt="Home" 
/></a></div>
+        <div id="banner"><img src="https://static.gnome.org/img/spacer"; alt="" /></div>
        <p class="none"></p>
         <div id="hdrNav">
          <a href="https://www.gnome.org/about/";>About GNOME</a> &middot;
@@ -56,19 +56,6 @@
        </div>
       </div>
 
-      <!-- Piwik -->
-      <script type="text/javascript">
-      var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
-      document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' 
type='text/javascript'%3E%3C/script%3E"));
-      </script><script type="text/javascript">
-      try {
-      var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
-      piwikTracker.trackPageView();
-      piwikTracker.enableLinkTracking();
-      } catch( err ) {}
-      </script><noscript><p><img src="https://webstats.gnome.org/piwik.php?idsite=5"; style="border:0" 
alt=""/></p></noscript>
-      <!-- End Piwik Tag -->
-
     </body>
   </xsl:template>
 
diff --git a/include/evilsedhack b/include/evilsedhack
index 58c5f46..12ded04 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -2,14 +2,14 @@
 PAGE=$1
 ROOT=$2
 
-sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link 
rel=\"stylesheet\" type=\"text/css\" href=\"https://www-old.gnome.org/default.css\"; /><link 
rel=\"stylesheet\" type=\"text/css\" href=\"https://foundation-old.gnome.org/foundation.css\"; /><link 
rel=\"icon\" type=\"image/png\" href=\"https://www-old.gnome.org/img/logo/foot-16.png\"; 
/>,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE
+sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link 
rel=\"stylesheet\" type=\"text/css\" href=\"https://static.gnome.org/css/votedefault.css\"; /><link 
rel=\"stylesheet\" type=\"text/css\" href=\"https://static.gnome.org/css/vote/foundation.css\"; /><link 
rel=\"icon\" type=\"image/png\" href=\"https://static.gnome.org/img/logo/foot-16.png\"; 
/>,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE
 
 cat <<-FOOT
 </div>
 
 <div id="hdr">
-       <div id="logo"><a href="$ROOT/"><img src="https://www.gnome.org/img/spacer"; alt="Home" /></a></div>
-       <div id="banner"><img src="https://www.gnome.org/img/spacer"; alt="" /></div>
+       <div id="logo"><a href="$ROOT/"><img src="https://static.gnome.org/img/spacer"; alt="Home" /></a></div>
+       <div id="banner"><img src="https://static.gnome.org/img/spacer"; alt="" /></div>
        <p class="none"></p>
        <div id="hdrNav">
                <a href="https://www.gnome.org/about/";>About GNOME</a> &middot;
@@ -21,20 +21,6 @@ cat <<-FOOT
                <a href="https://www.gnome.org/contact/";>Contact</a>
        </div>
 </div>
-
-<!-- Piwik -->
-<script type="text/javascript">
-var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
-document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
-</script><script type="text/javascript">
-try {
-var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
-piwikTracker.trackPageView();
-piwikTracker.enableLinkTracking();
-} catch( err ) {}
-</script><noscript><p><img src="https://webstats.gnome.org/piwik.php?idsite=5"; style="border:0" 
alt=""/></p></noscript>
-<!-- End Piwik Tag -->
-
 </body>
 
 </html>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]