Commit 9577a216 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix slideshow view when there are no images in the gallery


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 4e7162f1
{if $images}
<div class="slideshow" id="slideshow{$instanceid}">
<table class="images">
<tr>
......@@ -7,7 +8,7 @@
</td>
<td>
{foreach from=$images item=image name=images}
<a href="{$image.link}" target="_blank"><img src="{$image.source}" alt="{$image.title}" title="{$image.title}" {if !$dwoo.foreach.images.first}style="display:none;"{/if}/></a>
<a href="{$image.link}" target="_blank"><img src="{$image.source}" alt="{$image.title}" title="{$image.title}" {if !$dwoo.foreach.images.first}style="display:none;"{/if}></a>
{/foreach}
</td>
<td class="control">
......@@ -17,6 +18,9 @@
</tr>
</table>
</div>
<script>
<script type="text/javascript">
var slideshow{$instanceid} = new Slideshow({$instanceid}, {$count});
</script>
{else}
{str tag=noimagesfound section=artefact.file}
{/if}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment