Skip to main content
pageGlobalNavSrc);
$globalNavText = ob_get_clean();
$globalNavText = str_replace('(none)',CMSAPI_URL_BASE,$globalNavText);
// Output file content
print ($globalNavText);
?>
You are here:
Home /
STIRC /
About STIRC /
StaffadditionalCrumbs) ? '' : " / Academic staff" ); ?>
additionalCrumbs AS $crumb) {
if(sizeof($crumb['crumbURL']))
print "/
".$crumb['crumbText']." ";
else
print "/ ".$crumb['crumbText']." ";
}
?>
pageTabSetSrc) || count($CURRENT_PAGE->additionalTabs))
{
$tabText = $tabTextBefore = $tabTextAfter = '';
$existingActiveTab = false;
$activeTabText = 'About STIRC';
foreach($CURRENT_PAGE->additionalTabs AS $tabItem)
{
if ($tabItem['isActive'] && !$existingActiveTab)
{
$li_class = ' class="active"';
$activeTabText = $tabItem['tabText'];
$existingActiveTab = true;
}
else
{
$a_class = $li_class = '';
}
// Look for any menu items
$thisTabSubMenu = '';
foreach ($CURRENT_PAGE->additionalMenus as $menuItem)
{
if ($menuItem['groupId'] == $tabItem['menuGroupId'])
{
$thisTabSubMenu .= "
".$menuItem['menuText']."";
}
}
// Generate tab HTML
$thisTabText = '
'.$tabItem['tabText'].'';
if ($thisTabSubMenu)
{
$thisTabText .= '';
}
$thisTabText .= '';
// Position tab item
if ($tabItem['tabPosition'] < 0)
{
$tabTextBefore .= $thisTabText;
}
else
{
$tabTextAfter .= $thisTabText;
}
}
if ($CURRENT_PAGE->pageTabSetSrc)
{
$tabText = file_get_contents($CURRENT_PAGE->pageTabSetSrc);
// Replace relevant SSI subDirectories with php ones
$tabText = str_replace('(none)',CMSAPI_URL_BASE,$tabText);
// If API code has specified an active tab, strip static active classes from include
$tabText = ($existingActiveTab) ? str_replace(' class="active"','',$tabText) : $tabText;
// Insert additional tabs
$tabText = str_replace("","\n\n".$tabTextBefore."\n\n",$tabText);
$tabText = str_replace("","\n\n".$tabTextAfter."\n\n",$tabText);
}
else if ($tabTextBefore || $tabTextAfter)
{
$tabText = "
".$tabTextBefore.$tabTextAfter."
";
}
print($tabText);
// print('
');
}
?>
pageMenuSetSrc) || count($CURRENT_PAGE->additionalMenus)) {
$menuText = $menuTextBefore = $menuTextAfter = '';
$existingActiveMenu = false;
foreach($CURRENT_PAGE->additionalMenus AS $menuItem)
{
// If menu has a groupId, then it's destined to be a tab-menu, so don't bother processing it here
if(!$menuItem['groupId'])
{
// Set active classes. Only allow one menu item to be active at a time.
if($menuItem['isActive'] && !$existingActiveMenu)
{
$a_class = ' class="active"';
$li_class = ' class="static"';
$existingActiveMenu = true;
}
else
{
// Unset active classes
$a_class = $li_class = '';
}
// If a submenu set has been specifed, process it
if (count($menuItem['subMenu']))
{
$submenu = '
';
}
else
{
$submenu = '';
}
// Menu item HTML
$thisMenuText = "
".$menuItem['menuText']."$submenu";
// Position menu item
if ($menuItem['menuPosition'] < 0)
{
$menuTextBefore .= $thisMenuText;
}
else
{
$menuTextAfter .= $thisMenuText;
}
}
}
if ($CURRENT_PAGE->pageMenuSetSrc)
{
$menuText = file_get_contents($CURRENT_PAGE->pageMenuSetSrc);
// Replace relevant SSI subDirectories with php ones
$menuText = str_replace('(none)',CMSAPI_URL_BASE,$menuText);
// If API code has specified an active tab, strip static active/static classes from include
$menuText = ($existingActiveMenu) ? str_replace(' class="static"','',$menuText) : $menuText;
$menuText = ($existingActiveMenu) ? str_replace(' class="active"','',$menuText) : $menuText;
// Insert additional menus
$menuText = str_replace("","\n\n".$menuTextBefore."\n\n",$menuText);
$menuText = str_replace("","\n\n".$menuTextAfter."\n\n",$menuText);
}
else if ($menuTextBefore || $menuTextAfter)
{
$menuText = "
".$menuTextBefore.$menuTextAfter."
";
} else {
$activeTabText ='';
}
print ("");
}
?>
pageContentSrc);
$contentText = ob_get_clean();
/* If there are API-generated tabs/menus in a page which didn't have them to start with, we inject the correct #content classes */
// Calculate correct CSS classes
$tabClass = (!empty($CURRENT_PAGE->pageTabSetSrc) || count($CURRENT_PAGE->additionalTabs)) ? 'withtabs' : 'withouttabs';
$menuClass = (!empty($CURRENT_PAGE->pageMenuSetSrc) || count($CURRENT_PAGE->additionalMenus)) ? 'withmenu' : 'nomenu' ;
// Apply classes
$contentText = str_replace(array('withouttabs','withtabs'),array('%class%','%class%'),$contentText);
$contentText = str_replace('%class%',"$tabClass $menuClass",$contentText);
// Replace relevant SSI subDirectories with php ones
$contentText = str_replace('(none)',CMSAPI_URL_BASE,$contentText);
// Output content
print ($contentText);
?>
pageFooterSrc); ?>