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> </xsl:if>
<br/> <br/>
<!-- Slashdot It link --> <!-- AddThis Bookmark Button -->
<!-- <a <script type="text/javascript">
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> addthis_url = location.href;
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text> addthis_title = document.title;
<a href="javascript:location.href='http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)">Slashdot It!</a> --> addthis_pub = 'calumt';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<!-- AddThis Bookmark Button --> <xsl:if test="@buttons">
<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 --> <br/><br/>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> <!-- digg button -->
<script language="javascript" src="http://reddit.com/button.js?t=3"></script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
<!--
<script type="text/javascript"> <!-- reddit button -->
google_ad_client = "pub-5235744946475097"; <script language="javascript" src="http://reddit.com/button.js?t=3"></script>
google_ad_width = 728;
google_ad_height = 90; </xsl:if>
google_ad_format = "728x90_as";
google_ad_type = "text_image"; <!-- google ads -->
//2007-03-21: mcc <!--
google_ad_channel = "1106187834"; <script type="text/javascript">
</script> google_ad_client = "pub-5235744946475097";
<script type="text/javascript" google_ad_width = 728;
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> google_ad_height = 90;
</script> 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"/> <xsl:call-template name="footer"/>
</body> </body>

View File

@ -15,14 +15,6 @@
</p> </p>
</section> </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"> <section title="News and Upcoming Events">
<news-and-events /> <news-and-events />
</section> </section>

View File

@ -19,7 +19,7 @@
<flvfile file="pmc-sasms-spring-2007.flv" /> <flvfile file="pmc-sasms-spring-2007.flv" />
</mediaitem> </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> <abstract>
Copyright developed in the age of the printing press, and was designed to 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. fit with the system of centralized copying imposed by the printing press.