<xf:ad position="forum_overview_top" />
<xf:widgetpos id="forum_overview_top" />

<xf:if is="{{ property('uix_removeIndexPageTitle')}}">
	<xf:page option="uix_hidePageTitle">1</xf:page>
</xf:if>

<xf:pageaction>
	<xf:if is="!property('uix_removeWhatsNewButtons')">
		<xf:if is="$pageSelected == 'new_posts' ">
			<xf:button href="{{ link('forums/list') }}" icon="list">
				{{ phrase('forum_list') }}
			</xf:button>
		<xf:else />
			<xf:button href="{{ $xf.options.forumsDefaultPage == 'new_posts' ? link('forums/new-posts') : link('whats-new/posts') }}" icon="bolt">
				{{ phrase('new_posts') }}
			</xf:button>
		</xf:if>
	</xf:if>
	<xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
		<xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true">
			{{ phrase('post_thread...') }}
		</xf:button>
	</xf:if>
</xf:pageaction>

{$innerContent|raw}

<xf:ad position="forum_overview_bottom" />
<xf:widgetpos id="forum_overview_bottom" />