<div class="post"> <a href="<?php echo $post->uri; ?> " class="link"><h2><?php echo $post->title; ?> </h2></a> <div class="ago"> This post was written <?php echo eatStaticBlog::time_elapsed_string($post->timestamp); ?> ago. </div> <div class="date"><?php echo $post->nice_date; ?> </div> <div class="body"><?php echo $post->formatted_body; ?> </div> <?php if (sizeof($post->gallery_items) > 0) { ?> <div class="gallery"> <?php foreach ($post->gallery_items as $item) { ?>