You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1 KiB
Smarty

<!-- IMPORT partials/breadcrumbs.tpl -->
<div widget-area="header">
{{{each widgets.header}}}
{{widgets.header.html}}
{{{end}}}
</div>
<div class="popular">
<div class="btn-toolbar">
<div class="pull-left">
<!-- IF canPost -->
<button component="category/post" id="new_topic" class="btn btn-primary">[[category:new_topic_button]]</button>
<!-- ELSE -->
<a component="category/post/guest" href="{config.relative_path}/login" class="btn btn-primary">[[category:guest-login-post]]</a>
<!-- ENDIF canPost -->
</div>
<!-- IMPORT partials/category-filter.tpl -->
<div class="btn-group pull-right bottom-sheet <!-- IF !filters.length -->hidden<!-- ENDIF !filters.length -->">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{selectedFilter.name} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
{{{each filters}}}
<li role="presentation" class="category">
<a role="menu-item" href="{config.relative_path}/{filters.url}"><i class="fa fa-fw <!-- IF filters.selected -->fa-check<!-- ENDIF filters.selected -->"></i>{filters.name}</a>
</li>
{{{end}}}
</ul>
</div>
<div class="btn-group pull-right bottom-sheet <!-- IF !terms.length -->hidden<!-- ENDIF !terms.length -->">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
{selectedTerm.name} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
{{{each terms}}}
<li role="presentation" class="category">
<a role="menu-item" href="{config.relative_path}/{terms.url}"><i class="fa fa-fw <!-- IF terms.selected -->fa-check<!-- ENDIF terms.selected -->"></i>{terms.name}</a>
</li>
{{{end}}}
</ul>
</div>
</div>
<br />
<div class="category">
<!-- IF !topics.length -->
<div class="alert alert-warning" id="category-no-topics">[[recent:no_popular_topics]]</div>
<!-- ENDIF !topics.length -->
<!-- IMPORT partials/topics_list.tpl -->
<!-- IF config.usePagination -->
<!-- IMPORT partials/paginator.tpl -->
<!-- ENDIF config.usePagination -->
</div>
</div>