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/new-post.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'htdocs/new-post.php') diff --git a/htdocs/new-post.php b/htdocs/new-post.php index 8573bce..961cdda 100644 --- a/htdocs/new-post.php +++ b/htdocs/new-post.php @@ -81,11 +81,16 @@ function handle_category() { echo "

Start by choosing a category from the list below

"; // List Categories - foreach (Category::getCategories() as $short => $name) { - echo "

$name

"; + $cats = Category::getCategories(); + echo "
"; + foreach ($cats as $short => $cat) { + $url = $GLOBALS['CONFIG']['urlroot'] + . "/new-post.php?stage=tos&category=$short"; + + echo "
". $cat->getName() ."
"; + echo "
". $cat->getDescription() ."
"; } - + echo "
"; } function finish_category() { -- cgit v1.2.3