%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/lightco1/public_html/ilfanale.com.au/plugins/system/easyslider/
Upload File :
Create Path :
Current File : //home1/lightco1/public_html/ilfanale.com.au/plugins/system/easyslider/easyslider.php

<?php
/**
 * @version    $Id$
 * @package    JSN_EasySlider
 * @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 to this file
defined('_JEXEC') or die('Restricted access');

/**
 * JSN EasySlider system plugin.
 *
 * @package  JSN_EasySlider
 * @since    1.1.6
 */
class PlgSystemEasySlider extends JPlugin
{
	/**
	 * Joomla application object.
	 *
	 * @var object
	 */
	private $_app = null;

	/**
	 * Component that rely on this system plugin for working properly.
	 *
	 * @var string
	 */
	private $_ext = 'com_easyslider';

	/**
	 * Register onAfterInitialise event handler.
	 *
	 * @return  void
	 */
	
	public function onAfterRender()
	{
		$app = JFactory::getApplication();
		$input = $app->input;
		
		if ($app->isAdmin() && $input->getVar('option', '') == 'com_easyslider')
		{
			if (($input->getVar('view', '') == 'slider' && $input->getVar('layout', '') == 'edit') || ($input->getVar('view', '') == 'configuration') || ($input->getVar('view', '') == 'sliders'))
			{
				$html = $app->getBody();
			
				// Remove scrollspy jQuery conflict		
				if (preg_match_all("/\\$\('\.subhead'\)\.scrollspy\(\{[^\r\n]+\}\);/", $html, $matches, PREG_SET_ORDER))
				{	
					$html = preg_replace("/\\$\('\.subhead'\)\.scrollspy\(\{[^\r\n]+\}\);/", '',  $html);
		 			$app->setBody($html);
				}
			}
			
			if ($input->getVar('view', '') == 'sliders')
			{
				$html = $app->getBody();
				// Remove tooltip jQuery conflict
				if (preg_match_all("/jQuery\('\.hasTooltip'\)\.tooltip\(\{[^\r\n]+\}\);/", $html, $matches, PREG_SET_ORDER))
				{
					$html = preg_replace("/jQuery\('\.hasTooltip'\)\.tooltip\(\{[^\r\n]+\}\);/", '',  $html);
					$app->setBody($html);
				}				
			}
		}
		
	}
}

Zerion Mini Shell 1.0