dbFields = array(
'label'=>'Menu'
);
}
// 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 .= '
';
return $html;
}
// Method called on the sidebar of the website
public function siteSidebar()
{
global $Language;
global $dbCategories;
global $Url;
// HTML for sidebar
$html = '
';
// Print the label only if not empty
if( $this->getValue('label') ) {
$html .= '
'.$this->getValue('label').'
';
}
$html .= '
';
$html .= '
';
// By default the database of categories are alphanumeric sorted
foreach( $dbCategories->db as $key=>$fields ) {
$pageList = $fields['list'];
if( count($pageList) > 0 ) {
$html .= '
';
$html .= ''.$fields['name'].'';
$html .= '
';
foreach( $pageList as $pageKey ) {
// Create the page object from the page key
$page = buildPage($pageKey);
$html .= '