File: /home/iestorre/biologia/administrator/components/com_oziogallery3/views/faq/view.html.php
<?php
/**
* This file is part of Ozio Gallery 4.
*
* Ozio Gallery 4 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Foobar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright (C) 2010 Open Source Solutions S.L.U. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see RT-LICENSE.php
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view');
class OzioViewFaq extends JViewLegacy
{
protected $lists;
protected $faq;
public function display($tpl = null)
{
$lists['faq'] = array();
$faq['question'] = JText::_( 'COM_OZIOGALLERY3_VERY_IMPORTANT_NOTE' );
$faq['answer'] = JText::_( 'COM_OZIOGALLERY3_ONCE_YOU_INSTALL' );
$lists['faq'][] = $faq;
$this->assignRef('lists' , $lists);
$this->addToolbar();
parent::display($tpl);
}
protected function addToolbar()
{
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_oziogallery3/assets/css/default.css');
JToolBarHelper::title( JText::_( 'COM_OZIOGALLERY3_OZIO_GALLERY_3' ). ' - ' .JText::_( 'COM_OZIOGALLERY3_FAQ' ),'faq' );
JSubMenuHelper::addEntry( JText::_( 'COM_OZIOGALLERY3_OZIOGALLERY_3_-_CPANEL' ), 'index.php?option=com_oziogallery3');
JSubMenuHelper::addEntry( JText::_( 'COM_OZIOGALLERY3_FAQ' ), 'index.php?option=com_oziogallery3&view=faq', true);
}
}
?>