options: -image_sizes
#c// ####################################################################
#c// Image Theme created by DaveSource.com, modified by frank@celler.de
#c// ####################################################################

<:
  # Path setting - this is the path to the images
  $PATH = Theme_URL();

  # Image arrays are: name, width, height
  sub img_src { print "<img src='$PATH/$_[0]' width='$_[1]' height='$_[2]' $_[3] alt='$_[4]' border='0'>" if ($_[1]); }

  # Icons/graphics
  @Next =       ("Next.gif", 31, 30, "align='center'", "(next)");
  @Prev =       ("Prev.gif", 31, 30, "align='center'", "(prev)");
_:>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title> 
      Image: <:=Image_Name() :>
    </title>
    <: Meta() :>
  </head>
  <body bgcolor='white'>

#c// #########################
#c// Prev/next
#c// #########################

<table cellspacing='10' width='100%'>
  <tr>
    <td align='left' width='30%'>
      <: Set_Image_Prev(); :>
      <a href=<:=Image_Page_URL():>><:img_src(@Prev); print "(prev)" unless @Prev; :><:=Image_Name():></a>
    </td>
    <td align='center' width='40%'>
      <: Set_Image_This(); :>
      <b><:=Image_Name():></b>
    </td> 
    <td align='right' width='30%'>
      <: Set_Image_Next(); :>
      <a href=<:=Image_Page_URL():>><:=Image_Name():><:img_src(@Next); print "(next)" unless @Next; :></a>
    </td>
  </tr>
</table>

#c// Go back to the current image
<: Set_Image_This(); :>

#c// #########################
#c// The image and caption
#c// #########################

<center>
  <a href=<:=Image_URL():>>
  <img border='0' src=<:=$picdata->{URL}{image_page}{image_src}:> alt=<:=Image_Alt():>></a><br/>
  <font size='+1'><i>
    <: pImage_Caption() :>
  </i></font>
</center>

#c// #########################
#c// Footer
#c// #########################

<hr/>
  <font size='-1'>
    <: Credit() :> on <:=scalar localtime:>
  </font>
</body>
</html>
