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