[Openfirst-cvscommit] base/style headers.php,1.9,1.10
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-11-21 20:26:18
|
Update of /cvsroot/openfirst/base/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30618/base/style Modified Files: headers.php Log Message: default style path now openfirst.sf.net/style Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/style/headers.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** headers.php 19 Oct 2005 03:56:27 -0000 1.9 --- headers.php 21 Nov 2005 20:26:09 -0000 1.10 *************** *** 1,140 **** ! <?php ! header('content-type: text/html; charset=utf-8'); ! ! global $BasePath, $ogModuleManager, $ogMoreStyles, $Home, $ogCurrentModule; ! global $Title, $usersonline, $ogUser, $StylePath; ! ! if(! isset($BasePath)){ ! $BasePath = 'http://openfirst.sourceforge.net'; ! $StylePath = 'http://openfirst.sourceforge.net'; ! $title = "openFIRST Team"; ! } else { ! $headerlinks = array(); ! if (isset($ogModuleManager)) { ! foreach($ogModuleManager->getDirs() as $dir) { ! $module =& $ogModuleManager->getModuleFromDir($dir); ! if ($module->getActive() && $module->getShowOnMenu()) { ! if ($ogCurrentModule->getDir() == $dir){ ! $CurrentModule =& $thisModule; ! $headerlinks[] = ' » <a class="menu selected" href="'.htmlentities("$BasePath/$dir").'">'.htmlentities($module->getName()).'</a> ! '; ! $adminnav = $module->getAdminBar(); ! $subnav = $module->getNavBar(); ! ! } else { ! $headerlinks[] .= ' » <a class="menu" href="'.htmlentities("$BasePath/$dir").'">'.htmlentities($module->getName()).'</a> ! '; ! } ! } ! } ! } ! ! $headers = implode(' |', $headerlinks); ! unset($headerlinks); ! } ! ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title><?php echo htmlentities($Title); ?></title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> ! <meta http-equiv="Content-Language" content="en" /> ! <meta name="copyright" content="© 2003 openFIRST http://openfirst.sf.net." /> ! <meta name="author" content="openFIRST - http://openfirst.sf.net" /> ! <meta name="generator" content="openFIRST - http://openfirst.sf.net" /> ! <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/style.css" /> ! <?php ! if (isset($ogMoreStyles) && trim($ogMoreStyles) != '') { ! echo '<style type="text/css"> ! '.htmlentities($ogMoreStyles).' ! </style> ! '; ! } ! ?> ! </head> ! <body> ! ! <table class="nav1"> ! <tr id="toplogo"> ! <td> ! <img src="<?php echo htmlentities($StylePath); ?>/images/openfirst.png" alt="openFIRST Portal System" /> ! </td> ! </tr> ! <tr> ! <th id="topmenu"> ! <?php ! if(isset($headers)){ ! echo("» <a accesskey='h' href='$Home'><u>H</u>ome</a> | " . $headers); ! }else{ ! ?> ! » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> ! | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a> ! | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a> ! | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a> ! | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a> ! | » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a> ! | » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a> ! | » <a accesskey="a" href="http://openfirst.sourceforge.net/about.php"><u>A</u>bout openFIRST</a> ! | » <a accesskey="e" href="http://openfirst.sourceforge.net/developers.php">D<u>e</u>velopers</a> ! <?php } ?> ! </th> ! </tr> ! <tr> ! <td class="nav2" style="background-image: url('<?php echo htmlentities($StylePath); ?>/images/back-light.gif'); "> ! <table width="100%" border="0" cellspacing="0" ! cellpadding="0"> ! <tr> ! <td class="left"> ! <?php ! ! // Check if module name has been set then echo ! if(isset($ogCurrentModule) && !$ogCurrentModule->isBase()){ ! echo '<b>'.htmlentities($ogCurrentModule->getName()).'</b> – '; ! } ! ! // Check if navigation bar option is set then echo options ! if (isset($ogCurrentModule) && ($nav = $ogCurrentModule->getNavBar())) { ! ! // Output module navigation bar ! echo $nav; ! } ! ?> ! </td> ! <td class="right" style="color: #333333;"> ! <?php ! ! // Check if messenger module has activated usersonline option then echo value ! if(isset($usersonline)){ ! echo $usersonline; ! } else { ! echo "Welcome to the <b>$Title</b> website!"; ! } ! ! ?> ! </td> ! </tr> ! </table></td> ! </tr> ! <?php ! ! if (isset($ogUser) && isset($ogCurrentModule) && $ogUser->isAdmin() && ($nav = $ogCurrentModule->getAdminBar())){ ! ?> ! <tr> ! <td id="adminmenu"><b>Admin Options</b> – ! <?php ! // Print admin navigation bar ! echo $nav; ! ?></td> ! </tr> ! <?php ! ! } ! ! ?> ! </table><div id="content"> ! <?php ! ! if ($BasePath == 'http://openfirst.sourceforge.net') { ! unset($BasePath); ! } ! ! ?> --- 1,140 ---- ! <?php ! header('content-type: text/html; charset=utf-8'); ! ! global $BasePath, $ogModuleManager, $ogMoreStyles, $Home, $ogCurrentModule; ! global $Title, $usersonline, $ogUser, $StylePath; ! ! if(! isset($BasePath)){ ! $BasePath = 'http://openfirst.sourceforge.net'; ! $StylePath = 'http://openfirst.sourceforge.net/style'; ! $title = "openFIRST Team"; ! } else { ! $headerlinks = array(); ! if (isset($ogModuleManager)) { ! foreach($ogModuleManager->getDirs() as $dir) { ! $module =& $ogModuleManager->getModuleFromDir($dir); ! if ($module->getActive() && $module->getShowOnMenu()) { ! if ($ogCurrentModule->getDir() == $dir){ ! $CurrentModule =& $thisModule; ! $headerlinks[] = ' » <a class="menu selected" href="'.htmlentities("$BasePath/$dir").'">'.htmlentities($module->getName()).'</a> ! '; ! $adminnav = $module->getAdminBar(); ! $subnav = $module->getNavBar(); ! ! } else { ! $headerlinks[] .= ' » <a class="menu" href="'.htmlentities("$BasePath/$dir").'">'.htmlentities($module->getName()).'</a> ! '; ! } ! } ! } ! } ! ! $headers = implode(' |', $headerlinks); ! unset($headerlinks); ! } ! ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <html> ! <head> ! <title><?php echo htmlentities($Title); ?></title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> ! <meta http-equiv="Content-Language" content="en" /> ! <meta name="copyright" content="© 2003 openFIRST http://openfirst.sf.net." /> ! <meta name="author" content="openFIRST - http://openfirst.sf.net" /> ! <meta name="generator" content="openFIRST - http://openfirst.sf.net" /> ! <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($StylePath); ?>/style.css" /> ! <?php ! if (isset($ogMoreStyles) && trim($ogMoreStyles) != '') { ! echo '<style type="text/css"> ! '.htmlentities($ogMoreStyles).' ! </style> ! '; ! } ! ?> ! </head> ! <body> ! ! <table class="nav1"> ! <tr id="toplogo"> ! <td> ! <img src="<?php echo htmlentities($StylePath); ?>/images/openfirst.png" alt="openFIRST Portal System" /> ! </td> ! </tr> ! <tr> ! <th id="topmenu"> ! <?php ! if(isset($headers)){ ! echo("» <a accesskey='h' href='$Home'><u>H</u>ome</a> | " . $headers); ! }else{ ! ?> ! » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> ! | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a> ! | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a> ! | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a> ! | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a> ! | » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a> ! | » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a> ! | » <a accesskey="a" href="http://openfirst.sourceforge.net/about.php"><u>A</u>bout openFIRST</a> ! | » <a accesskey="e" href="http://openfirst.sourceforge.net/developers.php">D<u>e</u>velopers</a> ! <?php } ?> ! </th> ! </tr> ! <tr> ! <td class="nav2" style="background-image: url('<?php echo htmlentities($StylePath); ?>/images/back-light.gif'); "> ! <table width="100%" border="0" cellspacing="0" ! cellpadding="0"> ! <tr> ! <td class="left"> ! <?php ! ! // Check if module name has been set then echo ! if(isset($ogCurrentModule) && !$ogCurrentModule->isBase()){ ! echo '<b>'.htmlentities($ogCurrentModule->getName()).'</b> – '; ! } ! ! // Check if navigation bar option is set then echo options ! if (isset($ogCurrentModule) && ($nav = $ogCurrentModule->getNavBar())) { ! ! // Output module navigation bar ! echo $nav; ! } ! ?> ! </td> ! <td class="right" style="color: #333333;"> ! <?php ! ! // Check if messenger module has activated usersonline option then echo value ! if(isset($usersonline)){ ! echo $usersonline; ! } else { ! echo "Welcome to the <b>$Title</b> website!"; ! } ! ! ?> ! </td> ! </tr> ! </table></td> ! </tr> ! <?php ! ! if (isset($ogUser) && isset($ogCurrentModule) && $ogUser->isAdmin() && ($nav = $ogCurrentModule->getAdminBar())){ ! ?> ! <tr> ! <td id="adminmenu"><b>Admin Options</b> – ! <?php ! // Print admin navigation bar ! echo $nav; ! ?></td> ! </tr> ! <?php ! ! } ! ! ?> ! </table><div id="content"> ! <?php ! ! if ($BasePath == 'http://openfirst.sourceforge.net') { ! unset($BasePath); ! } ! ! ?> |