datenspuren mitschnitte + resource blocks
This commit is contained in:
parent
9fcd1a2e37
commit
ca878e066e
|
@ -271,3 +271,34 @@ dl dd {
|
|||
padding-right: 1em;
|
||||
}
|
||||
|
||||
/* -- Video Resource -- */
|
||||
|
||||
.resource {
|
||||
display: inline-block;
|
||||
margin: auto 2px 0;
|
||||
width: 380px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.resource h4 {
|
||||
font-weight: bold;
|
||||
margin: 1em auto 0;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.resource img {
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
.resource ul {
|
||||
list-style-type: none;
|
||||
font-size: 90%;
|
||||
}
|
||||
.resource li {
|
||||
display: inline-block;
|
||||
margin: 0 0.5em;
|
||||
}
|
||||
.resource li .size {
|
||||
padding-left: 0.5em;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
<xs:element ref="news-list"/>
|
||||
<xs:element ref="form" xmlns="http://www.w3.org/1999/xhtml"/>
|
||||
<xs:element ref="include-pentabarf-schedule"/>
|
||||
<xs:element ref="resource"/>
|
||||
</xs:choice>
|
||||
</xs:group>
|
||||
<xs:complexType name="Block" mixed="true">
|
||||
|
|
|
@ -220,15 +220,12 @@
|
|||
</li>
|
||||
<li>
|
||||
<a href="fahrplan/day_2011-10-16.de.html">Fahrplan/Programm</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://stream.datenspuren.de">Streams</a>
|
||||
</li>
|
||||
<!-- <li>
|
||||
</li>
|
||||
<li>
|
||||
<xsl:call-template name="navigation-link">
|
||||
<xsl:with-param name="page">wikis</xsl:with-param>
|
||||
<xsl:with-param name="page">mitschnitte</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</li>-->
|
||||
</li>
|
||||
</ul>
|
||||
</div></div>
|
||||
</xsl:template>
|
||||
|
@ -305,5 +302,38 @@
|
|||
<!-- Nix Bilder in den Datenspuren-News -->
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="resource">
|
||||
<section class="resource">
|
||||
<h4><xsl:value-of select="@title"/></h4>
|
||||
<xsl:if test="@poster">
|
||||
<img src="{@poster}" title="@title"/>
|
||||
</xsl:if>
|
||||
<ul>
|
||||
<li><xsl:call-template name="link-resource"/></li>
|
||||
<xsl:for-each select="alternative">
|
||||
<li><xsl:call-template name="link-resource"/></li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</section>
|
||||
</xsl:template>
|
||||
<xsl:template name="link-resource">
|
||||
<a href="{@url}">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@type='video/mp4'">MP4</xsl:when>
|
||||
<xsl:when test="@type='video/webm'">WebM</xsl:when>
|
||||
<xsl:when test="@type='video/ogg'">Ogg</xsl:when>
|
||||
<xsl:when test="@type='video/avi'">AVI</xsl:when>
|
||||
<xsl:when test="@type='video/x-flv'">FLV</xsl:when>
|
||||
<xsl:when test="@type='application/x-bittorrent'">BitTorrent</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<span class="size">
|
||||
<xsl:call-template name="format-filesize">
|
||||
<xsl:with-param name="value" select="@size"/>
|
||||
</xsl:call-template>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
Loading…
Reference in New Issue