{include file="$blogtemplate/header.template"} {assign var=metadata value=$resource->getMetadataReader()} {assign var=updated value=$resource->getTimestamp()}

{$resource->getFileName()}

Download {$locale->tr("download")} ({$metadata->getRoundedSize()}) | {$locale->tr("created")} {$locale->formatDate($updated,"%d %b, %Y")}

{$resource->getDescription()}

{if $resource->isImage()} {$resource->getFileName()}, {$metadata->getRoundedSize()} {else} {* show some information about the file *} {if $resource->isSound()} Sound
{$resource->getFileName()}

{$locale->tr("format")}: {$metadata->getFormat()|upper}
{$locale->tr("length")}: {$metadata->getLengthString()}
{$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz {elseif $resource->isVideo()} Sound
{$resource->getFileName()}
{$locale->tr("format")}: {$metadata->getFormat()|upper}
{$locale->tr("size")}: {$metadata->getHeight()} x {$metadata->getWidth()}
{$locale->tr("length")}: {$metadata->getLengthString()}
{$locale->tr("video_codec")}: {$metadata->getVideoCodec()}
{$locale->tr("audio_codec")}: {$metadata->getAudioCodec()} {elseif $resource->isZip()} Sound
{$resource->getFileName()}
{$metadata->getTotalFiles()} {$locale->tr("files")}
{$locale->tr("uncompressed_size")}: {$metadata->getRoundedUncompressedSize()} {else} Sound
{$resource->getFileName()} {/if} {/if}

{assign var=album value=$resource->getAlbum()} {$locale->tr("parent")}

{include file="$blogtemplate/panel.template"} {include file="$blogtemplate/footer.template"}