add subscribe button to podcast episode pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Max Mehl 2019-10-17 12:48:21 +02:00
parent ee726f3b4d
commit 099c5be7d4
Signed by: max.mehl
GPG Key ID: 2704E4AB371E2E92
3 changed files with 49 additions and 21 deletions

View File

@ -0,0 +1,3 @@
.podcast-interact {
padding: 5px 0 10px 0;
}

View File

@ -1,9 +1,11 @@
@import "variables";
@import "style";
@import "elements/figure";
@import "elements/podcast";
@import "elements/sharebuttons";
@import "elements/toc";
@import "pages/interview";
@import "pages/spreadtheword";
/* fsfe.org pages */
@ -864,5 +866,3 @@ video#freeyourandroid {
.m-3 {
margin: @spacing-3 !important;
}
@import "pages/spreadtheword";

View File

@ -30,28 +30,53 @@
<xsl:text>Your browser dows not support the audio element.</xsl:text>
</xsl:element>
<!-- Download -->
<xsl:element name="p">
<xsl:element name="em">
<xsl:call-template name="gettext">
<xsl:with-param name="id" select="'download'" />
</xsl:call-template>
<!-- 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>
<xsl:text>: </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="/buildinfo/document/podcast/opus/url" />
</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:attribute>
MP3
<!-- 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: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:attribute>
MP3
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>