"-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("