summaryrefslogtreecommitdiffstats
path: root/templates/single_photo.tpl
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-21 07:34:27 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-21 07:34:27 +0000
commit4079ac52ab60d1d48bd79514d62955b3ee4ebe5e (patch)
tree7a89aacfe9116d276bec925c6fb145379667e207 /templates/single_photo.tpl
parent360b97e6da3d53e9ff5f5a92b6388a9a82824c24 (diff)
issue57, display photo counter in single photo view
git-svn-id: file:///var/lib/svn/phpfspot/trunk@228 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'templates/single_photo.tpl')
-rw-r--r--templates/single_photo.tpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl
index 8dfd433..0d04e17 100644
--- a/templates/single_photo.tpl
+++ b/templates/single_photo.tpl
@@ -3,7 +3,17 @@
<tr>
<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 }