dbFields = array( 'label'=>'Static Pages', 'homeLink'=>true ); } // Method called on the settings of the plugin on the admin area public function form() { global $L; $html = ''; $html .= '
'; $html .= ''; $html .= ''; $html .= ''.$L->get('This title is almost always used in the sidebar of the site').''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= ''.$L->get('show-the-home-link-on-the-sidebar').''; $html .= '
'; return $html; } // Method called on the sidebar of the website public function siteSidebar() { global $L; 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 .= ''; $html .= '
'; $html .= '
'; return $html; } }