</li>
{/hascontent}
- {hascontent}
- <li class="dropdown">
- <a class="jsTooltip button dropdownToggle" title="{lang}wcf.user.profile.user{/lang}"><span class="icon icon32 fa-user"></span> <span class="invisible">{lang}wcf.user.profile.user{/lang}</span></a>
- <ul class="dropdownMenu userProfileButtonMenu" data-menu="interaction">
- {content}
- {event name='menuInteraction'}
-
- {if $user->userID != $__wcf->user->userID}
- {if $user->isAccessible('canViewEmailAddress') || $__wcf->session->getPermission('admin.user.canEditMailAddress')}
- <li><a href="mailto:{@$user->getEncodedEmail()}">{lang}wcf.user.button.mail{/lang}</a></li>
- {/if}
- {/if}
-
- {if $user->userID != $__wcf->user->userID && $__wcf->session->getPermission('user.profile.canReportContent')}
- <li class="jsReportUser" data-object-id="{@$user->userID}"><a href="#">{lang}wcf.user.profile.report{/lang}</a></li>
- {/if}
- {/content}
- </ul>
- </li>
- {/hascontent}
-
{hascontent}
<li class="dropdown">
<a class="jsTooltip button dropdownToggle" title="{lang}wcf.user.searchUserContent{/lang}"><span class="icon icon32 fa-search"></span> <span class="invisible">{lang}wcf.user.searchUserContent{/lang}</span></a>
{event name='contentHeaderNavigation'}
</ul>
</nav>
-
</header>
{/capture}
{include file='userSidebar' assign='sidebarRight'}
+{capture assign='contentInteractionDropdownItems'}
+ {event name='menuInteraction'}
+
+ {if $user->userID != $__wcf->user->userID}
+ {if $user->isAccessible('canViewEmailAddress') || $__wcf->session->getPermission('admin.user.canEditMailAddress')}
+ <li><a href="mailto:{@$user->getEncodedEmail()}">{lang}wcf.user.button.mail{/lang}</a></li>
+ {/if}
+ {/if}
+
+ {if $user->userID != $__wcf->user->userID && $__wcf->session->getPermission('user.profile.canReportContent')}
+ <li class="jsReportUser" data-object-id="{@$user->userID}"><a href="#">{lang}wcf.user.profile.report{/lang}</a></li>
+ {/if}
+{/capture}
+
{include file='header'}
{if !$user->isProtected()}
this._button.addEventListener("click", (ev) => this._toggle(ev));
this._listItem.appendChild(this._button);
- const menu = document.querySelector(`.userProfileButtonMenu[data-menu="interaction"]`) as HTMLElement;
+ const menu = document.querySelector(".contentInteractionDropdownItems") as HTMLElement;
menu.insertAdjacentElement("afterbegin", this._listItem);
}
this._button.href = "#";
this._button.addEventListener("click", (ev) => this._toggle(ev));
this._listItem.appendChild(this._button);
- const menu = document.querySelector(`.userProfileButtonMenu[data-menu="interaction"]`);
+ const menu = document.querySelector(".contentInteractionDropdownItems");
menu.insertAdjacentElement("afterbegin", this._listItem);
}
/**
<item name="wcf.user.profile.recentActivity.profileCommentResponse"><![CDATA[Hat auf einen Kommentar von <a href="{link controller='User' object=$commentAuthor}{/link}">{$commentAuthor->username}</a> an der <a href="{link controller='User' object=$user}{/link}#wall/comment{@$commentID}/response{@$responseID}">Pinnwand von {$user->username}</a> geantwortet.]]></item>
<item name="wcf.user.profile.report"><![CDATA[Benutzerprofil melden]]></item>
<item name="wcf.user.profile.protected"><![CDATA[Der Benutzer hat den Zugriff auf sein vollständiges Profil eingeschränkt.]]></item>
- <item name="wcf.user.profile.user"><![CDATA[Benutzer]]></item>
<item name="wcf.user.profile.management"><![CDATA[Verwaltung]]></item>
<item name="wcf.user.profile.customization"><![CDATA[Anpassung]]></item>
<item name="wcf.user.profile.title"><![CDATA[Benutzerprofil von {$user->username}]]></item>
<item name="wcf.user.notification.markAsConfirmed" />
<item name="wcf.user.panel.markAllAsRead" />
<item name="wcf.user.panel.markAsRead" />
+ <item name="wcf.user.profile.user" />
</delete>
</language>
<item name="wcf.user.profile.recentActivity.profileCommentResponse"><![CDATA[Replied to a comment by <a href="{link controller='User' object=$commentAuthor}{/link}">{$commentAuthor->username}</a> on <a href="{link controller='User' object=$user}{/link}#wall/comment{@$commentID}/response{@$responseID}">{$user->username}’s wall</a>.]]></item>
<item name="wcf.user.profile.report"><![CDATA[Report User Profile]]></item>
<item name="wcf.user.profile.protected"><![CDATA[This member limits who may view their full profile.]]></item>
- <item name="wcf.user.profile.user"><![CDATA[User]]></item>
<item name="wcf.user.profile.management"><![CDATA[Management]]></item>
<item name="wcf.user.profile.customization"><![CDATA[Customization]]></item>
<item name="wcf.user.profile.title"><![CDATA[User profile of {$user->username}]]></item>
<item name="wcf.user.notification.markAsConfirmed" />
<item name="wcf.user.panel.markAllAsRead" />
<item name="wcf.user.panel.markAsRead" />
+ <item name="wcf.user.profile.user" />
</delete>
</language>