group; // subfields require JCE Pro if (isset($this->element['pro']) && !WF_EDITOR_PRO) { return ""; } $subForm = new JForm('', array('control' => $this->formControl . '[' . str_replace('.', '][', $group) . ']')); $children = $this->element->children(); $subForm->load($children); $subForm->setFields($children); $data = $this->form->getData()->toObject(); // extract relevant data level using group foreach (explode('.', $group) as $key) { if (isset($data->$key)) { $data = $data->$key; } } $subForm->bind($data); // And finaly build a main container $str = array(); $fields = $subForm->getFieldset(); if ($this->class === 'inset') { $this->class .= ' well well-small well-light p-4 bg-light'; } $str[] = '
'; $str[] = '
'; if ($this->element['label']) { $text = $this->element['label']; $text = $this->translateLabel ? JText::_($text) : $text; $str[] = '' . $text . ''; } if ($this->element['description']) { $text = $this->element['description']; $text = $this->translateLabel ? JText::_($text) : $text; $str[] = '' . $text . ''; // reset description $this->description = ''; } foreach ($fields as $field) { $str[] = $field->renderField(array('description' => $field->description)); } $str[] = '
'; $str[] = '
'; return implode("", $str); } }