issue93, jump to next/prev photo with cursor keys
[phpfspot.git] / themes / default / templates / single_photo.tpl
1 <!-- Single photo -->
2 <div class="content_title" style="text-align: left; float: left;">
3  <b>Photo {$image_name}</b><br />
4  {if $photo_count > 0}
5   {$photo_number} of {$photo_count}
6   {if $photo_count == 1}
7    Photo
8   {else}
9    Photos
10   {/if}
11   {if $description}
12    &nbsp;{$description}<br />
13   {/if}
14  {/if}
15 </div>
16 <div class="index_header" style="text-align: right;">
17  <a href="javascript:startAutoBrowse();" title="auto browsing"><img id="autobrowse_ico" src="resources/32_play.png" /></a>
18  {if $extern_link }
19   <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
20  {/if}
21  <a href="{$image_url_full}" target="_blank" onclick="click(this);">
22   <img src="resources/original.png" alt="original resolution" />
23  </a>
24 </div>
25
26 <div>
27  <div id="photo_details" style="float: right; margin-top: 20px; margin-right: 20px;">
28    { if $ExifMadeWith }
29    <u><img src="resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
30    {$ExifMadeWith}<br />
31    { /if }
32    { if $ExifMadeOn }
33    <u><img src="resources/date.png" alt="calendar icon" />&nbsp;Image made on:</u><br />
34    {$ExifMadeOn}<br />
35    { /if }
36    { if $ExifOrigResolution }
37    <u><img src="resources/image.png" alt="resolution icon" />&nbsp;Original resolution:</u><br />
38    {$ExifOrigResolution}<br />
39    { /if }
40    <u>Size:</u>&nbsp;{$ExifFileSize}<br />
41    { if $tags }
42     <br />
43     <u><img src="resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
44     { foreach from=$tags key=id item=name }
45     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
46     { /foreach }
47    { /if }
48    <hr>
49    { if $prev_img }
50     <u><img src="resources/photo.png" alt="photo icon" />&nbsp;Previous:</u><br />
51     <a href="{$previous_url}" onclick="click(this);" id="prev_link">
52      <img src="phpfspot_img.php?idx={$prev_img}&amp;width={$mini_width}" /><br />
53     </a>
54    { /if}
55    { if $next_img }
56     <u><img src="resources/photo.png" alt="photo icon" />&nbsp;Next:</u><br />
57     <a href="{$next_url}" onclick="click(this);" id="next_link">
58      <img src="phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
59     </a>
60    { /if}
61  </div>
62
63  <div style="text-align: left; margin-top: 20px; margin-left: 20px;">
64  { if $next_url == "" }
65   <a href="javascript:showPhotoIndex();" onclick="click(this);">
66  { else }
67   <a href="{$next_url}" onclick="click(this);" title="click for the next photo"> 
68  { /if }
69    <img src="{$image_url}" width="{$width}" height="{$height}" alt="photo" />
70   </a>
71  </div>
72
73  <div style="margin-left: 20px;">
74   { if $previous_url == "" }
75    <img src="resources/arrow_left_gray.png" alt="first photo reached" />
76   { else }
77    <a href="{$previous_url}" onclick="click(this);" title="click for the previous photo">
78     <img src="resources/arrow_left.png" alt="previous photo" />
79    </a>
80   { /if }
81    <a href="javascript:showPhotoIndex({$current});" onclick="click(this);" title="click to go back to the index">
82     <img src="resources/arrow_up.png" alt="photo index" />
83    </a>
84   { if $next_url == "" }
85    <img src="resources/arrow_right_gray.png" alt="last photo reached" />
86   { else }
87    <a href="{$next_url}" onclick="click(this);" title="click for the next photo"> 
88     <img src="resources/arrow_right.png" alt="next photo" />
89    </a>
90   { /if}
91  </div>
92 </div>
93 <!-- /Single photo -->