@@ -104,14 +104,14 @@ discard block |
||
104 | 104 | |
105 | 105 | $html = []; |
106 | 106 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
107 | - $html[] = $fieldInformationHtml; |
|
108 | - $html[] = '<div class="form-wizards-wrap">'; |
|
109 | - $html[] = '<div class="form-wizards-element">'; |
|
110 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
111 | - $html[] = '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>'; |
|
112 | - $html[] = '</div>'; |
|
113 | - $html[] = '</div>'; |
|
114 | - $html[] = '</div>'; |
|
107 | + $html[] = $fieldInformationHtml; |
|
108 | + $html[] = '<div class="form-wizards-wrap">'; |
|
109 | + $html[] = '<div class="form-wizards-element">'; |
|
110 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
111 | + $html[] = '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>'; |
|
112 | + $html[] = '</div>'; |
|
113 | + $html[] = '</div>'; |
|
114 | + $html[] = '</div>'; |
|
115 | 115 | $html[] = '</div>'; |
116 | 116 | $resultArray['html'] = implode(LF, $html); |
117 | 117 | return $resultArray; |
@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | . '.value=this.options[this.selectedIndex].value'; |
186 | 186 | } |
187 | 187 | $valuePickerHtml[] = '<select'; |
188 | - $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
189 | - $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
188 | + $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
189 | + $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
190 | 190 | $valuePickerHtml[] = '>'; |
191 | 191 | $valuePickerHtml[] = '<option></option>'; |
192 | 192 | foreach ($config['valuePicker']['items'] as $item) { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $valueType = 'double'; |
214 | 214 | $itemValue = (double)$itemValue; |
215 | 215 | } |
216 | - $callbackParams = [ $table, $row['uid'], $fieldName, $parameterArray['itemFormElName'] ]; |
|
216 | + $callbackParams = [$table, $row['uid'], $fieldName, $parameterArray['itemFormElName']]; |
|
217 | 217 | $rangeAttributes = [ |
218 | 218 | 'id' => $id, |
219 | 219 | 'type' => 'range', |
@@ -258,26 +258,26 @@ discard block |
||
258 | 258 | |
259 | 259 | $mainFieldHtml = []; |
260 | 260 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
261 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
262 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
263 | - $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
264 | - $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
265 | - $mainFieldHtml[] = '</div>'; |
|
261 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
262 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
263 | + $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
264 | + $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
265 | + $mainFieldHtml[] = '</div>'; |
|
266 | 266 | if (!empty($valuePickerHtml) || !empty($valueSliderHtml) || !empty($fieldControlHtml)) { |
267 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
268 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
269 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
270 | - $mainFieldHtml[] = implode(LF, $valueSliderHtml); |
|
271 | - $mainFieldHtml[] = $fieldControlHtml; |
|
272 | - $mainFieldHtml[] = '</div>'; |
|
273 | - $mainFieldHtml[] = '</div>'; |
|
267 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
268 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
269 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
270 | + $mainFieldHtml[] = implode(LF, $valueSliderHtml); |
|
271 | + $mainFieldHtml[] = $fieldControlHtml; |
|
272 | + $mainFieldHtml[] = '</div>'; |
|
273 | + $mainFieldHtml[] = '</div>'; |
|
274 | 274 | } |
275 | 275 | if (!empty($fieldWizardHtml)) { |
276 | 276 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
277 | 277 | $mainFieldHtml[] = $fieldWizardHtml; |
278 | 278 | $mainFieldHtml[] = '</div>'; |
279 | 279 | } |
280 | - $mainFieldHtml[] = '</div>'; |
|
280 | + $mainFieldHtml[] = '</div>'; |
|
281 | 281 | $mainFieldHtml[] = '</div>'; |
282 | 282 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
283 | 283 | |
@@ -287,11 +287,11 @@ discard block |
||
287 | 287 | $fullElement = []; |
288 | 288 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
289 | 289 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
290 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
291 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
292 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
293 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
294 | - $fullElement[] = '</label>'; |
|
290 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
291 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
292 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
293 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
294 | + $fullElement[] = '</label>'; |
|
295 | 295 | $fullElement[] = '</div>'; |
296 | 296 | $fullElement[] = $mainFieldHtml; |
297 | 297 | $fullElement = implode(LF, $fullElement); |
@@ -320,19 +320,19 @@ discard block |
||
320 | 320 | } |
321 | 321 | $fullElement = []; |
322 | 322 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
323 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
324 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
325 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
326 | - $fullElement[] = $overrideLabel; |
|
327 | - $fullElement[] = '</label>'; |
|
323 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
324 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
325 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
326 | + $fullElement[] = $overrideLabel; |
|
327 | + $fullElement[] = '</label>'; |
|
328 | 328 | $fullElement[] = '</div>'; |
329 | 329 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
330 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
331 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
332 | - $fullElement[] = '</div>'; |
|
330 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
331 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
332 | + $fullElement[] = '</div>'; |
|
333 | 333 | $fullElement[] = '</div>'; |
334 | 334 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
335 | - $fullElement[] = $mainFieldHtml; |
|
335 | + $fullElement[] = $mainFieldHtml; |
|
336 | 336 | $fullElement[] = '</div>'; |
337 | 337 | $fullElement = implode(LF, $fullElement); |
338 | 338 | } |
@@ -113,14 +113,14 @@ discard block |
||
113 | 113 | // Early return for read only fields |
114 | 114 | $html = []; |
115 | 115 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
116 | - $html[] = $fieldInformationHtml; |
|
117 | - $html[] = '<div class="form-wizards-wrap">'; |
|
118 | - $html[] = '<div class="form-wizards-element">'; |
|
119 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
121 | - $html[] = '</div>'; |
|
122 | - $html[] = '</div>'; |
|
123 | - $html[] = '</div>'; |
|
116 | + $html[] = $fieldInformationHtml; |
|
117 | + $html[] = '<div class="form-wizards-wrap">'; |
|
118 | + $html[] = '<div class="form-wizards-element">'; |
|
119 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
121 | + $html[] = '</div>'; |
|
122 | + $html[] = '</div>'; |
|
123 | + $html[] = '</div>'; |
|
124 | 124 | $html[] = '</div>'; |
125 | 125 | $resultArray['html'] = implode(LF, $html); |
126 | 126 | 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-select"'; |
|
199 | - $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
198 | + $valuePickerHtml[] = ' class="form-select"'; |
|
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) { |
@@ -219,33 +219,33 @@ discard block |
||
219 | 219 | |
220 | 220 | $expansionHtml = []; |
221 | 221 | $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
222 | - $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
223 | - $expansionHtml[] = '<div class="form-wizards-element">'; |
|
224 | - $expansionHtml[] = '<div class="input-group t3js-form-field-inputlink">'; |
|
225 | - $expansionHtml[] = '<span class="t3js-form-field-inputlink-icon input-group-addon">' . $linkExplanation['icon'] . '</span>'; |
|
226 | - $expansionHtml[] = '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" data-title="' . $explanation . '" value="' . $explanation . '" readonly>'; |
|
227 | - $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
228 | - $expansionHtml[] = '<span class="input-group-btn">'; |
|
229 | - $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
230 | - $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
231 | - $expansionHtml[] = '</button>'; |
|
232 | - $expansionHtml[] = '</span>'; |
|
233 | - $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
234 | - $expansionHtml[] = '</div>'; |
|
235 | - $expansionHtml[] = '</div>'; |
|
222 | + $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
223 | + $expansionHtml[] = '<div class="form-wizards-element">'; |
|
224 | + $expansionHtml[] = '<div class="input-group t3js-form-field-inputlink">'; |
|
225 | + $expansionHtml[] = '<span class="t3js-form-field-inputlink-icon input-group-addon">' . $linkExplanation['icon'] . '</span>'; |
|
226 | + $expansionHtml[] = '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" data-title="' . $explanation . '" value="' . $explanation . '" readonly>'; |
|
227 | + $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
228 | + $expansionHtml[] = '<span class="input-group-btn">'; |
|
229 | + $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
230 | + $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
231 | + $expansionHtml[] = '</button>'; |
|
232 | + $expansionHtml[] = '</span>'; |
|
233 | + $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
234 | + $expansionHtml[] = '</div>'; |
|
235 | + $expansionHtml[] = '</div>'; |
|
236 | 236 | if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
237 | - $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
238 | - $expansionHtml[] = '<div class="btn-group">'; |
|
239 | - $expansionHtml[] = implode(LF, $valuePickerHtml); |
|
240 | - $expansionHtml[] = $fieldControlHtml; |
|
241 | - $expansionHtml[] = '</div>'; |
|
242 | - $expansionHtml[] = '</div>'; |
|
237 | + $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
238 | + $expansionHtml[] = '<div class="btn-group">'; |
|
239 | + $expansionHtml[] = implode(LF, $valuePickerHtml); |
|
240 | + $expansionHtml[] = $fieldControlHtml; |
|
241 | + $expansionHtml[] = '</div>'; |
|
242 | + $expansionHtml[] = '</div>'; |
|
243 | 243 | } |
244 | - $expansionHtml[] = '<div class="form-wizards-items-bottom">'; |
|
245 | - $expansionHtml[] = $linkExplanation['additionalAttributes']; |
|
246 | - $expansionHtml[] = $fieldWizardHtml; |
|
247 | - $expansionHtml[] = '</div>'; |
|
248 | - $expansionHtml[] = '</div>'; |
|
244 | + $expansionHtml[] = '<div class="form-wizards-items-bottom">'; |
|
245 | + $expansionHtml[] = $linkExplanation['additionalAttributes']; |
|
246 | + $expansionHtml[] = $fieldWizardHtml; |
|
247 | + $expansionHtml[] = '</div>'; |
|
248 | + $expansionHtml[] = '</div>'; |
|
249 | 249 | $expansionHtml[] = '</div>'; |
250 | 250 | $expansionHtml = implode(LF, $expansionHtml); |
251 | 251 | |
@@ -255,11 +255,11 @@ discard block |
||
255 | 255 | $fullElement = []; |
256 | 256 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
257 | 257 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
258 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
259 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
260 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
261 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
262 | - $fullElement[] = '</label>'; |
|
258 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
259 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
260 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
261 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
262 | + $fullElement[] = '</label>'; |
|
263 | 263 | $fullElement[] = '</div>'; |
264 | 264 | $fullElement[] = $expansionHtml; |
265 | 265 | $fullElement = implode(LF, $fullElement); |
@@ -288,19 +288,19 @@ discard block |
||
288 | 288 | } |
289 | 289 | $fullElement = []; |
290 | 290 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
291 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
292 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
293 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
294 | - $fullElement[] = $overrideLabel; |
|
295 | - $fullElement[] = '</label>'; |
|
291 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
292 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
293 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
294 | + $fullElement[] = $overrideLabel; |
|
295 | + $fullElement[] = '</label>'; |
|
296 | 296 | $fullElement[] = '</div>'; |
297 | 297 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
298 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
299 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
300 | - $fullElement[] = '</div>'; |
|
298 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
299 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
300 | + $fullElement[] = '</div>'; |
|
301 | 301 | $fullElement[] = '</div>'; |
302 | 302 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
303 | - $fullElement[] = $expansionHtml; |
|
303 | + $fullElement[] = $expansionHtml; |
|
304 | 304 | $fullElement[] = '</div>'; |
305 | 305 | $fullElement = implode(LF, $fullElement); |
306 | 306 | } |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | |
331 | 331 | try { |
332 | 332 | $linkData = $linkService->resolve($linkParts['url']); |
333 | - } catch (FileDoesNotExistException|FolderDoesNotExistException|UnknownLinkHandlerException|InvalidPathException $e) { |
|
333 | + } catch (FileDoesNotExistException | FolderDoesNotExistException | UnknownLinkHandlerException | InvalidPathException $e) { |
|
334 | 334 | return $data; |
335 | 335 | } |
336 | 336 |
@@ -96,27 +96,27 @@ |
||
96 | 96 | $html = []; |
97 | 97 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
98 | 98 | $html[] = $fieldInformationHtml; |
99 | - $html[] = '<div class="form-wizards-wrap">'; |
|
100 | - $html[] = '<div class="form-wizards-element">'; |
|
101 | - $html[] = '<div class="form-check form-switch">'; |
|
102 | - $html[] = '<input type="checkbox"'; |
|
103 | - $html[] = ' class="form-check-input"'; |
|
104 | - $html[] = ' value="1"'; |
|
105 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
106 | - $html[] = ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"'; |
|
107 | - $html[] = $checkboxParameters; |
|
108 | - $html[] = $isPublic ? ' checked="checked"' : ''; |
|
109 | - $html[] = '/>'; |
|
110 | - $html[] = '<label class="form-check-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">'; |
|
111 | - $html[] = '<span class="form-check-label-text">' . $this->appendValueToLabelInDebugMode(' ', $isPublicAsString) . '</span>'; |
|
112 | - $html[] = '</label>'; |
|
113 | - $html[] = '<input type="hidden"'; |
|
114 | - $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
115 | - $html[] = ' value="' . $isPublicAsString . '"'; |
|
116 | - $html[] = ' />'; |
|
117 | - $html[] = '</div>'; |
|
118 | - $html[] = '</div>'; |
|
119 | - $html[] = '</div>'; |
|
99 | + $html[] = '<div class="form-wizards-wrap">'; |
|
100 | + $html[] = '<div class="form-wizards-element">'; |
|
101 | + $html[] = '<div class="form-check form-switch">'; |
|
102 | + $html[] = '<input type="checkbox"'; |
|
103 | + $html[] = ' class="form-check-input"'; |
|
104 | + $html[] = ' value="1"'; |
|
105 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
106 | + $html[] = ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"'; |
|
107 | + $html[] = $checkboxParameters; |
|
108 | + $html[] = $isPublic ? ' checked="checked"' : ''; |
|
109 | + $html[] = '/>'; |
|
110 | + $html[] = '<label class="form-check-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">'; |
|
111 | + $html[] = '<span class="form-check-label-text">' . $this->appendValueToLabelInDebugMode(' ', $isPublicAsString) . '</span>'; |
|
112 | + $html[] = '</label>'; |
|
113 | + $html[] = '<input type="hidden"'; |
|
114 | + $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"'; |
|
115 | + $html[] = ' value="' . $isPublicAsString . '"'; |
|
116 | + $html[] = ' />'; |
|
117 | + $html[] = '</div>'; |
|
118 | + $html[] = '</div>'; |
|
119 | + $html[] = '</div>'; |
|
120 | 120 | $html[] = '</div>'; |
121 | 121 | $resultArray['html'] = implode(LF, $html); |
122 | 122 | return $resultArray; |
@@ -113,16 +113,16 @@ discard block |
||
113 | 113 | if ($config['readOnly']) { |
114 | 114 | $html = []; |
115 | 115 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
116 | - $html[] = $fieldInformationHtml; |
|
117 | - $html[] = '<div class="form-wizards-wrap">'; |
|
118 | - $html[] = '<div class="form-wizards-element">'; |
|
119 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | - $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
121 | - $html[] = htmlspecialchars($itemValue); |
|
122 | - $html[] = '</textarea>'; |
|
123 | - $html[] = '</div>'; |
|
124 | - $html[] = '</div>'; |
|
125 | - $html[] = '</div>'; |
|
116 | + $html[] = $fieldInformationHtml; |
|
117 | + $html[] = '<div class="form-wizards-wrap">'; |
|
118 | + $html[] = '<div class="form-wizards-element">'; |
|
119 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | + $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
121 | + $html[] = htmlspecialchars($itemValue); |
|
122 | + $html[] = '</textarea>'; |
|
123 | + $html[] = '</div>'; |
|
124 | + $html[] = '</div>'; |
|
125 | + $html[] = '</div>'; |
|
126 | 126 | $html[] = '</div>'; |
127 | 127 | $resultArray['html'] = implode(LF, $html); |
128 | 128 | return $resultArray; |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | . '.value=this.options[this.selectedIndex].value'; |
199 | 199 | } |
200 | 200 | $valuePickerHtml[] = '<select'; |
201 | - $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
202 | - $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
201 | + $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
202 | + $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
203 | 203 | $valuePickerHtml[] = '>'; |
204 | 204 | $valuePickerHtml[] = '<option></option>'; |
205 | 205 | foreach ($config['valuePicker']['items'] as $item) { |
@@ -218,24 +218,24 @@ discard block |
||
218 | 218 | |
219 | 219 | $mainFieldHtml = []; |
220 | 220 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
221 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
222 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
223 | - $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
224 | - $mainFieldHtml[] = '</div>'; |
|
221 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
222 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
223 | + $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
224 | + $mainFieldHtml[] = '</div>'; |
|
225 | 225 | if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
226 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
227 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
228 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
229 | - $mainFieldHtml[] = $fieldControlHtml; |
|
230 | - $mainFieldHtml[] = '</div>'; |
|
231 | - $mainFieldHtml[] = '</div>'; |
|
226 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
227 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
228 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
229 | + $mainFieldHtml[] = $fieldControlHtml; |
|
230 | + $mainFieldHtml[] = '</div>'; |
|
231 | + $mainFieldHtml[] = '</div>'; |
|
232 | 232 | } |
233 | 233 | if (!empty($fieldWizardHtml)) { |
234 | 234 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
235 | 235 | $mainFieldHtml[] = $fieldWizardHtml; |
236 | 236 | $mainFieldHtml[] = '</div>'; |
237 | 237 | } |
238 | - $mainFieldHtml[] = '</div>'; |
|
238 | + $mainFieldHtml[] = '</div>'; |
|
239 | 239 | $mainFieldHtml[] = '</div>'; |
240 | 240 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
241 | 241 | |
@@ -245,11 +245,11 @@ discard block |
||
245 | 245 | $fullElement = []; |
246 | 246 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
247 | 247 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
248 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
249 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
250 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
251 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
252 | - $fullElement[] = '</label>'; |
|
248 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
249 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
250 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
251 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
252 | + $fullElement[] = '</label>'; |
|
253 | 253 | $fullElement[] = '</div>'; |
254 | 254 | $fullElement[] = $mainFieldHtml; |
255 | 255 | $fullElement = implode(LF, $fullElement); |
@@ -278,28 +278,28 @@ discard block |
||
278 | 278 | } |
279 | 279 | $fullElement = []; |
280 | 280 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
281 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
282 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
283 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
284 | - $fullElement[] = $overrideLabel; |
|
285 | - $fullElement[] = '</label>'; |
|
281 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
282 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
283 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
284 | + $fullElement[] = $overrideLabel; |
|
285 | + $fullElement[] = '</label>'; |
|
286 | 286 | $fullElement[] = '</div>'; |
287 | 287 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
288 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
289 | - $fullElement[] = '<textarea'; |
|
290 | - $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
291 | - $fullElement[] = ' disabled="disabled"'; |
|
292 | - $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
293 | - $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
294 | - $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
295 | - $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
296 | - $fullElement[] = '>'; |
|
297 | - $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
298 | - $fullElement[] = '</textarea>'; |
|
299 | - $fullElement[] = '</div>'; |
|
288 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
289 | + $fullElement[] = '<textarea'; |
|
290 | + $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
291 | + $fullElement[] = ' disabled="disabled"'; |
|
292 | + $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
293 | + $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
294 | + $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
295 | + $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
296 | + $fullElement[] = '>'; |
|
297 | + $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
298 | + $fullElement[] = '</textarea>'; |
|
299 | + $fullElement[] = '</div>'; |
|
300 | 300 | $fullElement[] = '</div>'; |
301 | 301 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
302 | - $fullElement[] = $mainFieldHtml; |
|
302 | + $fullElement[] = $mainFieldHtml; |
|
303 | 303 | $fullElement[] = '</div>'; |
304 | 304 | $fullElement = implode(LF, $fullElement); |
305 | 305 | } |
@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | if ($config['readOnly']) { |
90 | 90 | $html = []; |
91 | 91 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
92 | - $html[] = $fieldInformationHtml; |
|
93 | - $html[] = '<div class="form-wizards-wrap">'; |
|
94 | - $html[] = '<div class="form-wizards-element">'; |
|
95 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | - $html[] = '</div>'; |
|
98 | - $html[] = '</div>'; |
|
99 | - $html[] = '</div>'; |
|
92 | + $html[] = $fieldInformationHtml; |
|
93 | + $html[] = '<div class="form-wizards-wrap">'; |
|
94 | + $html[] = '<div class="form-wizards-element">'; |
|
95 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | + $html[] = '</div>'; |
|
98 | + $html[] = '</div>'; |
|
99 | + $html[] = '</div>'; |
|
100 | 100 | $html[] = '</div>'; |
101 | 101 | $resultArray['html'] = implode(LF, $html); |
102 | 102 | return $resultArray; |
@@ -178,23 +178,23 @@ discard block |
||
178 | 178 | |
179 | 179 | $mainFieldHtml = []; |
180 | 180 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
181 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | - $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | - $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | - $mainFieldHtml[] = '</div>'; |
|
186 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | - $mainFieldHtml[] = $fieldControlHtml; |
|
189 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | - $mainFieldHtml[] = '</div>'; |
|
191 | - $mainFieldHtml[] = '</div>'; |
|
181 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | + $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | + $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | + $mainFieldHtml[] = '</div>'; |
|
186 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | + $mainFieldHtml[] = $fieldControlHtml; |
|
189 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | + $mainFieldHtml[] = '</div>'; |
|
191 | + $mainFieldHtml[] = '</div>'; |
|
192 | 192 | if (!empty($fieldWizardHtml)) { |
193 | 193 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
194 | 194 | $mainFieldHtml[] = $fieldWizardHtml; |
195 | 195 | $mainFieldHtml[] = '</div>'; |
196 | 196 | } |
197 | - $mainFieldHtml[] = '</div>'; |
|
197 | + $mainFieldHtml[] = '</div>'; |
|
198 | 198 | $mainFieldHtml[] = '</div>'; |
199 | 199 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
200 | 200 | |
@@ -204,11 +204,11 @@ discard block |
||
204 | 204 | $fullElement = []; |
205 | 205 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
206 | 206 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
207 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
208 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
209 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
210 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | - $fullElement[] = '</label>'; |
|
207 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
208 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
209 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
210 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | + $fullElement[] = '</label>'; |
|
212 | 212 | $fullElement[] = '</div>'; |
213 | 213 | $fullElement[] = $mainFieldHtml; |
214 | 214 | $fullElement = implode(LF, $fullElement); |
@@ -237,19 +237,19 @@ discard block |
||
237 | 237 | } |
238 | 238 | $fullElement = []; |
239 | 239 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
240 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
241 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
242 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
243 | - $fullElement[] = $overrideLabel; |
|
244 | - $fullElement[] = '</label>'; |
|
240 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
241 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
242 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
243 | + $fullElement[] = $overrideLabel; |
|
244 | + $fullElement[] = '</label>'; |
|
245 | 245 | $fullElement[] = '</div>'; |
246 | 246 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
247 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | - $fullElement[] = '</div>'; |
|
247 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | + $fullElement[] = '</div>'; |
|
250 | 250 | $fullElement[] = '</div>'; |
251 | 251 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
252 | - $fullElement[] = $mainFieldHtml; |
|
252 | + $fullElement[] = $mainFieldHtml; |
|
253 | 253 | $fullElement[] = '</div>'; |
254 | 254 | $fullElement = implode(LF, $fullElement); |
255 | 255 | } |
@@ -122,7 +122,7 @@ |
||
122 | 122 | 'description' => trim(strip_tags((string)$item->description)), |
123 | 123 | ]; |
124 | 124 | } |
125 | - usort($items, function ($item1, $item2) { |
|
125 | + usort($items, function($item1, $item2) { |
|
126 | 126 | return new \DateTime($item2['pubDate']) <=> new \DateTime($item1['pubDate']); |
127 | 127 | }); |
128 | 128 | $items = array_slice($items, 0, $this->options['limit']); |
@@ -235,7 +235,7 @@ |
||
235 | 235 | protected function getCollectionChildrenCount(array $children): int |
236 | 236 | { |
237 | 237 | return count( |
238 | - array_filter($children, function (ReferenceEntity $child) { |
|
238 | + array_filter($children, function(ReferenceEntity $child) { |
|
239 | 239 | return isset($this->dataArray[$child->getElement()->__toString()]); |
240 | 240 | }) |
241 | 241 | ); |
@@ -82,23 +82,23 @@ discard block |
||
82 | 82 | } |
83 | 83 | $containerTemplateHtml = []; |
84 | 84 | $containerTemplateHtml[] = '<a'; |
85 | - $containerTemplateHtml[] = 'href="#"'; |
|
86 | - $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
87 | - $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
85 | + $containerTemplateHtml[] = 'href="#"'; |
|
86 | + $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
87 | + $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
88 | 88 | // no int cast for databaseRow uid, this can be "NEW1234..." |
89 | - $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
90 | - $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
91 | - $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
92 | - $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
93 | - $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
94 | - $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
95 | - $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
96 | - $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
97 | - $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
98 | - $containerTemplateHtml[] = 'data-target="#' . htmlspecialchars($sectionContainerId) . '"'; |
|
89 | + $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
90 | + $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
91 | + $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
92 | + $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
93 | + $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
94 | + $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
95 | + $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
96 | + $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
97 | + $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
98 | + $containerTemplateHtml[] = 'data-target="#' . htmlspecialchars($sectionContainerId) . '"'; |
|
99 | 99 | $containerTemplateHtml[] = '>'; |
100 | - $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
101 | - $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
100 | + $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
101 | + $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
102 | 102 | $containerTemplateHtml[] = '</a>'; |
103 | 103 | $containerTemplatesHtml[] = implode(LF, $containerTemplateHtml); |
104 | 104 | } |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | $createElementsHtml = []; |
107 | 107 | if ($userHasAccessToDefaultLanguage) { |
108 | 108 | $createElementsHtml[] = '<div class="t3-form-field-add-flexsection">'; |
109 | - $createElementsHtml[] = '<div class="btn-group">'; |
|
110 | - $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
111 | - $createElementsHtml[] = '</div>'; |
|
109 | + $createElementsHtml[] = '<div class="btn-group">'; |
|
110 | + $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
111 | + $createElementsHtml[] = '</div>'; |
|
112 | 112 | $createElementsHtml[] = '</div>'; |
113 | 113 | } |
114 | 114 | |
@@ -121,28 +121,28 @@ discard block |
||
121 | 121 | $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
122 | 122 | $html = []; |
123 | 123 | $html[] = '<div class="panel panel-tab">'; |
124 | - $html[] = '<div class="panel-body">'; |
|
125 | - $html[] = '<div class="t3-form-field-container t3-form-flex" id="' . htmlspecialchars($containerId) . '" data-section="#' . htmlspecialchars($sectionContainerId) . '">'; |
|
126 | - $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
127 | - $html[] = '<h4>'; |
|
128 | - $html[] = htmlspecialchars($sectionTitle); |
|
129 | - $html[] = '</h4>'; |
|
130 | - $html[] = '</div>'; |
|
131 | - $html[] = '<div class="form-group">'; |
|
132 | - $html[] = '<button class="btn btn-default t3-form-flexsection-toggle" type="button" title="' . $toggleAll . '" data-expand-all="false">'; |
|
133 | - $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
134 | - $html[] = '</button>'; |
|
135 | - $html[] = '</div>'; |
|
136 | - $html[] = '<div'; |
|
137 | - $html[] = 'id="' . htmlspecialchars($sectionContainerId) . '"'; |
|
138 | - $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
139 | - $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
140 | - $html[] = '>'; |
|
141 | - $html[] = $resultArray['html']; |
|
142 | - $html[] = '</div>'; |
|
143 | - $html[] = implode(LF, $createElementsHtml); |
|
144 | - $html[] = '</div>'; |
|
145 | - $html[] = '</div>'; |
|
124 | + $html[] = '<div class="panel-body">'; |
|
125 | + $html[] = '<div class="t3-form-field-container t3-form-flex" id="' . htmlspecialchars($containerId) . '" data-section="#' . htmlspecialchars($sectionContainerId) . '">'; |
|
126 | + $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
127 | + $html[] = '<h4>'; |
|
128 | + $html[] = htmlspecialchars($sectionTitle); |
|
129 | + $html[] = '</h4>'; |
|
130 | + $html[] = '</div>'; |
|
131 | + $html[] = '<div class="form-group">'; |
|
132 | + $html[] = '<button class="btn btn-default t3-form-flexsection-toggle" type="button" title="' . $toggleAll . '" data-expand-all="false">'; |
|
133 | + $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
134 | + $html[] = '</button>'; |
|
135 | + $html[] = '</div>'; |
|
136 | + $html[] = '<div'; |
|
137 | + $html[] = 'id="' . htmlspecialchars($sectionContainerId) . '"'; |
|
138 | + $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
139 | + $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
140 | + $html[] = '>'; |
|
141 | + $html[] = $resultArray['html']; |
|
142 | + $html[] = '</div>'; |
|
143 | + $html[] = implode(LF, $createElementsHtml); |
|
144 | + $html[] = '</div>'; |
|
145 | + $html[] = '</div>'; |
|
146 | 146 | $html[] = '</div>'; |
147 | 147 | |
148 | 148 | $resultArray['html'] = implode(LF, $html); |
@@ -141,12 +141,12 @@ discard block |
||
141 | 141 | $storages = $user->getFileStorages(); |
142 | 142 | foreach ($storages as $resourceStorage) { |
143 | 143 | $processingFolders = $resourceStorage->getProcessingFolders(); |
144 | - $processingFolderIdentifiers = array_map(function ($folder) { |
|
144 | + $processingFolderIdentifiers = array_map(function($folder) { |
|
145 | 145 | return $folder->getIdentifier(); |
146 | 146 | }, $processingFolders); |
147 | - $resourceStorage->addFileAndFolderNameFilter(function ($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation, DriverInterface $driver) use ($resourceStorage, $search, $processingFolderIdentifiers) { |
|
147 | + $resourceStorage->addFileAndFolderNameFilter(function($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation, DriverInterface $driver) use ($resourceStorage, $search, $processingFolderIdentifiers) { |
|
148 | 148 | // Skip items in processing folders |
149 | - $isInProcessingFolder = array_filter($processingFolderIdentifiers, function ($processingFolderIdentifier) use ($parentIdentifier) { |
|
149 | + $isInProcessingFolder = array_filter($processingFolderIdentifiers, function($processingFolderIdentifier) use ($parentIdentifier) { |
|
150 | 150 | return stripos($parentIdentifier, $processingFolderIdentifier) !== false; |
151 | 151 | }); |
152 | 152 | if (!empty($isInProcessingFolder)) { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | { |
237 | 237 | $fileMounts = $resourceStorage->getFileMounts(); |
238 | 238 | if (!empty($fileMounts)) { |
239 | - return array_map(function ($fileMountInfo) { |
|
239 | + return array_map(function($fileMountInfo) { |
|
240 | 240 | return [ |
241 | 241 | 'folder' => $fileMountInfo['folder'], |
242 | 242 | 'name' => $fileMountInfo['title'], |