dbFields = array(
'shortname'=>'',
'enablePages'=>false,
'enablePosts'=>true
);
}
public function form()
{
global $Language;
$html = '
';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
return $html;
}
public function pageEnd()
{
global $pages;
global $Url, $Page;
$page = $pages[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;
}
}