Your IP : 216.73.216.43


Current Path : /home/cbequiperp/www/components/com_rsform/views/submissions/
Upload File :
Current File : /home/cbequiperp/www/components/com_rsform/views/submissions/view.html.php

<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2019 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

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

class RsformViewSubmissions extends JViewLegacy
{
	/* @var $params Joomla\Registry\Registry */
	public $params;

	public function display($tpl = null)
	{
		$this->params = JFactory::getApplication()->getParams('com_rsform');
		
		if ($this->getLayout() == 'default')
		{
			$this->template		= $this->get('listingTemplate');
			$this->filter 		= $this->get('filter');
			$this->pagination 	= $this->get('pagination');
		}
		else
		{
			// Add pathway
			JFactory::getApplication()->getPathway()->addItem(JText::_('RSFP_VIEW_SUBMISSION'), '');

			$this->template = $this->get('detailTemplate');
		}
		
		$title = $this->params->get('page_title', '');
		$this->setDocumentTitle($title);
		
		if ($robots = $this->params->get('robots'))
		{
			$this->document->setMetadata('robots', $robots);
		}
		
		if ($desc = $this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($desc);
		}
		
		if ($keywords = $this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords', $keywords);
		}
		
		parent::display($tpl);
	}
}