<xf:macro name="simple_list_block" arg-categoryTree="!" arg-categoryExtras="!" arg-selected="{{ 0 }}" arg-isNavBlock="{{ false }}" arg-authorId="{{ 0 }}" arg-seriesAuthorId="{{ 0 }}">
<div class="block">
<div class="block-container">
<xf:if is="$isNavBlock">
<h3 class="block-header">{{ phrase('navigation') }}</h3>
<xf:else />
<h3 class="block-header">{{ phrase('categories') }}</h3>
</xf:if>
<div class="block-body">
<xf:if is="$categoryTree && $categoryTree.count()">
<xf:macro name="simple_category_list"
arg-selected="{$selected}"
arg-pathToSelected="{{ $selected ? $categoryTree.getPathTo($selected) : [] }}"
arg-children="{$categoryTree}"
arg-extras="{$categoryExtras}"
arg-isActive="{{ true }}" />
<hr class="block-separator" />
</xf:if>
<xf:if contentcheck="true">
<xf:contentcheck>
<xf:if is="$isNavBlock">
<xf:if is="$xf.options.xaAmsEnableAuthorList">
<a href="{{ link('ams/authors') }}" class="blockLink{{ $selected == 'browseAuthors' ? ' is-selected' : '' }}">{{ phrase('xa_ams_browse_authors') }}</a>
</xf:if>
<xf:if is="$xf.visitor.canViewAmsSeries()">
<a href="{{ link('ams/series') }}" class="blockLink{{ ($selected == 'browseSeries' && $xf.visitor.user_id != $seriesAuthorId) ? ' is-selected' : '' }}">{{ phrase('xa_ams_browse_series') }}</a>
</xf:if>
</xf:if>
<xf:if is="$isNavBlock && $xf.visitor.user_id && ($xf.visitor.hasAmsArticlePermission('add') || $xf.visitor.hasAmsSeriesPermission('createSeries'))">
<xf:if is="$xf.visitor.hasAmsArticlePermission('add')">
<a href="{{ link('ams/authors', $xf.visitor) }}" class="blockLink{{ ($selected == 'yourPublishedArticles' && $xf.visitor.user_id == $authorId) ? ' is-selected' : '' }}">{{ phrase('xa_ams_your_published_articles') }}</a>
<a href="{{ link('ams/authors/awaiting-publishing', $xf.visitor) }}" class="blockLink{{ ($selected == 'yourArticlesAwaitingPublishing' && $xf.visitor.user_id == $authorId) ? ' is-selected' : '' }}">{{ phrase('xa_ams_your_articles_awaiting_publishing') }}</a>
<a href="{{ link('ams/authors/drafts', $xf.visitor) }}" class="blockLink{{ ($selected == 'yourDrafts' && $xf.visitor.user_id == $authorId) ? ' is-selected' : '' }}">{{ phrase('xa_ams_your_drafts') }}</a>
</xf:if>
<xf:if is="$xf.visitor.hasAmsSeriesPermission('createSeries')">
<a href="{{ link('ams/series', null, {'creator_id': $xf.visitor.user_id}) }}" class="blockLink{{ ($selected == 'browseSeries' && $xf.visitor.user_id == $seriesAuthorId) ? ' is-selected' : '' }}">{{ phrase('xa_ams_your_series') }}</a>
</xf:if>
</xf:if>
</xf:contentcheck>
</xf:if>
</div>
</div>
</div>
</xf:macro>