<?php
/**
 * YoutubeGallery Joomla! Native Component
 * @version 4.3.6
 * @author Ivan Komlev< <support@joomlaboat.com>
 * @link http://www.joomlaboat.com
 * @GNU General Public License
 **/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
if(!defined('DS'))
	define('DS',DIRECTORY_SEPARATOR); 

// import Joomla view library
jimport('joomla.application.component.view');


jimport('joomla.version');
$version = new JVersion();
$JoomlaVersionRelease=$version->RELEASE;

if($JoomlaVersionRelease>=3.0)
{
        //joomla 3.x
 
/**
 * Youtube Gallery Theme Export View
 */
class YoutubeGalleryViewSettings extends JViewLegacy
{
        /**
         * display method of Youtube Gallery view
         * @return void
         */

        public function display($tpl = null) 
        {
                
                // Set the toolbar
                $this->addToolBar();
                parent::display($tpl);
                
        }

        protected function addToolBar() 
        {
                //JRequest::setVar('hidemainmenu', true);
                
                JToolBarHelper::title(JText::_('Settings'));
                JToolBarHelper::apply('settings.apply');
                
                JToolBarHelper::cancel('settings.cancel', 'JTOOLBAR_CLOSE');
        }
       
    
}//class
}else{
    
    //for joomla 2.5
    class YoutubeGalleryViewSettings extends JView
    {
        /**
         * display method of Youtube Gallery view
         * @return void
         */

        public function display($tpl = null) 
        {
                
                // Set the toolbar
                $this->addToolBar();
                parent::display($tpl);
                
        }

        protected function addToolBar() 
        {
                //JRequest::setVar('hidemainmenu', true);
                
                JToolBarHelper::title(JText::_('Settings'));
                JToolBarHelper::apply('settings.apply');
                
                JToolBarHelper::cancel('settings.cancel', 'JTOOLBAR_CLOSE');
        }
       
    
    }//class

    
}


?>