| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/plugins/editors-xtd/ |
Upload File : |
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.plugin.plugin' );
class plgButtonXmapLink extends JPlugin
{
function plgButtonXmapLink(& $subject, $config)
{
parent::__construct($subject, $config);
}
function onDisplay($name)
{
global $mainframe;
$doc =& JFactory::getDocument();
$link = 'index.php?option=com_xmap&task=navigator&sitemap='.$this->params->get('sitemap').'&tmpl=component&e_name='.$name;
JHTML::_('behavior.modal');
$button = new JObject();
$button->set('modal', true);
$button->set('link', $link);
$button->set('text', JText::_('Link'));
$button->set('name', 'blank');
$button->set('options', "{handler: 'iframe', size: {x: 570, y: 400}}");
return $button;
}
}