{include file="$blogtemplate/header.template"}
{assign var="postDate" value=$album->getTimestamp()}

{$album->getName()}

Album {$locale->tr("resources")} ({$album->getNumResources()}) | {$locale->tr("created")} {$locale->formatDate($postDate,"%d %b, %Y")}

{$album->getDescription()}


{** smarty template gets a bit complicated here since we want to show the contents of the album in a nicely arranged table, and that needs some very basic maths... we also need to check after every iteration wether we have to close the current row or start a new one, and so on... **} {assign var="counter" value=1} {assign var=children value=$album->getChildren()} {foreach from=$children item=childalbum} {if $counter%3 == 0} {/if} {/foreach} {foreach from=$resources item=resource} {if $counter%3 == 0} {/if} {/foreach}
Folder
..
Folder
{$childalbum->getName()} ({$childalbum->getNumResources()})


{assign var="counter" value="`$counter+1`"}
{if $resource->hasPreview()} {**} {$resource->getDescription()}
{$resource->getFileName()}
{else} {if $resource->isSound()} Sound {elseif $resource->isVideo()} Video {elseif $resource->isZip()} Zip {else} File {/if}
{$resource->getFileName()}
{/if}
{assign var=metadata value=$resource->getMetadataReader()} {$metadata->getRoundedSize()}
{if $resource->isImage()} {$metadata->getWidth()} x {$metadata->getHeight()}
{elseif $resource->isSound()} {$metadata->getFormat()|upper} {$metadata->getSampleRate()} bps
{elseif $resource->isVideo()} {$metadata->getFormat()|upper} {$metadata->getWidth()} x {$metadata->getHeight()}, {$metadata->getLengthString()}
{elseif $resource->isZip()} {$metadata->getTotalFiles()} {$locale->tr("files")}
{/if} {assign var="counter" value="`$counter+1`"}
{pager style="links"}
{include file="$blogtemplate/panel.template"} {include file="$blogtemplate/footer.template"}