forked from HPR/hpr_generator
		
	Add MACRO show_summary
Shared macro that generates standardized summary information about an episode.
This commit is contained in:
		| @@ -19,8 +19,7 @@ | ||||
|     </p> | ||||
|   </article> | ||||
|   <hr> | ||||
| <!--% MACRO show_series(series)  IF series != "" %--><label>Series:</label> <a href="series.php?id=11"><!--% series %--></a>. | ||||
| <!--% END %--> | ||||
|   <!--% PROCESS 'shared-episode-summary.tpl.html' %--> | ||||
| <h1>latest shows</h1> | ||||
| <!--% USE DBI(constants.driver, constants.user, constants.password) %--> | ||||
| <!--% FOREACH latest_episodes IN DBI.query(' | ||||
| @@ -82,12 +81,7 @@ ORDER BY date DESC	') | ||||
|     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"><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> | ||||
| 	<!--% show_summary(last_5_weeks_episodes) %--> | ||||
| <!--% END %--> | ||||
| </article> | ||||
| <h1>Older Shows</h1> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user