2 // Note: This file is included from the library/Framework/Framework.Control.Panel.php class.
4 echo '<div id="Panel">';
6 // Add the start button to the panel
7 if ($this->Context
->Session
->UserID
> 0 && $this->Context
->Session
->User
->Permission('PERMISSION_START_DISCUSSION')) {
8 $CategoryID = ForceIncomingInt('CategoryID', 0);
9 if ($CategoryID == 0) $CategoryID = '';
10 echo '<h1><a href="'.GetUrl($this->Context
->Configuration
, 'post.php', 'category/', 'CategoryID', $CategoryID).'">'
11 .$this->Context
->GetDefinition('StartANewDiscussion')
15 $this->CallDelegate('PostStartButtonRender');
17 while (list($Key, $PanelElement) = each($this->PanelElements
)) {
18 $Type = $PanelElement['Type'];
19 $Key = $PanelElement['Key'];
20 if ($Type == 'List') {
22 $Links = $this->Lists
[$Key];
23 if (count($Links) > 0) {
29 while (list($LinkKey, $Link) = each($Links)) {
31 <a '.($Link['Link'] != '' ?
'href="'.$Link['Link'].'"' : '').' '.$Link['LinkAttributes'].'>'
33 if ($Link['Suffix'] != '') $sReturn .= ' <span>'.$this->Context
->GetDefinition($Link['Suffix']).'</span>';
42 } elseif ($Type == 'String') {
43 echo $this->Strings
[$Key];
47 $this->CallDelegate('PostElementsRender');