dbFields = array(
'label'=>'Latest posts',
'amount'=>5
);
}
public function form()
{
global $Language;
$html = '
';
// Print the label if not empty.
$label = $this->getDbField('label');
if( !empty($label) ) {
$html .= '
'.$label.'
';
}
$html .= '
';
$html .= '
';
foreach($posts as $Post)
{
$html .= '- ';
$html .= ''.$Post->title().'';
$html .= '
';
}
$html .= '
';
$html .= '
';
$html .= '
';
return $html;
}
}