@@ -86,33 +86,33 @@ |
||
| 86 | 86 | |
| 87 | 87 | $html = []; |
| 88 | 88 | $html[] = '<div class="t3-form-field-container-flexsections t3-flex-section t3js-flex-section">'; |
| 89 | - $html[] = '<input class="t3-flex-control t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />'; |
|
| 90 | - $html[] = '<div class="panel panel-default panel-condensed">'; |
|
| 91 | - $html[] = '<div class="panel-heading t3js-flex-section-header" data-toggle="formengine-flex">'; |
|
| 92 | - $html[] = '<div class="form-irre-header">'; |
|
| 93 | - $html[] = '<div class="form-irre-header-cell form-irre-header-icon">'; |
|
| 94 | - $html[] = $toggleIcons; |
|
| 95 | - $html[] = '</div>'; |
|
| 96 | - $html[] = '<div class="form-irre-header-cell form-irre-header-body">'; |
|
| 97 | - $html[] = '<span class="t3js-record-title">' . htmlspecialchars($containerTitle) . '</span>'; |
|
| 98 | - $html[] = '</div>'; |
|
| 99 | - $html[] = '<div class="form-irre-header-cell form-irre-header-control">'; |
|
| 100 | - $html[] = '<div class="btn-group btn-group-sm">'; |
|
| 101 | - $html[] = implode(LF, $moveAndDeleteContent); |
|
| 102 | - $html[] = '</div>'; |
|
| 103 | - $html[] = '</div>'; |
|
| 104 | - $html[] = '</div>'; |
|
| 105 | - $html[] = '</div>'; |
|
| 106 | - $html[] = '<div class="panel-collapse t3js-flex-section-content"' . ($flexFormContainerElementCollapsed ? ' style="display:none;"' : '') . '>'; |
|
| 107 | - $html[] = $containerContentResult['html']; |
|
| 108 | - $html[] = '</div>'; |
|
| 109 | - $html[] = '<input'; |
|
| 110 | - $html[] = 'class="t3-flex-control t3js-flex-control-toggle"'; |
|
| 111 | - $html[] = 'type="hidden"'; |
|
| 112 | - $html[] = 'name="' . htmlspecialchars($toggleFieldName) . '"'; |
|
| 113 | - $html[] = 'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"'; |
|
| 114 | - $html[] = '/>'; |
|
| 115 | - $html[] = '</div>'; |
|
| 89 | + $html[] = '<input class="t3-flex-control t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />'; |
|
| 90 | + $html[] = '<div class="panel panel-default panel-condensed">'; |
|
| 91 | + $html[] = '<div class="panel-heading t3js-flex-section-header" data-toggle="formengine-flex">'; |
|
| 92 | + $html[] = '<div class="form-irre-header">'; |
|
| 93 | + $html[] = '<div class="form-irre-header-cell form-irre-header-icon">'; |
|
| 94 | + $html[] = $toggleIcons; |
|
| 95 | + $html[] = '</div>'; |
|
| 96 | + $html[] = '<div class="form-irre-header-cell form-irre-header-body">'; |
|
| 97 | + $html[] = '<span class="t3js-record-title">' . htmlspecialchars($containerTitle) . '</span>'; |
|
| 98 | + $html[] = '</div>'; |
|
| 99 | + $html[] = '<div class="form-irre-header-cell form-irre-header-control">'; |
|
| 100 | + $html[] = '<div class="btn-group btn-group-sm">'; |
|
| 101 | + $html[] = implode(LF, $moveAndDeleteContent); |
|
| 102 | + $html[] = '</div>'; |
|
| 103 | + $html[] = '</div>'; |
|
| 104 | + $html[] = '</div>'; |
|
| 105 | + $html[] = '</div>'; |
|
| 106 | + $html[] = '<div class="panel-collapse t3js-flex-section-content"' . ($flexFormContainerElementCollapsed ? ' style="display:none;"' : '') . '>'; |
|
| 107 | + $html[] = $containerContentResult['html']; |
|
| 108 | + $html[] = '</div>'; |
|
| 109 | + $html[] = '<input'; |
|
| 110 | + $html[] = 'class="t3-flex-control t3js-flex-control-toggle"'; |
|
| 111 | + $html[] = 'type="hidden"'; |
|
| 112 | + $html[] = 'name="' . htmlspecialchars($toggleFieldName) . '"'; |
|
| 113 | + $html[] = 'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"'; |
|
| 114 | + $html[] = '/>'; |
|
| 115 | + $html[] = '</div>'; |
|
| 116 | 116 | $html[] = '</div>'; |
| 117 | 117 | |
| 118 | 118 | $resultArray['html'] = implode(LF, $html); |
@@ -565,7 +565,7 @@ |
||
| 565 | 565 | } else { |
| 566 | 566 | $pArray[$cEl['uid']]['_templates'][] = $row; |
| 567 | 567 | } |
| 568 | - uasort($pArray, function ($a, $b) { |
|
| 568 | + uasort($pArray, function($a, $b) { |
|
| 569 | 569 | return $a['sorting'] - $b['sorting']; |
| 570 | 570 | }); |
| 571 | 571 | } |
@@ -58,84 +58,84 @@ |
||
| 58 | 58 | $json = json_encode($this->rows, JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS); |
| 59 | 59 | $html = []; |
| 60 | 60 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 61 | - $html[] = $fieldInformationHtml; |
|
| 62 | - $html[] = '<div class="form-control-wrap">'; |
|
| 63 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 64 | - $html[] = '<div class="form-wizards-element">'; |
|
| 65 | - $html[] = '<input'; |
|
| 66 | - $html[] = ' type="hidden"'; |
|
| 67 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 68 | - $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
| 69 | - $html[] = '/>'; |
|
| 70 | - $html[] = '<table class="grideditor table table-bordered">'; |
|
| 71 | - $html[] = '<tr>'; |
|
| 72 | - $html[] = '<td colspan="2" align="center">'; |
|
| 73 | - $html[] = '<div class="btn-group">'; |
|
| 74 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
| 75 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 76 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 77 | - $html[] = '</a>'; |
|
| 78 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
| 79 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 80 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 81 | - $html[] = '</a>'; |
|
| 82 | - $html[] = '</div>'; |
|
| 83 | - $html[] = '</td>'; |
|
| 84 | - $html[] = '</tr>'; |
|
| 85 | - $html[] = '<tr>'; |
|
| 86 | - $html[] = '<td class="editor_cell">'; |
|
| 87 | - $html[] = '<div'; |
|
| 88 | - $html[] = ' id="editor"'; |
|
| 89 | - $html[] = ' class="t3js-grideditor"'; |
|
| 90 | - $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
| 91 | - $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
| 92 | - $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
| 93 | - $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 94 | - $html[] = '>'; |
|
| 95 | - $html[] = '</div>'; |
|
| 96 | - $html[] = '</td>'; |
|
| 97 | - $html[] = '<td>'; |
|
| 98 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 99 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
| 100 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
| 101 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 102 | - $html[] = '</a>'; |
|
| 103 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
| 104 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
| 105 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 106 | - $html[] = '</a>'; |
|
| 107 | - $html[] = '</div>'; |
|
| 108 | - $html[] = '</td>'; |
|
| 109 | - $html[] = '</tr>'; |
|
| 110 | - $html[] = '<tr>'; |
|
| 111 | - $html[] = '<td colspan="2" align="center">'; |
|
| 112 | - $html[] = '<div class="btn-group">'; |
|
| 113 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
| 114 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 115 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 116 | - $html[] = '</a>'; |
|
| 117 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
| 118 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 119 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 120 | - $html[] = '</a>'; |
|
| 121 | - $html[] = '</div>'; |
|
| 122 | - $html[] = '</td>'; |
|
| 123 | - $html[] = '</tr>'; |
|
| 124 | - $html[] = '<tr>'; |
|
| 125 | - $html[] = '<td colspan="2">'; |
|
| 126 | - $html[] = '<a href="#" class="btn btn-default btn-sm t3js-grideditor-preview-button"></a>'; |
|
| 127 | - $html[] = '<pre class="t3js-grideditor-preview-config grideditor-preview"><code></code></pre>'; |
|
| 128 | - $html[] = '</td>'; |
|
| 129 | - $html[] = '</tr>'; |
|
| 130 | - $html[] = '</table>'; |
|
| 131 | - $html[] = '</div>'; |
|
| 61 | + $html[] = $fieldInformationHtml; |
|
| 62 | + $html[] = '<div class="form-control-wrap">'; |
|
| 63 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 64 | + $html[] = '<div class="form-wizards-element">'; |
|
| 65 | + $html[] = '<input'; |
|
| 66 | + $html[] = ' type="hidden"'; |
|
| 67 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 68 | + $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
| 69 | + $html[] = '/>'; |
|
| 70 | + $html[] = '<table class="grideditor table table-bordered">'; |
|
| 71 | + $html[] = '<tr>'; |
|
| 72 | + $html[] = '<td colspan="2" align="center">'; |
|
| 73 | + $html[] = '<div class="btn-group">'; |
|
| 74 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
| 75 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 76 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 77 | + $html[] = '</a>'; |
|
| 78 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
| 79 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 80 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 81 | + $html[] = '</a>'; |
|
| 82 | + $html[] = '</div>'; |
|
| 83 | + $html[] = '</td>'; |
|
| 84 | + $html[] = '</tr>'; |
|
| 85 | + $html[] = '<tr>'; |
|
| 86 | + $html[] = '<td class="editor_cell">'; |
|
| 87 | + $html[] = '<div'; |
|
| 88 | + $html[] = ' id="editor"'; |
|
| 89 | + $html[] = ' class="t3js-grideditor"'; |
|
| 90 | + $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
| 91 | + $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
| 92 | + $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
| 93 | + $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 94 | + $html[] = '>'; |
|
| 95 | + $html[] = '</div>'; |
|
| 96 | + $html[] = '</td>'; |
|
| 97 | + $html[] = '<td>'; |
|
| 98 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 99 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
| 100 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
| 101 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 102 | + $html[] = '</a>'; |
|
| 103 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
| 104 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
| 105 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 106 | + $html[] = '</a>'; |
|
| 107 | + $html[] = '</div>'; |
|
| 108 | + $html[] = '</td>'; |
|
| 109 | + $html[] = '</tr>'; |
|
| 110 | + $html[] = '<tr>'; |
|
| 111 | + $html[] = '<td colspan="2" align="center">'; |
|
| 112 | + $html[] = '<div class="btn-group">'; |
|
| 113 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
| 114 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 115 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 116 | + $html[] = '</a>'; |
|
| 117 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
| 118 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 119 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 120 | + $html[] = '</a>'; |
|
| 121 | + $html[] = '</div>'; |
|
| 122 | + $html[] = '</td>'; |
|
| 123 | + $html[] = '</tr>'; |
|
| 124 | + $html[] = '<tr>'; |
|
| 125 | + $html[] = '<td colspan="2">'; |
|
| 126 | + $html[] = '<a href="#" class="btn btn-default btn-sm t3js-grideditor-preview-button"></a>'; |
|
| 127 | + $html[] = '<pre class="t3js-grideditor-preview-config grideditor-preview"><code></code></pre>'; |
|
| 128 | + $html[] = '</td>'; |
|
| 129 | + $html[] = '</tr>'; |
|
| 130 | + $html[] = '</table>'; |
|
| 131 | + $html[] = '</div>'; |
|
| 132 | 132 | if (!empty($fieldWizardHtml)) { |
| 133 | 133 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 134 | 134 | $html[] = $fieldWizardHtml; |
| 135 | 135 | $html[] = '</div>'; |
| 136 | 136 | } |
| 137 | - $html[] = '</div>'; |
|
| 138 | - $html[] = '</div>'; |
|
| 137 | + $html[] = '</div>'; |
|
| 138 | + $html[] = '</div>'; |
|
| 139 | 139 | $html[] = '</div>'; |
| 140 | 140 | |
| 141 | 141 | $html = implode(LF, $html); |
@@ -112,16 +112,16 @@ discard block |
||
| 112 | 112 | if ($config['readOnly']) { |
| 113 | 113 | $html = []; |
| 114 | 114 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 115 | - $html[] = $fieldInformationHtml; |
|
| 116 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 117 | - $html[] = '<div class="form-wizards-element">'; |
|
| 118 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 119 | - $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
| 120 | - $html[] = htmlspecialchars($itemValue); |
|
| 121 | - $html[] = '</textarea>'; |
|
| 122 | - $html[] = '</div>'; |
|
| 123 | - $html[] = '</div>'; |
|
| 124 | - $html[] = '</div>'; |
|
| 115 | + $html[] = $fieldInformationHtml; |
|
| 116 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 117 | + $html[] = '<div class="form-wizards-element">'; |
|
| 118 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 119 | + $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
| 120 | + $html[] = htmlspecialchars($itemValue); |
|
| 121 | + $html[] = '</textarea>'; |
|
| 122 | + $html[] = '</div>'; |
|
| 123 | + $html[] = '</div>'; |
|
| 124 | + $html[] = '</div>'; |
|
| 125 | 125 | $html[] = '</div>'; |
| 126 | 126 | $resultArray['html'] = implode(LF, $html); |
| 127 | 127 | return $resultArray; |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | . '.value=this.options[this.selectedIndex].value'; |
| 196 | 196 | } |
| 197 | 197 | $valuePickerHtml[] = '<select'; |
| 198 | - $valuePickerHtml[] = ' class="form-control tceforms-select tceforms-wizardselect"'; |
|
| 199 | - $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
| 198 | + $valuePickerHtml[] = ' class="form-control tceforms-select tceforms-wizardselect"'; |
|
| 199 | + $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
| 200 | 200 | $valuePickerHtml[] = '>'; |
| 201 | 201 | $valuePickerHtml[] = '<option></option>'; |
| 202 | 202 | foreach ($config['valuePicker']['items'] as $item) { |
@@ -215,24 +215,24 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | $mainFieldHtml = []; |
| 217 | 217 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
| 218 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
| 219 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
| 220 | - $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
| 221 | - $mainFieldHtml[] = '</div>'; |
|
| 218 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
| 219 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
| 220 | + $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
| 221 | + $mainFieldHtml[] = '</div>'; |
|
| 222 | 222 | if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
| 223 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 224 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
| 225 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
| 226 | - $mainFieldHtml[] = $fieldControlHtml; |
|
| 227 | - $mainFieldHtml[] = '</div>'; |
|
| 228 | - $mainFieldHtml[] = '</div>'; |
|
| 223 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 224 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
| 225 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
| 226 | + $mainFieldHtml[] = $fieldControlHtml; |
|
| 227 | + $mainFieldHtml[] = '</div>'; |
|
| 228 | + $mainFieldHtml[] = '</div>'; |
|
| 229 | 229 | } |
| 230 | 230 | if (!empty($fieldWizardHtml)) { |
| 231 | 231 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
| 232 | 232 | $mainFieldHtml[] = $fieldWizardHtml; |
| 233 | 233 | $mainFieldHtml[] = '</div>'; |
| 234 | 234 | } |
| 235 | - $mainFieldHtml[] = '</div>'; |
|
| 235 | + $mainFieldHtml[] = '</div>'; |
|
| 236 | 236 | $mainFieldHtml[] = '</div>'; |
| 237 | 237 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
| 238 | 238 | |
@@ -242,11 +242,11 @@ discard block |
||
| 242 | 242 | $fullElement = []; |
| 243 | 243 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
| 244 | 244 | $fullElement[] = '<div class="checkbox t3-form-field-eval-null-checkbox">'; |
| 245 | - $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
| 246 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
| 247 | - $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
| 248 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
| 249 | - $fullElement[] = '</label>'; |
|
| 245 | + $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
| 246 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
| 247 | + $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
| 248 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
| 249 | + $fullElement[] = '</label>'; |
|
| 250 | 250 | $fullElement[] = '</div>'; |
| 251 | 251 | $fullElement[] = $mainFieldHtml; |
| 252 | 252 | $fullElement = implode(LF, $fullElement); |
@@ -275,28 +275,28 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | $fullElement = []; |
| 277 | 277 | $fullElement[] = '<div class="checkbox t3js-form-field-eval-null-placeholder-checkbox">'; |
| 278 | - $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
| 279 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
| 280 | - $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
| 281 | - $fullElement[] = $overrideLabel; |
|
| 282 | - $fullElement[] = '</label>'; |
|
| 278 | + $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
| 279 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
| 280 | + $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
| 281 | + $fullElement[] = $overrideLabel; |
|
| 282 | + $fullElement[] = '</label>'; |
|
| 283 | 283 | $fullElement[] = '</div>'; |
| 284 | 284 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
| 285 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
| 286 | - $fullElement[] = '<textarea'; |
|
| 287 | - $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
| 288 | - $fullElement[] = ' disabled="disabled"'; |
|
| 289 | - $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
| 290 | - $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
| 291 | - $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
| 292 | - $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
| 293 | - $fullElement[] = '>'; |
|
| 294 | - $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
| 295 | - $fullElement[] = '</textarea>'; |
|
| 296 | - $fullElement[] = '</div>'; |
|
| 285 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
| 286 | + $fullElement[] = '<textarea'; |
|
| 287 | + $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
| 288 | + $fullElement[] = ' disabled="disabled"'; |
|
| 289 | + $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
| 290 | + $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
| 291 | + $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
| 292 | + $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
| 293 | + $fullElement[] = '>'; |
|
| 294 | + $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
| 295 | + $fullElement[] = '</textarea>'; |
|
| 296 | + $fullElement[] = '</div>'; |
|
| 297 | 297 | $fullElement[] = '</div>'; |
| 298 | 298 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
| 299 | - $fullElement[] = $mainFieldHtml; |
|
| 299 | + $fullElement[] = $mainFieldHtml; |
|
| 300 | 300 | $fullElement[] = '</div>'; |
| 301 | 301 | $fullElement = implode(LF, $fullElement); |
| 302 | 302 | } |
@@ -124,32 +124,32 @@ discard block |
||
| 124 | 124 | $html = []; |
| 125 | 125 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 126 | 126 | $html[] = $fieldInformationHtml; |
| 127 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 128 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 129 | - $html[] = '<div class="form-wizards-element">'; |
|
| 127 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 128 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 129 | + $html[] = '<div class="form-wizards-element">'; |
|
| 130 | 130 | if (!$disabled) { |
| 131 | 131 | // Add an empty hidden field which will send a blank value if all items are unselected. |
| 132 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
| 132 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
| 133 | 133 | } |
| 134 | - $html[] = $selectElement; |
|
| 135 | - $html[] = '</div>'; |
|
| 134 | + $html[] = $selectElement; |
|
| 135 | + $html[] = '</div>'; |
|
| 136 | 136 | if (!$disabled) { |
| 137 | 137 | if (!empty($fieldControlHtml)) { |
| 138 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 139 | - $html[] = $fieldControlHtml; |
|
| 140 | - $html[] = '</div>'; |
|
| 141 | - $html[] = '</div>'; |
|
| 138 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 139 | + $html[] = $fieldControlHtml; |
|
| 140 | + $html[] = '</div>'; |
|
| 141 | + $html[] = '</div>'; |
|
| 142 | 142 | } |
| 143 | - $html[] = '<p>'; |
|
| 144 | - $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
| 145 | - $html[] = '</p>'; |
|
| 143 | + $html[] = '<p>'; |
|
| 144 | + $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
| 145 | + $html[] = '</p>'; |
|
| 146 | 146 | if (!empty($fieldWizardHtml)) { |
| 147 | 147 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 148 | 148 | $html[] = $fieldWizardHtml; |
| 149 | 149 | $html[] = '</div>'; |
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | - $html[] = '</div>'; |
|
| 152 | + $html[] = '</div>'; |
|
| 153 | 153 | $html[] = '</div>'; |
| 154 | 154 | |
| 155 | 155 | $resultArray['html'] = implode(LF, $html); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | $html = []; |
| 197 | 197 | $html[] = '<select ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
| 198 | - $html[] = implode(LF, $optionElements); |
|
| 198 | + $html[] = implode(LF, $optionElements); |
|
| 199 | 199 | $html[] = '</select>'; |
| 200 | 200 | |
| 201 | 201 | return implode(LF, $html); |
@@ -78,8 +78,8 @@ discard block |
||
| 78 | 78 | $html = []; |
| 79 | 79 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 80 | 80 | $html[] = $fieldInformationHtml; |
| 81 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 82 | - $html[] = '<div class="form-wizards-element">'; |
|
| 81 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 82 | + $html[] = '<div class="form-wizards-element">'; |
|
| 83 | 83 | foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) { |
| 84 | 84 | $label = $itemLabelAndValue[0]; |
| 85 | 85 | $value = $itemLabelAndValue[1]; |
@@ -87,26 +87,26 @@ discard block |
||
| 87 | 87 | $radioChecked = (string)$value === (string)$this->data['parameterArray']['itemFormElValue'] ? ' checked="checked"' : ''; |
| 88 | 88 | |
| 89 | 89 | $html[] = '<div class="radio' . $disabled . '">'; |
| 90 | - $html[] = '<label for="' . $radioId . '">'; |
|
| 91 | - $html[] = '<input type="radio"'; |
|
| 92 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 93 | - $html[] = ' id="' . $radioId . '"'; |
|
| 94 | - $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
| 95 | - $html[] = $radioChecked; |
|
| 96 | - $html[] = $disabled; |
|
| 97 | - $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
| 98 | - $html[] = '/>'; |
|
| 99 | - $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
| 100 | - $html[] = '</label>'; |
|
| 90 | + $html[] = '<label for="' . $radioId . '">'; |
|
| 91 | + $html[] = '<input type="radio"'; |
|
| 92 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 93 | + $html[] = ' id="' . $radioId . '"'; |
|
| 94 | + $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
| 95 | + $html[] = $radioChecked; |
|
| 96 | + $html[] = $disabled; |
|
| 97 | + $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
| 98 | + $html[] = '/>'; |
|
| 99 | + $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
| 100 | + $html[] = '</label>'; |
|
| 101 | 101 | $html[] = '</div>'; |
| 102 | 102 | } |
| 103 | - $html[] = '</div>'; |
|
| 103 | + $html[] = '</div>'; |
|
| 104 | 104 | if (!$disabled && !empty($fieldWizardHtml)) { |
| 105 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 106 | - $html[] = $fieldWizardHtml; |
|
| 107 | - $html[] = '</div>'; |
|
| 105 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 106 | + $html[] = $fieldWizardHtml; |
|
| 107 | + $html[] = '</div>'; |
|
| 108 | 108 | } |
| 109 | - $html[] = '</div>'; |
|
| 109 | + $html[] = '</div>'; |
|
| 110 | 110 | $html[] = '</div>'; |
| 111 | 111 | |
| 112 | 112 | $resultArray['html'] = implode(LF, $html); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | return $this->slugFieldNamesPerTable[$tableName] = array_keys( |
| 95 | 95 | array_filter( |
| 96 | 96 | $GLOBALS['TCA'][$tableName]['columns'] ?? [], |
| 97 | - function (array $settings) { |
|
| 97 | + function(array $settings) { |
|
| 98 | 98 | return ($settings['config']['type'] ?? null) === 'slug'; |
| 99 | 99 | } |
| 100 | 100 | ) |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | ($module instanceof ConfigurableInterface && $module->isEnabled()) |
| 126 | 126 | || !($module instanceof ConfigurableInterface) |
| 127 | 127 | ) |
| 128 | - ) { |
|
| 128 | + ) { |
|
| 129 | 129 | $module->onSubmit($configurationToSave, $request); |
| 130 | 130 | } |
| 131 | 131 | if ($module instanceof SubmoduleProviderInterface) { |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | public function __construct(ConfigurationService $configurationService = null, ModuleLoader $moduleLoader = null) |
| 53 | 53 | { |
| 54 | 54 | $this->configurationService = $configurationService |
| 55 | - ?? |
|
| 56 | - GeneralUtility::makeInstance(ConfigurationService::class); |
|
| 55 | + ?? |
|
| 56 | + GeneralUtility::makeInstance(ConfigurationService::class); |
|
| 57 | 57 | $this->adminPanelModuleConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] ?? []; |
| 58 | 58 | $this->moduleLoader = $moduleLoader ?? GeneralUtility::makeInstance(ModuleLoader::class); |
| 59 | 59 | } |