XF 2.1 Adding the orange "Post thread" button to other pages

Morrus

Member
I figure a widget would be the easy way to do it, so I could add the button to locations like the Xenporta front page, "What's new?", and other locations.

What code would I need in the widget to accomplish this?
 
To clarify, my question was about adding the orange Post Thread button to a widget.
Try...
Code:
    <xf:if is="$xf.visitor.canCreateThread()">
        <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true">
            {{ phrase('post_thread...') }}
        </xf:button>
    </xf:if>
 
Back
Top Bottom