summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-10-16 18:46:14 +0000
committerChristian Fowler <spider@viovio.com>2009-10-16 18:46:14 +0000
commit3d5e3816477855ea9d3bb5970518358e59f83df5 (patch)
tree2e60ff75ad043f7b8f52974d2845a1597c36a7ba /templates
parent05f37820bb7bf283f9e1399c3c4475f811a45165 (diff)
downloadliberty-3d5e3816477855ea9d3bb5970518358e59f83df5.tar.gz
liberty-3d5e3816477855ea9d3bb5970518358e59f83df5.tar.bz2
liberty-3d5e3816477855ea9d3bb5970518358e59f83df5.zip
default to <span style='display:inline-block'> for att-pluging wrapper. This insures maximum compatibility in all browsers, and allow att's to line up horizontally. (read up on span and inline-block for details why it must be this combo
Diffstat (limited to 'templates')
-rw-r--r--templates/mime/default/attachment.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mime/default/attachment.tpl b/templates/mime/default/attachment.tpl
index a8d4f0a..0d86d33 100644
--- a/templates/mime/default/attachment.tpl
+++ b/templates/mime/default/attachment.tpl
@@ -4,7 +4,7 @@
{$wrapper.description_parsed|default:$attachment.filename}
{if $attachment.display_url}</a>{/if}
{else}
- <{$wrapper.wrapper|default:'div'} class="{$wrapper.class|default:'att-plugin'}"{if $wrapper.style} style="{$wrapper.style}{/if}">
+ <{$wrapper.wrapper|default:'span'} class="{$wrapper.class|default:'att-plugin'}"{if $wrapper.style} style="{$wrapper.style|default:'display:inline-block'}{/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}" {if !empty($height) || !empty($width)} style="{if !empty($height)}height:{$height};{/if}{if !empty($width)}width:{$width}{/if}"{/if} />
@@ -16,6 +16,6 @@
{/if}
{if $wrapper.display_url}</a>{/if}
- </{$wrapper.wrapper|default:'div'}>
+ </{$wrapper.wrapper|default:'span'}>
{/if}
{/strip}