From fb9bfece30e98036b09a72f31ac1a0e894299aff Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 6 Aug 2020 22:36:49 +0200 Subject: [PATCH] New method to generate attributes for tags --- com.woltlab.wcf/templates/quoteMetaCode.tpl | 2 +- .../templates/userInformationButtons.tpl | 2 +- com.woltlab.wcf/templates/usersOnlineList.tpl | 2 +- ...AttributesFunctionTemplatePlugin.class.php | 65 +++++++++++++++++++ .../IpSearchModifierTemplatePlugin.class.php | 2 +- .../files/lib/util/StringUtil.class.php | 37 +++++++++-- 6 files changed, 99 insertions(+), 11 deletions(-) create mode 100644 wcfsetup/install/files/lib/system/template/plugin/AnchorAttributesFunctionTemplatePlugin.class.php diff --git a/com.woltlab.wcf/templates/quoteMetaCode.tpl b/com.woltlab.wcf/templates/quoteMetaCode.tpl index 1cdd2a6fe4..ebbfe33476 100644 --- a/com.woltlab.wcf/templates/quoteMetaCode.tpl +++ b/com.woltlab.wcf/templates/quoteMetaCode.tpl @@ -11,7 +11,7 @@ {if $quoteAuthor} {if $quoteLink} - {lang}wcf.bbcode.quote.title{/lang} + {lang}wcf.bbcode.quote.title{/lang} {else} {lang}wcf.bbcode.quote.title{/lang} {/if} diff --git a/com.woltlab.wcf/templates/userInformationButtons.tpl b/com.woltlab.wcf/templates/userInformationButtons.tpl index 7c0eb233dd..bd9ed1fcb2 100644 --- a/com.woltlab.wcf/templates/userInformationButtons.tpl +++ b/com.woltlab.wcf/templates/userInformationButtons.tpl @@ -3,7 +3,7 @@