* @link http://www.tassos.gr * @copyright Copyright © 2021 Tassos Marinos All Rights Reserved * @license GNU GPLv3 or later */ defined('_JEXEC') or die('Restricted access'); class JFormFieldTFBorderControl extends JFormField { protected function getInput() { // Control Group Class $control_group_class = (string) $this->element['control_group_class']; // Hides the inner control labels $hide_labels = (bool) $this->element['hide_labels']; $hiddenLabel = $hide_labels ? 'hiddenLabel="true"' : ''; // Prefix and suffix for the fieldset $prefix = $suffix = ''; // Whether to display the fields inline $inline = (bool) $this->element['inline']; if ($inline) { $prefix = ''; $suffix = ''; } $form_source = new SimpleXMLElement('
' . $prefix . ' ' . $suffix . '
'); $control = $this->name; $formname = 'border.' . str_replace(['jform[', '[', ']'], ['', '.', ''], $control); $form = JForm::getInstance($formname, $form_source->asXML(), ['control' => $control]); $form->bind($this->value); return $form->renderFieldset('border', [ 'class' => $control_group_class ]); } }