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 = '
';
$html .= '';
$html .= '';
$html .= ''.$Language->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
$html .= '
';
$html .= '';
$html .= '';
$html .= ''.$Language->get('Show the home link on the sidebar').'';
$html .= '
';
return $html;
}
// Method called on the sidebar of the website
public function siteSidebar()
{
global $Language;
global $Url;
global $Site;
global $dbPages;
$pages = $dbPages->getStaticDB(true);
// HTML for sidebar
$html = '
';
$html .= '
'.$this->getValue('label').'
';
$html .= '
';
$html .= '
';
// Show Home page link
if( $this->getValue('homeLink') ) {
$html .= '