Current Path :
/
home
/
platinum
/
www
/
_old
/
plugins
/
editors-xtd
/
baforms
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/platinum/www/_old/plugins/editors-xtd/baforms/baforms.php
<?php /** * @package BaForms * @author Balbooa http://www.balbooa.com/ * @copyright Copyright @ Balbooa * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ defined('_JEXEC') or die; class PlgButtonBaforms extends JPlugin { public function onDisplay($name) { $js = " function formsSelectForm(id) { if ('jInsertEditorText' in window) { jInsertEditorText('[forms ID='+id+']', '".$name."'); SqueezeBox.close(); jModalClose(); } else { for (var ind in Joomla.editors.instances) { Joomla.editors.instances[ind].replaceSelection('[forms ID='+id+']', '".$name."'); break; } jQuery(Joomla.currentModal).modal('hide'); } }"; $doc = JFactory::getDocument(); $doc->addScriptDeclaration($js); JHtml::_('behavior.modal'); $link = 'index.php?option=com_baforms&view=forms&layout=modal&tmpl=component&' . JSession::getFormToken() . '=1'; $button = new JObject; $button->set('modal', true); $button->set('class', 'btn'); $button->set('link', $link); $button->set('text', 'Forms'); $button->set('name', 'star'); $button->set('options', "{handler: 'iframe', size: {x: 740, y: 545}}"); return $button; } }