aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/categories_widget.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/categories_widget.tpl')
-rwxr-xr-xview/tpl/categories_widget.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/tpl/categories_widget.tpl b/view/tpl/categories_widget.tpl
new file mode 100755
index 000000000..72478aa3d
--- /dev/null
+++ b/view/tpl/categories_widget.tpl
@@ -0,0 +1,12 @@
+<div id="categories-sidebar" class="widget">
+ <h3>{{$title}}</h3>
+ <div id="categories-sidebar-desc">{{$desc}}</div>
+
+ <ul class="nav nav-pills flex-column">
+ <li class="nav-item"><a href="{{$base}}" class="nav-link{{if $sel_all}} active{{/if}}">{{$all}}</a></li>
+ {{foreach $terms as $term}}
+ <li class="nav-item"><a href="{{$base}}?f=&cat={{$term.name}}" class="nav-link{{if $term.selected}} active{{/if}}">{{$term.name}}</a></li>
+ {{/foreach}}
+ </ul>
+
+</div>