dbFields = array(
'shortname'=>'',
'enablePages'=>false,
'enablePosts'=>true
);
}
public function form()
{
global $Language;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
return $html;
}
public function pageEnd()
{
global $content;
global $url, $page;
$page = $content[0];
if (empty($page)) {
return false;
}
if ( !$url->notFound() &&
( $url->whereAmI()=='page' &&
(($this->getDbField('enablePosts') && $page->status()=='published') ||
($this->getDbField('enablePages') && $page->status()=='static'))
) &&
$page->allowComments() ) {
$html = '';
$html .= '
';
return $html;
}
return false;
}
}