Metainfo für News + CSS

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@370 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-06-06 19:46:00 +00:00
parent 2eabcb497c
commit caf99b7c60
2 changed files with 34 additions and 18 deletions

View File

@ -146,7 +146,7 @@ pre {
}
#content h3 {
font-size: 150%;
font-size: 130%;
margin-top: 30px;
color: #555;
}
@ -173,11 +173,11 @@ pre {
font-weight: bold;
}
#content h3.news {
#content h2.news, #content h3.news {
border-bottom: #ebc63c 3px solid;
padding: 0px;
line-height: 1.1em;
font-size: 130%;
margin-bottom: 0px;
}
#content h3.news a {

View File

@ -23,7 +23,7 @@
<xsl:if test="name(/*)='item'">../</xsl:if>
</xsl:variable>
<xsl:template match="/page|/news">
<xsl:template match="/page">
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="/page/@pagetitle">
@ -110,9 +110,21 @@
</xsl:comment>
<div id="content">
<h2>
<xsl:if test="name(.) = 'item'">
<xsl:attribute name="class">news</xsl:attribute>
</xsl:if>
<xsl:value-of select="$title" />
</h2>
<!-- Für Seiten, die nur ein Newsitem beinhalten,
Newsmetadaten anzeigen
-->
<xsl:if test="name(.) = 'item'">
<xsl:call-template name="news-meta"/>
</xsl:if>
<xsl:apply-templates/>
</div> <!-- id="content" -->
@ -158,20 +170,7 @@
</a>
</h3>
<small class="news_author">
<xsl:value-of select="@author"/>
</small>
<xsl:variable name="datestring">
<xsl:call-template name="get-datestring">
<xsl:with-param name="date" select="@date" />
</xsl:call-template>
</xsl:variable>
<xsl:element name="small">
<xsl:attribute name="class">news_date</xsl:attribute>
<xsl:value-of select="concat(' @ ', $datestring)"/>
</xsl:element>
<xsl:call-template name="news-meta"/>
<div class="news">
<xsl:apply-templates>
@ -193,6 +192,23 @@
</xsl:for-each>
</xsl:template>
<xsl:template name="news-meta">
<small class="news_author">
<xsl:value-of select="@author"/>
</small>
<xsl:variable name="datestring">
<xsl:call-template name="get-datestring">
<xsl:with-param name="date" select="@date" />
</xsl:call-template>
</xsl:variable>
<xsl:element name="small">
<xsl:attribute name="class">news_date</xsl:attribute>
<xsl:value-of select="concat(' @ ', $datestring)"/>
</xsl:element>
</xsl:template>
<xsl:template match="item/image">
<xsl:param name="itemposition"/>