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.
18 lines
1.7 KiB
Smarty
18 lines
1.7 KiB
Smarty
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
<span component="category-selector-selected">{{{ if (selectedCategory && !showCategorySelectLabel) }}}<span class="fa-stack" style="{function.generateCategoryBackground, selectedCategory}"><i class="fa fa-fw fa-stack-1x {selectedCategory.icon}" style="color: {selectedCategory.color};"></i></span> {selectedCategory.name}{{{ else }}}
|
|
<span class="visible-sm-inline visible-md-inline visible-lg-inline">{{{ if selectCategoryLabel }}}{selectCategoryLabel}{{{ else }}}[[topic:thread_tools.select_category]]{{{ end }}}</span><span class="visible-xs-inline"><i class="fa fa-fw {{{ if selectCategoryIcon }}}{selectCategoryIcon}{{{ else }}}fa-list{{{ end }}}"></i></span>
|
|
{{{ end }}}</span> <span class="caret"></span>
|
|
</button>
|
|
<div component="category-selector-search" class="hidden">
|
|
<input type="text" class="form-control" autocomplete="off">
|
|
</div>
|
|
<ul component="category/list" class="dropdown-menu category-dropdown-menu" role="menu">
|
|
<li component="category/no-matches" role="presentation" class="category hidden">
|
|
<a role="menu-item">[[search:no-matches]]</a>
|
|
</li>
|
|
{{{each categoryItems}}}
|
|
<li role="presentation" class="category {{{ if ../disabledClass }}}disabled {{{ end }}}" data-cid="{../cid}" data-name="{../name}" data-parent-cid="{../parentCid}">
|
|
<a role="menu-item">{../level}<span component="category-markup" style="{{{ if ../match }}}font-weight: bold;{{{end}}}">{{{ if ./icon }}}<span class="fa-stack" style="{function.generateCategoryBackground}"><i style="color: {../color};" class="fa fa-stack-1x fa-fw {../icon}"></i></span>{{{ end }}} {../name}</span></a>
|
|
</li>
|
|
{{{ end }}}
|
|
</ul> |