Added mediaitem "buttons" attribute to conditionally display digg/reddit buttons.

Added "buttons" attribute to RMS page.
Remoevd "Site Updated" section on main page.
This commit is contained in:
David Bartley 2007-07-14 19:20:50 -04:00
parent 0b7aeb4ea8
commit bff40bd0e8
3 changed files with 32 additions and 37 deletions

View File

@ -139,36 +139,39 @@
</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>
<!-- 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">
<!-- 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>
-->
<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>

View File

@ -15,14 +15,6 @@
</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>

View 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.