issue30, fixed wickled lines when images have different lines
[phpfspot.git] / templates / single_photo.tpl
index 01aa1fd608336591b0a4aeaba03b811142769e6c..0d04e17c2d4adb56672b0c1de7a45cae9ba2901f 100644 (file)
@@ -1,11 +1,24 @@
 <!-- Single photo -->
 <table>
  <tr>
-  <td class="index_header" style="text-align: left;">
+  <td class="content_title" style="text-align: left;">
    <b>Photo {$image_name}</b><br />
-   &nbsp;{$description}<br />
+   {if $photo_count > 0}
+    {$photo_number} of {$photo_count}
+    {if $photo_count == 1}
+     Photo
+    {else}
+     Photos
+    {/if}
+    {if $description}
+     &nbsp;{$description}<br />
+    {/if}
+   {/if}
   </td>
   <td class="index_header" style="text-align: right;">
+   {if $extern_link }
+    <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
+   {/if}
    <a href="{$image_url_full}" target="_blank" onclick="click(this);">
     <img src="resources/original.png" alt="original resolution" />
    </a>
@@ -76,7 +89,7 @@
     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
     { /foreach }
    { /if }
-   <br />
+   <hr>
    { if $prev_img }
     <u><img src="resources/photo.png" alt="photo icon" />&nbsp;Previous:</u><br />
     <a href="{$previous_url}" onclick="click(this);">