Archived
4
2

Update episode template to match current HPR layout and content

This commit is contained in:
Roan Horning 2022-09-02 18:23:50 -04:00
parent 67a8a2bfa4
commit f7216132a4
Signed by: rho_n
GPG Key ID: 234AEF20B72D5769
2 changed files with 27 additions and 4 deletions

View File

@ -40,6 +40,8 @@
episode_maxmin.latest, episode_maxmin.earliest, episode_maxmin.latest, episode_maxmin.earliest,
episode_previous.previous, episode_next.next, episode_previous.previous, episode_next.next,
hosts.hostid, hosts.host, hosts.hostid, hosts.host,
miniseries.name AS \'series\', miniseries.id AS \'seriesid\',
miniseries.description AS \'series_description\',
COALESCE (comment_tallies.eps_tally, 0) AS eps_tally COALESCE (comment_tallies.eps_tally, 0) AS eps_tally
FROM eps FROM eps
INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN hosts ON eps.hostid = hosts.hostid
@ -66,9 +68,27 @@ Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pa
<!--% display_tags(episode.tags) %--> <br> <!--% display_tags(episode.tags) %--> <br>
<!--% display_listen_in(episode.id) %--> | <!--% display_listen_in(episode.id) %--> |
<!--% display_comments_tally(episode.id, episode.eps_tally) %--> <!--% display_comments_tally(episode.id, episode.eps_tally) %-->
</p>
<h3><!--% show_series(episode.series, episode.seriesid, "Part of the series") %--></h3>
<p><em><!--% episode.series_description %--></em></p>
</header> </header>
<div><!--% episode.notes %--></div> <div><!--% episode.notes %--></div>
</article> <footer>
<h2>Listen Now</h2>
<p>Duration: <!--% display_episode_duration(episode.duration) %--></p>
<audio controls preload="none">
<source src="<!--% absolute_path(baseurl) %-->local/hpr<!--% episode.id %-->.ogg" type="audio/ogg" >
<source src="<!--% absolute_path(baseurl) %-->local/hpr<!--% episode.id %-->.mp3" type="audio/mpeg" >
</audio>
<ul>
<li>ogg: <a href="<!--% absolute_path(baseurl) %-->local/hpr<!--% episode.id %-->.ogg">https://www.hackerpublicradio.org/local/hpr<!--% episode.id %-->.ogg</a></li>
<li>spx: <a href="<!--% absolute_path(baseurl) %-->local/hpr<!--% episode.id %-->.spx">https://www.hackerpublicradio.org/local/hpr<!--% episode.id %-->.spx</a></li>
<li>mp3: <a href="<!--% absolute_path(baseurl) %-->local/hpr<!--% episode.id %-->.mp3">https://www.hackerpublicradio.org/local/hpr<!--% episode.id %-->.mp3</a></li>
</ul>
<p>
<!--% episode_navigation %-->
</p>
</footer></article>
<!--% END %--> <!--% END %-->
<hr /> <hr />
<h1>Comments</h1> <h1>Comments</h1>
@ -94,9 +114,6 @@ Subscribe to the comments <a href="https://www.hackerpublicradio.org/comments_rs
<!--% comment_index = comment_index + 1 %--> <!--% comment_index = comment_index + 1 %-->
<!--% END %--> <!--% END %-->
<p>
<!--% episode_navigation %-->
</p>
<h2>Leave Comment</h2> <h2>Leave Comment</h2>
<p> <p>
<strong>Note to Verbose Commenters</strong><br /> <strong>Note to Verbose Commenters</strong><br />

View File

@ -1,5 +1,11 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% MACRO show_series(series, series_id, label) IF series != "" %-->
<!--% IF label == "" %-->
<!--% label = "Series" %-->
<!--% END %-->
<label><!--% label %-->:</label> <a href="<!--% absolute_path(baseurl) %-->series/<!--% zero_pad_left(series_id) %-->.html"><!--% series %--></a>.
<!--% END %-->
<!--% MACRO display_tags(tags) BLOCK %--> <!--% MACRO display_tags(tags) BLOCK %-->
<span><label>Tags:</label> <em><!--% tags %--></em>.</span> <span><label>Tags:</label> <em><!--% tags %--></em>.</span>