summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-05-17 18:02:36 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-05-17 18:02:36 -0700
commit6f5eb97a5d2129427e831a9a4eb1fec318401356 (patch)
tree276393b7f613db58f27d84f634fdf548421cf186 /htdocs/index.php
parent251349acaf0f8fed47aad1610b5b627a7e684f27 (diff)
Made it prettier
Diffstat (limited to 'htdocs/index.php')
-rw-r--r--htdocs/index.php5
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>";