Merge branch 'rating'
[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}px<br />
43    { /if }
44    <u>Size:</u>&nbsp;{$ExifFileSize}<br />
45    { if $image_rating }
46     <u><img src="{$web_path}/resources/rating.png" alt="rating" />&nbsp;Rating:</u><br />
47     {section name="rating" loop=$image_rating step=1}
48      <img src="{$web_path}/resources/star.png" />
49     {/section}
50     <br />
51    { /if }
52    { if $tags }
53     <br />
54     <u><img src="{$web_path}/resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
55     { foreach from=$tags key=id item=name }
56     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onfocus="click(this);">{$name}</a><br />
57     { /foreach }
58    { /if }
59    <hr>
60    { if $prev_img }
61     <u><img src="{$web_path}/resources/photo.png" alt="photo icon" />&nbsp;Previous:</u><br />
62     <a href="{$previous_url}" onfocus="click(this);" id="prev_link">
63      <img src="{$web_path}/phpfspot_img.php?idx={$prev_img}&amp;width={$mini_width}" /><br />
64     </a>
65    { /if}
66    { if $next_img }
67     <u><img src="{$web_path}/resources/photo.png" alt="photo icon" />&nbsp;Next:</u><br />
68     <a href="{$next_url}" onfocus="click(this);" id="next_link">
69      <img src="{$web_path}/phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
70     </a>
71    { /if}
72  </div>
73
74  <!-- the photo itself -->
75
76  <div class="photo">
77  { if $next_url == "" }
78   <a href="{$image_url}" onclick="showPhotoIndex(); return false;" onfocus="click(this);" name="photo">
79  { else }
80   <a href="{$image_url}" onclick="{$next_url}; return false;" onfocus="click(this);" title="click for the next photo" name="photo">
81  { /if }
82    <img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" name="photo" id="photo" />
83   </a>
84  </div>
85
86  <!-- navigation arrows -->
87
88  <div class="photonavigation">
89   { if $previous_url == "" }
90    <img src="{$web_path}/resources/arrow_left_gray.png" alt="first photo reached" />
91   { else }
92    <a href="{$previous_url}" onfocus="click(this);" title="click for the previous photo (left cursor)">
93     <img src="{$web_path}/resources/arrow_left.png" alt="previous photo" />
94    </a>
95   { /if }
96    <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onfocus="click(this);" title="click to go back to the index">
97     <img src="{$web_path}/resources/arrow_up.png" alt="photo index" />
98    </a>
99   { if $next_url == "" }
100    <img src="{$web_path}/resources/arrow_right_gray.png" alt="last photo reached" />
101   { else }
102    <a href="{$next_url}" onfocus="click(this);" title="click for the next photo (right cursor)">
103     <img src="{$web_path}/resources/arrow_right.png" alt="next photo" />
104    </a>
105   { /if}
106  </div>
107 </p>
108 <script type="text/javascript">
109 <!--
110    if(autobrowse && document.getElementById("autobrowse_ico"))
111       document.getElementById("autobrowse_ico").src = '{$web_path}/resources/32_pause.png';
112
113    /* lets preload to previous and the next image to speedup */
114    var image_next = new Image();
115    image_next.src = "{$web_path}/phpfspot_img.php?idx={$next_img}&width={$photo_width}";
116    var image_prev = new Image();
117    image_prev.src = "{$web_path}/phpfspot_img.php?idx={$prev_img}&width={$photo_width}";
118
119 -->
120 </script>
121 <!-- /Single photo -->