{include file="$blogtemplate/header.template"}

{$locale->tr("albums")}

{$album->getName()}

{$album->getDescription()}

 
{$locale->tr(

{$locale->tr("parent")}

{if $pager->getCurrentPage() == 1} {assign var="counter" value=1} {assign var=children value=$album->getChildren()} {foreach from=$children item=childalbum}
{$childalbum->getName()}

{$childalbum->getName()} ({$childalbum->getNumResources()})

{assign var="counter" value="`$counter+1`"} {if $counter%3 == 0} {/if}
{/foreach} {/if} {** assign var=resources value=$album->getResources() **} {** use the code above if you want to display all the resources at once, or leave it commented **} {** if you would like to use the new paged display that was introduced in lifetype 1.1 **} {foreach from=$resources item=resource}
{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`"} {if $counter%3 == 0} {/if}
{/foreach}
 
{include file="$blogtemplate/footer.template"}