<!--% PROCESS 'shared-episode-summary.tpl.html' %-->
<!--% PROCESS 'shared-avatar.tpl.html' %-->
<!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% PROCESS "queries-correspondent.tpl.html" %-->
<!--% USE DBI(constants.driver) %-->
<!--% results_hpr_shows = DBI.prepare(query_hpr_shows) %-->
	<!--% results_hpr_show_count = DBI.prepare(query_hpr_show_count) %-->
	<!--% hpr_result_status = results_hpr_show_count.execute(id); %-->
	<!--% hpr_shows = results_hpr_shows.execute(id); %-->
	<!--% hpr_show_count = results_hpr_show_count.fetchrow_array %-->

	<!--% results_hpr_shows = DBI.prepare(query_twt_shows) %-->
	<!--% results_twt_show_count = DBI.prepare(query_twt_show_count) %-->
	<!--% twt_result_status = results_twt_show_count.execute(id); %-->
	<!--% twt_shows = results_hpr_shows.execute(id); %-->
	<!--% twt_show_count = results_twt_show_count.fetchrow_array %-->

			<!--% hosts = DBI.tie('hosts', 'hostid') %-->

			<!--% this_host = hosts.$id %-->
			<!--% page_title = "HPR ~ Host: " _ this_host.host %-->
			<h2 class="title">Correspondent</h2>
			<div id="host" class="lane">
				<div id="host_id">
					<h2><!--% this_host.host %--></h2>
					<p><!--% get_avatar(this_host.hostid, this_host.host) %--><br>
					<label>Host ID</label>: <!--% this_host.hostid %--></p>
				</div>
				<div id="host_meta">
					<p><label>email:</label> <u><!--% this_host.email %--></u></p>
					<div><label>profile:</label> <!--% this_host.profile %--></div>
					<p><label>episodes:</label> <strong><!--% hpr_show_count + twt_show_count %--></strong></p>
					<p><a href="<!--% absolute_url(baseurl,'//correspondents') %-->/<!--% zero_pad_left(this_host.hostid) %-->/playlist.m3u8">Download the M3U playlist</a>.</p>
				</div>
			</div>
			<div id="episodes" class="lane stack">
				<!--% FOREACH hpr_show IN hpr_shows; %-->
				<article>
					<!--% show_summary(hpr_show, 'hide_host') %-->
					<p class="listen-in"><!--% display_listen_in(hpr_show.id) %--></p>
				</article>
				<!--% END %-->
				<!--% FOREACH twt_show IN twt_shows; %-->
				<article>

					<!--% twt_show_summary(twt_show, 'hide_host') %-->
					<p class="listen-in"><!--% display_listen_in(twt_show.id,"twt") %--></p>
				</article>
				<!--% END %-->
			</div>
			<p><a href="<!--% absolute_url(baseurl) %-->../about.html#so_you_want_to_record_a_podcast">Become a Correspondent</a></p>
