xsl: location in sidebar calendar as @title

This commit is contained in:
Astro 2011-10-26 23:43:26 +02:00
parent 2c82075527
commit 3a4368998e
3 changed files with 6 additions and 17 deletions

View File

@ -316,16 +316,6 @@ p.new_comment a:before {
text-decoration: underline;
}
#upcoming ul li .location {
display: none;
overflow: hidden;
font-size: xx-small;
font-weight: bold;
}
#upcoming ul li:hover .location {
display: inline;
}
/* -- footer -- */
#footer {
clear: both;

View File

@ -122,8 +122,7 @@
<!-- a/@title -->
<xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title">
<xsl:text>Ort: </xsl:text>
<xsl:value-of select="string(location)"/>
<xsl:value-of select="concat('Ort: ', location)"/>
</xsl:attribute>
</xsl:if>
<!-- string(a) -->

View File

@ -241,13 +241,13 @@
<xsl:with-param name="end" select="end"/>
</xsl:call-template>:
<a href="{$href}">
<xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title">
<xsl:value-of select="concat('Ort: ', location)"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="title"/>
</a>
<xsl:if test="location">
<xsl:text> </xsl:text>
<span class="location"><xsl:value-of select="location"/></span>
</xsl:if>
</li>
</xsl:if>
</xsl:for-each>