implementing cc license info

svn path=/branches/test/; revision=22975
This commit is contained in:
hugo 2012-04-21 16:12:42 +00:00
parent bd2a835f89
commit 725f21b7ff

View File

@ -690,7 +690,41 @@
</xsl:element><!--end wrapper-inner-->
<!-- cc licenses -->
<!-- licenses -->
<xsl:if test = "/buildinfo/document/legal">
<div id="legal">
<p>
<xsl:choose>
<xsl:when test = "/buildinfo/document/legal/license">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:attribute name="rel">license</xsl:attribute>
<xsl:if test ="/buildinfo/document/legal/@type='cc-license'">
<xsl:element name="img">
<xsl:attribute name="src=">/graphics/cc-logo.png</xsl:attribute>
<xsl:attribute name="alt=">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'creative-commons-license'" /></xsl:call-template>
</xsl:attribute>
</xsl:element>
</xsl:if>
<xsl:value-of select="/buildinfo/document/legal/notice"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/buildinfo/document/legal/notice"/>
</xsl:otherwise>
</xsl:choose>
</p>
</div>
</xsl:if>
<!--old cc license way-->
<xsl:if test = "string(/buildinfo/document/head/meta[@name='cc-license']/@content)">
<xsl:element name="div">
<xsl:attribute name="id">cc-licenses</xsl:attribute>