<?php
/**
* @package RSSeo!
* @copyright (C) 2016 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Language\Text;

class rsseoViewKeyword extends HtmlView
{
	public function display($tpl = null) {
		$this->form 		= $this->get('Form');
		$this->item			= $this->get('Item');
		
		$this->addToolBar();
		parent::display($tpl);
	}
	
	protected function addToolBar() {
		ToolBarHelper::title(Text::_('COM_RSSEO_KEYWORD_NEW_EDIT'),'rsseo');
		
		ToolBarHelper::apply('keyword.apply');
		ToolBarHelper::save('keyword.save');
		ToolBarHelper::save2new('keyword.save2new');
		ToolBarHelper::cancel('keyword.cancel');
	}
}