summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/index.php')
-rw-r--r--htdocs/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/htdocs/index.php b/htdocs/index.php
index 148cfd6..b09c4bf 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -22,12 +22,17 @@ $posts->query();
if ($posts->valid()) {
foreach ($posts as $id => $post) {
+ $title = $post->getName();
+ if ($post->getPrice() != 0) {
+ $title .= ' - $' . $post->getPrice();
+ }
+
printf("<div class=\"post\"><p><a href=\"". $GLOBALS['CONFIG']['urlroot']
. "/postings/%s.html\">%s</a></p>"
. "<div class=\"desc\"><span class=\"location\">%s</span>"
. " <span class=\"age\">%s</span></div></div>",
- $id, $post->getName(), $post->getLocation(), $post->getAge());
+ $id, $title, $post->getLocation(), $post->getAge());
}
} else {