forked from HPR/hpr_generator
		
	Refactor templates to use listen_now MACRO
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| <!--% PROCESS 'shared-avatar.tpl.html' %--> | ||||
| <!--% PROCESS 'shared-utils.tpl.html' %--> | ||||
| <!--% PROCESS 'shared-listen-now.tpl.html' %--> | ||||
| <hr> | ||||
|   <article> | ||||
|     <header> | ||||
| @@ -83,17 +84,7 @@ | ||||
| 	</header> | ||||
| 		<!--% latest_episodes.notes %--> | ||||
| 	<footer> | ||||
| 		<h2>listen now</h2> | ||||
| 		<p>Duration: <!--% display_episode_duration(latest_episodes.duration) %--></p> | ||||
| 		<audio controls preload="none"> | ||||
| 			<source src="local/hpr<!--% latest_episodes.id %-->.ogg" type="audio/ogg" > | ||||
| 			<source src="local/hpr<!--% latest_episodes.id %-->.mp3" type="audio/mpeg" > | ||||
| 		</audio> | ||||
| 			<ul> | ||||
| 				<li>ogg: <a href="local/hpr<!--% latest_episodes.id %-->.ogg">/local/hpr<!--% latest_episodes.id %-->.ogg</a></li> | ||||
| 				<li>spx: <a href="local/hpr<!--% latest_episodes.id %-->.spx">/local/hpr<!--% latest_episodes.id %-->.spx</a></li> | ||||
| 				<li>mp3: <a href="local/hpr<!--% latest_episodes.id %-->.mp3">/local/hpr<!--% latest_episodes.id %-->.mp3</a></li> | ||||
| 			</ul> | ||||
| 		<!--% listen_now(latest_episodes, "hpr", baseurl, media_hostname) %--> | ||||
| 	</footer> | ||||
| </article> | ||||
| <!--% END %--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user