2 // Note: This file is included from the library/Vanilla/Vanilla.Control.Menu.php class.
4 echo '<div id="Session">';
5 if ($this->Context
->Session
->UserID
> 0) {
6 echo str_replace('//1', $this->Context
->Session
->User
->Name
, $this->Context
->GetDefinition('SignedInAsX'))
8 . FormatStringForDisplay(AppendUrlParameters(
9 $this->Context
->Configuration
['SIGNOUT_URL'],
10 'FormPostBackKey=' . $this->Context
->Session
->GetCsrfValidationKey() ))
11 . '">'.$this->Context
->GetDefinition('SignOut').'</a>)';
13 echo $this->Context
->GetDefinition('NotSignedIn') . ' (<a href="'
14 . FormatStringForDisplay(AppendUrlParameters(
15 $this->Context
->Configuration
['SIGNIN_URL'],
16 'ReturnUrl='. urlencode(GetRequestUri(0))))
17 . '">'.$this->Context
->GetDefinition('SignIn').'</a>)';
20 $this->CallDelegate('PreHeadRender');
21 echo '<div id="Header">
24 '.$this->Context
->Configuration
['BANNER_TITLE'].'
28 while (list($Key, $Tab) = each($this->Tabs
)) {
29 echo '<li'.$this->TabClass($this->CurrentTab
, $Tab['Value']).'><a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>';
33 $this->CallDelegate('PreBodyRender');
34 echo '<div id="Body">';