view templates.martin/navbar.html @ 6:3021deef1599

Encoding related fixes * chomp encoding string * reformat else (seems someone hacked it in) * debug print encoding * do not use :utf8 binmode ("re-encode") on written file if the input is _already_ UTF-8
author Peter Gervai <grin@grin.hu>
date Thu, 16 Oct 2008 00:02:14 +0200
parents a84c32f131df
children
line wrap: on
line source

<ul>
<!-- Display the links used to navigate on different views -->
<TMPL_IF NAME="UP_LINK">
<li onClick="location.href='<TMPL_VAR NAME="UP_LINK">';"><span>
	<a href="<TMPL_VAR NAME="UP_LINK">">
	<img src="<TMPL_VAR NAME="STATIC_PATH">/up.png"
	alt="<TMPL_VAR NAME="STRING_UP">"></a>
	<a id='up' href="<TMPL_VAR NAME="UP_LINK">"><TMPL_VAR NAME="STRING_UP"></a>
</span></li>
</TMPL_IF>

<TMPL_LOOP NAME="NAV_BAR_TABLE">
<TMPL_IF NAME="NAV_LINK">
<li onClick="location.href='<TMPL_VAR NAME="NAV_LINK">';"><span>
	<a href="<TMPL_VAR NAME="NAV_LINK">">
	<img src="<TMPL_VAR NAME="STATIC_PATH">/<TMPL_VAR NAME="NAV_ICON">"
		alt="<TMPL_VAR NAME="NAV_NAME">"></a>
	<a id="<TMPL_VAR NAME="NAV_ID">" href="<TMPL_VAR NAME="NAV_LINK">">
	<TMPL_VAR NAME="NAV_NAME"></a>
</span>
</li>
<TMPL_ELSE>
<li class="highlight"><span>
	<img src="<TMPL_VAR NAME="STATIC_PATH">/<TMPL_VAR NAME="NAV_ICON">"
	alt="<TMPL_VAR NAME="NAV_NAME">">
	<TMPL_VAR NAME="NAV_NAME">
</span></li>
</TMPL_IF>
</TMPL_LOOP>

<li onClick="location.href='<TMPL_VAR NAME="TREE_LINK">';"><span>
<a href="<TMPL_VAR NAME="TREE_LINK">"
	title="<TMPL_VAR NAME="STRING_ALBUMTREE">">
	<img src="<TMPL_VAR NAME="STATIC_PATH">/albumtree.png"
	alt="<TMPL_VAR NAME="STRING_ALBUMTREE">"></a>
<a id="tree" href="<TMPL_VAR NAME="TREE_LINK">">
	<TMPL_VAR NAME="STRING_ALBUMTREE"></a>
</span></li>

<TMPL_IF NAME="FEEDBACK_LINK">
<li ><span>
	<a href="mailto:<TMPL_VAR NAME="FEEDBACK_LINK">?subject=<TMPL_VAR NAME="STRING_YOURALBUM"> <TMPL_INCLUDE NAME="subjectpath.html">">
	<img src="<TMPL_VAR NAME="STATIC_PATH">/contact.png"
	alt="<TMPL_VAR NAME="STRING_FEEDBACK">"></a>
	<a id="fdbk" href="mailto:<TMPL_VAR NAME="FEEDBACK_LINK">?subject=<TMPL_VAR NAME="STRING_YOURALBUM"> <TMPL_INCLUDE NAME="subjectpath.html">">
	<TMPL_VAR NAME="STRING_FEEDBACK"></a>
</span></li>
</TMPL_IF>

<TMPL_IF NAME="HOME_LINK">
<li onClick="location.href='<TMPL_VAR NAME="HOME_LINK">';"><span>
	<a href="<TMPL_VAR NAME="HOME_LINK">"
	title="<TMPL_VAR NAME="STRING_HOME">">
	<img src="<TMPL_VAR NAME="STATIC_PATH">/home.png"
	alt="<TMPL_VAR NAME="STRING_HOME">"></a>
	<a id="home" href="<TMPL_VAR NAME="HOME_LINK">">
	<TMPL_VAR NAME="STRING_HOME"></a>
</span></li>
</TMPL_IF>
</ul>