view templates.mwolson/image.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

<!-- TMPL_INCLUDE NAME="header.html" -->

    <!-- TMPL_IF NAME=IMG_PRELOAD -->
    <!-- preload next image of same size to speed up the album browsing -->
    <script type="text/javascript" language="javascript">
      <!-- hide from non JavaScript Browsers
        function PreloadNextImage() {
	  nextimg = new Image();
	  nextimg.src =
	    "<!-- TMPL_VAR NAME=IMG_PRELOAD -->";
	}
      // End hiding -->
    </script>
    <!-- /TMPL_IF -->
    <!-- TMPL_IF NAME="NEXT_IMAGE_PAGE" -->
    <link
	  rel="next"
	  href="<TMPL_VAR NAME=NEXT_IMAGE>"
	  title="<TMPL_VAR NAME=NEXT_TITLE>">
    <link
	  rel="last"
	  href="<TMPL_VAR NAME=LAST_IMAGE>"
	  title="<TMPL_VAR NAME=STRING_LAST>">
    <!-- /TMPL_IF -->
    <!-- TMPL_IF NAME="PREV_IMAGE_PAGE" -->
    <link
	  rel="prev"
	  href="<TMPL_VAR NAME=PREV_IMAGE>"
	  title="<TMPL_VAR NAME=PREV_TITLE>">
    <link
	  rel="first"
	  href="<TMPL_VAR NAME=FIRST_IMAGE>"
	  title="<TMPL_VAR NAME=STRING_FIRST>">
    <!-- /TMPL_IF -->
    <TMPL_IF NAME="UP_LINK">
      <link
	    rel="up"
	    href="<TMPL_VAR NAME=UP_LINK>"
	    title="<TMPL_VAR NAME=STRING_UP>">
    </TMPL_IF>
    <link
	  rel="parent"
	  href="<TMPL_VAR NAME=THUMB_PAGE>"
	  title="<TMPL_VAR NAME=STRING_THUMBNAILS>">
    <link
	  rel="Start"
	  href="<TMPL_VAR NAME=STATIC_PATH>/.."
	  title="<TMPL_VAR NAME=STRING_HOME>">
    <link
	  rel="Index"
	  href="<TMPL_VAR NAME=TREE_LINK>"
	  title="<TMPL_VAR NAME=TREE_TITLE>">
</head>

<body <!-- TMPL_IF NAME=IMG_PRELOAD -->
      onload="PreloadNextImage('<!-- TMPL_VAR NAME=IMG_PRELOAD -->')"<!-- /TMPL_IF -->>

<!-- TMPL_INCLUDE NAME="bodyheader.html" -->

<!-- MAIN TABLE (Title, Image, Description)-->

<table class="mainheader" align="center">

<tr>
  <td class="pagetitle">
    <!-- TMPL_VAR NAME=TITLE -->
  </td>
  <td align="right">
    <!-- TMPL_INCLUDE NAME="path.html" -->
  </td>
</tr>

</table>

<p />

<table align="center" class="navbar" border="0">
<col width="25%"><col width="25%"><col width="25%"><col width="25%">
<tr>
<td valign="top" align="left">
<a href="<TMPL_VAR NAME=PREV_IMAGE>"
    title="<TMPL_VAR NAME=PREV_TITLE>">
    <!-- TMPL_VAR NAME=STRING_PREV -->
</a>
</td>

<td valign="top" align="center">

<a href = "<TMPL_VAR NAME=THUMB_PAGE>">
    <!-- TMPL_VAR NAME=STRING_THUMBNAILS -->
</a>
</td>

<td valign="top" align="center">
<a href="imagelist.html">
    <!-- TMPL_VAR NAME=STRING_IMAGELIST -->
</a>
</td>

<td valign="top" align="right">
<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
    title="<TMPL_VAR NAME=NEXT_TITLE>">
<!-- TMPL_VAR NAME=STRING_NEXT -->
</a>
</td>

</tr>
</table>

<table class="mainimage" align="center">
<col width="33%"><col width="33%"><col width="34%">

<tr>
<td align="left">

&nbsp;
<!-- TMPL_IF NAME="PREV_IMAGE_PAGE" -->
    <a href="<TMPL_VAR NAME=PREV_IMAGE>" title="<TMPL_VAR NAME=PREV_TITLE>">
        <!-- TMPL_VAR NAME=STRING_PREV -->
    </a>
<!-- /TMPL_IF -->

