|
@@ -59,10 +59,18 @@ function FormatURI(URI $uri, $base=""){
|
|
|
<nav>
|
|
|
<dl>
|
|
|
<?php
|
|
|
+ $reqUri=trim($_SERVER['REQUEST_URI'],"/");
|
|
|
+ $uriParts=explode("/",$reqUri);
|
|
|
+ if ($uriParts[0]=="")
|
|
|
+ $uriParts[0]="home";
|
|
|
+
|
|
|
$__controllers=Navigation::Get();
|
|
|
foreach ($__controllers as $controller){
|
|
|
$cURI=$controller->GetURI();
|
|
|
- echo '<dt>',FormatURI($cURI);
|
|
|
+ echo '<dt';
|
|
|
+ if ($cURI->GetLinkLocation()=='/'.$uriParts[0])
|
|
|
+ echo ' class="active"';
|
|
|
+ echo'>',FormatURI($cURI);
|
|
|
$items=$controller->GetItems();
|
|
|
if (count($items)>0)
|
|
|
echo '<span class="go">»</span><span class="expand">+</span>';
|