diff options
| author | santo spider <spider@santo> | 2015-01-07 16:35:14 -0500 |
|---|---|---|
| committer | santo spider <spider@santo> | 2015-01-07 16:35:14 -0500 |
| commit | 7b1c0ae60f2a32e1e961b0c1d6b62662826069b0 (patch) | |
| tree | 386cf096193497aefea5de14fbbd9adc3a49120b /templates | |
| parent | c782b17dcb2048f62d836fc2f8d0cdb83f0cb42e (diff) | |
| download | liberty-7b1c0ae60f2a32e1e961b0c1d6b62662826069b0.tar.gz liberty-7b1c0ae60f2a32e1e961b0c1d6b62662826069b0.tar.bz2 liberty-7b1c0ae60f2a32e1e961b0c1d6b62662826069b0.zip | |
use class='img-responsive' on mime attached images
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mime/default/attachment.tpl | 4 | ||||
| -rw-r--r-- | templates/mime/default/inline.tpl | 2 | ||||
| -rw-r--r-- | templates/mime/default/storage.tpl | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/mime/default/attachment.tpl b/templates/mime/default/attachment.tpl index fe33bfb..f5272c8 100644 --- a/templates/mime/default/attachment.tpl +++ b/templates/mime/default/attachment.tpl @@ -7,9 +7,9 @@ <{$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} /> + <img class="img-responsive" 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}" {if !empty($height) || !empty($width)} style="{if !empty($height)}height:{$height};{/if}{if !empty($width)}width:{$width}{/if}"{/if}/> + <img class="img-responsive" 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} <div class="caption">{$wrapper.description_parsed}</div> diff --git a/templates/mime/default/inline.tpl b/templates/mime/default/inline.tpl index b869b7c..3823b81 100644 --- a/templates/mime/default/inline.tpl +++ b/templates/mime/default/inline.tpl @@ -4,7 +4,7 @@ {if $attachment.thumbnail_url.$thumbsize} {if !$attachment.is_primary or ( $attachment.is_primary and !$hideprimary )} <a href="{$attachment.display_url}"> - <img class="thumb" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$attachment.filename}" title="{$attachment.filename}"/> + <img class="img-responsive" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$attachment.filename}" title="{$attachment.filename}"/> </a> {/if} {else} diff --git a/templates/mime/default/storage.tpl b/templates/mime/default/storage.tpl index b869b7c..3823b81 100644 --- a/templates/mime/default/storage.tpl +++ b/templates/mime/default/storage.tpl @@ -4,7 +4,7 @@ {if $attachment.thumbnail_url.$thumbsize} {if !$attachment.is_primary or ( $attachment.is_primary and !$hideprimary )} <a href="{$attachment.display_url}"> - <img class="thumb" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$attachment.filename}" title="{$attachment.filename}"/> + <img class="img-responsive" src="{$attachment.thumbnail_url.$thumbsize}" alt="{$attachment.filename}" title="{$attachment.filename}"/> </a> {/if} {else} |
