added new creative commons licensing box above page footer. add meta tags to document header to display them, like this: <meta name="cc-license" content="<license>" />

svn path=/trunk/; revision=22057
This commit is contained in:
samtuke 2012-01-19 18:24:14 +00:00
parent 75f6944e90
commit 944f30baf1
2 changed files with 44 additions and 0 deletions

View File

@ -664,6 +664,26 @@
</xsl:element><!--end wrapper-inner-->
<!-- cc licenses -->
<xsl:if test = "string(/buildinfo/document/head/meta[@name='cc-license']/@content)">
<xsl:element name="div">
<xsl:attribute name="id">cc-licenses</xsl:attribute>
<xsl:element name="p">
<xsl:element name="img">
<xsl:attribute name="src">/artwork/cc-logo.png</xsl:attribute>
<xsl:attribute name="alt">Creative Commons logo</xsl:attribute>
</xsl:element> <!-- </img> -->
<xsl:for-each select="/buildinfo/document/head/meta[@name='cc-license']">
<xsl:value-of select="@content"/>
</xsl:for-each>
<!--<xsl:value-of select="/buildinfo/document/head/meta[@name='cc-license-1']/@content" /> • -->
</xsl:element> <!-- </p> -->
</xsl:element> <!-- </div> -->
</xsl:if>
<!-- End cc licenses -->
<!-- Footer -->
<div id="footer">
<div id="notice">

View File

@ -1373,6 +1373,30 @@ p#article-attachmt {
margin-top: -3em;
}
/* creative commons license info footer */
#cc-licenses {
float:left;
padding:10px;
background-color: #cdcdcd;
width: 96%;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 25px;
box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.1);
}
#cc-licenses img {
float: left;
margin: 0 15px 0 0;
}
#cc-licenses p {
color: #5D5D5D;
float: left;
line-height: 1.3em;
margin: 0;
padding: 0;
}
/*for consistency, please make sure it looks like .people img */
img.author-avatar {
float: left;