From: Sascha Greuel Date: Tue, 28 Mar 2023 16:17:19 +0000 (+0200) Subject: Add `userBBCodeTag` to the shared templates X-Git-Tag: 5.5.11_dev_1~4^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df22de3f5619bac8cddd77885c27cf1f5dc08aa7;p=GitHub%2FWoltLab%2FWCF.git Add `userBBCodeTag` to the shared templates --- diff --git a/syncTemplates.json b/syncTemplates.json index bb8d4279fc..4f470c514c 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -95,6 +95,7 @@ "trophyImage", "unfurlUrl", "uploadFieldComponent", + "userBBCodeTag", "userConditions", "userOptionsCondition", "worker", diff --git a/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl b/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl new file mode 100644 index 0000000000..dbe32b29d2 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/userBBCodeTag.tpl @@ -0,0 +1,6 @@ +{if $userProfile === null} + {* user no longer exists, use plain output rather than using a broken link *} + @{$username}{* no newline after the tag +*}{else} + {@$userProfile->getFormattedUsername()}{* no newline after the tag +*}{/if}