Bilder in News jetzt außerhalb von <p/> und xhtml.xsl entscheidet, ob rechts oder links ausgerichtet. Zusätzlich ein bisschen Whitespace korrigiert.

git-svn-id: svn://svn.c3d2.de/c3d2-web/branches/toidinamais_coole_scheisse@89 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
toidinamai 2006-01-03 13:10:40 +00:00
parent 39c8dfe9fb
commit ec500f70b4
9 changed files with 62 additions and 22 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="22C3: Private Investigation is around the corner" date="2005-11-05T23:05:50" author="Fnordic walker" category="Allgemein">
<image title="22C3">http://www.c3d2.de/typo3temp/pics/8de5efab18.png</image>
<p>
<image class="left" title="22C3">http://www.c3d2.de/typo3temp/pics/8de5efab18.png</image>
Der jährlich ausgetragene Chaos Communication Congress beginnt seine Magie auszustreuen. Pflicht!
</p>
</item>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="C3D2-Web ist für Matthias einfach genug" date="2005-12-20T23:05:50" author="BSD-Crew" category="Allgemein">
<image title="NetBSD rulez! But FreeBSD is simply better!!!111oneoneoneeleventhousandeleven">http://matthias.bsd-crew.de/pix/1.jpg</image>
<p>
<image class="right" title="NetBSD rulez! But FreeBSD is simply better!!!111oneoneoneeleventhousandeleven">http://matthias.bsd-crew.de/pix/1.jpg</image>
Die <link href="http://wiki.bsd-crew.de/index.php/BSD-Crew-Weihnachtsaktion">BSD-Crew Weihnachtsaktion</link> ist beendet. Entscheidet mit, wer der Sieger ist!
</p>
</item>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="Datenspuren Audio-Tracks 05" date="2005-05-30T23:05:50" author="Fnordic walker" category="Allgemein">
<image title="Bild einer Datenspur">http://www.c3d2.de/typo3temp/pics/294776b4ed.gif</image>
<p>
<image class="right" title="Bild einer Datenspur">http://www.c3d2.de/typo3temp/pics/294776b4ed.gif</image>
Alle <link href="http://datenspuren.dresden.ccc.de/">Datenspuren</link> Audio-Mitschnitte endlich zum Download. Per ftp über <link>ftp://ftp.skyhub.de/datenspuren/2005/</link>.
</p>
</item>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="Datenspuren 2006" date="2005-11-13T23:05:50" author="c3d2 himself!!!" category="Allgemein">
<image title="Eine Datenspur">http://www.c3d2.de/typo3temp/pics/6def158186.gif</image>
<p>
<image class="right" title="Eine Datenspur">http://www.c3d2.de/typo3temp/pics/6def158186.gif</image>
Die Dinge sind nicht besser geworden. Spionierende Mautbrücken, E-Pass, Vorratsdatenspeicherung, ... Grund für den C3D2 wieder zum Symposium <link href="http://datenspuren.c3d2.de/">Datenspuren</link> einzuladen. Datum: 13.-14.05.2006. Cfp kommt bald.
</p>
</item>

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<item title="TA: Hacktivismus" date="2005-07-30T23:05:50" author="Fnordic walker" category="Themenabend">
<p>
<p>
Wegen des großen Erfolges des Vortrags Hacktivismus im <link href="https://berlin05.ccc.de/blog/">Camp Discordia</link> auf der Berlin05 gibt es diesen am 4. Juli ab 20 Uhr im <link href="http://www.azconni.de/">AZ Conni</link> nochmal, noch besser und mit Euch!
</p>
</item>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="Linux-Info-Tag" date="2005-10-07T00:05:50" nicedate="Donnerstag, 6. Oktober" author="Fnordic walker" category="Allgemein">
<image title="Dicker Pinguin">http://www.c3d2.de/uploads/pics/tux_01.png</image>
<p>
<image class="right" title="Dicker Pinguin">http://www.c3d2.de/uploads/pics/tux_01.png</image>
Am 29. Oktober findet der diesjährige Linux-Info-Tag in Dresden statt. Der c3d2 ist mit einem Stand, Vorträgen und Workshops dabei. CU.
</p>
</item>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<item title="Mailingliste" date="2005-08-24T00:05:50" author="Fnordic walker" category="Allgemein">
<image title="Delivered by mailman">http://www.c3d2.de/typo3temp/pics/9cc3346202.jpg</image>
<p>
<image class="left" title="Delivered by mailman">http://www.c3d2.de/typo3temp/pics/9cc3346202.jpg</image>
Achtung! die Mailinglistenadresse hat sich gerade geändert. Bitte nutzt <link href="mailto:c3d2@mail.skyhub.de">c3d2@mail.skyhub.de</link>.
Archive sind auch noch da. Siehe <link href="https://mail.skyhub.de/mailman/listinfo/c3d2">Listeninfo</link>.
</p>

