$Link)
{
if (isset($PossibleExclusions[$Link]) && !$PossibleExclusions[$Link])
{
unset($Items[$Label]);
}
}
# signal event to give plugins etc a chance to modify nav item list
global $AF;
$SignalResult = $AF->SignalEvent($Event, array(
"NavItems" => $Items));
$Items = $SignalResult["NavItems"];
# display nav items
foreach ($Items as $Label => $Link)
{
if (preg_match("/[a-z0-9_]+/", $Link)) { $Link = "index.php?P=".$Link; }
$DisplayFunc($Link, $Label);
}
}
$PrimaryNavItems = array(
# Nav Item Label => Nav Item Link
"Home" => "Home",
"Browse Resources" => "BrowseResources",
"Get Recommendations" => "RecommendResources",
"Forums" => "Forums",
"About" => "About",
"Help" => "Help",
);
$PrimaryNavExclusions = array(
# Nav Item Link => Whether to Display
"RecommendResources" => $G_SysConfig->ResourceRatingsEnabled(),
"Forums" => $G_SysConfig->ForumsEnabled(),
);
function DisplayPrimaryNavItem($Link, $Label)
{
?>