Skip to content

Instantly share code, notes, and snippets.

@eazyliving
Created September 9, 2015 09:48
Show Gist options
  • Save eazyliving/5b6e6cb976ff9bd24e79 to your computer and use it in GitHub Desktop.
Save eazyliving/5b6e6cb976ff9bd24e79 to your computer and use it in GitHub Desktop.
Diesen Snippet am Fuß der Seite nach allem Inhalt einfügen.
<!--podlove-sub-button-->
<script type="text/javascript">
window.podcastData = {
"title": {{json_encode(@feedattr.title) | raw}},
"subtitle": {{json_encode(@feedattr.description) | raw}},
"description": {{json_encode(@feedattr.summary) | raw}},
"cover": "{{@feedattr.image}}",
"feeds": [
<repeat group="@feedattr.audioformats" value="{{@format}}">
{
"type":"{{explode('/',@mimetypes[@format])[0]}}",
"format": "{{@format}}",
"url": "{{@feedattr.baserel}}{{@format}}{{@extxml}}",
},
</repeat>
]
}
</script>
<script class="podlove-subscribe-button" src="https://cdn.podlove.org/subscribe-button/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-colors="{{@templatevars.color}};{{@templatevars.dark}};{{@templatevars.color}};;;;#fff;{{@templatevars.color}};; " data-buttonid="{{@feedattr.slug}}" data-hide="true"></script>
<!--//podlove-sub-button-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment