Remove ads from website no-ads
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Tue, 12 Feb 2008 21:44:12 +0000 (16:44 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Tue, 12 Feb 2008 21:44:12 +0000 (16:44 -0500)
xsl/functions.xsl
xsl/media.xsl

index 1f623f4..d0b9e72 100644 (file)
@@ -13,23 +13,4 @@ Computer Science Club</a> to help offset the costs of bringing you our
 talks.</p>
 </xsl:template>
 
-<xsl:template name="inline-ads">
-<!-- google ads -->
-<p>
-  <script type="text/javascript">
-    google_ad_client = "pub-5235744946475097";
-    google_ad_width = 728;
-    google_ad_height = 90;
-    google_ad_format = "728x90_as";
-    google_ad_type = "text_image";
-    //2007-03-21: mcc
-    google_ad_channel = "1106187834";
-  </script>
-  <script type="text/javascript"
-      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
-    <xsl:text> </xsl:text>
-  </script>
-</p>
-</xsl:template>
-
 </xsl:stylesheet>
index 7548bbe..0c26bac 100644 (file)
@@ -34,7 +34,6 @@
   <xsl:call-template name="makemediaitem">
     <xsl:with-param name="mirror" select="$g_mirror_csc" />
     <xsl:with-param name="bittorrent">yes</xsl:with-param>
-    <xsl:with-param name="ads">yes</xsl:with-param>
   </xsl:call-template>
   <xsl:call-template name="makemediaitem">
     <xsl:with-param name="suffix">-uw</xsl:with-param>
@@ -54,7 +53,6 @@
   <xsl:param name="infotext" />
   <xsl:param name="mirror" />
   <xsl:param name="bittorrent" />
-  <xsl:param name="ads" />
   <xsl:variable name="realurl" select="concat('http://csclub.uwaterloo.ca/media/', csc:encode-for-uri(@title))" />
   <xsl:document method="xml" encoding="ISO-8859-1"
       doctype-public="-//W3C//DTD XHTML 1.1//EN"
@@ -71,9 +69,6 @@
           <xsl:with-param name="href" select="concat(@title, $suffix)" />
         </xsl:call-template>
         <xsl:call-template name="donate-now" />
-        <xsl:if test="$ads">
-          <xsl:call-template name="inline-ads" />
-        </xsl:if>
         <xsl:if test="abstract">
           <h2>Abstract</h2>
           <div>