Browse Source

add subscribe button to podcast episode pages

master
Max Mehl 4 weeks ago
parent
commit
099c5be7d4
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
3 changed files with 49 additions and 21 deletions
  1. 3
    0
      look/elements/podcast.less
  2. 2
    2
      look/fsfe.less
  3. 44
    19
      news/podcast/default.xsl

+ 3
- 0
look/elements/podcast.less View File

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

+ 2
- 2
look/fsfe.less 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";

+ 44
- 19
news/podcast/default.xsl 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>

Loading…
Cancel
Save