<?php
/**
* @copyright Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
if(version_compare(JVERSION,'1.6.0','<')){
class JElementTestplug extends JElement
{
function fetchElement($name, $value, &$node, $control_name)
{
JHTML::_('behavior.modal','a.modal');
$link = 'index.php?option=com_acymailing&tmpl=component&ctrl=config&task=plgtrigger&plg='.$value.'&plgtype='.$name;
return '<a class="modal" title="Test" href="'.$link.'" rel="{handler: \'iframe\', size: {x: 650, y: 375}}"><button onclick="return false">Test</button></a>';
}
}
}else{
class JFormFieldTestplug extends JFormField
{
var $type = 'testplug';
function getInput() {
JHTML::_('behavior.modal','a.modal');
$link = 'index.php?option=com_acymailing&tmpl=component&ctrl=config&task=plgtrigger&plg='.$value.'&plgtype='.$name;
return '<a class="modal" title="Test" href="'.$link.'" rel="{handler: \'iframe\', size: {x: 650, y: 375}}"><button onclick="return false">Test</button></a>';
}
}
}