fix style
This commit is contained in:
parent
485b482893
commit
c138e85568
|
@ -0,0 +1,45 @@
|
|||
rss {
|
||||
display: block;
|
||||
font-family: verdana, arial;
|
||||
}
|
||||
channel {
|
||||
display: inline-grid;
|
||||
}
|
||||
channel title {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
padding: 2px;
|
||||
color: gray;
|
||||
border-bottom: 1px solid silver;
|
||||
font-size: 2em;
|
||||
}
|
||||
channel > link {
|
||||
display: block;
|
||||
font-size: small;
|
||||
color: blue;
|
||||
padding-left: 10px;
|
||||
}
|
||||
channel item {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
margin-top: 1em;
|
||||
}
|
||||
pubDate::before {
|
||||
content:"Veröffentlicht: ";
|
||||
}
|
||||
managingEditor::before{
|
||||
content:"E-Mail: ";
|
||||
}
|
||||
lastBuildDate::before{
|
||||
content:"Letzte Aktualisierung: ";
|
||||
}
|
||||
enclosure::before {
|
||||
display: block;
|
||||
content: attr(url);
|
||||
font-size: small;
|
||||
color: blue;
|
||||
}
|
||||
/* all hidden elements */
|
||||
item > link, item > description, channel image, image title, language, ttl, guid, category {
|
||||
display: none;
|
||||
}
|
305
xsl/podcast.xsl
305
xsl/podcast.xsl
|
@ -6,11 +6,11 @@
|
|||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
|
||||
xmlns:itunes="https://www.itunes.com/dtds/podcast-1.0.dtd"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:date="http://exslt.org/dates-and-times"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:content="https://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:atom="https://www.w3.org/2005/Atom"
|
||||
xmlns:podcast="https://podcastindex.org/namespace/1.0"
|
||||
exclude-result-prefixes="xsl date">
|
||||
|
||||
|
@ -21,122 +21,209 @@
|
|||
|
||||
<xsl:include href="common.xsl" />
|
||||
|
||||
<xsl:variable name="baseurl">http://www.c3d2.de/</xsl:variable>
|
||||
<xsl:variable name="baseurl">https://www.c3d2.de/</xsl:variable>
|
||||
<xsl:param name="selection" select="''"/>
|
||||
<xsl:param name="format"/>
|
||||
<xsl:param name="archivefeed"/>
|
||||
|
||||
<!--xsl:text disable-output-escaping="yes"><?xml-stylesheet type="text/css" href="https://c3d2.de/style/rss.css"?></xsl:text-->
|
||||
|
||||
<xsl:template match="news">
|
||||
<xsl:text disable-output-escaping="yes"><?xml-stylesheet type="text/css" href="https://c3d2.de/style/rss.css"?></xsl:text>
|
||||
<rss version="2.0">
|
||||
|
||||
<channel>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
<title>Penta*</title>
|
||||
<link><xsl:value-of select="$baseurl"/></link>
|
||||
<description>Pentaradio, Pentacast, Pentamusic</description>
|
||||
<language>de</language>
|
||||
<copyright>https://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<image>
|
||||
<title>Pentaradio</title>
|
||||
<url><xsl:value-of select="$baseurl"/>images/pentaradio-artwork.png</url>
|
||||
<link><xsl:value-of select="$baseurl"/>radio.html</link>
|
||||
</image>
|
||||
|
||||
<itunes:subtitle>Die drei Podcasts vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Enthält Podcasts von Pentaradio, Pentacast und Pentamusic
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/pentaradio-artwork.png" />
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<itunes:category text="Technology">
|
||||
<itunes:category text="Tech News"/>
|
||||
</itunes:category>
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
<title>Pentaradio</title>
|
||||
<link><xsl:value-of select="$baseurl"/>radio.html</link>
|
||||
<description>C3D2 Pentaradio</description>
|
||||
<language>de</language>
|
||||
<copyright>http://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<xsl:variable name="podtitle">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
Penta*
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
Pentaradio
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
Pentacast
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
Pentamusic
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
C3D2 Podcast
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="podurl">
|
||||
<xsl:choose>
|
||||
<!--
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
<xsl:value-of select="$baseurl"/>
|
||||
</xsl:when>
|
||||
-->
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
<xsl:value-of select="$baseurl"/>radio.html
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
<xsl:value-of select="$baseurl"/>podcast.html
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
<xsl:value-of select="$baseurl"/>pentamusic.html
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$baseurl"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="poddesc">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
Pentaradio, Pentacast, Pentamusic
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
C3D2 Pentaradio
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
C3D2 Pentacast
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
C3D2 Pentamusic
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
C3D2 Podcast
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="imgtitle">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia' or $selection = 'pentaradio'">
|
||||
Pentaradio
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
Pentacast
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
Pentamusic
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
C3D2
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="imgurl">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia' or $selection = 'pentaradio'">
|
||||
<xsl:value-of select="$baseurl"/>images/pentaradio-artwork.png
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
<xsl:value-of select="$baseurl"/>images/pentacast-artwork.png
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
<xsl:value-of select="$baseurl"/>images/pentamusic-quadratic.png
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$baseurl"/>images/ck.png
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="imglink">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia' or $selection = 'pentaradio'">
|
||||
<xsl:value-of select="$baseurl"/>radio.html
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
<xsl:value-of select="$baseurl"/>podcast.html
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
<xsl:value-of select="$baseurl"/>pentamusic.html
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$baseurl"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="podsubtitle">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
Die drei Podcasts vom CCC Dresden
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
Radio vom CCC Dresden
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
Podcasts vom CCC Dresden
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
Musikvorstellungen vom CCC Dresden
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
Radio & Podcasts vom CCC Dresden
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="podsummary">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia'">
|
||||
Enthält Podcasts von Pentaradio, Pentacast und Pentamusic
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentaradio'">
|
||||
Pentaradio sind die Sendungen des Chaos Computer Club Dresden auf coloRadio, bestehend aus einem informativen Rahmenprogramm und Beiträgen zu einem sendungsspezifischen Thema.
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
Pentacast sind themenspezifische Sendungen des Chaos Computer Club Dresden.
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
Versuch, Künstler, Bands und Labels der CC-Szene vor's Mikro zu holen um diese einer breiteren Öffentlichkeit bekannt zu machen.
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
Pentaradio, Pentacast & Pentamusic vom Chaos Computer Club Dresden.
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="ctech">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$selection = 'pentamedia' or $selection = 'pentaradio'">
|
||||
<itunes:category text="Technology"><itunes:category text="Tech News"/></itunes:category>
|
||||
</xsl:when>
|
||||
<!--
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
<itunes:category text="Technology"/>
|
||||
</xsl:when>
|
||||
-->
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
<itunes:category text="Music"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<itunes:category text="Technology"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<title><xsl:if test="concat('',$podtitle) != ''"><xsl:value-of select="$podtitle"/></xsl:if></title>
|
||||
<link><xsl:value-of select="$podurl"/></link>
|
||||
<description><xsl:value-of select="$poddesc"/></description>
|
||||
<language>de-DE</language>
|
||||
<copyright>https://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<image>
|
||||
<title>Pentaradio</title>
|
||||
<url><xsl:value-of select="$baseurl"/>images/pentaradio-artwork.png</url>
|
||||
<link><xsl:value-of select="$baseurl"/>radio.html</link>
|
||||
<title><xsl:value-of select="$imgtitle"/></title>
|
||||
<url><xsl:value-of select="$imgurl"/></url>
|
||||
<link><xsl:value-of select="$imglink"/></link>
|
||||
</image>
|
||||
<itunes:subtitle>Radio vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Pentaradio sind die Sendungen des Chaos Computer Club Dresden auf coloRadio, bestehend aus einem informativen Rahmenprogramm und Beiträgen zu einem sendungsspezifischen Thema.
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/pentaradio-artwork.png" />
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<itunes:category text="Technology">
|
||||
<itunes:category text="Tech News"/>
|
||||
</itunes:category>
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentacast'">
|
||||
<title>Pentacast</title>
|
||||
<link><xsl:value-of select="$baseurl"/>podcast.html</link>
|
||||
<description>C3D2 Pentacast</description>
|
||||
<language>de</language>
|
||||
<copyright>http://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<image>
|
||||
<title>Pentacast</title>
|
||||
<url><xsl:value-of select="$baseurl"/>images/pentacast-artwork.png</url>
|
||||
<link><xsl:value-of select="$baseurl"/>podcast.html</link>
|
||||
</image>
|
||||
<itunes:subtitle>Podcasts vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Pentacast sind themenspezifische Sendungen des Chaos
|
||||
Computer Club Dresden.
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/pentacast-artwork.png" />
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<itunes:category text="Technology"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$selection = 'pentamusic'">
|
||||
<title>Pentamusic</title>
|
||||
<link><xsl:value-of select="$baseurl"/>pentamusic.html</link>
|
||||
<description>C3D2 Pentamusic</description>
|
||||
<language>de</language>
|
||||
<copyright>http://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<image>
|
||||
<title>Pentamusic</title>
|
||||
<url><xsl:value-of select="$baseurl"/>images/pentamusic-quadratic.png</url>
|
||||
<link><xsl:value-of select="$baseurl"/>pentamusic.html</link>
|
||||
</image>
|
||||
<itunes:subtitle>Musikvorstellungen vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Versuch, Künstler, Bands und Labels der CC-Szene vors
|
||||
Mikro zu holen um diese einer breiteren Öffentlichkeit
|
||||
bekannt zu machen.
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/pentamusic-quadratic.png" />
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<itunes:category text="Music"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<title>C3D2 Podcast</title>
|
||||
<link><xsl:value-of select="$baseurl"/></link>
|
||||
<description>C3D2 Podcast</description>
|
||||
<language>de</language>
|
||||
<copyright>http://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<image>
|
||||
<title>C3D2</title>
|
||||
<url><xsl:value-of select="$baseurl"/>images/ck.png</url>
|
||||
<link><xsl:value-of select="$baseurl"/></link>
|
||||
</image>
|
||||
<itunes:subtitle>Radio & Podcasts vom CCC Dresden</itunes:subtitle>
|
||||
<itunes:summary>
|
||||
Pentaradio, Pentacast & Pentamusic vom Chaos Computer Club Dresden.
|
||||
</itunes:summary>
|
||||
<itunes:image href="{$baseurl}images/ck.png" />
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<itunes:category text="Technology"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<itunes:subtitle><xsl:value-of select="$podsubtitle"/></itunes:subtitle>
|
||||
<itunes:summary><xsl:value-of select="$podsummary"/></itunes:summary>
|
||||
<itunes:image>
|
||||
<xsl:attribute name="href"><xsl:value-of select="$imgurl"/></xsl:attribute>
|
||||
</itunes:image>
|
||||
|
||||
<itunes:category text="Society & Culture"/>
|
||||
<xsl:value-of select="$ctech"/>
|
||||
|
||||
<itunes:author>Chaos Computer Club Dresden</itunes:author>
|
||||
<itunes:owner>
|
||||
<itunes:name>C3D2</itunes:name>
|
||||
|
@ -279,7 +366,7 @@
|
|||
<xsl:with-param name="resource_size" select="@size"/>
|
||||
<xsl:with-param name="resource_type" select="@type"/>
|
||||
<xsl:with-param name="chapters" select="sc:chapters"
|
||||
xmlns:sc="http://podlove.de/simple-chapters"/>
|
||||
xmlns:sc="https://podlove.de/simple-chapters"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -346,7 +433,7 @@
|
|||
<!--podcast:episode display="Ch.3">204</podcast:episode-->
|
||||
<!--podcast:chapters url="https://example.com/episode1/chapters.json" type="application/json+chapters" /-->
|
||||
<!--podcast:soundbite startTime="73.0" duration="60.0">Song</podcast:soundbite-->
|
||||
<!--podcast:person href="https://example.com/johnsmith/blog" img="http://example.com/images/johnsmith.jpg">John Smith</podcast:person-->
|
||||
<!--podcast:person href="https://example.com/johnsmith/blog" img="https://example.com/images/johnsmith.jpg">John Smith</podcast:person-->
|
||||
<!--podcast:value-->
|
||||
</item>
|
||||
</xsl:template>
|
||||
|
|
Loading…
Reference in New Issue