Your IP : 216.73.216.89


Current Path : /home/azimutno/www/demo/administrator/components/com_pagebuilder/views/selectmodule/
Upload File :
Current File : /home/azimutno/www/demo/administrator/components/com_pagebuilder/views/selectmodule/view.html.php

<?php
/**
 * @version    $Id$
 * @package    JSN_PageBuilder
 * @author     JoomlaShine Team <support@joomlashine.com>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */


// No direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');

class JSNPagebuilderViewSelectmodule extends JViewLegacy{
	
	protected $state;
	protected $items;
	protected $pagination;
	
	public function display($tpl = null){
		if ($this->getlayout() == 'data')
		{
			JSession::checkToken('get') or jexit( 'Invalid Token' );
		}		
		JSNHtmlAsset::addScript(JSNPB_FRAMEWORK_ASSETS . '/3rd-party/jquery/jquery.min.js');
		JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . 'js/joomlashine.noconflict.js');
		JSNHtmlAsset::addScript(JSNPB_ELEMENT_URL . '/module/assets/js/module.js');
		JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/joomlashine/js/jsn.filter.js');
		JSNHtmlAsset::addScript(JSNPB_ELEMENT_URL . '/module/assets/jquery-lazyload/jquery.lazyload.js');
		JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/jquery.js');
		JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . 'css/pagebuilder.css');
		
		$state = $this->get('State');
		$items = $this->get('Items');
		$pagination = $this->get('Pagination');
		//check for errors
		if(count($errors = $this->get('Errors'))){
			JError::raiseError(500, implode("\n", $errors));
			return false;
		}
		$this->assignRef('state', $state);
		$this->assignRef('items', $items);
		$this->assignRef('pagination', $pagination);
		return parent::display();
	}
}