Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/ https://fsfe.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
fsfe-website/news/podcast/default.xsl

77 lines
3.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" />
<!-- Podcast audio player for both MP3 and OPUS -->
<xsl:template match="audio-player">
<xsl:element name="audio">
<xsl:attribute name="controls" />
<xsl:attribute name="style">width:100%;</xsl:attribute>
<!-- OPUS -->
<xsl:element name="source">
<xsl:attribute name="src">
<xsl:value-of select="/buildinfo/document/podcast/opus/url" /><xsl:text>?ref=player</xsl:text>
</xsl:attribute>
<xsl:attribute name="type">audio/ogg;codecs=opus</xsl:attribute>
</xsl:element>
<!-- MP3 -->
<xsl:element name="source">
<xsl:attribute name="src">
<xsl:value-of select="/buildinfo/document/podcast/mp3/url" /><xsl:text>?ref=player</xsl:text>
</xsl:attribute>
<xsl:attribute name="type">audio/mp3</xsl:attribute>
</xsl:element>
<xsl:text>Your browser dows not support the audio element.</xsl:text>
</xsl:element>
<!-- Subscribe feed / Download file row -->
<xsl:element name="div">
<xsl:attribute name="class">podcast-interact clearfix</xsl:attribute>
<!-- feed -->
<xsl:element name="span">
<xsl:attribute name="class">share-buttons-inline pull-left</xsl:attribute>
<!-- TODO: language-variable links -->
<xsl:element name="a">
<xsl:attribute name="href">feed://fsfe.org/news/podcast-opus.en.rss</xsl:attribute>
<xsl:element name="button">
<xsl:attribute name="class">share-button-sidebar share-podcast</xsl:attribute>
<xsl:text>OPUS Feed</xsl:text>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">feed://fsfe.org/news/podcast.en.rss</xsl:attribute>
<xsl:element name="button">
<xsl:attribute name="class">share-button-sidebar share-podcast</xsl:attribute>
<xsl:text>MP3 Feed</xsl:text>
</xsl:element>
</xsl:element>
</xsl:element>
<!-- download -->
<xsl:element name="span">
<xsl:attribute name="class">pull-right</xsl:attribute>
<xsl:element name="em">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'download'" />
</xsl:call-template>
</xsl:element>
<xsl:text>: </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="/buildinfo/document/podcast/opus/url" /><xsl:text>?ref=download</xsl:text>
</xsl:attribute>
OPUS
</xsl:element>
<xsl:text> | </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="/buildinfo/document/podcast/mp3/url" /><xsl:text>?ref=download</xsl:text>
</xsl:attribute>
MP3
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>