For comments in an episode page, use the html_line_break filter
instead of the html_para filter. The html_line_break filter is
used in the comment viewer page.
Replace white-space in ID attributes with the underscore
character. Fix generation of tags that start with the letter
k. The tag, keys, caused issues when used as a hash key.
site-generator: Changed the routine used to generate entities in
'HTML::Entities'; see filter function 'xml_entity'
site.cfg: Added root variable 'http_baseurl' which defines the base URL
using 'http'
templates/rss.tpl.xml: RSS template defining the channel and inserting
the 'item' definitions; adjusted to be in step with the PHP version.
templates/shared-item.tpl.xml: RSS template used for each 'item' in an
RSS feed; contains a call to 'HTML::Strip' which turns off the
addition of spaces when removing tags; adjusted to be in step with
the PHP version.
templates/shared-utils.tpl.html: Macro collection used by other
templates; addition of temporay macro 'display_explicit_feed_2'
which generates 'Yes/No' strings to be in step with the PHP version.
templates/queries-correspondent-mysql.tpl.html,
templates/queries-correspondent-sqlite.tpl.html,
templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: All SQL queries used a CASE
expression to return either 'Explicit' or 'Clean' depending on the
0/1 setting of the 'explicit' column. However, the TT² templates
using these queries were written to expect the numeric form. All the
'CASE' expressions have been replaced by the field name and now the
correct flag is being displayed.
templates/queries-correspondent-mysql.tpl.html,
templates/queries-correspondent-sqlite.tpl.html: enhanced the queries to
include the 'profile' field.
templates/content-correspondent.tpl.html: the 'profile' string from
whichever of the above two queries is invoked is displayed after the
(obscured) 'email' address
templates/content-index.tpl.html: the `TT²` algorithm can be simplified
because the new query returns less. We get the date of the show
before the free slot, and can increment it differently depending on
whether the previous show is on a Friday or not - catering for
weekends in other words!
templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: using a 'find unused index
numbers' query available in many places on the Internet, but
modified to return the id number and date for the show *before* the
next free slot.