summaryrefslogtreecommitdiff
path: root/htdocs/categories.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-09 15:01:53 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-09 15:01:53 -0700
commit0b1deccfe6cbe7fca0a6abd03abb18cafca59c60 (patch)
tree826cba7d21edab13d3e75648f78a3b28f13a85c7 /htdocs/categories.php
parent3ffd7a349728e4aff80a982bb16c5196e55795e3 (diff)
Added category options and descriptions.
Diffstat (limited to 'htdocs/categories.php')
-rw-r--r--htdocs/categories.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/htdocs/categories.php b/htdocs/categories.php
index e4c1f37..a3e8ba2 100644
--- a/htdocs/categories.php
+++ b/htdocs/categories.php
@@ -36,10 +36,13 @@ function listCategories() {
echo "<h2>Categories</h2>";
$cats = Category::getCategories();
- foreach ($cats as $short => $name) {
+ echo "<dl>";
+ foreach ($cats as $short => $cat) {
$url = $GLOBALS['CONFIG']['urlroot'] . "/categories/$short";
- echo "<p><a href=\"$url\">$name</a></p>";
+ echo "<dt><a href=\"$url\">". $cat->getName() ."</a></dt>";
+ echo "<dd>". $cat->getDescription() ."</dd>";
}
+ echo "</dl>";
}
function displayEvents($category) {