<xf:if contentcheck="false">
	<xf:contentcheck>
		<xf:if contentcheck="false">
			<xf:contentcheck>
				<xf:if is="$hasOptions AND $addOn.active AND $xf.visitor.hasAdminPermission('option')">
					<a href="{{ $hasOptions === true ? link('add-ons/options', $addOn) : link($hasOptions) }}" class="menu-linkRow">{{ phrase('options') }}</a>
				</xf:if>
				<xf:if is="$hasPublicTemplates AND $xf.visitor.hasAdminPermission('style')">
					<a href="{{ link('styles/templates', $style, {'addon_id': $addOn.addon_id, 'type': 'public'}) }}" class="menu-linkRow">{{ phrase('public_templates') }}</a>
				</xf:if>
				<xf:if is="$hasEmailTemplates AND $xf.visitor.hasAdminPermission('style')">
					<a href="{{ link('styles/templates', $style, {'addon_id': $addOn.addon_id, 'type': 'email'}) }}" class="menu-linkRow">{{ phrase('email_templates') }}</a>
				</xf:if>
				<xf:if is="$hasAdminTemplates AND $xf.visitor.hasAdminPermission('style')">
					<a href="{{ link('styles/templates', $masterStyle, {'addon_id': $addOn.addon_id, 'type': 'admin'}) }}" class="menu-linkRow">{{ phrase('admin_templates') }}</a>
				</xf:if>
				<xf:if is="$hasPhrases AND $xf.visitor.hasAdminPermission('language')">
					<a href="{{ link('languages/phrases', $language, {'addon_id': $addOn.addon_id}) }}" class="menu-linkRow">{{ phrase('phrases') }}</a>
				</xf:if>
			</xf:contentcheck>

			<hr class="menu-separator" />
		</xf:if>

		<xf:if contentcheck="false">
			<xf:contentcheck>
				<xf:if is="($addOn.isInstalled() OR $addOn.canUpgrade()) AND !$addOn.isLegacy()">
					<a href="{{ link('add-ons/toggle', $addOn, {'t': csrf_token()}) }}" class="menu-linkRow">{{ $addOn.active ? phrase('disable') : phrase('enable') }}</a>
				</xf:if>
				<xf:if is="$addOn.hasPendingChanges() AND $xf.development">
					<a href="{{ link('add-ons/sync-changes', $addOn, {'t': csrf_token()}) }}" class="menu-linkRow">{{ phrase('sync_changes') }}</a>
				</xf:if>
				<xf:if is="$addOn.isFileVersionValid() AND $addOn.canRebuild()">
					<a href="{{ link('add-ons/rebuild', $addOn) }}" class="menu-linkRow" data-xf-click="overlay">{{ phrase('rebuild') }}</a>
				</xf:if>
				<xf:if is="$addOn.isInstalled() AND !$addOn.canUpgrade()">
					<a href="{{ link('add-ons/uninstall', $addOn) }}" class="menu-linkRow" data-xf-click="overlay">{{ phrase('uninstall') }}</a>
				</xf:if>
			</xf:contentcheck>
		</xf:if>
	</xf:contentcheck>
<xf:else />
	<div class="menu-row">{{ phrase('no_items_to_display') }}</div>
</xf:if>