diff options
Diffstat (limited to 'xml')
-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> |