Added mediaitem "buttons" attribute to conditionally display digg/reddit buttons.
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 14 Jul 2007 23:20:50 +0000 (19:20 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 14 Jul 2007 23:20:50 +0000 (19:20 -0400)
Added "buttons" attribute to RMS page.
Remoevd "Site Updated" section on main page.

cscweb.xsl
index.xml
media/index.xml

index fb1be44..94b170a 100644 (file)
  </xsl:if>
  <br/>
 
-<!-- Slashdot It link --> 
-<!-- <a 
-href="javascript:location.href='http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)"> <img src="http://images.slashdot.org/favicon.gif" alt="Slashdot" border="0" height="16" width="16"></img></a>
-<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
-<a href="javascript:location.href='http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)">Slashdot It!</a> -->
-
-<!-- AddThis Bookmark Button -->
-<script type="text/javascript">
-  addthis_url    = location.href;
-  addthis_title  = document.title;
-  addthis_pub    = 'calumt';
-</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
-
-<!-- digg button -->
-<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
-<script language="javascript" src="http://reddit.com/button.js?t=3"></script>
-<!--
-<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">
-</script>
--->
+ <!-- AddThis Bookmark Button -->
+ <script type="text/javascript">
+   addthis_url    = location.href;
+   addthis_title  = document.title;
+   addthis_pub    = 'calumt';
+ </script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
+
+ <xsl:if test="@buttons">
+
+  <br/><br/>
+  <!-- digg button -->
+  <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
+
+  <!-- reddit button -->
+  <script language="javascript" src="http://reddit.com/button.js?t=3"></script>
+
+ </xsl:if>
+
+ <!-- google ads -->
+ <!--
+ <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">
+ </script>
+ -->
 
  <xsl:call-template name="footer"/>
 </body>
index 6c165c9..4c26cb9 100644 (file)
--- a/index.xml
+++ b/index.xml
  </p>
  </section>
  
- <section title="Site Updated!">
- <p>
-   The design is now finalized. It is compatible with any browsers, especially
-   ones that recognize HTML 4.1, XML/XHTML 1.1 and CSS 3.0 (Stable
-   Specification).
- </p>
- </section>
-
  <section title="News and Upcoming Events">
   <news-and-events />
  </section>
index 5b869a4..a8018ae 100644 (file)
@@ -19,7 +19,7 @@
   <flvfile file="pmc-sasms-spring-2007.flv" />
 </mediaitem>
 
-<mediaitem title="Copyright vs Community in the Age of Computer Networks">
+<mediaitem title="Copyright vs Community in the Age of Computer Networks" buttons="true">
   <abstract>
     Copyright developed in the age of the printing press, and was designed to
     fit with the system of centralized copying imposed by the printing press.