Private
Server IP : 195.201.23.43  /  Your IP : 3.136.23.252
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/kdecoratie/public_html/plugins/content/sigplus/engines/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/kdecoratie/public_html/plugins/content/sigplus/engines/lightbox.sexylightbox.php
<?php
/**
* @file
* @brief    sigplus Image Gallery Plus Sexy Lightbox 2 engine
* @author   Levente Hunyadi
* @version  1.4.2
* @remarks  Copyright (C) 2009-2011 Levente Hunyadi
* @remarks  Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see      http://hunyadi.info.hu/projects/sigplus
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
* Support class for Sexy Lightbox 2 (jQuery-based).
* @see http://www.coders.me/lang/en/web-html-js-css/javascript/sexy-lightbox-2
*/
class SIGPlusSexyLightboxEngine extends SIGPlusLightboxEngine {
	private $theme = 'black';
	private static $initialized = false;

	public function getIdentifier() {
		return 'sexylightbox';
	}

	public function __construct($params = false) {
		if (isset($params['theme'])) {
			$this->theme = $params['theme'];
		}
	}

	protected function addCommonScripts() {
		$this->addJQuery();
		$document = JFactory::getDocument();
		$document->addScript(JURI::base(true).'/plugins/content/sigplus/js/'.$this->getScriptFilename('jquery.easing'));  // duplicates are ignored
		parent::addCommonScripts();
	}

	public function addScripts($galleryid, SIGPlusGalleryParameters $params) {
		if (self::$initialized) {
			// Sexy Lightbox 2 does not support multiple instantiations on the same page with different parameters;
			// only a single instance will be created and additional galleries will share the same options
			return;
		}
		
		$this->addCommonScripts();
		$script = 'SexyLightbox.initialize(__jQuery__.extend('.$this->getCustomParameters($params).', { imagesdir:"'.JURI::base(true).'/plugins/content/sigplus/engines/sexylightbox/css", color:"'.$this->theme.'" }));';
		$this->addOnReadyScript($script);

		self::$initialized = true;
	}
}
Private