diff options
author | robbat2 <robbat2> | 2010-06-18 04:30:51 +0000 |
---|---|---|
committer | robbat2 <robbat2> | 2010-06-18 04:30:51 +0000 |
commit | ab8a20baf8ff009af23f10d699f7b377b05288f3 (patch) | |
tree | f3a75d31ab4e95520f184634d657fea639c070ea | |
parent | Add joinDate to yaml output. (diff) | |
download | www-redesign-ab8a20baf8ff009af23f10d699f7b377b05288f3.tar.gz www-redesign-ab8a20baf8ff009af23f10d699f7b377b05288f3.tar.bz2 www-redesign-ab8a20baf8ff009af23f10d699f7b377b05288f3.zip |
Testing time for the new ads2 sidebar.
-rw-r--r-- | xml/htdocs/xsl/ads.xsl | 15 | ||||
-rw-r--r-- | xml/htdocs/xsl/guide.xsl | 18 |
2 files changed, 30 insertions, 3 deletions
diff --git a/xml/htdocs/xsl/ads.xsl b/xml/htdocs/xsl/ads.xsl index 76861290..32f68c52 100644 --- a/xml/htdocs/xsl/ads.xsl +++ b/xml/htdocs/xsl/ads.xsl @@ -1,6 +1,21 @@ <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:template name="ads2"> + <xsl:param name="images"/> +<!-- we already have <table> and <tbody> inherited, hence --> + <!-- Load sidebar.gentoo.org in iframe --> + <tr lang="en"> + <td align="center"> + <iframe src="http://sidebar.gentoo.org"> + <p>Your browser does not support iframes.</p> + </iframe> + </td> + </tr> + <!-- end of iframe content --> +</xsl:template> + + <xsl:template name="ads"> <xsl:param name="images"/> diff --git a/xml/htdocs/xsl/guide.xsl b/xml/htdocs/xsl/guide.xsl index 0c5bcaa8..12108924 100644 --- a/xml/htdocs/xsl/guide.xsl +++ b/xml/htdocs/xsl/guide.xsl @@ -47,6 +47,9 @@ <!-- Nick to select on dev map --> <xsl:param name="dev"/> +<!-- testing ads mode --> +<xsl:param name="ads">ads</xsl:param> + <!-- Where is this xsl being run? --> <xsl:param name="httphost">www</xsl:param> @@ -1909,9 +1912,18 @@ Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Found </form> </td> </tr> - <xsl:call-template name="ads"> - <xsl:with-param name="images" select="$images"/> - </xsl:call-template> + <xsl:choose> + <xsl:when test="$ads='ads2'"> + <xsl:call-template name="ads"> + <xsl:with-param name="images" select="$images"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="ads"> + <xsl:with-param name="images" select="$images"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> <tr> <td align="center" class="topsep"/> </tr> |