View File

@ -1,10 +1,10 @@
<?xml version="1.0"?>
<item title="Silc.dresden.ccc.de" date="2005-04-13T05:23:05" author="Fnordic walker" category="Allgemein">
<image title="Secure Internet Live Conferencing">http://www.c3d2.de/typo3temp/pics/aa268d9e62.gif</image>
<pre>/connect silc.dresden.ccc.de
nnect -6 silc.dresden.ccc.de
in c3d2</pre>
<p>
<image class="right" title="Secure Internet Live Conferencing">http://www.c3d2.de/typo3temp/pics/aa268d9e62.gif</image>
Dunno what <link href="http://www.silcnet.net/">silc</link> is? Go <link href="http://de.wikipedia.org/wiki/SILC">here</link>.
</p>
</item>

View File

@ -5,7 +5,7 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xsl rss rdf">
<xsl:include href="date.xsl" />
<xsl:include href="header.xsl" />
<xsl:include href="footer.xsl" />
@ -64,7 +64,7 @@
</xsl:for-each>
</ul>
</div> <!-- id="navigation" -->
<!-- ### Content ### -->
<xsl:comment>
<xsl:text> ### Content ### </xsl:text>
@ -75,8 +75,14 @@
<xsl:when test="/page/@pagetitle">
<xsl:value-of select="/page/@pagetitle"/>
</xsl:when>
<xsl:otherwise>
<xsl:when test="/page/@title">
<xsl:value-of select="/page/@title"/>
</xsl:when>
<xsl:when test="/page/news">
<xsl:text>News</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:comment><xsl:text> missing title </xsl:text></xsl:comment>
</xsl:otherwise>
</xsl:choose>
</h2>
@ -109,7 +115,7 @@
</xsl:for-each>
</ul>
</div>
</div> <!-- id="body" -->
<!-- ### Footer ### -->
@ -135,26 +141,57 @@
<xsl:sort select="date:seconds(@date)" data-type="number" order="descending" />
<h3 class="news"><xsl:value-of select="@title"/></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>
<div class="news">
<xsl:choose>
<!--- <XXX> Kann das hier in ein Template? -->
<xsl:when test="image">
<xsl:element name="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:text>left</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>right</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<!-- TODO:
<xsl:call-template name="getimage">
<xsl:with-param name="category" select="@category" />
</xsl:call-template>
-->
</xsl:otherwise>
</xsl:choose>
<!-- </XXX> -->
<xsl:apply-templates/>
</div>
<hr class="news"/>
</xsl:for-each>
@ -167,7 +204,7 @@
<xsl:template match="p">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="dl">
<dl><xsl:apply-templates/></dl>
</xsl:template>
@ -175,7 +212,7 @@
<xsl:template match="dh">
<dt class="main"><xsl:apply-templates/></dt>
</xsl:template>
<xsl:template match="dt">
<dt><xsl:apply-templates/></dt>
</xsl:template>
@ -184,7 +221,10 @@
<dd><xsl:apply-templates/></dd>
</xsl:template>
<xsl:template match="item/image">
<!-- Nothing to do here, see above... -->
</xsl:template>
<xsl:template match="image">
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
@ -211,7 +251,7 @@
<xsl:template match="em">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template name="navitem">
<xsl:param name="file"/>
<li>
@ -224,5 +264,5 @@
</xsl:element>
</li>
</xsl:template>
</xsl:stylesheet>