do not make get_meta_informations silent - accidently pulled from Arun
[phpfspot.git] / themes / default / templates / single_photo.tpl
1 <!-- Single photo -->
2 <div class="header">
3  <div class="subheader">
4   <b>Photo {$image_name}</b><br />
5   {if $photo_count > 0}
6    {$photo_number} of {$photo_count}
7    {if $photo_count == 1}
8     Photo
9    {else}
10     Photos
11    {/if}
12    {if $description}
13     -&nbsp;{$description}<br />
14    {/if}
15   {/if}
16  </div>
17  <div class="textright"">
18   <a href="javascript:zoom(-10);" title="zoom_out" onclick="click(this);"><img src="resources/zoom-out.png" /></a>
19   <a href="javascript:zoom(0);" title="zoom_100" onclick="click(this);"><img src="resources/zoom-100.png" /></a>
20   <a href="javascript:zoom(10);" title="zoom_in" onclick="click(this);"><img src="resources/zoom-in.png" /></a>
21   <a href="javascript:startAutoBrowse();" title="auto browsing"><img id="autobrowse_ico" src="resources/32_play.png" /></a>
22   {if $extern_link }
23    <a href="{$extern_link}" title="Use this link to return to the current view"><img src="{$web_path}/resources/link.png" />&nbsp;External Link</a>
24   {/if}
25   <a href="{$image_url_full}" title="orig_image" target="_blank" onclick="click(this);">
26    <img src="resources/original.png" alt="original resolution" />
27   </a>
28  </div>
29 </div>
30
31 <div>
32  <div id="photo_details">
33    { if $ExifMadeWith }
34    <u><img src="{$web_path}/resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
35    {$ExifMadeWith}<br />
36    { /if }
37    { if $ExifMadeOn }
38    <u><img src="{$web_path}/resources/date.png" alt="calendar icon" />&nbsp;Image made on:</u><br />
39    {$ExifMadeOn}<br />
40    { /if }
41    { if $ExifOrigResolution }
42    <u><img src="{$web_path}/resources/image.png" alt="resolution icon" />&nbsp;Original resolution:</u><br />
43    {$ExifOrigResolution}<br />
44    { /if }
45    <u>Size:</u>&nbsp;{$ExifFileSize}<br />
46    { if $tags }
47     <br />
48     <u><img src="{$web_path}/resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
49     { foreach from=$tags key=id item=name }
50     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onfocus="click(this);">{$name}</a><br />
51     { /foreach }
52    { /if }
53    <hr>
54    { if $prev_img }
55     <u><img src="{$web_path}/resources/photo.png" alt="photo icon" />&nbsp;Previous:</u><br />
56     <a href="{$previous_url}" onfocus="click(this);" id="prev_link">
57      <img src="{$web_path}/phpfspot_img.php?idx={$prev_img}&amp;width={$mini_width}" /><br />
58     </a>
59    { /if}
60    { if $next_img }
61     <u><img src="{$web_path}/resources/photo.png" alt="photo icon" />&nbsp;Next:</u><br />
62     <a href="{$next_url}" onfocus="click(this);" id="next_link">
63      <img src="{$web_path}/phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
64     </a>
65    { /if}
66  </div>
67
68  <!-- the photo itself -->
69
70  <div class="photo">
71  { if $next_url == "" }
72   <a href="{$image_url}" onclick="showPhotoIndex(); return false;" onfocus="click(this);" name="photo">
73  { else }
74   <a href="{$image_url}" onclick="{$next_url}; return false;" onfocus="click(this);" title="click for the next photo" name="photo">
75  { /if }
76    <img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" name="photo" id="photo" />
77   </a>
78  </div>
79
80  <!-- navigation arrows -->
81
82  <div class="photonavigation">
83   { if $previous_url == "" }
84    <img src="{$web_path}/resources/arrow_left_gray.png" alt="first photo reached" />
85   { else }
86    <a href="{$previous_url}" onfocus="click(this);" title="click for the previous photo (left cursor)">
87     <img src="{$web_path}/resources/arrow_left.png" alt="previous photo" />
88    </a>
89   { /if }
90    <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onfocus="click(this);" title="click to go back to the index">
91     <img src="{$web_path}/resources/arrow_up.png" alt="photo index" />
92    </a>
93   { if $next_url == "" }
94    <img src="{$web_path}/resources/arrow_right_gray.png" alt="last photo reached" />
95   { else }
96    <a href="{$next_url}" onfocus="click(this);" title="click for the next photo (right cursor)">
97     <img src="{$web_path}/resources/arrow_right.png" alt="next photo" />
98    </a>
99   { /if}
100  </div>
101 </div>
102 <script type="text/javascript">
103 <!--
104    if(autobrowse && document.getElementById("autobrowse_ico"))
105       document.getElementById("autobrowse_ico").src = 'resources/32_pause.png';
106
107    /* lets preload to previous and the next image to speedup */
108    var image_next = new Image();
109    image_next.src = "{$web_path}/phpfspot_img.php?idx={$next_img}&width={$photo_width}";
110    var image_prev = new Image();
111    image_prev.src = "{$web_path}/phpfspot_img.php?idx={$prev_img}&width={$photo_width}";
112
113 -->
114 </script>
115 <!-- /Single photo -->