allow users to set categories on their posts

This commit is contained in:
Michael Johnston 2012-04-01 21:28:31 -04:00
commit 581b54c974
11 changed files with 226 additions and 18 deletions

13
view/categories_widget.tpl Executable file
View file

@ -0,0 +1,13 @@
<div class="clear"></div>
<div id="categories-sidebar" class="widget">
<h3>$title</h3>
<div id="nets-desc">$desc</div>
<ul class="categories-ul">
<li class="tool"><a href="$base" class="categories-link categories-all{{ if $sel_all }} categories-selected{{ endif }}">$all</a></li>
{{ for $terms as $term }}
<li class="tool"><a href="$base?f=&category=$term.name" class="categories-link{{ if $term.selected }} categories-selected{{ endif }}">$term.name</a></li>
{{ endfor }}
</ul>
</div>