dbFields = array(
'label'=>'Navigation',
'homeLink'=>true,
'amountOfItems'=>5
);
}
// Method called on the settings of the plugin on the admin area
public function form()
{
global $language;
$html = '
';
$html .= $this->description();
$html .= '
';
$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 .= '
';
if (ORDER_BY=='date') {
$html .= '
';
$html .= '';
$html .= '';
$html .= '
';
}
return $html;
}
// Method called on the sidebar of the website
public function siteSidebar()
{
global $language;
global $url;
global $site;
global $pages;
// HTML for sidebar
$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 .= '