Private
Server IP : 195.201.23.43  /  Your IP : 3.17.76.168
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.boxplus.facebook.feed.php
<?php
/**
* @file
* @brief    sigplus Image Gallery Plus boxplus Facebook Feed dialog extension
* @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
*/

// Make sure you fill in your Facebook App ID below or some Facebook functionality will not work.

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

/**
* Support class for jQuery-based boxplus lightweight pop-up window engine with Facebook support.
* @see http://hunyadi.info.hu/projects/boxplus/
*/
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'lightbox.boxplus.php';

class SIGPlusBoxPlusFacebookFeedEngine extends SIGPlusBoxPlusEngine {
	public function __construct($params = false) {
		parent::__construct($params);
	}

	protected function getDescriptionFunction() {
		return 'boxplusFacebookCaption';
	}

	public function addScripts($galleryid, SIGPlusGalleryParameters $params) {
		parent::addScripts($galleryid, $params);
		$this->addScript('/plugins/content/sigplus/engines/boxplus/popup/js/boxplus.facebook.feed.js');

		// set Facebook Application ID
		$facebookappid = '';  // MANDATORY: add your (typically 15-digit) Facebook App ID in between the quotes

		// set Facebook language
		$language = JFactory::getLanguage();
		$languagecode = str_replace('-', '_', $language->getTag());

		// make sure Facebook Application ID is set
		if (!$facebookappid) {
			throw new SIGPlusNotSupportedException();
		}

		// load Facebook SDK scripts and initialize the SDK
		$script = '<script>'.PHP_EOL.
			// initialize Facebook SDK when it has been loaded
			'window.fbAsyncInit = function() {'.PHP_EOL.
			'FB.init({'.PHP_EOL.
			'appId: "'.$facebookappid.'",'.PHP_EOL.
			'xfbml: false,'.PHP_EOL.
			'version: "v2.1"'.PHP_EOL.
			'});'.PHP_EOL.
			'};'.PHP_EOL.

			// load Facebook SDK
			'(function(d, s, id) {'.PHP_EOL.
			'var js, fjs = d.getElementsByTagName(s)[0];'.PHP_EOL.
			'if (d.getElementById(id)) {return;}'.PHP_EOL.
			'js = d.createElement(s); js.id = id;'.PHP_EOL.
			'js.src = "//connect.facebook.net/'.$languagecode.'/sdk.js";'.PHP_EOL.
			'fjs.parentNode.insertBefore(js, fjs);'.PHP_EOL.
			'}(document, "script", "facebook-jssdk"));'.PHP_EOL.
		'</script>';
		$this->addCustomTag($script);
	}
}
Private