Add MACRO listen_now
This commit is contained in:
parent
c817e3a17a
commit
dbf011395c
19
templates/shared-listen-now.tpl.html
Normal file
19
templates/shared-listen-now.tpl.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<!--% MACRO listen_now(episode, episode_type, baseurl, media_hostname) BLOCK %-->
|
||||||
|
<!--% IF episode_type == "twat" %-->
|
||||||
|
<!--% media_folder = "eps" %--><!--% ELSE %--><!--% media_folder = "local" %-->
|
||||||
|
<!--% END %-->
|
||||||
|
<h2>Listen Now</h2>
|
||||||
|
<p>Duration: <!--% display_episode_duration(episode.duration) %--></p>
|
||||||
|
<audio controls preload="none">
|
||||||
|
<source src="<!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.ogg" type="audio/ogg" >
|
||||||
|
<source src="<!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.mp3" type="audio/mpeg" >
|
||||||
|
</audio>
|
||||||
|
<ul>
|
||||||
|
<!--% IF episode_type != "twat" %-->
|
||||||
|
<li>ogg: <a href="<!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.ogg"><!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.ogg</a></li>
|
||||||
|
<li>spx: <a href="<!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.spx"><!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.spx</a></li>
|
||||||
|
<!--% END %-->
|
||||||
|
<li>mp3: <a href="<!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.mp3"><!--% media_baseurl(baseurl, media_hostname) %--><!--% media_folder %-->/<!--% episode_type %--><!--% episode.id %-->.mp3</a></li>
|
||||||
|
</ul>
|
||||||
|
<!--% END %-->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user