<li id="message{@$message->messageID}" class="marginTop{if MESSAGE_SIDEBAR_ENABLE_MESSAGE_GROUP_STARTER_ICON && $conversation->userID == $message->userID} messageGroupStarter{/if}">
<article class="message messageSidebarOrientation{@$__wcf->getStyleHandler()->getStyle()->getVariable('messageSidebarOrientation')|ucfirst} dividers jsMessage{if $userProfile->userOnlineGroupID} userOnlineGroupMarking{@$userProfile->userOnlineGroupID}{/if}" data-can-edit="{if $message->canEdit()}1{else}0{/if}" data-object-id="{@$message->messageID}">
- <div>
- {include file='messageSidebar'}
+ {include file='messageSidebar'}
+
+ <div class="messageContent">
+ <header class="messageHeader">
+ <ul class="messageQuickOptions">
+ <li><a href="{link controller='Conversation' object=$conversation}messageID={@$message->messageID}{/link}#message{@$message->messageID}" class="badge jsTooltip" title="{lang}wcf.conversation.message.permalink{/lang}">{#$startIndex}</a></li>
+ </ul>
+
+ <div class="messageHeadline">
+ <p><a href="{link controller='Conversation' object=$conversation}messageID={@$message->messageID}{/link}#message{@$message->messageID}" class="permalink">{@$message->time|time}</a></p>
+ </div>
+
+ {if $conversation->isNewMessage($message->getDecoratedObject())}
+ <p class="newMessageBadge">{lang}wcf.message.new{/lang}</p>
+ {/if}
+
+ {event name='messageHeader'}
+ </header>
- <section class="messageContent">
- <div>
- <header class="messageHeader">
- <ul class="messageQuickOptions">
- <li><a href="{link controller='Conversation' object=$conversation}messageID={@$message->messageID}{/link}#message{@$message->messageID}" class="badge jsTooltip" title="{lang}wcf.conversation.message.permalink{/lang}">{#$startIndex}</a></li>
- </ul>
-
- <div class="messageHeadline">
- <p><a href="{link controller='Conversation' object=$conversation}messageID={@$message->messageID}{/link}#message{@$message->messageID}" class="permalink">{@$message->time|time}</a></p>
- </div>
-
- {if $conversation->isNewMessage($message->getDecoratedObject())}
- <p class="newMessageBadge">{lang}wcf.message.new{/lang}</p>
- {/if}
-
- {event name='messageHeader'}
- </header>
-
- <div class="messageBody">
- <div>
- <div class="messageText">
- {@$message->getFormattedMessage()}
-
- {event name='messageText'}
- </div>
- </div>
-
- {include file='attachments'}
-
- {if $message->showSignature && $message->getUserProfile()->showSignature()}
- <div class="messageSignature">
- <div>{@$message->getUserProfile()->getSignature()}</div>
- </div>
- {/if}
-
- {event name='messageBody'}
-
- <div class="messageFooter">
- {if $message->editCount}
- <p class="messageFooterNote">{lang}wcf.conversation.message.editNote{/lang}</p>
- {/if}
-
- {event name='messageFooterNotes'}
- </div>
-
- <footer class="messageOptions">
- <nav class="jsMobileNavigation buttonGroupNavigation">
- <ul class="smallButtons buttonGroup">
- {if $message->canEdit()}<li><a href="{link controller='ConversationMessageEdit' id=$message->messageID}{/link}" title="{lang}wcf.conversation.message.edit{/lang}" class="button{if !$conversation->isDraft || $message->messageID != $conversation->firstMessageID} jsMessageEditButton{/if}"><span class="icon icon16 icon-pencil"></span> <span>{lang}wcf.global.button.edit{/lang}</span></a></li>{/if}
- <li class="jsQuoteMessage" data-object-id="{@$message->messageID}" data-is-quoted="{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote}1{else}0{/if}"><a rel="nofollow" href="{link controller='ConversationMessageAdd' id=$conversation->conversationID quoteMessageID=$message->messageID}{/link}" title="{lang}wcf.message.quote.quoteMessage{/lang}" class="button jsTooltip{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote} active{/if}"><span class="icon icon16 icon-quote-left"></span> <span class="invisible">{lang}wcf.message.quote.quoteMessage{/lang}</span></a></li>
- {if $message->userID != $__wcf->getUser()->userID && $__wcf->session->getPermission('user.profile.canReportContent')}<li class="jsReportConversationMessage jsOnly" data-object-id="{@$message->messageID}"><a href="#" title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span class="icon icon16 icon-warning-sign"></span> <span class="invisible">{lang}wcf.moderation.report.reportContent{/lang}</span></a></li>{/if}
- {event name='messageOptions'}
- <li class="toTopLink"><a href="{$__wcf->getAnchor('top')}" title="{lang}wcf.global.scrollUp{/lang}" class="button jsTooltip"><span class="icon icon16 icon-arrow-up"></span> <span class="invisible">{lang}wcf.global.scrollUp{/lang}</span></a></li>
- </ul>
- </nav>
- </footer>
+ <div class="messageBody">
+ {event name='beforeMessageText'}
+ <div class="messageText">
+ {@$message->getFormattedMessage()}
+ </div>
+
+ {event name='afterMessageText'}
+ </div>
+
+ <footer class="messageFooter">
+ {include file='attachments'}
+
+ {if $message->showSignature && $message->getUserProfile()->showSignature()}
+ <div class="messageSignature">
+ <div>{@$message->getUserProfile()->getSignature()}</div>
</div>
+ {/if}
+
+ {event name='messageBody'}
+
+ <div class="messageFooterNotes">
+ {if $message->editCount}
+ <p class="messageFooterNote">{lang}wcf.conversation.message.editNote{/lang}</p>
+ {/if}
+
+ {event name='messageFooterNotes'}
</div>
- </section>
+
+ <ul class="messageFooterButtons buttonList smallButtons">
+ {if $message->canEdit()}<li><a href="{link controller='ConversationMessageEdit' id=$message->messageID}{/link}" title="{lang}wcf.conversation.message.edit{/lang}" class="button{if !$conversation->isDraft || $message->messageID != $conversation->firstMessageID} jsMessageEditButton{/if}"><span class="icon icon16 icon-pencil"></span> <span>{lang}wcf.global.button.edit{/lang}</span></a></li>{/if}
+ <li class="jsQuoteMessage" data-object-id="{@$message->messageID}" data-is-quoted="{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote}1{else}0{/if}"><a rel="nofollow" href="{link controller='ConversationMessageAdd' id=$conversation->conversationID quoteMessageID=$message->messageID}{/link}" title="{lang}wcf.message.quote.quoteMessage{/lang}" class="button jsTooltip{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote} active{/if}"><span class="icon icon16 icon-quote-left"></span> <span class="invisible">{lang}wcf.message.quote.quoteMessage{/lang}</span></a></li>
+ {if $message->userID != $__wcf->getUser()->userID && $__wcf->session->getPermission('user.profile.canReportContent')}<li class="jsReportConversationMessage jsOnly" data-object-id="{@$message->messageID}"><a href="#" title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span class="icon icon16 icon-warning-sign"></span> <span class="invisible">{lang}wcf.moderation.report.reportContent{/lang}</span></a></li>{/if}
+ {event name='messageOptions'}
+ <li class="toTopLink"><a href="{$__wcf->getAnchor('top')}" title="{lang}wcf.global.scrollUp{/lang}" class="button jsTooltip"><span class="icon icon16 icon-arrow-up"></span> <span class="invisible">{lang}wcf.global.scrollUp{/lang}</span></a></li>
+ </ul>
+ </footer>
</div>
</article>
</li>