diff options
Diffstat (limited to 'htdocs/index.php')
-rw-r--r-- | htdocs/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/htdocs/index.php b/htdocs/index.php index a5f5456..6ac32ff 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -21,13 +21,16 @@ $posts->limit(5); $posts->query(); if ($posts->valid()) { + for ($i = 0; $i < 10; $i++) { foreach ($posts as $id => $post) { - printf("<div class=\"post\"><p><a href=\"postings/%s.html\">%s</a></p>" + 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()); } + } } else { echo "<p>No recent posts.</p>"; |