Newsimagealignmentfixes
Metadatenfnords git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@366 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
632447840f
commit
03dcf8200a
|
@ -19,12 +19,12 @@
|
|||
<meta name="robots" content="index,follow" />
|
||||
<meta name="language" content="de" />
|
||||
<meta name="author" content="Fnordic walker" />
|
||||
<meta name="date" content="Jan 1 1970" />
|
||||
<meta name="date" content="May 23 1981" />
|
||||
|
||||
<meta name="DC.Creator" content="Fnordic walker" />
|
||||
<meta name="DC.Description" content="<<</>> c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
|
||||
<meta name="DC.Publisher" content="Chaos Computer Club Dresden" />
|
||||
<meta name="DC.Date" content="Jan 1 1970" />
|
||||
<meta name="DC.Date" content="May 23 1981" />
|
||||
<meta name="DC.Type" content="Text" />
|
||||
<meta name="DC.Format" content="text/html" />
|
||||
<meta name="DC.Language" content="de" />
|
||||
|
|
|
@ -147,6 +147,7 @@
|
|||
<xsl:sort select="date:seconds(document(concat('../', .))/item/@date)" data-type="number" order="descending" />
|
||||
|
||||
<xsl:variable name="newsfile"><xsl:value-of select="."/></xsl:variable>
|
||||
<xsl:variable name="itemposition" select="position()"/>
|
||||
|
||||
<xsl:for-each select="document(concat('../', $newsfile))/item">
|
||||
|
||||
|
@ -176,14 +177,14 @@
|
|||
|
||||
<!--- <XXX> Kann das hier in ein Template? -->
|
||||
<xsl:when test="image">
|
||||
<xsl:element name="img">
|
||||
<img>
|
||||
<xsl:attribute name="src"><xsl:value-of select="image"/></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="image/@title"/></xsl:attribute>
|
||||
<xsl:attribute name="alt"><xsl:value-of select="image/@title"/></xsl:attribute>
|
||||
<!-- News-Items haben ihre Bilder abwechselnd rechts und links... -->
|
||||
<xsl:attribute name="class">
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2 = 1">
|
||||
<xsl:when test="$itemposition mod 2 = 0">
|
||||
<xsl:text>left</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@ -191,7 +192,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</img>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- TODO:
|
||||
|
|
Loading…
Reference in New Issue