Merge pull request #676 from rivaldi8/DS-2178-mirage2-incorrect-cc-logo
[DS-2178] Mirage 2: incorrect use of Creative Commons logo.
Before Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.1 KiB |
@@ -604,14 +604,10 @@
|
||||
alt="{$ccLicenseName}"
|
||||
title="{$ccLicenseName}"
|
||||
>
|
||||
<img class="img-responsive">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="concat($theme-path,'/images/cc-ship.gif')"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$ccLicenseName"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
<xsl:call-template name="cc-logo">
|
||||
<xsl:with-param name="ccLicenseName" select="$ccLicenseName"/>
|
||||
<xsl:with-param name="ccLicenseUri" select="$ccLicenseUri"/>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
</div> <div class="col-sm-8">
|
||||
<span>
|
||||
@@ -623,6 +619,58 @@
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="cc-logo">
|
||||
<xsl:param name="ccLicenseName"/>
|
||||
<xsl:param name="ccLicenseUri"/>
|
||||
<xsl:variable name="ccLogo">
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by/')">
|
||||
<xsl:value-of select="'cc-by.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by-sa/')">
|
||||
<xsl:value-of select="'cc-by-sa.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by-nd/')">
|
||||
<xsl:value-of select="'cc-by-nd.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by-nc/')">
|
||||
<xsl:value-of select="'cc-by-nc.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by-nc-sa/')">
|
||||
<xsl:value-of select="'cc-by-nc-sa.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/licenses/by-nc-nd/')">
|
||||
<xsl:value-of select="'cc-by-nc-nd.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/publicdomain/zero/')">
|
||||
<xsl:value-of select="'cc-zero.png'" />
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($ccLicenseUri,
|
||||
'http://creativecommons.org/publicdomain/mark/')">
|
||||
<xsl:value-of select="'cc-mark.png'" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'cc-generic.png'" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<img class="img-responsive">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="concat($theme-path,'/images/creativecommons/', $ccLogo)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$ccLicenseName"/>
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Like the header, the footer contains various miscellaneous text, links, and image placeholders -->
|
||||
<xsl:template name="buildFooter">
|
||||
<footer>
|
||||
|