[pLog-CVS] plog/templates/grey album.template,1.6,1.7 albums.template,1.2,1.3 header.template,1.1.1.
Brought to you by:
jondaley
From: <phu...@us...> - 2004-02-29 22:47:18
|
Update of /cvsroot/plog/plog/templates/grey In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10313/templates/grey Modified Files: album.template albums.template header.template resource.template Log Message: the grey template should now look nicer... Index: album.template =================================================================== RCS file: /cvsroot/plog/plog/templates/grey/album.template,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** album.template 8 Feb 2004 16:17:57 -0000 1.6 --- album.template 29 Feb 2004 22:36:44 -0000 1.7 *************** *** 5,57 **** </p> ! <a class="nodecoration" href="{$url->parentAlbumLink($album)}"> ! <img border="0" src="{$url->getUrl("/imgs/folderbig.png")}" alt="Folder" /><br/> ! ..</a> ! <br/><br/> ! ! {assign var=children value=$album->getChildren()} ! {foreach from=$children item=childalbum} ! <a class="nodecoration" href="{$url->albumLink($childalbum)}"> ! <img border="0" src="{$url->getUrl("/imgs/folderbig.png")}" alt="Folder" /><br/> ! {$childalbum->getName()}</a> <br/><br/> {/foreach} {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 class="nodecoration" 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 class="nodecoration" href="{$url->resourceLink($resource)}"> ! <img src="{$url->getUrl("/imgs/files.png")}" border="0" alt="Resource" /><br/> ! {$resource->getFileName()} </a> {/if} <br/> {assign var=metadata value=$resource->getMetadataReader()} ! {$locale->tr("size")}: {$metadata->getRoundedSize()}<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} ! {include file="grey/footer.template"} --- 5,85 ---- </p> ! <!-- album contents go here --> ! <div id="album"> ! <table style="border:0px;width:100%;" summary="Album Resources"> ! <tr> ! <td style="width:25%;" align="center" > ! <a class="nodecoration" href="{$url->parentAlbumLink($album)}"> ! <img style="border:0px" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/> ! .. ! </a> ! </td> ! {assign var="counter" value=1} ! {assign var=children value=$album->getChildren()} ! {foreach from=$children item=childalbum} ! <td style="width:25%;" align="center" > ! <a class="nodecoration" href="{$url->albumLink($childalbum)}"> ! <img style="border:0px;" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/> ! {$childalbum->getName()} ({$childalbum->getNumResources()}) ! </a> <br/><br/> + {assign var="counter" value="`$counter+1`"} + </td> + {if $counter%3 == 0} + </tr> + <tr> + {/if} {/foreach} + <!--- show the resources here --> + {assign var=resources value=$album->getResources()} {foreach from=$resources item=resource} + <td style="width:25%;" align="center" > {if $resource->hasPreview()} {*<a target="_blank" href="resserver.php?blogId={$blog->getId()}&resource={$resource->getFileName()}">*} ! <a href="{$url->resourceLink($resource)}"> ! <img alt="{$resource->getDescription()}" style="border:0px;" src="{$url->resourcePreviewLink($resource)}" /> <br/>{$resource->getFileName()} </a> {else} <a class="nodecoration" href="{$url->resourceLink($resource)}"> ! {if $resource->isSound()} ! <img alt="Sound" src="{$url->getUrl("/imgs/sound.gif")}" height="64" width="64" style="border:0px;" /> ! {elseif $resource->isVideo()} ! <img alt="Video" src="{$url->getUrl("/imgs/video.gif")}" height="64" width="64" style="border:0px;" /> ! {elseif $resource->isZip()} ! <img alt="Zip" src="{$url->getUrl("/imgs/compressed.gif")}" height="64" width="64" style="border:0px;" /> ! {else} ! <img alt="File" src="{$url->getUrl("/imgs/file.gif")}" height="64" width="64" style="border:0px;" /> ! {/if} ! <br/>{$resource->getFileName()} </a> {/if} <br/> {assign var=metadata value=$resource->getMetadataReader()} ! {$metadata->getRoundedSize()}<br/> {if $resource->isImage()} ! {$metadata->getWidth()} x {$metadata->getHeight()}<br/> {elseif $resource->isSound()} ! {$metadata->getFormat()|upper} {$metadata->getSampleRate()} bps<br/> {elseif $resource->isVideo()} ! {$metadata->getFormat()|upper} ! {$metadata->getWidth()} x {$metadata->getHeight()}, ! {$metadata->getLengthString()}<br/> {elseif $resource->isZip()} ! {$metadata->getTotalFiles()} {$locale->tr("files")}<br/> ! {/if} ! {assign var="counter" value="`$counter+1`"} ! </td> ! {if $counter%3 == 0} ! </tr> ! <tr> {/if} {/foreach} ! <td></td></tr> ! </table> ! </div> ! <!-- end of album contents --> ! ! {include file="grey/footer.template"} Index: albums.template =================================================================== RCS file: /cvsroot/plog/plog/templates/grey/albums.template,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** albums.template 1 Feb 2004 15:22:51 -0000 1.2 --- albums.template 29 Feb 2004 22:36:45 -0000 1.3 *************** *** 1,8 **** {include file="grey/header.template"} ! {foreach from=$albums item=album} ! <a class="nodecoration" href="{$url->albumLink($album)}"> ! <img border="0" src="{$url->getUrl("/imgs/folderbig.png")}" alt="Folder" /><br/> ! {$album->getName()}</a> ! <br/><br/><br/> {/foreach} {include file="grey/footer.template"} --- 1,25 ---- {include file="grey/header.template"} ! <h1>{$locale->tr("albums")}</h1> ! <!-- album contents go here --> ! <div id="album"> ! <table style="border:0px;width:100%;" summary="Albums"> ! <tr> ! {assign var="counter" value=0} ! {foreach from=$albums item=album} ! <td style="width:33%;" align="center"> ! <a class="nodecoration" href="{$url->albumLink($album)}"> ! <img style="border:0px;" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/> ! {$album->getName()} ({$album->getNumResources()}) ! </a> ! {assign var="counter" value="`$counter+1`"} ! </td> ! {if $counter%3 == 0} ! </tr> ! <tr> ! {/if} {/foreach} + <td></td></tr> + </table> + </div> + <!-- end of the albums --> {include file="grey/footer.template"} Index: header.template =================================================================== RCS file: /cvsroot/plog/plog/templates/grey/header.template,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** header.template 24 Oct 2003 13:52:42 -0000 1.1.1.1 --- header.template 29 Feb 2004 22:36:45 -0000 1.2 *************** *** 6,10 **** <style type="text/css" media="screen">@import "{$url->getUrl("/styles/grey.css")}";</style> </head> ! <body> <p class="Upgrade">This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please <a href="http://www.webstandards.org/upgrade/" title="The Web Standards Project's Browser Upgrade initiative">upgrade</a> to a browser that supports web standards. It's free and painless.</p> <div id="Container"> --- 6,10 ---- <style type="text/css" media="screen">@import "{$url->getUrl("/styles/grey.css")}";</style> </head> ! <body> <p class="Upgrade">This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please <a href="http://www.webstandards.org/upgrade/" title="The Web Standards Project's Browser Upgrade initiative">upgrade</a> to a browser that supports web standards. It's free and painless.</p> <div id="Container"> Index: resource.template =================================================================== RCS file: /cvsroot/plog/plog/templates/grey/resource.template,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** resource.template 18 Jan 2004 14:39:10 -0000 1.3 --- resource.template 29 Feb 2004 22:36:45 -0000 1.4 *************** *** 1,16 **** ! {include file="grey/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)}"> ! <img border="0" src="{$url->getUrl("/imgs/files.png")}" alt="File" /><br/> ! {$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="grey/footer.template"} --- 1,63 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml"> ! <head> ! <meta http-equiv="content-type" content="text/html; charset={$locale->getCharset()}" /> ! <title>{$blog->getBlog()}</title> ! <style type="text/css" media="screen">@import "{$url->getUrl("/styles/grey.css")}";</style> ! </head> ! <body> ! <p class="Upgrade">This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please <a href="http://www.webstandards.org/upgrade/" title="The Web Standards Project's Browser Upgrade initiative">upgrade</a> to a browser that supports web standards. It's free and painless.</p> ! <div id="Resource-Container"> ! <div id="Top"><h1>{$blog->getBlog()}</a></h1></div> ! <div id="Topmenu"><a href="{$url->blogLink()}">{$locale->tr("main")}</a></div> {assign var=metadata value=$resource->getMetadataReader()} ! {assign var=updated value=$resource->getTimestamp()} ! <h2>{$resource->getFileName()}</h2> ! <br/> ! <div id="Resource-Desc"> ! <a href="{$url->resourceDownloadLink($resource)}">{$locale->tr("download")}</a> ! ({$metadata->getRoundedSize()}) | {$locale->tr("created")} {$locale->formatDate($updated,"%d %b, %Y")} ! <div id="album"> ! <p>{$resource->getDescription()}</p> ! {if $resource->isImage()} ! <img src="{$url->resourceDownloadLink($resource)}" alt="{$resource->getFileName()}, {$metadata->getRoundedSize()}" /> ! {else} ! <a href="{$url->resourceDownloadLink($resource)}"> ! {* show some information about the file *} ! {if $resource->isSound()} ! <img alt="Sound" src="{$url->getUrl("/imgs/sound.gif")}" height="64" width="64" style="border:0px;" /><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="Sound" src="{$url->getUrl("/imgs/video.gif")}" height="64" width="64" style="border:0px;" /><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="Sound" src="{$url->getUrl("/imgs/compressed.gif")}" height="64" width="64" style="border:0px;" /><br/> ! {$resource->getFileName()} ! </a><br/> ! {$metadata->getTotalFiles()} {$locale->tr("files")}<br/> ! {$locale->tr("uncompressed_size")}: {$metadata->getRoundedUncompressedSize()} ! {else} ! <img alt="Sound" src="{$url->getUrl("/imgs/file.gif")}" height="64" width="64" style="border:0px;" /><br/> ! {$resource->getFileName()} ! </a> ! {/if} ! {/if} ! <br/> ! </div> ! <p> ! <a href="javascript:history.go(-1);">{$locale->tr("back")}</a> ! </p> ! </div> ! </div> ! </body> ! </html> |