[pLog-CVS] plog/templates/default album.template,NONE,1.1 resource.template,NONE,1.1
Brought to you by:
jondaley
From: <phu...@us...> - 2004-01-12 21:36:42
|
Update of /cvsroot/plog/plog/templates/default In directory sc8-pr-cvs1:/tmp/cvs-serv29978 Added Files: album.template resource.template Log Message: these files are needed to show albums and resources --- NEW FILE: album.template --- {include file="default/header.template"} <h1>{$album->getName()}</h1> <p> {$album->getDescription()} </p> <p> <h2>Child Albums</h2> {assign var=children value=$album->getChildren()} {foreach from=$children item=childalbum} <a href="{$url->albumLink($childalbum)}">{$childalbum->getName()}</a> ({$childalbum->getNumResources()}) <br/><br/> {/foreach} </p> <p> <h2>Resources</h2> {assign var=resources value=$album->getResources()} {foreach from=$resources item=resource} {if $resource->hasPreview()} {*<a target="_blank" href="resserver.php?blogId={$blog->getId()}&resource={$resource->getFileName()}">*} <a href="{$url->resourceLink($resource)}"> <img alt="{$resource->getDescription()}" border="0" src="{$url->resourcePreviewLink($resource)}" /> <br/>{$resource->getFileName()} </a> {else} {*<a href="resserver.php?blogId={$blog->getId()}&resource={$resource->getFileName()}">*} <a href="{$url->resourceLink($resource)}"> {$resource->getFileName()} </a> {/if} <br/> {assign var=metadata value=$resource->getMetadataReader()} {$locale->tr("size")}: {$metadata->getFileSize()} {$locale->tr("bytes")}<br/> {if $resource->isImage()} {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/> {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/> {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/> {elseif $resource->isSound()} {$locale->tr("number_of_channels")}: {$metadata->getChannels()|upper}<br/> {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/> {elseif $resource->isVideo()} {$locale->tr("format")}: {$metadata->getFormat()|upper}<br/> {$locale->tr("dimensions")}: {$metadata->getWidth()} x {$metadata->getHeight()}<br/> {$locale->tr("bits_per_sample")}: {$metadata->getBitsPerSample()}<br/> {$locale->tr("length")}: {$metadata->getLengthString()}<br/> {elseif $resource->isZip()} {$locale->tr("number_of_files")}: {$metadata->getTotalFiles()}<br/> {$locale->tr("compressed_size")}: {$metadata->getCompressedSize()} {$locale->tr("bytes")}<br/> {$locale->tr("uncompressed_size")}: {$metadata->getUncompressedSize()} {$locale->tr("bytes")}<br/> {/if} <br/><br/> {/foreach} </p> {include file="default/footer.template"} --- NEW FILE: resource.template --- {include file="default/header.template"} {assign var=metadata value=$resource->getMetadataReader()} {if $resource->isImage()} <img src="{$url->resourceDownloadLink($resource)}" alt="{$resource->getFileName()}, {$metadata->getFileSize()} {$locale->tr("bytes")}" /> {else} <a href="{$url->resourceDownloadLink($resource)}">{$resource->getFileName()}</a> ({$metadata->getFileSize()} {$locale->tr("bytes")}) {/if} <p> <!--<a href="{$url->resourceDownloadLink($resource)}">{$locale->tr("resource")}</a><br/>--> {$resource->getDescription()} </p> <a href="javascript:history.go(-1);">{$locale->tr("back")}</a> {include file="default/footer.template"} |