dbFields = array(
'label'=>'Static Pages',
'homeLink'=>true
);
}
// Method called on the settings of the plugin on the admin area
public function form()
{
global $language;
$html = '
';
// Print the label if not empty
$label = $this->getValue('label');
if (!empty($label)) {
$html .= '
'.$label.'
';
}
$html .= '
';
$html .= '
';
// Show Home page link
if ($this->getValue('homeLink')) {
$html .= '- ';
$html .= '' . $language->get('Home page') . '';
$html .= '
';
}
// Show static pages
$staticPages = buildStaticPages();
foreach ($staticPages as $page) {
$html .= '- ';
$html .= '' . $page->title() . '';
$html .= '
';
}
$html .= '
';
$html .= '
';
$html .= '
';
return $html;
}
}