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