Expose rights and license information
This commit is contained in:
parent
7e1542bf8e
commit
236b3c2fc8
@ -38,6 +38,10 @@ a.rising {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a[rel~='license'] {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
body > h1 {
|
body > h1 {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
xmlns:planet="http://planet.intertwingly.net/"
|
xmlns:planet="http://planet.intertwingly.net/"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
exclude-result-prefixes="atom planet xhtml">
|
exclude-result-prefixes="atom planet xhtml">
|
||||||
|
|
||||||
<xsl:output method="xml" omit-xml-declaration="yes"/>
|
<xsl:output method="xml" omit-xml-declaration="yes"/>
|
||||||
|
|
||||||
<xsl:template match="atom:feed">
|
<xsl:template match="atom:feed">
|
||||||
@ -158,7 +158,7 @@
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="atom:entry">
|
<xsl:template match="atom:entry">
|
||||||
<!-- date header -->
|
<!-- date header -->
|
||||||
<xsl:variable name="date" select="substring(atom:updated,1,10)"/>
|
<xsl:variable name="date" select="substring(atom:updated,1,10)"/>
|
||||||
@ -216,19 +216,57 @@
|
|||||||
<xsl:apply-templates select="atom:summary"/>
|
<xsl:apply-templates select="atom:summary"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
<!-- entry footer -->
|
<!-- entry footer -->
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<div class="permalink">
|
<div class="permalink">
|
||||||
|
<xsl:if test="atom:link[@rel='license'] or
|
||||||
|
atom:source/atom:link[@rel='license'] or
|
||||||
|
atom:rights or atom:source/atom:rights">
|
||||||
|
<a>
|
||||||
|
<xsl:if test="atom:source/atom:link[@rel='license']/@href">
|
||||||
|
<xsl:attribute name="rel">license</xsl:attribute>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="atom:source/atom:link[@rel='license']/@href"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="atom:link[@rel='license']/@href">
|
||||||
|
<xsl:attribute name="rel">license</xsl:attribute>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="atom:link[@rel='license']/@href"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="atom:source/atom:rights">
|
||||||
|
<xsl:attribute name="title">
|
||||||
|
<xsl:value-of select="atom:source/atom:rights"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="atom:rights">
|
||||||
|
<xsl:attribute name="title">
|
||||||
|
<xsl:value-of select="atom:rights"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>©</xsl:text>
|
||||||
|
</a>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
<a href="{atom:link[@rel='alternate']/@href}">
|
<a href="{atom:link[@rel='alternate']/@href}">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="atom:author/atom:name">
|
<xsl:when test="atom:author/atom:name">
|
||||||
<xsl:text>by </xsl:text>
|
<xsl:if test="not(atom:link[@rel='license'] or
|
||||||
|
atom:source/atom:link[@rel='license'] or
|
||||||
|
atom:rights or atom:source/atom:rights)">
|
||||||
|
<xsl:text>by </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
<xsl:value-of select="atom:author/atom:name"/>
|
<xsl:value-of select="atom:author/atom:name"/>
|
||||||
<xsl:text> at </xsl:text>
|
<xsl:text> at </xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="atom:source/atom:author/atom:name">
|
<xsl:when test="atom:source/atom:author/atom:name">
|
||||||
<xsl:text>by </xsl:text>
|
<xsl:if test="not(atom:link[@rel='license'] or
|
||||||
|
atom:source/atom:link[@rel='license'] or
|
||||||
|
atom:rights or atom:source/atom:rights)">
|
||||||
|
<xsl:text>by </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
<xsl:value-of select="atom:source/atom:author/atom:name"/>
|
<xsl:value-of select="atom:source/atom:author/atom:name"/>
|
||||||
<xsl:text> at </xsl:text>
|
<xsl:text> at </xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user