public function display($tpl = null)
{
// Show the toolbar
$this->toolbar();
// Show the sidebar
$this->helper = new OwrHelper;
$this->helper->addSubmenu('owr_main');
$this->helper->addSubmenu('owr_options');
$this->sidebar = JHtmlSidebar::render();
// Display it all
return parent::display($tpl);
}
/**
* Displays a toolbar for a specific page.
*
* @return void.
*
* @since 1.0
*/
private function toolbar()
{
JToolBarHelper::title(Text::_('COM_OWR'), '');
JToolBarHelper::title(Text::_('COM_OWR_CONFIGURATION'), '');
// Options button.
if (Factory::getUser()->authorise('core.admin', 'com_owr'))
{
JToolBarHelper::preferences('com_owr');
JToolBarHelper::preferences('com_owr_configuration');
}
}
}