1
0
forked from HPR/hpr_generator

Display series if associated with episode

This commit is contained in:
2022-07-20 23:09:03 -04:00
parent c1ac9f69a0
commit 4e56289338
2 changed files with 268 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
</p>
</article>
<hr>
<!--% MACRO show_series(series) IF series != "" %--><label>Series:</label> <a href="series.php?id=11"><!--% series %--></a>.
<!--% END %-->
<h1>latest shows</h1>
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
<!--% FOREACH latest_episodes IN DBI.query('
@@ -41,8 +43,8 @@ ORDER BY date DESC ')
<h3><!--% latest_episodes.summary%--></h3>
<p class="meta"$><img src="./images/hosts/<!--% latest_episodes.avatar %-->.png" height="80" width="80" alt="" /></a><br>Hosted by <a href="correspondents/host<!--% latest_episodes.host_id %-->.html"><!--% latest_episodes.host %--></a> on <!--% latest_episodes.date %--> is flagged as <!--% latest_episodes.explicit %--> and released under a <!--% latest_episodes.license %--> license. <br>
<strong>Tags:</strong> <!--% latest_episodes.tags %--><em></em>.<br>
<small>listen in <a href="local/hpr<!--% latest_episodes.id %-->.ogg">ogg</a>, <a href="local/hpr<!--% latest_episodes.id %-->.spx">spx</a>, or <a href="local/hpr<!--% latest_episodes.id %-->.mp3">mp3</a> format.
<a href="eps.php?id=3628#comments">comments (0)</a></small>
<small>listen in <a href="local/hpr<!--% latest_episodes.id %-->.ogg">ogg</a>, <a href="local/hpr<!--% latest_episodes.id %-->.spx">spx</a>, or <a href="local/hpr<!--% latest_episodes.id %-->.mp3">mp3</a> format. <!--% show_series(latest_episodes.series) %-->
<a href="eps.php?id=3628#comments">comments (0)</a></small>
</p>
</header>
<!--% latest_episodes.notes %-->
@@ -81,8 +83,8 @@ ORDER BY date DESC ')
%-->
<h3 class="title"><a href="episodes/hpr<!--% last_5_weeks_episodes.id %-->.html">hpr<!--% last_5_weeks_episodes.id %--> :: <!--% last_5_weeks_episodes.title %--></a> hosted by <a href="correspondents/host<!--% last_5_weeks_episodes.id %-->.html"><!--% last_5_weeks_episodes.host %--></a>
</h3>
<p class="meta"><strong>Released:</strong> <!--% last_5_weeks_episodes.date %-->. <strong>Duration:</strong> <!--% last_5_weeks_episodes.duration %-->. <strong>Flag:</strong> <!--% last_5_weeks_episodes.explicit %-->. <strong>Series:</strong> <a href="series.php?id=11"><!--% last_5_weeks_episodes.series %--></a>. <br>
<strong>Tags:</strong> <em><!--% last_5_weeks_episodes.tags %--></em>.<br>
<p class="meta"><span><label>Released:</label> <!--% last_5_weeks_episodes.date %-->.</span> <span><label>Duration:</label> <!--% last_5_weeks_episodes.duration %-->.</span> <span><label>Flag:</label> <!--% last_5_weeks_episodes.explicit %-->.</span> <span><!--% show_series(last_5_weeks_episodes.series) %--></span> <br>
<span><label>Tags:</label> <em><!--% last_5_weeks_episodes.tags %--></em>.</span><br>
<!--% last_5_weeks_episodes.summary %-->
</p>
<!--% END %-->