{foreach from=$menuItemNodeList item=menuItemNode}
<li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}" data-identifier="{@$menuItemNode->identifier}">
- <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{anchorAttributes url=$menuItemNode->getURL() appendClassname=false}{if $menuItemNode->isActiveNode()} aria-current="page"{/if}>
+ <a {anchorAttributes url=$menuItemNode->getURL() appendClassname=false} class="boxMenuLink"{if $menuItemNode->isActiveNode()} aria-current="page"{/if}>
<span class="boxMenuLinkTitle">{$menuItemNode->getTitle()}</span>
{if $menuItemNode->getOutstandingItems() > 0}
<span class="boxMenuLinkOutstandingItems badge badgeUpdate" aria-label="{lang}wcf.page.menu.outstandingItems{/lang}">{#$menuItemNode->getOutstandingItems()}</span>
<ul class="buttonList iconList">
{content}
{if $user->homepage && $user->homepage != 'http://'}
- <li><a class="jsTooltip" title="{lang}wcf.user.option.homepage{/lang}" {anchorAttributes url=$user->homepage appendClassname=false isUgc=true}><span class="icon icon16 fa-home"></span> <span class="invisible">{lang}wcf.user.option.homepage{/lang}</span></a></li>
+ <li><a class="jsTooltip" title="{lang}wcf.user.option.homepage{/lang}" {anchorAttributes url=$user->homepage appendClassname=false isUgc=true}><span class="icon icon16 fa-home"></span> <span class="invisible">{lang}wcf.user.option.homepage{/lang}</span></a></li>
{/if}
{if $user->userID != $__wcf->user->userID}
else {
$htmlOutputProcessor = new HtmlOutputProcessor();
$htmlOutputProcessor->setOutputType('text/plain');
- $htmlOutputProcessor->enableUgc(false);
+ $htmlOutputProcessor->setUgc(false);
$htmlOutputProcessor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID, false, $this->languageID);
return nl2br(StringUtil::encodeHTML(StringUtil::truncate($htmlOutputProcessor->getHtml(), 500)), false);
*/
public function getFormattedContent() {
$processor = new HtmlOutputProcessor();
- $processor->enableUgc(false);
+ $processor->setUgc(false);
$processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID, false, $this->languageID);
return $processor->getHtml();
*/
public function getAmpFormattedContent() {
$processor = new AmpHtmlOutputProcessor();
- $processor->enableUgc(false);
+ $processor->setUgc(false);
$processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID);
return $processor->getHtml();
case 'text/plain':
$processor = new HtmlOutputProcessor();
$processor->setOutputType('text/plain');
- $processor->enableUgc(false);
+ $processor->setUgc(false);
$processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID);
return $processor->getHtml();
// parse and return message
$processor = new HtmlOutputProcessor();
$processor->setOutputType('text/simplified-html');
- $processor->enableUgc(false);
+ $processor->setUgc(false);
$processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID);
return $processor->getHtml();
* Template function plugin which generates attributes for `a` HTML elements.
*
* Required parameter:
- * `url` (string)
+ * `url` (string)
* Optional parameter:
* `appendHref` (bool, default true)
- * `appendClassname` (bool, default true)
+ * `appendClassname` (bool, default true)
* `isUgc` (bool, default false)
*
* Usage:
- * {anchorAttributes url=$url}
+ * {anchorAttributes url=$url}
*
* @author Marcel Werk
* @copyright 2001-2020 WoltLab GmbH
$rel = 'nofollow';
if (EXTERNAL_LINK_TARGET_BLANK) {
$rel .= ' noopener noreferrer';
- $attributes .= 'target="_blank"';
+ $attributes .= ' target="_blank"';
}
if ($isUgc) {
$rel .= ' ugc';