site-generator:
    Cosmetic adjustments. Additions to the POD documentation.
    Additions to module list.
    Additions to work better with UTF-8.
    Addition of functions 'parse_csv' and 'xml_entity'
templates/queries-episodes-sqlite.tpl.html:
templates/shared-utils.tpl.html:
    Cosmetic changes
templates/rss-query-hpr-mysql.tpl.xml:
templates/rss-query-hpr-sqlite.tpl.xml:
templates/rss-query-hpr_total-mysql.tpl.xml:
templates/rss-query-hpr_total-sqlite.tpl.xml:
    Enhancements to allow the query to collect the audio length from the
    'assets' table. The audio file extension is passed as an argument to
    the 'execute' statement.
templates/rss.tpl.xml:
    Cosmetic changes
    Changed one 'php' URL to 'html'.
templates/shared-episode-summary.tpl.html:
    Change to 'display_tags' macro to turn the 'eps.tags' field into
    a list of links. This works, but needs further development because
    using the tag strings as anchor ids is not reliable.
templates/shared-item.tpl.xml:
    Cosmetic changes.
    Addition of filter 'HTML.strip' which is used as a means of removing
    HTML tags from '<itunes:summary>' strings.
    Using new filter 'xml_entity' which converts all non-ASCII
    characters in the notes to numeric hexadecimal entities for
    '<itunes:summary>'.
    The '<enclosure>' tag now uses 'episode.length' rather than
    'episode.duration' which has been extracted from the 'assets' table.
		
	
		
			
				
	
	
		
			68 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!--% PROCESS 'shared-utils.tpl.html' %-->
 | |
| 
 | |
| <!--% MACRO rss_show_series(series, series_id)  IF series != "general" %-->
 | |
| from the series <em><a href="<!--% baseurl %-->series/<!--% zero_pad_left(series_id) %-->.html"><!--% series %--></em></a>.
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% 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 %-->
 | |
|     <span><label>Tags:</label> <em>
 | |
|         <!--% FOREACH tag IN tags.csv_parse %-->
 | |
|         <a href="<!--% absolute_path(baseurl) %-->tags.html#<!--% tag.lower %-->"><!--% tag %--></a><!--% IF loop.count == loop.size %-->.<!--% ELSE %-->,<!--% END %-->
 | |
|         <!--% END %--></em>
 | |
|     </span>
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% MACRO display_listen_in(eps_id, episode_type) BLOCK %-->
 | |
| <!--% IF episode_type == "" %--><!--% episode_type = 'hpr' %--><!--% END %-->
 | |
|  Listen in 
 | |
| <!--% IF episode_type == 'hpr' %-->
 | |
| <a href="<!--% media_path(eps_id, episode_type, 'ogg', baseurl, media_baseurl) %-->" aria-label="Download <!--% episode_type %--><!--% zero_pad_left(eps_id) %--> as">ogg</a>,
 | |
| <a href="<!--% media_path(eps_id, episode_type, 'spx', baseurl, media_baseurl) %-->" aria-label="Download <!--% episode_type %--><!--% zero_pad_left(eps_id) %--> as">spx</a>,
 | |
| or 
 | |
| <!--% END %-->
 | |
| <a href="<!--% media_path(eps_id, episode_type, 'mp3', baseurl, media_baseurl) %-->" aria-label="Download <!--% episode_type %--><!--% zero_pad_left(eps_id) %--> as">mp3</a> format.
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% MACRO display_comments_tally(eps_id, tally) BLOCK %-->
 | |
| <a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(eps_id) %-->/index.html#comments" aria-label="Comments for hpr<!--% zero_pad_left(eps_id) %-->"><!--% IF tally > 0 %--><!--% tally %--><!--% ELSE %-->(Be the first)<!--% END %--></a>.
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% MACRO show_meta(show, hide_tags) BLOCK %-->
 | |
| 	<span><label>Released:</label> <!--% show.date %-->.</span> 
 | |
| 	<span><label>Duration:</label> <!--% display_episode_duration(show.duration) %-->.</span> 
 | |
| 	<span><label>Flag:</label> <!--% display_explicit(show.explicit) %-->.</span> 
 | |
| 	<span><!--% show_series(show.series, show.seriesid) %--></span>  <br>
 | |
| 	<!--% IF hide_tags == "" %--><!--% display_tags(show.tags) %--><!--% END %-->
 | |
| 	<!--% IF show.comentsTally || show.commentsTally == 0 %-->
 | |
| 	<span><label>Comments:</label> <!--% display_comments_tally(show.id, show.commentsTally) %--></span>
 | |
| 	<!--% END %-->
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% MACRO show_summary(show, hide_host) BLOCK %-->
 | |
| 
 | |
| 	<h3 class="title"><a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(show.id) %-->/index.html">hpr<!--% show.id %--> :: <!--% show.title %--></a> <!--% IF hide_host == "" %--> 
 | |
| 		hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(show.hostid) %-->.html"><!--% show.host %--></a>
 | |
| 	<!--% END %-->
 | |
| 	</h3>
 | |
| 	<p class="meta"><!--% show_meta(show) %--></p>
 | |
| 	<p class="summary"><!--% show.summary %--></p>
 | |
| <!--% END %-->
 | |
| 
 | |
| <!--% MACRO twat_show_summary(show, hide_host) BLOCK %-->
 | |
| 
 | |
| 	<h3 class="title"><a href="<!--% absolute_path(baseurl) %-->eps/twat<!--% zero_pad_left(show.id) %-->/index.html">twat<!--% show.id %--> :: <!--% show.title %--></a> <!--% IF hide_host == "" %--> 
 | |
| 		hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(show.hostid) %-->.html"><!--% show.host %--></a>
 | |
| 	<!--% END %-->
 | |
| 	</h3>
 | |
| 	<p class="meta"><!--% show_meta(show) %--></p>
 | |
| 	<p class="summary"><!--% show.summary %--></p>
 | |
| <!--% END %-->
 | |
| 
 |