Location: PHPKode > projects > mediaIndex > includes/newest.php
<?php if (isset($GLOBALS['dir'])) { ?>
<div class="block">
<div class="heading">Latest Additions</div>
<?php foreach ($GLOBALS['dir']->getNewestFiles() as $newfile) { ?>
  <a href="?file="<?=_encodeuri($newfile->path)?>"><?=_truncate($newfile->filename,23)?></a>
<?php } ?>
</div>
<?php } ?>
Return current item: mediaIndex