|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="body">
|
|
|
|
|
<xsl:with-param name="title" select="$title" />
|
|
|
|
|
<xsl:with-param name="title" select="normalize-space($title)" />
|
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
@ -61,8 +61,11 @@
|
|
|
|
|
<xsl:element name="head">
|
|
|
|
|
<xsl:call-template name="header" />
|
|
|
|
|
<title>
|
|
|
|
|
<xsl:text><<</>> Chaos Computer Club Dresden | c3d2 - </xsl:text>
|
|
|
|
|
<xsl:value-of select="$title" />
|
|
|
|
|
<xsl:text><<</>> Chaos Computer Club Dresden | c3d2</xsl:text>
|
|
|
|
|
<xsl:if test="$title != ''">
|
|
|
|
|
<xsl:text> - </xsl:text>
|
|
|
|
|
<xsl:value-of select="$title" />
|
|
|
|
|
</xsl:if>
|
|
|
|
|
</title>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
@ -110,13 +113,15 @@
|
|
|
|
|
<xsl:attribute name="class">vevent</xsl:attribute>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
|
<xsl:if test="name(.) = 'item'">
|
|
|
|
|
<xsl:attribute name="class">news</xsl:attribute>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<xsl:if test="$title != ''">
|
|
|
|
|
<h2>
|
|
|
|
|
<xsl:if test="name(.) = 'item'">
|
|
|
|
|
<xsl:attribute name="class">news</xsl:attribute>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:value-of select="$title" />
|
|
|
|
|
</h2>
|
|
|
|
|
<xsl:value-of select="$title" />
|
|
|
|
|
</h2>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<!-- Für Seiten, die nur ein Newsitem beinhalten,
|
|
|
|
|
Newsmetadaten anzeigen
|
|
|
|
@ -308,4 +313,42 @@
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/page/portal">
|
|
|
|
|
<section id="portal">
|
|
|
|
|
<xsl:apply-templates select="item[position() <= 60]"/>
|
|
|
|
|
</section>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/page/portal/item">
|
|
|
|
|
<article>
|
|
|
|
|
<a href="{link}">
|
|
|
|
|
<xsl:if test="content-image">
|
|
|
|
|
<xsl:attribute name="style">
|
|
|
|
|
background: url('<xsl:value-of select="content-image"/>') 50% 50% no-repeat;
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:apply-templates select="header"/>
|
|
|
|
|
<xsl:apply-templates select="footer"/>
|
|
|
|
|
<xsl:apply-templates select="content-text"/>
|
|
|
|
|
</a>
|
|
|
|
|
</article>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="portal/item/header">
|
|
|
|
|
<h3><xsl:value-of select="string(.)"/></h3>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="portal/item/footer">
|
|
|
|
|
<p class="footer"><xsl:value-of select="string(.)"/></p>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="portal/item/content-text">
|
|
|
|
|
<h4><xsl:value-of select="string(.)"/></h4>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template match="portal/item/content-image">
|
|
|
|
|
<img src="{{.}}"/>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|