dbFields = array(
'shortname'=>'',
'enablePages'=>false,
'enablePosts'=>true
);
}
public function form()
{
global $L;
$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->getValue('enablePosts') && $page->published()) ||
($this->getValue('enablePages') && $page->isStatic()))
) &&
$page->allowComments() ) {
$html = '';
$html .= '
';
return $html;
}
return false;
}
}