first commit

This commit is contained in:
2026-02-08 21:16:11 +01:00
commit e17b7026fd
8881 changed files with 1160453 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
/**
* @package Convert Forms
* @version 3.2.12 Free
*
* @author Tassos Marinos <info@tassos.gr>
* @link http://www.tassos.gr
* @copyright Copyright © 2021 Tassos Marinos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die;
JHtml::script('com_convertforms/editorbutton.js', ['relative' => true, 'version' => 'auto']);
JFactory::getDocument()->addStyleDeclaration( '
.cfEditorButton form, .eboxEditorButton .controls > * {
margin:0;
}
.cfHeader {
border-bottom: 1px dotted #ccc;
margin-bottom: 15px;
padding-bottom: 5px;
}
.cfHeader p {
color:#666;
font-size: 11px;
}
.cfHeader h3 {
font-size: 16px;
margin-bottom: 5px;
margin-top: 0;
}
.cfEditorButton .control-group {
margin-bottom: 15px;
}
.cfEditorButton {
padding: 5px;
}
');
?>
<div class="cfEditorButton">
<form>
<?php echo $this->form->renderFieldset("main") ?>
<button onclick="insertConvertFormShortcode('<?php echo $this->eName; ?>', <?php echo defined('nrJ4') ? 'true' : 'false' ?>);" class="btn btn-success span12">
<?php echo JText::_('PLG_EDITORS-XTD_CONVERTFORMS_INSERTBUTTON'); ?>
</button>
</form>
</div>

View File

@@ -0,0 +1,47 @@
<?php
/**
* @package Convert Forms
* @version 3.2.12 Free
*
* @author Tassos Marinos <info@tassos.gr>
* @link http://www.tassos.gr
* @copyright Copyright © 2020 Tassos Marinos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
class ConvertFormsViewEditorbutton extends JViewLegacy
{
/**
* Items view display method
* @return void
*/
public function display($tpl = null)
{
// Load plugin language file
NRFramework\Functions::loadLanguage("plg_editors-xtd_convertforms");
// Get editor name
$eName = JFactory::getApplication()->input->getCmd('e_name');
// Get form fields
$xml = JPATH_PLUGINS . "/editors-xtd/convertforms/form.xml";
$form = new JForm("com_convertforms.button", array('control' => 'jform'));
$form->loadFile($xml, false);
// Template properties
$this->eName = preg_replace('#[^A-Z0-9\-\_\[\]]#i', '', $eName);
$this->form = $form;
parent::display($tpl);
return;
}
}