From: Alexander Ebert Date: Mon, 23 Nov 2015 23:10:56 +0000 (+0100) Subject: Added experimental mention support X-Git-Tag: 3.0.0_Beta_1~2030^2~237 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4346e66b2f179e2f2ee5eb8db529475f7ec992e;p=GitHub%2FWoltLab%2FWCF.git Added experimental mention support Still buggy and anything but finished, more like a proof of concept than a working implementation. Naming is still inconsistent and is something I'm working on. --- diff --git a/com.woltlab.wcf/templates/htmlNodeWoltlabMention.tpl b/com.woltlab.wcf/templates/htmlNodeWoltlabMention.tpl new file mode 100644 index 0000000000..ac2b3d7e47 --- /dev/null +++ b/com.woltlab.wcf/templates/htmlNodeWoltlabMention.tpl @@ -0,0 +1,7 @@ +{if $userProfile === null} + {* user no longer exists, use plain output rather than using a broken link *} + @{$username} +{else} + {* non-breaking space below to prevent wrapping of user avatar and username *} + {@$userProfile->getAvatar()->getImageTag(16)} {$userProfile->username} +{/if} \ No newline at end of file diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index 475c223556..272816bb3c 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -1,3 +1,12 @@ +