{assign var="OnAlbumPage" value=1}
{include file="$blogtemplate/header.template"}
{assign var=metadata value=$resource->getMetadataReader()}
{assign var=updated value=$resource->getTimestamp()}
<div class="post">
		<h2>{$locale->tr("download")}</h2>
		<div class="entry">{$locale->tr("created")}: {$locale->formatDate($updated,"%d %B, %Y")}</div>
		<div class="post-content" style="text-align: center;"><p>{$resource->getDescription()}</p>
		<div class="gallery-thumb">
		{if $resource->isImage()}
			<img src="{$url->resourceMediumSizePreviewLink($resource)}" height="64" width="64" alt="{$resource->getFileName()}, {$metadata->getRoundedSize()}" />
		{else}
			<a href="{$url->resourceDownloadLink($resource)}">
		{if $resource->isSound()}
			<img alt="Sound" src="{$url->getTemplateFile("/images/sound.gif")}" /><br/>{$resource->getFileName()}</a><br/>
			{$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
			{$locale->tr("length")}: {$metadata->getLengthString()}<br/>
			{$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz
		{elseif $resource->isVideo()}
			<img alt="Video" src="{$url->getTemplateFile("/images/video.gif")}" /><br/>{$resource->getFileName()}</a><br/>
			{$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
			{$locale->tr("size")}: {$metadata->getHeight()} x {$metadata->getWidth()}<br/>
			{$locale->tr("length")}: {$metadata->getLengthString()}<br/>
			{$locale->tr("video_codec")}: {$metadata->getVideoCodec()}<br/>
			{$locale->tr("audio_codec")}: {$metadata->getAudioCodec()}
		{elseif $resource->isZip()}
			<img alt="Compressed" src="{$url->getTemplateFile("/images/compressed.png")}" /><br/>{$resource->getFileName()}</a><br/>
			{$metadata->getTotalFiles()} {$locale->tr("files")}<br/>
			{$locale->tr("uncompressed_size")}: {$metadata->getRoundedUncompressedSize()}
		{else}
			<img alt="File" src="{$url->getTemplateFile("/images/file.gif")}" /><br/>{$resource->getFileName()}</a>
		{/if}
		{/if}
			<br/>
		</div>
		</div>
</div>
<div class="nav">
	<div style="float:left"><a href="{$url->resourceDownloadLink($resource)}"><img src="{$url->getTemplateFile("/images/download.gif")}" width="10" height="11" alt="{$locale->tr("download")}" style="border:none;" /> {$locale->tr("download")} ({$metadata->getRoundedSize()})</a></div>
	<div style="float:right"><a href="javascript:history.go(-1);">{$locale->tr("back")}</a></div>
</div>
</div>
{include file="$blogtemplate/sidebar.template"}
{include file="$blogtemplate/footer.template"}