• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 New tab in moderation_bar

#1
I am adding a new tab in the moderator bar using the template moderator_bar. I have added the text and the link but I also want the number next to it. The tab links to my staff section and I want the number to be the number of unread messages.

I currently have:
PHP:
<xen:if is="{$visitor.is_moderator}">
                <a href="/forums/forums/break-room/">
                    <span class="itemLabel">Staff [Incomplete]</span>
                </a>
            </xen:if>
I know I need to add a span with itemCount but I am not sure how.

Any help is appreciated.