dbFields = array(
'label'=>'Pages',
'homeLink'=>true,
'amountOfItems'=>5
);
}
// Method called on the settings of the plugin on the admin area
public function form()
{
global $Language;
$html = '
';
return $html;
}
// Method called on the sidebar of the website
public function siteSidebar()
{
global $Language;
global $pages;
global $Url;
// URL base filter for categories
$filter = $Url->filters('page');
// Amount of pages to show
$amountOfItems = $this->getValue('amountOfItems');
// Slice array of pages
$pages = array_slice($pages, 0, $amountOfItems);
// HTML for sidebar
$html = '
';
$html .= '
'.$this->getValue('label').'
';
$html .= '
';
$html .= '
';
// Show Home page link
if( $this->getValue('homeLink') ) {
$html .= '