| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/visitevirtuelle/components/com_jce/editor/tiny_mce/plugins/iframe/classes/ |
Upload File : |
<?php
/**
* @package JCE
* @copyright Copyright (c) 2009-2013 Ryan Demmer. All rights reserved.
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined('_JEXEC') or die('RESTRICTED');
// set as an extension parent
define('_WF_EXT', 1);
// Load class dependencies
wfimport('editor.libraries.classes.plugin');
wfimport('editor.libraries.classes.extensions');
wfimport('editor.libraries.classes.extensions.aggregator');
class WFIframePlugin extends WFEditorPlugin {
public function display() {
$this->set('colorpicker', true);
parent::display();
$document = WFDocument::getInstance();
// create new tabs instance
$tabs = WFTabs::getInstance(array(
'base_path' => WF_EDITOR_PLUGIN
));
$document->addScript(array('iframe'), 'plugins');
$document->addStyleSheet(array('iframe'), 'plugins');
$document->addScriptDeclaration('IframeDialog.settings=' . json_encode($this->getSettings()) . ';');
// Add tabs
$tabs->addTab('file');
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
$this->aggregators = array();
// Load video aggregators (Youtube, Vimeo etc)
$video = new WFAggregatorExtension(array('format' => 'video', 'embed' => 'false'));
if ($video) {
$this->aggregators[] = $video;
$video->display();
}
$maps = new WFAggregatorExtension(array('format' => 'maps'));
if ($maps) {
$this->aggregators[] = $maps;
$maps->display();
}
if (!empty($this->aggregators)) {
$tabs->addTab('options', $this->getParam('tabs_options', 1), array('plugin' => $this));
}
}
public function getAggregatorTemplate() {
$tpl = '';
foreach ($this->aggregators as $aggregator) {
foreach($aggregator->getAggregators() as $item) {
$data = $aggregator->loadTemplate($item->getName());
if (!empty($data)) {
$tpl .= '<fieldset class="aggregator_option ' . $item->getName() . '" id="' . $item->getName() . '_options"><legend>' . WFText::_($item->getTitle()) . '</legend>';
$tpl .= $data;
$tpl .= '</fieldset>';
}
}
}
return $tpl;
}
public function getSettings() {
$profile = $this->getProfile();
$settings = array(
'defaults' => $this->getDefaults(),
'file_browser' => $this->getParam('file_browser', 1) && in_array('browser', explode(',', $profile->plugins))
);
return parent::getSettings($settings);
}
}