<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:
astro 2006-07-28 14:23:00 +00:00
parent 72f67ebbbb
commit cda5853ef5
1 changed files with 40 additions and 23 deletions

View File

@ -321,31 +321,48 @@
<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">
<xsl:value-of select="@title"/>
</a>
</h3>
<xsl:choose>
<xsl:when test="$details = 'news'">
<xsl:call-template name="news-meta"/>
</xsl:when>
<xsl:when test="($details = 'event') and event">
<ul class="details_event">
<li>
<xsl:call-template name="get-datestring">
<xsl:with-param name="date" select="event/start" />
</xsl:call-template>,
</li>
<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>
<xsl:choose>
<xsl:when test="$details = 'news'">
<xsl:call-template name="news-meta"/>
</xsl:when>
<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>
</abbr>
</li>
<li class="location">
<xsl:value-of select="event/location"/>
</li>
</ul>
</xsl:when>
</xsl:choose>
</div>
<li>
<xsl:value-of select="event/location"/>
</li>
</ul>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</xsl:for-each>