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:
parent
2eabcb497c
commit
caf99b7c60
|
@ -146,7 +146,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
#content h3 {
|
#content h3 {
|
||||||
font-size: 150%;
|
font-size: 130%;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
@ -173,11 +173,11 @@ pre {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content h3.news {
|
#content h2.news, #content h3.news {
|
||||||
border-bottom: #ebc63c 3px solid;
|
border-bottom: #ebc63c 3px solid;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
line-height: 1.1em;
|
line-height: 1.1em;
|
||||||
font-size: 130%;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content h3.news a {
|
#content h3.news a {
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<xsl:if test="name(/*)='item'">../</xsl:if>
|
<xsl:if test="name(/*)='item'">../</xsl:if>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:template match="/page|/news">
|
<xsl:template match="/page">
|
||||||
<xsl:variable name="title">
|
<xsl:variable name="title">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="/page/@pagetitle">
|
<xsl:when test="/page/@pagetitle">
|
||||||
|
@ -110,9 +110,21 @@
|
||||||
</xsl:comment>
|
</xsl:comment>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>
|
<h2>
|
||||||
|
<xsl:if test="name(.) = 'item'">
|
||||||
|
<xsl:attribute name="class">news</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:value-of select="$title" />
|
<xsl:value-of select="$title" />
|
||||||
</h2>
|
</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/>
|
<xsl:apply-templates/>
|
||||||
</div> <!-- id="content" -->
|
</div> <!-- id="content" -->
|
||||||
|
|
||||||
|
@ -158,20 +170,7 @@
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<small class="news_author">
|
<xsl:call-template name="news-meta"/>
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="news">
|
<div class="news">
|
||||||
<xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
|
@ -193,6 +192,23 @@
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:template>
|
</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:template match="item/image">
|
||||||
<xsl:param name="itemposition"/>
|
<xsl:param name="itemposition"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user