{if $message->getUserProfile() || $message->getTime() || $message->getContainerTitle()}
<ul class="inlineList dotSeparated">
{if $message->getUserProfile()}
- <li>
- {if $message->getUserProfile()->userID}
- <a href="{link controller='User' object=$message->getUserProfile()}{/link}" class="userLink" data-user-id="{@$message->getUserProfile()->userID}">{$message->getUserProfile()->username}</a>
- {else}
- {$message->getUserProfile()->username}
- {/if}
- </li>
+ <li>{if $message->getUserProfile()->userID}<a href="{link controller='User' object=$message->getUserProfile()}{/link}" class="userLink" data-user-id="{@$message->getUserProfile()->userID}">{$message->getUserProfile()->username}</a>{else}{$message->getUserProfile()->username}{/if}</li>
{/if}
{if $message->getTime()}
<li><small>{@$message->getTime()|time}</small></li>
}
if ($attachment !== null) {
- if ($attachment->showAsImage() && $attachment->canViewPreview() && $parser->getOutputType() == 'text/html') {
+ if ($attachment->showAsImage() && $attachment->canViewPreview() && ($parser->getOutputType() == 'text/html' || $parser->getOutputType() == 'text/simplified-html')) {
// image
$alignment = (isset($openingTag['attributes'][1]) ? $openingTag['attributes'][1] : '');
$thumbnail = (isset($openingTag['attributes'][2]) ? $openingTag['attributes'][2] : false);
$thumbnail = true;
}
+ // always use thumbnail in simplified version
+ if ($parser->getOutputType() == 'text/simplified-html') {
+ $thumbnail = true;
+ }
+
// check if width is valid and the original is accessible by viewer
if (!$thumbnail && !$attachment->canDownload()) {
$thumbnail = false;