[library-web] add custom gnome logo for header



commit 535ebb2f43ca0cadcaa4d78c1de6430376b8287e
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Apr 6 13:12:48 2011 +0530

    add custom gnome logo for header

 data/skin/gnome-logo-devcenter.png |  Bin 0 -> 12255 bytes
 data/skin/gnome-logo.png           |  Bin 0 -> 12040 bytes
 data/xslt/heading.xsl              |    8 +++++++-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/skin/gnome-logo-devcenter.png b/data/skin/gnome-logo-devcenter.png
new file mode 100644
index 0000000..1a3e6c0
Binary files /dev/null and b/data/skin/gnome-logo-devcenter.png differ
diff --git a/data/skin/gnome-logo.png b/data/skin/gnome-logo.png
new file mode 100644
index 0000000..02829b6
Binary files /dev/null and b/data/skin/gnome-logo.png differ
diff --git a/data/xslt/heading.xsl b/data/xslt/heading.xsl
index dee2156..f0979ca 100644
--- a/data/xslt/heading.xsl
+++ b/data/xslt/heading.xsl
@@ -34,7 +34,13 @@
     <!-- header -->
     <div id="header" class="container_12">
         <div id="logo" class="grid_3">
-            <h1><a title="Go to home page" href="/"><img src="http://wptest.gnome.org/wp-content/themes/gnome-grass/images/gnome-logo.png"; alt="GNOME: The Free Software Desktop Project" /></a></h1>
+            <h1><a title="Go to home page" href="/"><img alt="GNOME: The Free Software Desktop Project">
+              <xsl:attribute name="src">
+                <xsl:choose>
+                  <xsl:when test="$libgo.channel = 'devel'">/skin/gnome-logo-devcenter.png</xsl:when>
+                  <xsl:otherwise>/skin/gnome-logo.png</xsl:otherwise>
+                </xsl:choose>
+              </xsl:attribute></img></a></h1>
         </div>
         <div id="top_bar" class="grid_9">
             <div class="left">



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