| Current Path : /var/www/administrator/components/com_cnotes/views/notes/ |
| Current File : /var/www/administrator/components/com_cnotes/views/notes/view.html.php |
<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date: 19.07.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.viewlegacy');
class cnotesViewNotes extends JViewLegacy {
public function display($tpl = null) {
$this->state = $this->get('state');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->addToolbar();
parent::display($tpl);
}
public function addToolbar() {
JToolBarHelper::title(JText::_('COM_CNOTES_NOTES'),'note');
if (JFactory::getUser()->authorise('core.admin', 'com_cnotes')) {
JToolBarHelper::preferences('com_cnotes');
JToolBarHelper::divider();
}
JToolBarHelper::editList('note.edit');
JToolBarHelper::deleteList('COM_CNOTES_ARE_YOU_SURE_DELETE_THIS_NOTE','notes.delete');
}
}