diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-10-15 20:03:58 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-10-15 20:03:58 +0000 |
| commit | a134e0b65e42f58e04de3d964934d72b931c9194 (patch) | |
| tree | d381cb1ba1c1c5899739076e382c8d5774b8c145 /templates/mime | |
| parent | 89436a4ad41b266147848d59eadbf8b5557a8145 (diff) | |
| download | liberty-a134e0b65e42f58e04de3d964934d72b931c9194.tar.gz liberty-a134e0b65e42f58e04de3d964934d72b931c9194.tar.bz2 liberty-a134e0b65e42f58e04de3d964934d72b931c9194.zip | |
Add width and height attributes to image in mime attachment tpl so that they actually respect the size that was passed in
Diffstat (limited to 'templates/mime')
| -rw-r--r-- | templates/mime/default/attachment.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mime/default/attachment.tpl b/templates/mime/default/attachment.tpl index 2ba68a5..1f421f4 100644 --- a/templates/mime/default/attachment.tpl +++ b/templates/mime/default/attachment.tpl @@ -7,9 +7,9 @@ <{$wrapper.wrapper|default:'div'} class="{$wrapper.class|default:'att-plugin'}"{if $wrapper.style} style="{$wrapper.style}{/if}"> {if $wrapper.display_url}<a {$wrapper.href_class} href="{$wrapper.display_url}">{/if} {if $thumbsize == 'original'} - <img class="thumb" src="{$attachment.source_url}" alt="{$wrapper.alt|default:$wrapper.description|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" title="{$wrapper.description|default:$wrapper.alt|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" /> + <img class="thumb" src="{$attachment.source_url}" alt="{$wrapper.alt|default:$wrapper.description|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" title="{$wrapper.description|default:$wrapper.alt|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" {if !empty($height) || !empty($width)} style="{if !empty($height)}height:{$height};{/if}{if !empty($width)}width:{$width}{/if}"{/if} /> {elseif $attachment.thumbnail_url.$thumbsize} - <img class="thumb" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$wrapper.alt|default:$wrapper.description|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" title="{$wrapper.description|default:$wrapper.alt|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" /> + <img class="thumb" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$wrapper.alt|default:$wrapper.description|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" title="{$wrapper.description|default:$wrapper.alt|default:$attachment.filename|replace:"\r":""|replace:"\n":" "|escape}" {if !empty($height) || !empty($width)} style="{if !empty($height)}height:{$height};{/if}{if !empty($width)}width:{$width}{/if}"{/if}/> {/if} {if $wrapper.description_parsed} <br />{$wrapper.description_parsed} |
