Location: PHPKode > projects > mediaIndex > includes/nav.php
<div class="block">
<div class="heading">Navigation</div>
<a href="?dir=/"><img src="<?=_ICONSURL?>/dir.gif" border="0" alt="*" />&nbsp;/</a>
<?php
$path = dirname($GLOBALS['path']);
$parts = explode("/",$path);
$_dir = '';
foreach ($parts as $dir) {
	if (!empty($dir)) {
     $dir = $_dir . $dir . '/';
     echo "<a href=\"?dir=/"._encodeuri($dir)."\" title=\"{$dir}\"><img src=\""._ICONSURL."/dir.gif\" border=\"0\" alt=\"*\" />&nbsp;"._truncate($dir,35)."</a>";
	   $_dir = $dir;
	}
}
?>
</div>
Return current item: mediaIndex