From 0b1deccfe6cbe7fca0a6abd03abb18cafca59c60 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Thu, 9 Jun 2011 15:01:53 -0700 Subject: Added category options and descriptions. --- htdocs/categories.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'htdocs/categories.php') 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 "

Categories

"; $cats = Category::getCategories(); - foreach ($cats as $short => $name) { + echo "
"; + foreach ($cats as $short => $cat) { $url = $GLOBALS['CONFIG']['urlroot'] . "/categories/$short"; - echo "

$name

"; + echo "
". $cat->getName() ."
"; + echo "
". $cat->getDescription() ."
"; } + echo "
"; } function displayEvents($category) { -- cgit v1.2.3