[pLog-svn] r6955 - templates/branches/lifetype-1.2/ShadedGrey

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Jan 7 11:38:36 EST 2010


Author: jondaley
Date: 2010-01-07 11:38:36 -0500 (Thu, 07 Jan 2010)
New Revision: 6955

Modified:
   templates/branches/lifetype-1.2/ShadedGrey/resource.template
Log:
constrain width for big images.  fixes #1549

Modified: templates/branches/lifetype-1.2/ShadedGrey/resource.template
===================================================================
--- templates/branches/lifetype-1.2/ShadedGrey/resource.template	2010-01-07 16:31:06 UTC (rev 6954)
+++ templates/branches/lifetype-1.2/ShadedGrey/resource.template	2010-01-07 16:38:36 UTC (rev 6955)
@@ -11,8 +11,12 @@
 <div id="album">
 <p>{$resource->getDescription()}</p>
 {if $resource->isImage()}
+{if $metadata->getWidth()<=520}
 <img src="{$url->resourceMediumSizePreviewLink($resource)}" alt="{$resource->getFileName()}, {$metadata->getRoundedSize()}" />
 {else}
+<img width="100%" src="{$url->resourceMediumSizePreviewLink($resource)}" alt="{$resource->getFileName()}, {$metadata->getRoundedSize()}" />
+{/if} 
+{else}
 <a href="{$url->resourceDownloadLink($resource)}">
 {* show some information about the file *}
 {if $resource->isSound()}
@@ -55,4 +59,4 @@
 </div>
 </div>
 {include file="$blogtemplate/panel.template"}
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$blogtemplate/footer.template"}



More information about the pLog-svn mailing list