return $post->title(); } function nav() { return "<div class=\"nav\"><a href=\"".Link::index()."\">home</a></div> <div class=\"nav\" style=\"margin-left: 65px\"><a href=\"".Link::about()."\">about</a></div>"; } function postwidth() { global $post; return $post->width(); } require(BLOGROOT."templates/header.inc"); echo poast($post, true); $series = $post->series(); shuffle($series); if(count($series)) {?> <div class="entry"> <div class="entrybody" style="width: 100%;"> <p style="text-align: center">This post is part of the series <? for($i = 0; $i < count($series); $i++) { // Three or more items, Oxford commas! if($i && count($series) > 2) { echo ","; } if($i) { echo " ";
if(!$comment) break; ?> <a name="<?= $comment['commentid'] ?>"></a> <table> <tr> <td nowrap class="doubledash">>></td> <td id="<?= $comment['commentid'] ?>" class="reply"> <span class="replytitle"></span> <span class="commentpostername"><?= $comment['username'] ?></span> <?= date("m/d/y(D)H:i:s", strtotime($comment['comment_timestamp'])); ?><span></span> <span id="norep<?= $comment['commentid'] ?>"> <a href="<?= Link::comment($comment['commentid']) ?>" class="quotejs">No.<?= $comment['commentid'] ?></a> </span> <? poast($comment, $image, $upload); ?> </td> </tr> </table> <? ++$fetch; } while($comment = mysql_fetch_assoc($res)); ?> <!-- /if --> <br clear=left><hr> <!-- /loopy --> <?php }
} else { assert('$matches[1] == "pages"'); $start = 1; $pages = $matches[2]; } } else { $start = $matches[2]; $pages = $matches[3] - $matches[2] + 1; } } $posts = Post::getPages($start, $pages); foreach($posts as $post) { echo poast($post); } if(count($posts) && count(Post::getPosts(null, 10, $posts[count($posts) - 1]->timestamp(true)))) { ?><article id="more"><p><a href="<?php echo $webroot; ?> ?/page/<?php echo $start + $pages; ?> /">moreā¦</a></p></article><? } require(BLOGROOT."templates/footer.inc"); ?>