Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-fiddle.git
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template name="footer">
  <xsl:call-template name="advertisement" />
  <xsl:call-template name="legalese" />
</xsl:template>

<!--
 | Displays the advertisement if the viewer cannot edit the page.
 +-->
<xsl:template name="advertisement">
  <xsl:if test="not($editable)">
  <xsl:text disable-output-escaping="yes">
  <![CDATA[
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6706709573463658";
/* Recipe Fiddle */
google_ad_slot = "6046982437";
google_ad_width = 320;
google_ad_height = 50;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
  ]]>
  </xsl:text>
  </xsl:if>
</xsl:template>

<!--
 | Unused copyright notice.
 +-->
<xsl:template name="copyright">
<p class="copyright">
  Copyright &#xA9; Creative Commons Attribution-ShareAlike
</p>
</xsl:template>

<xsl:template name="legalese">
  <xsl:if test="$editable">
  <p class="legal" style="display:none">
  You agree to indemnify and hold harmless the Web site owners and affiliates against any and all claims, liabilities, expenses, and damages resulting from your use of this Web site. You are reponsible for clearly communicating your allergies and sensitivities to anyone preparing food or beverages for your consumption.
  </p>
  </xsl:if>
</xsl:template>

</xsl:stylesheet>