support for F-Spot photo versioning, refs #67
[phpfspot.git] / themes / default / templates / single_photo.tpl
index fb799858789f22ed961499f0e73d92530051ade4..572bef70ddc322889bac9a07dd94f2a7ea05f582 100644 (file)
@@ -1,6 +1,6 @@
 <!-- Single photo -->
 <div class="header">
- <div class="subheader">
+ <div class="header_title">
   <b>Photo {$image_name}</b><br />
   {if $photo_count > 0}
    {$photo_number} of {$photo_count}
    {/if}
   {/if}
  </div>
- <div class="textright"">
-  <a href="javascript:zoom(-10);" title="zoom_out" onclick="click(this);"><img src="resources/zoom-out.png" /></a>
-  <a href="javascript:zoom(0);" title="zoom_100" onclick="click(this);"><img src="resources/zoom-100.png" /></a>
-  <a href="javascript:zoom(10);" title="zoom_in" onclick="click(this);"><img src="resources/zoom-in.png" /></a>
-  <a href="javascript:startAutoBrowse();" title="auto browsing"><img id="autobrowse_ico" src="resources/16_play.png" /></a>
+ <div class="header_menu">
+  <a href="javascript:zoom(-10);" title="zoom_out" onclick="click(this);"><img src="{$web_path}/resources/zoom-out.png" /></a>
+  <a href="javascript:zoom(0);" title="zoom_100" onclick="click(this);"><img src="{$web_path}/resources/zoom-100.png" /></a>
+  <a href="javascript:zoom(10);" title="zoom_in" onclick="click(this);"><img src="{$web_path}/resources/zoom-in.png" /></a>
+  <a href="javascript:startAutoBrowse();" title="auto browsing"><img id="autobrowse_ico" src="{$web_path}/resources/16_play.png" />&nbsp;Auto-Browse</a>
   {if $extern_link }
    <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>
   {/if}
-  <a href="{$image_url_full}" title="orig_image" target="_blank" onclick="click(this);">
-   <img src="resources/original.png" alt="original resolution" />
-  </a>
+  <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>
  </div>
 </div>
 
-<div>
+<p class="cb">
+
  <div id="photo_details">
    { if $ExifMadeWith }
    <u><img src="{$web_path}/resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
    { /if }
    { if $ExifOrigResolution }
    <u><img src="{$web_path}/resources/image.png" alt="resolution icon" />&nbsp;Original resolution:</u><br />
-   {$ExifOrigResolution}<br />
+   {$ExifOrigResolution}px<br />
    { /if }
    <u>Size:</u>&nbsp;{$ExifFileSize}<br />
+   { if $image_rating }
+    <u><img src="{$web_path}/resources/rating.png" alt="rating" />&nbsp;Rating:</u><br />
+    {section name="rating" loop=$image_rating step=1}
+     <img src="{$web_path}/resources/star.png" />
+    {/section}
+    <br />
+   { /if }
+   { if $has_versions }
+    <br />
+    Versions:<br />
+    <select onchange="update_photo_version(this, {$photo});">
+    { photo_version_select_list photo=$photo current=$version }
+    </select>
+    <br />
+   { /if }
    { if $tags }
     <br />
     <u><img src="{$web_path}/resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
    </a>
   { /if}
  </div>
-</div>
+</p>
 <script type="text/javascript">
 <!--
    if(autobrowse && document.getElementById("autobrowse_ico"))
-      document.getElementById("autobrowse_ico").src = 'resources/32_pause.png';
+      document.getElementById("autobrowse_ico").src = '{$web_path}/resources/16_pause.png';
 
    /* lets preload to previous and the next image to speedup */
    var image_next = new Image();