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
if ($this->getValue('staticPages')) {
$staticPages = buildStaticPages();
foreach ($staticPages as $page) {
$html .= '- ';
$html .= '' . $page->title() . '';
$html .= '
';
}
}
$html .= '
';
$html .= '
';
$html .= '
';
return $html;
}
}