@@ -972,7 +972,7 @@ |
||
| 972 | 972 | protected function escape(array $strings): array |
| 973 | 973 | { |
| 974 | 974 | return array_map( |
| 975 | - function (string $value): string { |
|
| 975 | + function(string $value): string { |
|
| 976 | 976 | return htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); |
| 977 | 977 | }, |
| 978 | 978 | $strings |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | */ |
| 136 | 136 | protected function getAlternativeProviders(MfaProviderManifestInterface $mfaProvider): array |
| 137 | 137 | { |
| 138 | - return array_filter($this->allowedProviders, function ($provider) use ($mfaProvider) { |
|
| 138 | + return array_filter($this->allowedProviders, function($provider) use ($mfaProvider) { |
|
| 139 | 139 | return $provider !== $mfaProvider |
| 140 | 140 | && $provider->isActive(MfaProviderPropertyManager::create($provider, $this->getBackendUser())); |
| 141 | 141 | }); |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // Set up allowed providers based on user TSconfig and user groupData |
| 107 | - $this->allowedProviders = array_filter($this->mfaProviderRegistry->getProviders(), function ($identifier) use ($backendUser) { |
|
| 107 | + $this->allowedProviders = array_filter($this->mfaProviderRegistry->getProviders(), function($identifier) use ($backendUser) { |
|
| 108 | 108 | return $backendUser->check('mfa_providers', $identifier) |
| 109 | 109 | && !GeneralUtility::inList(($this->mfaTsConfig['disableProviders'] ?? ''), $identifier); |
| 110 | 110 | }, ARRAY_FILTER_USE_KEY); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | if (!empty($variableNames)) { |
| 172 | 172 | $aspects = array_filter( |
| 173 | 173 | $this->aspects, |
| 174 | - function (string $variableName) use ($variableNames) { |
|
| 174 | + function(string $variableName) use ($variableNames) { |
|
| 175 | 175 | return in_array($variableName, $variableNames, true); |
| 176 | 176 | }, |
| 177 | 177 | ARRAY_FILTER_USE_KEY |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | } |
| 180 | 180 | return array_filter( |
| 181 | 181 | $aspects, |
| 182 | - function (AspectInterface $aspect) use ($classNames) { |
|
| 182 | + function(AspectInterface $aspect) use ($classNames) { |
|
| 183 | 183 | $uses = class_uses($aspect) ?: []; |
| 184 | 184 | foreach ($classNames as $className) { |
| 185 | 185 | if (!is_a($aspect, $className) |
@@ -973,7 +973,7 @@ |
||
| 973 | 973 | 'video/x-sgi-movie' => ['movie'], |
| 974 | 974 | 'video/x-smv' => ['smv'], |
| 975 | 975 | 'x-conference/x-cooltalk' => ['ice'], |
| 976 | - ]; |
|
| 976 | + ]; |
|
| 977 | 977 | |
| 978 | 978 | /** |
| 979 | 979 | * @return array<string, List<string>> |
@@ -140,43 +140,43 @@ |
||
| 140 | 140 | $html = []; |
| 141 | 141 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 142 | 142 | $html[] = $fieldInformationHtml; |
| 143 | - $html[] = '<div class="form-control-wrap">'; |
|
| 144 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 145 | - $html[] = '<div class="form-wizards-element">'; |
|
| 146 | - $html[] = '<div class="typo3-tceforms-tree">'; |
|
| 147 | - $html[] = '<input class="treeRecord" type="hidden" id="' . htmlspecialchars($fieldId) . '"'; |
|
| 148 | - $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 149 | - $html[] = ' data-relatedfieldname="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 150 | - $html[] = ' data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
| 151 | - $html[] = ' data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
| 152 | - $html[] = ' data-uid="' . (int)$this->data['vanillaUid'] . '"'; |
|
| 153 | - $html[] = ' data-recordtypevalue="' . htmlspecialchars($this->data['recordTypeValue']) . '"'; |
|
| 154 | - $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
| 155 | - $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 156 | - $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 157 | - $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 158 | - $html[] = ' data-flexformcontaineridentifier="' . htmlspecialchars($flexFormContainerIdentifier) . '"'; |
|
| 159 | - $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
| 160 | - $html[] = ' data-flexformsectioncontainerisnew="' . htmlspecialchars((string)$flexFormSectionContainerIsNew) . '"'; |
|
| 161 | - $html[] = ' data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
| 162 | - $html[] = ' data-read-only="' . ($readOnly ? '1' : '0') . '"'; |
|
| 163 | - $html[] = ' data-tree-exclusive-keys="' . htmlspecialchars($exclusiveKeys) . '"'; |
|
| 164 | - $html[] = ' data-tree-expand-up-to-level="' . ($expanded ? '999' : '1') . '"'; |
|
| 165 | - $html[] = ' data-tree-show-toolbar="' . $showHeader . '"'; |
|
| 166 | - $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 167 | - $html[] = ' id="treeinput' . $formElementId . '"'; |
|
| 168 | - $html[] = ' value="' . htmlspecialchars(implode(',', $parameterArray['itemFormElValue'])) . '"'; |
|
| 169 | - $html[] = '/>'; |
|
| 170 | - $html[] = '</div>'; |
|
| 171 | - $html[] = '<div id="' . $treeWrapperId . '" class="svg-tree-element" style="height: ' . $heightInPx . 'px;"></div>'; |
|
| 172 | - $html[] = '</div>'; |
|
| 143 | + $html[] = '<div class="form-control-wrap">'; |
|
| 144 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 145 | + $html[] = '<div class="form-wizards-element">'; |
|
| 146 | + $html[] = '<div class="typo3-tceforms-tree">'; |
|
| 147 | + $html[] = '<input class="treeRecord" type="hidden" id="' . htmlspecialchars($fieldId) . '"'; |
|
| 148 | + $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 149 | + $html[] = ' data-relatedfieldname="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 150 | + $html[] = ' data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
| 151 | + $html[] = ' data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
| 152 | + $html[] = ' data-uid="' . (int)$this->data['vanillaUid'] . '"'; |
|
| 153 | + $html[] = ' data-recordtypevalue="' . htmlspecialchars($this->data['recordTypeValue']) . '"'; |
|
| 154 | + $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
| 155 | + $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 156 | + $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 157 | + $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 158 | + $html[] = ' data-flexformcontaineridentifier="' . htmlspecialchars($flexFormContainerIdentifier) . '"'; |
|
| 159 | + $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
| 160 | + $html[] = ' data-flexformsectioncontainerisnew="' . htmlspecialchars((string)$flexFormSectionContainerIsNew) . '"'; |
|
| 161 | + $html[] = ' data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
| 162 | + $html[] = ' data-read-only="' . ($readOnly ? '1' : '0') . '"'; |
|
| 163 | + $html[] = ' data-tree-exclusive-keys="' . htmlspecialchars($exclusiveKeys) . '"'; |
|
| 164 | + $html[] = ' data-tree-expand-up-to-level="' . ($expanded ? '999' : '1') . '"'; |
|
| 165 | + $html[] = ' data-tree-show-toolbar="' . $showHeader . '"'; |
|
| 166 | + $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
| 167 | + $html[] = ' id="treeinput' . $formElementId . '"'; |
|
| 168 | + $html[] = ' value="' . htmlspecialchars(implode(',', $parameterArray['itemFormElValue'])) . '"'; |
|
| 169 | + $html[] = '/>'; |
|
| 170 | + $html[] = '</div>'; |
|
| 171 | + $html[] = '<div id="' . $treeWrapperId . '" class="svg-tree-element" style="height: ' . $heightInPx . 'px;"></div>'; |
|
| 172 | + $html[] = '</div>'; |
|
| 173 | 173 | if (!$readOnly && !empty($fieldWizardHtml)) { |
| 174 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 175 | - $html[] = $fieldWizardHtml; |
|
| 176 | - $html[] = '</div>'; |
|
| 174 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 175 | + $html[] = $fieldWizardHtml; |
|
| 176 | + $html[] = '</div>'; |
|
| 177 | 177 | } |
| 178 | - $html[] = '</div>'; |
|
| 179 | - $html[] = '</div>'; |
|
| 178 | + $html[] = '</div>'; |
|
| 179 | + $html[] = '</div>'; |
|
| 180 | 180 | $html[] = '</div>'; |
| 181 | 181 | |
| 182 | 182 | $resultArray['html'] = implode(LF, $html); |
@@ -164,8 +164,8 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item" data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '">'; |
| 166 | 166 | $html[] = $fieldInformationHtml; |
| 167 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 168 | - $html[] = '<div class="form-wizards-element">'; |
|
| 167 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 168 | + $html[] = '<div class="form-wizards-element">'; |
|
| 169 | 169 | |
| 170 | 170 | // Add an empty hidden field which will send a blank value if all items are unselected. |
| 171 | 171 | $html[] = '<input type="hidden" class="select-checkbox" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
@@ -189,22 +189,22 @@ discard block |
||
| 189 | 189 | // Render rows |
| 190 | 190 | foreach ($group['items'] as $item) { |
| 191 | 191 | $tableRows[] = '<tr class="' . $item['class'] . '">'; |
| 192 | - $tableRows[] = '<td class="col-checkbox">'; |
|
| 193 | - $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
| 192 | + $tableRows[] = '<td class="col-checkbox">'; |
|
| 193 | + $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
| 194 | 194 | . 'id="' . $item['id'] . '" ' |
| 195 | 195 | . 'name="' . htmlspecialchars($item['name']) . '" ' |
| 196 | 196 | . 'value="' . htmlspecialchars($item['value']) . '" ' |
| 197 | 197 | . 'onclick="' . htmlspecialchars($sOnChange) . '" ' |
| 198 | 198 | . ($item['checked'] ? 'checked=checked ' : '') |
| 199 | 199 | . ($item['disabled'] ? 'disabled=disabled ' : '') . '>'; |
| 200 | - $tableRows[] = '</td>'; |
|
| 201 | - $tableRows[] = '<td class="col-title">'; |
|
| 202 | - $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">'; |
|
| 203 | - $tableRows[] = '<span class="inline-icon">' . $item['icon'] . '</span>'; |
|
| 204 | - $tableRows[] = htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false); |
|
| 205 | - $tableRows[] = '</label>'; |
|
| 206 | - $tableRows[] = '</td>'; |
|
| 207 | - $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
| 200 | + $tableRows[] = '</td>'; |
|
| 201 | + $tableRows[] = '<td class="col-title">'; |
|
| 202 | + $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">'; |
|
| 203 | + $tableRows[] = '<span class="inline-icon">' . $item['icon'] . '</span>'; |
|
| 204 | + $tableRows[] = htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false); |
|
| 205 | + $tableRows[] = '</label>'; |
|
| 206 | + $tableRows[] = '</td>'; |
|
| 207 | + $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
| 208 | 208 | $tableRows[] = '</tr>'; |
| 209 | 209 | } |
| 210 | 210 | |
@@ -226,20 +226,20 @@ discard block |
||
| 226 | 226 | } |
| 227 | 227 | $checkboxId = StringUtility::getUniqueId($groupId); |
| 228 | 228 | $title = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
| 229 | - $html[] = '<div class="table-responsive">'; |
|
| 230 | - $html[] = '<table class="table table-transparent table-hover">'; |
|
| 231 | - $html[] = '<thead>'; |
|
| 232 | - $html[] = '<tr>'; |
|
| 233 | - $html[] = '<th class="col-checkbox">'; |
|
| 234 | - $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" title="' . $title . '" data-bs-toggle="tooltip" />'; |
|
| 235 | - $html[] = '</th>'; |
|
| 236 | - $html[] = '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
| 237 | - $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
| 238 | - $html[] = '</tr>'; |
|
| 239 | - $html[] = '</thead>'; |
|
| 240 | - $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
| 241 | - $html[] = '</table>'; |
|
| 242 | - $html[] = '</div>'; |
|
| 229 | + $html[] = '<div class="table-responsive">'; |
|
| 230 | + $html[] = '<table class="table table-transparent table-hover">'; |
|
| 231 | + $html[] = '<thead>'; |
|
| 232 | + $html[] = '<tr>'; |
|
| 233 | + $html[] = '<th class="col-checkbox">'; |
|
| 234 | + $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" title="' . $title . '" data-bs-toggle="tooltip" />'; |
|
| 235 | + $html[] = '</th>'; |
|
| 236 | + $html[] = '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
| 237 | + $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
| 238 | + $html[] = '</tr>'; |
|
| 239 | + $html[] = '</thead>'; |
|
| 240 | + $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
| 241 | + $html[] = '</table>'; |
|
| 242 | + $html[] = '</div>'; |
|
| 243 | 243 | if (is_array($group['header'])) { |
| 244 | 244 | $html[] = '</div>'; |
| 245 | 245 | } |
@@ -253,13 +253,13 @@ discard block |
||
| 253 | 253 | $html[] = '</div>'; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - $html[] = '</div>'; |
|
| 256 | + $html[] = '</div>'; |
|
| 257 | 257 | if (!$disabled && !empty($fieldWizardHtml)) { |
| 258 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 259 | - $html[] = $fieldWizardHtml; |
|
| 260 | - $html[] = '</div>'; |
|
| 258 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 259 | + $html[] = $fieldWizardHtml; |
|
| 260 | + $html[] = '</div>'; |
|
| 261 | 261 | } |
| 262 | - $html[] = '</div>'; |
|
| 262 | + $html[] = '</div>'; |
|
| 263 | 263 | $html[] = '</div>'; |
| 264 | 264 | } |
| 265 | 265 | |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | $childHtml[] = '<ul class="list-group t3js-mfa-active-providers-list">'; |
| 115 | 115 | foreach ($activeProviders as $identifier => $activeProvider) { |
| 116 | 116 | $childHtml[] = '<li class="list-group-item" id="provider-' . htmlspecialchars((string)$identifier) . '" style="line-height: 2.1em;">'; |
| 117 | - $childHtml[] = $this->iconFactory->getIcon($activeProvider->getIconIdentifier(), Icon::SIZE_SMALL); |
|
| 118 | - $childHtml[] = htmlspecialchars($lang->sL($activeProvider->getTitle())); |
|
| 117 | + $childHtml[] = $this->iconFactory->getIcon($activeProvider->getIconIdentifier(), Icon::SIZE_SMALL); |
|
| 118 | + $childHtml[] = htmlspecialchars($lang->sL($activeProvider->getTitle())); |
|
| 119 | 119 | if (in_array($identifier, $lockedProviders, true)) { |
| 120 | 120 | $childHtml[] = '<span class="label label-danger">' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.locked')) . '</span>'; |
| 121 | 121 | } else { |
@@ -123,15 +123,15 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | if ($isDeactivationAllowed) { |
| 125 | 125 | $childHtml[] = '<button type="button"'; |
| 126 | - $childHtml[] = ' class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"'; |
|
| 127 | - $childHtml[] = ' data-confirmation-title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 128 | - $childHtml[] = ' data-confirmation-content="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider.confirmation.text'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 129 | - $childHtml[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"'; |
|
| 130 | - $childHtml[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"'; |
|
| 131 | - $childHtml[] = ' data-provider="' . htmlspecialchars((string)$identifier) . '"'; |
|
| 132 | - $childHtml[] = ' title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 133 | - $childHtml[] = '>'; |
|
| 134 | - $childHtml[] = $this->iconFactory->getIcon('actions-delete', Icon::SIZE_SMALL)->render('inline'); |
|
| 126 | + $childHtml[] = ' class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"'; |
|
| 127 | + $childHtml[] = ' data-confirmation-title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 128 | + $childHtml[] = ' data-confirmation-content="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider.confirmation.text'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 129 | + $childHtml[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"'; |
|
| 130 | + $childHtml[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"'; |
|
| 131 | + $childHtml[] = ' data-provider="' . htmlspecialchars((string)$identifier) . '"'; |
|
| 132 | + $childHtml[] = ' title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"'; |
|
| 133 | + $childHtml[] = '>'; |
|
| 134 | + $childHtml[] = $this->iconFactory->getIcon('actions-delete', Icon::SIZE_SMALL)->render('inline'); |
|
| 135 | 135 | $childHtml[] = '</button>'; |
| 136 | 136 | } |
| 137 | 137 | $childHtml[] = '</li>'; |
@@ -143,29 +143,29 @@ discard block |
||
| 143 | 143 | $fieldId = 't3js-form-field-mfa-id' . StringUtility::getUniqueId('-'); |
| 144 | 144 | |
| 145 | 145 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item" id="' . htmlspecialchars($fieldId) . '">'; |
| 146 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . (int)$this->formMaxWidth($this->defaultInputWidth) . 'px">'; |
|
| 147 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 148 | - $html[] = '<div class="form-wizards-element">'; |
|
| 149 | - $html[] = implode(PHP_EOL, $childHtml); |
|
| 146 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . (int)$this->formMaxWidth($this->defaultInputWidth) . 'px">'; |
|
| 147 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 148 | + $html[] = '<div class="form-wizards-element">'; |
|
| 149 | + $html[] = implode(PHP_EOL, $childHtml); |
|
| 150 | 150 | if ($isDeactivationAllowed) { |
| 151 | 151 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 152 | - $html[] = '<div class="help-block">'; |
|
| 153 | - $html[] = '<button type="button"'; |
|
| 154 | - $html[] = ' class="t3js-deactivate-mfa-button btn btn-danger ' . ($activeProviders === [] ? 'disabled" disabled="disabled' : '') . '"'; |
|
| 155 | - $html[] = ' data-confirmation-title="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')) . '"'; |
|
| 156 | - $html[] = ' data-confirmation-content="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa.confirmation.text')) . '"'; |
|
| 157 | - $html[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"'; |
|
| 158 | - $html[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"'; |
|
| 159 | - $html[] = '>'; |
|
| 160 | - $html[] = $this->iconFactory->getIcon('actions-toggle-off', Icon::SIZE_SMALL)->render('inline'); |
|
| 161 | - $html[] = htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')); |
|
| 162 | - $html[] = '</button>'; |
|
| 163 | - $html[] = '</div>'; |
|
| 152 | + $html[] = '<div class="help-block">'; |
|
| 153 | + $html[] = '<button type="button"'; |
|
| 154 | + $html[] = ' class="t3js-deactivate-mfa-button btn btn-danger ' . ($activeProviders === [] ? 'disabled" disabled="disabled' : '') . '"'; |
|
| 155 | + $html[] = ' data-confirmation-title="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')) . '"'; |
|
| 156 | + $html[] = ' data-confirmation-content="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa.confirmation.text')) . '"'; |
|
| 157 | + $html[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"'; |
|
| 158 | + $html[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"'; |
|
| 159 | + $html[] = '>'; |
|
| 160 | + $html[] = $this->iconFactory->getIcon('actions-toggle-off', Icon::SIZE_SMALL)->render('inline'); |
|
| 161 | + $html[] = htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')); |
|
| 162 | + $html[] = '</button>'; |
|
| 163 | + $html[] = '</div>'; |
|
| 164 | 164 | $html[] = '</div>'; |
| 165 | 165 | } |
| 166 | - $html[] = '</div>'; |
|
| 167 | - $html[] = '</div>'; |
|
| 168 | - $html[] = '</div>'; |
|
| 166 | + $html[] = '</div>'; |
|
| 167 | + $html[] = '</div>'; |
|
| 168 | + $html[] = '</div>'; |
|
| 169 | 169 | $html[] = '</div>'; |
| 170 | 170 | |
| 171 | 171 | // JavaScript is not needed in case deactivation is not allowed or no active providers exist |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | } |
| 114 | 114 | // Language "All" should not appear as a source of translations (see bug 92757) and keys should be sequential |
| 115 | 115 | $availableLanguages = array_values( |
| 116 | - array_filter($availableLanguages, function (array $languageRecord): bool { |
|
| 116 | + array_filter($availableLanguages, function(array $languageRecord): bool { |
|
| 117 | 117 | return (int)$languageRecord['uid'] !== -1; |
| 118 | 118 | }) |
| 119 | 119 | ); |