</td><td align="center">

&nbsp;
<!-- Sizes -->

<!-- TMPL_LOOP NAME=SIZE_LINKS -->

    <!-- TMPL_IF NAME=SIZE_LINK -->
	    <a href="<TMPL_VAR NAME=SIZE_LINK>" title="<TMPL_VAR NAME=SIZE_TITLE>">
            <!-- TMPL_VAR NAME=SIZE_NAME -->
        </a>
    <!-- TMPL_ELSE -->
        <!-- TMPL_VAR NAME=SIZE_NAME -->
    <!-- /TMPL_IF -->

<!-- /TMPL_LOOP -->

<!-- End of Sizes -->
&nbsp;

</td><td align="right">

<!-- TMPL_IF NAME="NEXT_IMAGE_PAGE" -->
    <a href="<TMPL_VAR NAME=NEXT_IMAGE>" title="<TMPL_VAR NAME=NEXT_TITLE>">
        <!-- TMPL_VAR NAME=STRING_NEXT -->
    </a>
<!-- /TMPL_IF -->
&nbsp;
</td>

</tr>
<tr>
<td colspan="3" align="center">

<a href="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>">
    <img src="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>"
        alt="<TMPL_VAR NAME=STRING_IMAGE>"
        width="<TMPL_VAR NAME=WIDTH>"
        height="<TMPL_VAR NAME=HEIGHT>"
        border="0">
</a>

</td>
</tr>

<tr>
<td colspan="3" align="center">

<!-- TMPL_VAR NAME=FILE_NAME -->

<!-- TMPL_VAR NAME=PICTURE_INFO -->

</td>
</tr>
</table>

<!-- end main image, start decsription -->

<!-- Desc Table -->

<!-- TMPL_IF NAME=DESC_TABLE -->
<table class="imagedesc" align="center">
    <!-- TMPL_LOOP NAME=DESC_TABLE -->
    <tr>
        <td class="fname"><!-- TMPL_VAR NAME=DESC_FIELD_NAME --></td>
        <td class="fvalue"><!-- TMPL_VAR NAME=DESC_FIELD_VALUE --></td>
    </tr>
    <!-- /TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->

<!-- End of Desc Table -->


<!-- TMPL_IF NAME=DETAILS_LINK -->

<p class="detailslink">
<a href="<TMPL_VAR NAME=DETAILS_LINK>">
    <!-- TMPL_VAR NAME=STRING_DETAILS -->
</a>
</p>

<!-- /TMPL_IF -->

<!-- starting the bottom row of navigation links -->

<table align="center" class="navbar" border="0">

<tr>

<td valign="top" align="left">

<a href = "<TMPL_VAR NAME=THUMB_PAGE>">
    <!-- TMPL_VAR NAME=STRING_THUMBNAILS -->
</a>

</td>
<td valign="top" align="right">

<a href="imagelist.html">
    <!-- TMPL_VAR NAME=STRING_IMAGELIST -->
</a>

</td>

</tr>

<tr>

<td valign="top">

<!-- TMPL_IF NAME=PREV_THUMB -->
    <a href="<TMPL_VAR NAME=PREV_IMAGE>">
        <img src="<TMPL_VAR NAME=PREV_THUMB>"
            title="<TMPL_VAR NAME=PREV_TITLE>"
            alt="<TMPL_VAR NAME=STRING_PREV>"
            border="0"
            ></a>
<!-- /TMPL_IF -->

<br />

<a href="<TMPL_VAR NAME=PREV_IMAGE>"
    title="<TMPL_VAR NAME=PREV_TITLE>">
    <!-- TMPL_VAR NAME=STRING_PREV -->
</a>

</td>

<td valign="top" align="right">

<!-- TMPL_IF NAME=NEXT_THUMB -->
<a href="<TMPL_VAR NAME=NEXT_IMAGE>">
	   <img src="<TMPL_VAR NAME=NEXT_THUMB>"
		  title="<TMPL_VAR NAME=NEXT_TITLE>"
		  alt="<TMPL_VAR NAME=STRING_NEXT>"
		  border="0"
		  ></a>
<!-- /TMPL_IF -->

<br/ >

<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
    title="<TMPL_VAR NAME=NEXT_TITLE>">
<!-- TMPL_VAR NAME=STRING_NEXT -->
</a>

</td>

</tr>

</table>

<!-- TMPL_INCLUDE NAME="footer.html" -->