$this->tmpl->assign('next_img', $next_img);
}
$this->tmpl->assign('mini_width', $this->cfg->mini_width);
+ $this->tmpl->assign('photo_number', $i);
+ $this->tmpl->assign('photo_count', count($all_photos));
$this->tmpl->show("single_photo.tpl");
<tr>
<td class="content_title" style="text-align: left;">
<b>Photo {$image_name}</b><br />
- {$description}<br />
+ {if $photo_count > 0}
+ {$photo_number} of {$photo_count}
+ {if $photo_count == 1}
+ Photo
+ {else}
+ Photos
+ {/if}
+ {if $description}
+ {$description}<br />
+ {/if}
+ {/if}
</td>
<td class="index_header" style="text-align: right;">
{if $extern_link }