<news-list details='event'/> spuckt jetzt auch hevents aus
git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@493 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
72f67ebbbb
commit
cda5853ef5
|
@ -321,8 +321,14 @@
|
|||
|
||||
<xsl:for-each select="document(concat('../', $newsfile))/item">
|
||||
<xsl:if test="(string-length($category) = 0) or ($category = @category)">
|
||||
<h3>
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html">
|
||||
|
||||
<div>
|
||||
<xsl:if test="($details = 'event') and event">
|
||||
<xsl:attribute name="class">vevent</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<h3 class="summary">
|
||||
<a href="{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html" class="url">
|
||||
<xsl:value-of select="@title"/>
|
||||
</a>
|
||||
</h3>
|
||||
|
@ -335,17 +341,28 @@
|
|||
<xsl:when test="($details = 'event') and event">
|
||||
<ul class="details_event">
|
||||
<li>
|
||||
<abbr class="dtstart">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="date-to-hevent">
|
||||
<xsl:with-param name="date" select="event/start"/>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:call-template name="get-datestring">
|
||||
<xsl:with-param name="date" select="event/start" />
|
||||
</xsl:call-template>,
|
||||
<xsl:with-param name="date" select="event/start"/>
|
||||
</xsl:call-template>
|
||||
</abbr>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<li class="location">
|
||||
<xsl:value-of select="event/location"/>
|
||||
</li>
|
||||
</ul>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</div>
|
||||
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
|
|
Loading…
Reference in New Issue