вот php плагина только незнаю где что нужно изменить !
<?php
/*------------------------------------------------------------------------
# panoramaviewerfx.php - Panorama Viewer FX
# ------------------------------------------------------------------------
# author FlashXML.net
# copyright Copyright (C) 2011 flashxml.net. All Rights Reserved.
# @license -
http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites:
http://www.flashxml.net# Technical Support: Forum -
http://www.flashxml.net/panorama-viewer.html#comments-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$panoramaviewerfx_params = null;
$mainframe->registerEvent('onPrepareContent', 'plgcontentpanoramaviewerfx');
$panoramaviewerfx_embed_codes_count = 0;
$panoramaviewerfx_swfobject_embedded = false;
function plgcontentpanoramaviewerfx(&$row, &$params, $page=0) {
if (is_object($row)) {
return plgpanoramaviewerfx($row->text, $params);
}
return plgpanoramaviewerfx($row, $params);
}
function plgpanoramaviewerfx(&$text, &$params) {
if (JString::strpos($text, '{panoramaviewerfx') === false) {
return true;
}
global $panoramaviewerfx_params;
$panoramaviewerfx_params = array(
'embed_codes_count' => 0,
'swfobject_embedded' => false,
'wmode_values' => array(
'allowed' => array('transparent', 'window'),
'default' => 'transparent',
),
'regexp_match_keys' => array(
'settings' => 2,
'width' => 4,
'height' => 6,
'wmode' => 8,
'alternative_text' => 9,
),
);
$text = preg_replace_callback('|{panoramaviewerfx(\s+settings=([^ ]+))?(\s+width=([0-9]+))?(\s+height=([0-9]+))?(\s+wmode=([a-z]+))?\s*}(.*){/panoramaviewerfx}|i', 'plgpanoramaviewerfxembedcode', $text);
return true;
}
function plgpanoramaviewerfxembedcode($params) {
global $panoramaviewerfx_params;
$panoramaviewerfx_plugin_helper = JPluginHelper::getPlugin('content', 'panoramaviewerfx');
$pluginParams = new JParameter($panoramaviewerfx_plugin_helper->params);
$panoramaviewer_path = $pluginParams->get('panoramaviewerfx_path');
if (strpos($panoramaviewer_path, '/')!== 0) {
$panoramaviewer_path = '/' . $panoramaviewer_path;
$pluginParams->def('panoramaviewerfx_path', $path);
}
$settings = !empty($params[$panoramaviewerfx_params['regexp_match_keys']['settings']])? $params[$panoramaviewerfx_params['regexp_match_keys']['settings']] : 'settings.xml';
global $panoramaviewerfx_swfobject_embedded;
if (empty($panoramaviewerfx_swfobject_embedded)) {
global $mainframe;
$mainframe->addCustomHeadTag('<script type="text/javascript" src="http'.(!empty($_SERVER['HTTPS'])? 's' : '').'://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>');
$panoramaviewerfx_swfobject_embedded = true;
}
$panoramaviewerfx_width = $panoramaviewerfx_height = 0;
switch (true) {
case function_exists('simplexml_load_file') && file_exists(JPATH_SITE.$panoramaviewer_path.$settings):
$xml = simplexml_load_file(JPATH_SITE.$panoramaviewer_path.$settings);
if ($xml) {
$panoramaviewerfx_width_attributes_array = $xml->General_Properties->componentWidth->attributes();
$panoramaviewerfx_width = !empty($panoramaviewerfx_width_attributes_array)? (int)$panoramaviewerfx_width_attributes_array['value'] : 0;
$panoramaviewerfx_height_attributes_array = $xml->General_Properties->componentHeight->attributes();
$panoramaviewerfx_height = !empty($panoramaviewerfx_height_attributes_array)? (int)$panoramaviewerfx_height_attributes_array['value'] : 0;
}
break;
case (int)$params[$panoramaviewerfx_params['regexp_match_keys']['width']] > 0 && (int)$params[$panoramaviewerfx_params['regexp_match_keys']['height']] > 0:
$panoramaviewerfx_width = (int)$params[$panoramaviewerfx_params['regexp_match_keys']['width']];
$panoramaviewerfx_height = (int)$params[$panoramaviewerfx_params['regexp_match_keys']['height']];
break;
default:
return '<!-- invalid path to the settings XML file, please use valid plugin parameter values -->';
break;
}
if (!($panoramaviewerfx_width > 0 && $panoramaviewerfx_height > 0)) {
return '<!-- invalid Panorama Viewer FX width and / or height -->';
}
$panoramaviewerfx_params['embed_codes_count']++;
if (empty($params[$panoramaviewerfx_params['regexp_match_keys']['wmode']])) {
$panoramaviewer_wmode = $pluginParams->get('panoramaviewerfx_wmode');
if (empty($panoramaviewer_wmode)) {
$panoramaviewer_wmode = $panoramaviewerfx_params['wmode_values']['default'];
}
} else {
$panoramaviewer_wmode = in_array($params[$panoramaviewerfx_params['regexp_match_keys']['wmode']], $panoramaviewerfx_params['wmode_values']['allowed'])? $params[$panoramaviewerfx_params['regexp_match_keys']['wmode']] : $panoramaviewerfx_params['wmode_values']['default'];
}
$joomla_install_dir_in_url = rtrim(JURI::root(true), '/');
if (!empty($joomla_install_dir_in_url) && strpos($joomla_install_dir_in_url, '/')!== 0) {
$joomla_install_dir_in_url = '/' . $joomla_install_dir_in_url;
}
return '<div id="flashxmlpanoramaviewer'.$panoramaviewerfx_params['embed_codes_count'].'">'.$params[$panoramaviewerfx_params['regexp_match_keys']['alternative_text']].'</div><script type="text/javascript">'."swfobject.embedSWF('{$joomla_install_dir_in_url}{$panoramaviewer_path}PanoramaViewerFX.swf', 'flashxmlpanoramaviewer{$panoramaviewerfx_params['embed_codes_count']}', '{$panoramaviewerfx_width}', '{$panoramaviewerfx_height}', '9.0.0.0', '', { folderPath: '{$joomla_install_dir_in_url}{$panoramaviewer_path}'".($settings != 'settings.xml' ? ", settingsXML: '{$settings}'" : '')." }, { scale: 'noscale', salign: 'tl', wmode: '{$panoramaviewer_wmode}', allowScriptAccess: 'sameDomain', allowFullScreen: true }, {});</script>";
}