summaryrefslogtreecommitdiff
path: root/htdocs/new-post.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/new-post.php
parent3ffd7a349728e4aff80a982bb16c5196e55795e3 (diff)
Added category options and descriptions.
Diffstat (limited to 'htdocs/new-post.php')
-rw-r--r--htdocs/new-post.php13
1 files changed, 9 insertions, 4 deletions
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 "<p>Start by choosing a category from the list below</p>";
// List Categories
- foreach (Category::getCategories() as $short => $name) {
- echo "<p><a href=\"". $GLOBALS['CONFIG']['urlroot']
- . "/new-post.php?stage=tos&category=$short\">$name</a></p>";
+ $cats = Category::getCategories();
+ echo "<dl>";
+ foreach ($cats as $short => $cat) {
+ $url = $GLOBALS['CONFIG']['urlroot']
+ . "/new-post.php?stage=tos&category=$short";
+
+ echo "<dt><a href=\"$url\">". $cat->getName() ."</a></dt>";
+ echo "<dd>". $cat->getDescription() ."</dd>";
}
-
+ echo "</dl>";
}
function finish_category() {