"-IE.css", "Firefox" => "-Firefox.css", "Safari" => "-Safari.css", "Opera" => "-Opera.css", "Chrome" => "-Chrome.css"); $IeSuffixes = array( "7" => "-IE7.css", "8" => "-IE8.css", "9" => "-IE9.css"); # the .css extension was included, so remove it if (preg_match('/\.css$/', $Name)) { $NameOnlyLength = strlen($Name) - 4; $NameOnly = substr($Name, 0, $NameOnlyLength); } # the extension was not included, so just use it else { $NameOnly = $Name; } # the main CSS file $Filename = $NameOnly . ".css"; $Path = $AF->GUIFile($Filename); if (!is_null($Path)) { ?>GUIFile($Filename); if (!is_null($Path)) { ?> $Suffix) { $Filename = $NameOnly . $Suffix; $Path = $AF->GUIFile($Filename); $Constraints = array("Browser" => $Browser); if (!is_null($Path) && $AF->SignalEvent("BROWSCAP_BROWSER_CHECK", array($Constraints))) { ?> $Suffix) { $Filename = $NameOnly . $Suffix; $Path = $AF->GUIFile($Filename); if (!is_null($Path)) { ?> $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-zA-Z0-9_]+$/", $Link)) { $Link = "index.php?P=".$Link; } $DisplayFunc($Link, $Label); } } function DisplayPrimaryNavItem($Link, $Label) { ?> SignalEvent("EVENT_APPEND_HTML_TO_FORM", array("PageName" => "", "FormName"=>"LoginForm", "Labels" => array(), "InputElements" => array(), "Notes" => array())); # Extract the results. $Labels = $Data["Labels"]; $InputElements = $Data["InputElements"]; $Notes = $Data["Notes"]; # Append them where required. for ($i=0; $i< count($Labels); $i++) { print("
" ."".$Labels[$i]."" ."".$InputElements[$i]."" ."
"); } } function PrintMenuEntry($Label, $Link, $PositionString = NULL) { $PositionString = $PositionString ? $PositionString : "5px 10px 0px 0px"; ?>
" style="margin-bottom: -2px;" border="0" alt="" height="12" width="12">
>
GetFields(MetadataSchema::MDFTYPE_TREE) as $Field) { # do not display fields with a bad status if ($Field->Status() != MetadataSchema::MDFSTAT_OK) { continue; } # do not display disabled fields if (!$Field->Enabled()) { continue; } # field that the user shouldn't view if ($Field->ViewingPrivilege() != 0 && !$G_User->HasPriv($Field->ViewingPrivilege())) { continue; } # field that the user shouldn't browse if ($Field->TreeBrowsingPrivilege() != 0 && !$G_User->HasPriv($Field->TreeBrowsingPrivilege())) { continue; } return TRUE; } return FALSE; } # ----- MAIN ----------------------------------------------------------------- $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 "BrowseResources" => BrowseableTreeFieldExists(), "RecommendResources" => $G_SysConfig->ResourceRatingsEnabled(), "Forums" => $G_SysConfig->ForumsEnabled()); $SecondaryNavItems = array( # Nav Item Label => Nav Item Link "Register" => "RegisterPortal", "Preferences" => "Preferences", "Accessibility" => "AccessPreferences", "Metadata Tool" => "MDHome", "Administration" => "SysAdmin", "Edit User Account" => "SelectEditUser", "Log Out" => "UserLogout"); $SecondaryNavExclusions = array( # Nav Item Link => Whether to Display "RegisterPortal" => ($G_User->HasPriv(PRIV_SYSADMIN) && !$G_SysConfig->HasRegistered()), "AccessPreferences" => $G_SysConfig->AccessibilityWizardEnabled(), "MDHome" => $User->HasPriv(PRIV_RESOURCEADMIN, PRIV_CLASSADMIN, PRIV_NAMEADMIN, PRIV_RELEASEADMIN), "SysAdmin" => $User->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN, PRIV_USERADMIN), "SelectEditUser" => $User->HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN)); $SiteKeywords = htmlspecialchars(trim($SysConfig->SiteKeywords()), ENT_QUOTES); # note: there cannot be any whitespace before the DOCTYPE ?> 0) { ?> <?PHP print PageTitle(); ?> AddAWStatsScript() && (basename($_SERVER["SCRIPT_FILENAME"]) == "index.php?P=Home")) { ?> SignalEvent("EVENT_IN_HTML_HEADER"); ?> Skip Navigation

PortalName()); ?>

" />
Advanced Search