echo $row['category']; ?> </a> · <a href="<?php $this->url('/browse/source/' . $row['sourceSlug']); ?> "> <?php echo $row['source']; ?> <?php } ?> </a> · <?php echo Fari_Format::age($row['date']); ?> · <span class="small"><?php echo $row['tags']; ?> </span> </div> <div class="span-2"></div> </div> <?php } } else { ?> <div id="view"><p>Nothing to display.</p></div> <?php
/** * Create a textual representation of a time in the past/future * @param <type> $timestamp */ function timeAgoInWords($timestamp) { assert('is_int($timestamp); // you need to pass a timestamp'); echo Fari_Format::age($timestamp); }
" ><?php echo $text['source']; ?> </a> </div> <div class="span-5 last"> <label>Tags:</label><br /> <?php echo $text['tags']; ?> </div> <div class="span-5 last"> <label>Age:</label><br /> <?php echo Fari_Format::age($text['date']); ?> </div> <div class="span-5 last"> <label>Starred:</label><br /> <h3><a class="star <?php echo $text['starred']; ?> " href="<?php $this->url('/text/star/' . $text['slug']); ?> "> </a></h3> </div> <?php if (!empty($text['comments'])) {