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