';
// Add the start button to the panel
if ($this->Context->Session->UserID > 0 && $this->Context->Session->User->Permission('PERMISSION_START_DISCUSSION')) {
$CategoryID = ForceIncomingInt('CategoryID', 0);
if ($CategoryID == 0) $CategoryID = '';
echo '
';
}
$this->CallDelegate('PostStartButtonRender');
while (list($Key, $PanelElement) = each($this->PanelElements)) {
$Type = $PanelElement['Type'];
$Key = $PanelElement['Key'];
if ($Type == 'List') {
$sReturn = '';
$Links = $this->Lists[$Key];
if (count($Links) > 0) {
ksort($Links);
$sReturn .= '';
}
echo $sReturn;
} elseif ($Type == 'String') {
echo $this->Strings[$Key];
}
}
$this->CallDelegate('PostElementsRender');
echo '
';
?>