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