@@ -78,22 +78,22 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | $containerTemplateHtml = []; |
| 80 | 80 | $containerTemplateHtml[] = '<a'; |
| 81 | - $containerTemplateHtml[] = 'href="#"'; |
|
| 82 | - $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
| 83 | - $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
| 81 | + $containerTemplateHtml[] = 'href="#"'; |
|
| 82 | + $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
| 83 | + $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
| 84 | 84 | // no int cast for databaseRow uid, this can be "NEW1234..." |
| 85 | - $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
| 86 | - $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
| 87 | - $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
| 88 | - $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
| 89 | - $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
| 90 | - $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
| 91 | - $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 92 | - $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 93 | - $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 85 | + $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
| 86 | + $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
| 87 | + $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
| 88 | + $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
| 89 | + $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
| 90 | + $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
| 91 | + $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 92 | + $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 93 | + $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 94 | 94 | $containerTemplateHtml[] = '>'; |
| 95 | - $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
| 96 | - $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
| 95 | + $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
| 96 | + $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
| 97 | 97 | $containerTemplateHtml[] = '</a>'; |
| 98 | 98 | $containerTemplatesHtml[] = implode(LF, $containerTemplateHtml); |
| 99 | 99 | } |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | $createElementsHtml = []; |
| 102 | 102 | if ($userHasAccessToDefaultLanguage) { |
| 103 | 103 | $createElementsHtml[] = '<div class="t3-form-field-add-flexsection">'; |
| 104 | - $createElementsHtml[] = '<div class="btn-group">'; |
|
| 105 | - $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
| 106 | - $createElementsHtml[] = '</div>'; |
|
| 104 | + $createElementsHtml[] = '<div class="btn-group">'; |
|
| 105 | + $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
| 106 | + $createElementsHtml[] = '</div>'; |
|
| 107 | 107 | $createElementsHtml[] = '</div>'; |
| 108 | 108 | } |
| 109 | 109 | |
@@ -116,28 +116,28 @@ discard block |
||
| 116 | 116 | $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
| 117 | 117 | $html = []; |
| 118 | 118 | $html[] = '<div class="panel panel-tab">'; |
| 119 | - $html[] = '<div class="panel-body">'; |
|
| 120 | - $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
| 121 | - $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
| 122 | - $html[] = '<h4>'; |
|
| 123 | - $html[] = htmlspecialchars($sectionTitle); |
|
| 124 | - $html[] = '</h4>'; |
|
| 125 | - $html[] = '</div>'; |
|
| 126 | - $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
| 127 | - $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
| 128 | - $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
| 129 | - $html[] = '</a>'; |
|
| 130 | - $html[] = '</div>'; |
|
| 131 | - $html[] = '<div'; |
|
| 132 | - $html[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 133 | - $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
| 134 | - $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
| 135 | - $html[] = '>'; |
|
| 136 | - $html[] = $resultArray['html']; |
|
| 137 | - $html[] = '</div>'; |
|
| 138 | - $html[] = implode(LF, $createElementsHtml); |
|
| 139 | - $html[] = '</div>'; |
|
| 140 | - $html[] = '</div>'; |
|
| 119 | + $html[] = '<div class="panel-body">'; |
|
| 120 | + $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
| 121 | + $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
| 122 | + $html[] = '<h4>'; |
|
| 123 | + $html[] = htmlspecialchars($sectionTitle); |
|
| 124 | + $html[] = '</h4>'; |
|
| 125 | + $html[] = '</div>'; |
|
| 126 | + $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
| 127 | + $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
| 128 | + $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
| 129 | + $html[] = '</a>'; |
|
| 130 | + $html[] = '</div>'; |
|
| 131 | + $html[] = '<div'; |
|
| 132 | + $html[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 133 | + $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
| 134 | + $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
| 135 | + $html[] = '>'; |
|
| 136 | + $html[] = $resultArray['html']; |
|
| 137 | + $html[] = '</div>'; |
|
| 138 | + $html[] = implode(LF, $createElementsHtml); |
|
| 139 | + $html[] = '</div>'; |
|
| 140 | + $html[] = '</div>'; |
|
| 141 | 141 | $html[] = '</div>'; |
| 142 | 142 | |
| 143 | 143 | $resultArray['html'] = implode(LF, $html); |
@@ -3572,7 +3572,7 @@ discard block |
||
| 3572 | 3572 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
| 3573 | 3573 | $replaceCount = 0; |
| 3574 | 3574 | |
| 3575 | - $replaceCallback = function ($match) use ($replaceArray, $search, &$replaceCount) { |
|
| 3575 | + $replaceCallback = function($match) use ($replaceArray, $search, &$replaceCount) { |
|
| 3576 | 3576 | $replaceCount++; |
| 3577 | 3577 | return preg_replace($search, $replaceArray[$replaceCount - 1][0], $match[0]); |
| 3578 | 3578 | }; |
@@ -3590,7 +3590,7 @@ discard block |
||
| 3590 | 3590 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
| 3591 | 3591 | $replaceCount = 0; |
| 3592 | 3592 | |
| 3593 | - $replaceCallback = function () use ($replaceArray, &$replaceCount) { |
|
| 3593 | + $replaceCallback = function() use ($replaceArray, &$replaceCount) { |
|
| 3594 | 3594 | $replaceCount++; |
| 3595 | 3595 | return $replaceArray[$replaceCount - 1][0]; |
| 3596 | 3596 | }; |
@@ -6073,7 +6073,7 @@ discard block |
||
| 6073 | 6073 | if (!$this->getFrontendBackendUser() instanceof AbstractUserAuthentication) { |
| 6074 | 6074 | $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('cache_treelist'); |
| 6075 | 6075 | try { |
| 6076 | - $connection->transactional(function ($connection) use ($cacheEntry) { |
|
| 6076 | + $connection->transactional(function($connection) use ($cacheEntry) { |
|
| 6077 | 6077 | $connection->insert('cache_treelist', $cacheEntry); |
| 6078 | 6078 | }); |
| 6079 | 6079 | } catch (\Throwable $e) { |
@@ -6260,7 +6260,7 @@ discard block |
||
| 6260 | 6260 | $conf['recursive'] = (int)$conf['recursive']; |
| 6261 | 6261 | if ($conf['recursive'] > 0) { |
| 6262 | 6262 | $pidList = GeneralUtility::trimExplode(',', $conf['pidInList'], true); |
| 6263 | - array_walk($pidList, function (&$storagePid) { |
|
| 6263 | + array_walk($pidList, function(&$storagePid) { |
|
| 6264 | 6264 | if ($storagePid === 'this') { |
| 6265 | 6265 | $storagePid = $this->getTypoScriptFrontendController()->id; |
| 6266 | 6266 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | $importedContent = $this->loadAndParse($import['resource'], $fileName); |
| 160 | 160 | // override the imported content with the one from the current file |
| 161 | 161 | $content = ArrayUtility::replaceAndAppendScalarValuesRecursive($importedContent, $content); |
| 162 | - } catch (ParseException|YamlParseException|YamlFileLoadingException $exception) { |
|
| 162 | + } catch (ParseException | YamlParseException | YamlFileLoadingException $exception) { |
|
| 163 | 163 | $this->logger->error($exception->getMessage(), ['exception' => $exception]); |
| 164 | 164 | } |
| 165 | 165 | } |
@@ -370,7 +370,7 @@ |
||
| 370 | 370 | TYPO3.ModuleMenu.App.showModule(modName, addGetVars); |
| 371 | 371 | } |
| 372 | 372 | ' . $this->setStartupModule($request) |
| 373 | - . $this->handlePageEditing($request), |
|
| 373 | + . $this->handlePageEditing($request), |
|
| 374 | 374 | false |
| 375 | 375 | ); |
| 376 | 376 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $result['databaseRow'] |
| 83 | 83 | ); |
| 84 | 84 | $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier); |
| 85 | - } catch (InvalidParentRowException|InvalidParentRowLoopException|InvalidParentRowRootException|InvalidPointerFieldValueException|InvalidIdentifierException $e) { |
|
| 85 | + } catch (InvalidParentRowException | InvalidParentRowLoopException | InvalidParentRowRootException | InvalidPointerFieldValueException | InvalidIdentifierException $e) { |
|
| 86 | 86 | $dataStructureIdentifier = null; |
| 87 | 87 | } finally { |
| 88 | 88 | // Add the identifier to TCA to use it later during rendering |
@@ -48,22 +48,22 @@ discard block |
||
| 48 | 48 | ], |
| 49 | 49 | 'insertClipboard' => [ |
| 50 | 50 | 'renderType' => 'insertClipboard', |
| 51 | - 'after' => [ 'elementBrowser' ], |
|
| 51 | + 'after' => ['elementBrowser'], |
|
| 52 | 52 | ], |
| 53 | 53 | 'editPopup' => [ |
| 54 | 54 | 'renderType' => 'editPopup', |
| 55 | 55 | 'disabled' => true, |
| 56 | - 'after' => [ 'insertClipboard' ], |
|
| 56 | + 'after' => ['insertClipboard'], |
|
| 57 | 57 | ], |
| 58 | 58 | 'addRecord' => [ |
| 59 | 59 | 'renderType' => 'addRecord', |
| 60 | 60 | 'disabled' => true, |
| 61 | - 'after' => [ 'editPopup' ], |
|
| 61 | + 'after' => ['editPopup'], |
|
| 62 | 62 | ], |
| 63 | 63 | 'listModule' => [ |
| 64 | 64 | 'renderType' => 'listModule', |
| 65 | 65 | 'disabled' => true, |
| 66 | - 'after' => [ 'addRecord' ], |
|
| 66 | + 'after' => ['addRecord'], |
|
| 67 | 67 | ], |
| 68 | 68 | ]; |
| 69 | 69 | |
@@ -78,19 +78,19 @@ discard block |
||
| 78 | 78 | ], |
| 79 | 79 | 'recordsOverview' => [ |
| 80 | 80 | 'renderType' => 'recordsOverview', |
| 81 | - 'after' => [ 'tableList' ], |
|
| 81 | + 'after' => ['tableList'], |
|
| 82 | 82 | ], |
| 83 | 83 | 'localizationStateSelector' => [ |
| 84 | 84 | 'renderType' => 'localizationStateSelector', |
| 85 | - 'after' => [ 'recordsOverview' ], |
|
| 85 | + 'after' => ['recordsOverview'], |
|
| 86 | 86 | ], |
| 87 | 87 | 'otherLanguageContent' => [ |
| 88 | 88 | 'renderType' => 'otherLanguageContent', |
| 89 | - 'after' => [ 'localizationStateSelector' ], |
|
| 89 | + 'after' => ['localizationStateSelector'], |
|
| 90 | 90 | ], |
| 91 | 91 | 'defaultLanguageDifferences' => [ |
| 92 | 92 | 'renderType' => 'defaultLanguageDifferences', |
| 93 | - 'after' => [ 'otherLanguageContent' ], |
|
| 93 | + 'after' => ['otherLanguageContent'], |
|
| 94 | 94 | ], |
| 95 | 95 | ]; |
| 96 | 96 | |
@@ -170,21 +170,21 @@ discard block |
||
| 170 | 170 | // Return early if element is read only |
| 171 | 171 | $html = []; |
| 172 | 172 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 173 | - $html[] = $fieldInformationHtml; |
|
| 174 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 175 | - $html[] = '<div class="form-wizards-element">'; |
|
| 176 | - $html[] = '<select'; |
|
| 177 | - $html[] = ' size="' . $size . '"'; |
|
| 178 | - $html[] = ' disabled="disabled"'; |
|
| 179 | - $html[] = ' class="form-control tceforms-multiselect"'; |
|
| 180 | - $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
| 181 | - $html[] = '>'; |
|
| 182 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
| 183 | - $html[] = '</select>'; |
|
| 184 | - $html[] = '</div>'; |
|
| 185 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 186 | - $html[] = '</div>'; |
|
| 187 | - $html[] = '</div>'; |
|
| 173 | + $html[] = $fieldInformationHtml; |
|
| 174 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 175 | + $html[] = '<div class="form-wizards-element">'; |
|
| 176 | + $html[] = '<select'; |
|
| 177 | + $html[] = ' size="' . $size . '"'; |
|
| 178 | + $html[] = ' disabled="disabled"'; |
|
| 179 | + $html[] = ' class="form-control tceforms-multiselect"'; |
|
| 180 | + $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
| 181 | + $html[] = '>'; |
|
| 182 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
| 183 | + $html[] = '</select>'; |
|
| 184 | + $html[] = '</div>'; |
|
| 185 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 186 | + $html[] = '</div>'; |
|
| 187 | + $html[] = '</div>'; |
|
| 188 | 188 | $html[] = '</div>'; |
| 189 | 189 | $resultArray['html'] = implode(LF, $html); |
| 190 | 190 | return $resultArray; |
@@ -271,100 +271,100 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | $html = []; |
| 273 | 273 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 274 | - $html[] = $fieldInformationHtml; |
|
| 275 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 274 | + $html[] = $fieldInformationHtml; |
|
| 275 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 276 | 276 | if ($internalType === 'db' && (!isset($config['hideSuggest']) || (bool)$config['hideSuggest'] !== true)) { |
| 277 | - $html[] = '<div class="form-wizards-items-top">'; |
|
| 278 | - $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
| 279 | - $html[] = '<div class="input-group">'; |
|
| 280 | - $html[] = '<span class="input-group-addon">'; |
|
| 281 | - $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
| 282 | - $html[] = '</span>'; |
|
| 283 | - $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
| 284 | - $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
| 285 | - $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
| 286 | - $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
| 287 | - $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
| 288 | - $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
| 289 | - $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
| 290 | - $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
| 291 | - $html[] = ' data-minchars="' . htmlspecialchars($suggestMinimumCharacters) . '"'; |
|
| 292 | - $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
| 293 | - $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 294 | - $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 295 | - $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 296 | - $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
| 297 | - $html[] = '/>'; |
|
| 298 | - $html[] = '</div>'; |
|
| 299 | - $html[] = '</div>'; |
|
| 300 | - $html[] = '</div>'; |
|
| 277 | + $html[] = '<div class="form-wizards-items-top">'; |
|
| 278 | + $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
| 279 | + $html[] = '<div class="input-group">'; |
|
| 280 | + $html[] = '<span class="input-group-addon">'; |
|
| 281 | + $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
| 282 | + $html[] = '</span>'; |
|
| 283 | + $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
| 284 | + $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
| 285 | + $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
| 286 | + $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
| 287 | + $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
| 288 | + $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
| 289 | + $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
| 290 | + $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
| 291 | + $html[] = ' data-minchars="' . htmlspecialchars($suggestMinimumCharacters) . '"'; |
|
| 292 | + $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
| 293 | + $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
| 294 | + $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
| 295 | + $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
| 296 | + $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
| 297 | + $html[] = '/>'; |
|
| 298 | + $html[] = '</div>'; |
|
| 299 | + $html[] = '</div>'; |
|
| 300 | + $html[] = '</div>'; |
|
| 301 | 301 | } |
| 302 | - $html[] = '<div class="form-wizards-element">'; |
|
| 303 | - $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
| 304 | - $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
| 305 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
| 306 | - $html[] = '</select>'; |
|
| 307 | - $html[] = '</div>'; |
|
| 308 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 309 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 310 | - if ($maxItems > 1 && $size >=5 && $showMoveIcons) { |
|
| 311 | - $html[] = '<a href="#"'; |
|
| 312 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
| 313 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 314 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
| 315 | - $html[] = '>'; |
|
| 316 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
| 317 | - $html[] = '</a>'; |
|
| 302 | + $html[] = '<div class="form-wizards-element">'; |
|
| 303 | + $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
| 304 | + $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
| 305 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
| 306 | + $html[] = '</select>'; |
|
| 307 | + $html[] = '</div>'; |
|
| 308 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 309 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 310 | + if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
|
| 311 | + $html[] = '<a href="#"'; |
|
| 312 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
| 313 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 314 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
| 315 | + $html[] = '>'; |
|
| 316 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
| 317 | + $html[] = '</a>'; |
|
| 318 | 318 | } |
| 319 | 319 | if ($maxItems > 1 && $size > 1 && $showMoveIcons) { |
| 320 | - $html[] = '<a href="#"'; |
|
| 321 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
| 322 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 323 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
| 324 | - $html[] = '>'; |
|
| 325 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
| 326 | - $html[] = '</a>'; |
|
| 327 | - $html[] = '<a href="#"'; |
|
| 328 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
| 329 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 330 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
| 331 | - $html[] = '>'; |
|
| 332 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
| 333 | - $html[] = '</a>'; |
|
| 320 | + $html[] = '<a href="#"'; |
|
| 321 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
| 322 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 323 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
| 324 | + $html[] = '>'; |
|
| 325 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
| 326 | + $html[] = '</a>'; |
|
| 327 | + $html[] = '<a href="#"'; |
|
| 328 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
| 329 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 330 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
| 331 | + $html[] = '>'; |
|
| 332 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
| 333 | + $html[] = '</a>'; |
|
| 334 | 334 | } |
| 335 | 335 | if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
| 336 | - $html[] = '<a href="#"'; |
|
| 337 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
| 338 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 339 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
| 340 | - $html[] = '>'; |
|
| 341 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
| 342 | - $html[] = '</a>'; |
|
| 336 | + $html[] = '<a href="#"'; |
|
| 337 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
| 338 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 339 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
| 340 | + $html[] = '>'; |
|
| 341 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
| 342 | + $html[] = '</a>'; |
|
| 343 | 343 | } |
| 344 | 344 | if ($showDeleteControl) { |
| 345 | - $html[] = '<a href="#"'; |
|
| 346 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
| 347 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 348 | - $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
| 349 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
| 350 | - $html[] = '>'; |
|
| 351 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
| 352 | - $html[] = '</a>'; |
|
| 345 | + $html[] = '<a href="#"'; |
|
| 346 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
| 347 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 348 | + $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
| 349 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
| 350 | + $html[] = '>'; |
|
| 351 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
| 352 | + $html[] = '</a>'; |
|
| 353 | 353 | } |
| 354 | - $html[] = '</div>'; |
|
| 355 | - $html[] = '</div>'; |
|
| 356 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 357 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 358 | - $html[] = $fieldControlHtml; |
|
| 359 | - $html[] = '</div>'; |
|
| 360 | - $html[] = '</div>'; |
|
| 354 | + $html[] = '</div>'; |
|
| 355 | + $html[] = '</div>'; |
|
| 356 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 357 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 358 | + $html[] = $fieldControlHtml; |
|
| 359 | + $html[] = '</div>'; |
|
| 360 | + $html[] = '</div>'; |
|
| 361 | 361 | if (!empty($fieldWizardHtml)) { |
| 362 | 362 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 363 | 363 | $html[] = $fieldWizardHtml; |
| 364 | 364 | $html[] = '</div>'; |
| 365 | 365 | } |
| 366 | - $html[] = '</div>'; |
|
| 367 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 366 | + $html[] = '</div>'; |
|
| 367 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 368 | 368 | $html[] = '</div>'; |
| 369 | 369 | |
| 370 | 370 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/GroupElement' => ' |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | } |
| 131 | 131 | } else { |
| 132 | 132 | // This is when the public path is a subfolder (e.g. public/ or web/) |
| 133 | - $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath())+1); |
|
| 133 | + $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath()) + 1); |
|
| 134 | 134 | |
| 135 | 135 | $publicPathSubStructure = [ |
| 136 | 136 | [ |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | 'listModule' => [ |
| 58 | 58 | 'renderType' => 'listModule', |
| 59 | 59 | 'disabled' => true, |
| 60 | - 'after' => [ 'addRecord' ], |
|
| 60 | + 'after' => ['addRecord'], |
|
| 61 | 61 | ], |
| 62 | 62 | ]; |
| 63 | 63 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function renderFieldControl(): array |
| 93 | 93 | { |
| 94 | - $alternativeResult = [ |
|
| 94 | + $alternativeResult = [ |
|
| 95 | 95 | 'additionalJavaScriptPost' => [], |
| 96 | 96 | 'additionalHiddenFields' => [], |
| 97 | 97 | 'additionalInlineLanguageLabelFiles' => [], |
@@ -184,10 +184,10 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | // Html stuff for filter and select filter on top of right side of multi select boxes |
| 186 | 186 | $filterTextfield[] = '<span class="input-group input-group-sm">'; |
| 187 | - $filterTextfield[] = '<span class="input-group-addon">'; |
|
| 188 | - $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
| 189 | - $filterTextfield[] = '</span>'; |
|
| 190 | - $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
| 187 | + $filterTextfield[] = '<span class="input-group-addon">'; |
|
| 188 | + $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
| 189 | + $filterTextfield[] = '</span>'; |
|
| 190 | + $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
| 191 | 191 | $filterTextfield[] = '</span>'; |
| 192 | 192 | |
| 193 | 193 | $filterDropDownOptions = []; |
@@ -205,14 +205,14 @@ discard block |
||
| 205 | 205 | $filterHtml[] = '<div class="form-multigroup-item-wizard">'; |
| 206 | 206 | if (!empty($filterDropDownOptions)) { |
| 207 | 207 | $filterHtml[] = '<div class="t3js-formengine-multiselect-filter-container form-multigroup-wrap">'; |
| 208 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 209 | - $filterHtml[] = '<select class="form-control input-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
| 210 | - $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
| 211 | - $filterHtml[] = '</select>'; |
|
| 212 | - $filterHtml[] = '</div>'; |
|
| 213 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 214 | - $filterHtml[] = implode(LF, $filterTextfield); |
|
| 215 | - $filterHtml[] = '</div>'; |
|
| 208 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 209 | + $filterHtml[] = '<select class="form-control input-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
| 210 | + $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
| 211 | + $filterHtml[] = '</select>'; |
|
| 212 | + $filterHtml[] = '</div>'; |
|
| 213 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 214 | + $filterHtml[] = implode(LF, $filterTextfield); |
|
| 215 | + $filterHtml[] = '</div>'; |
|
| 216 | 216 | $filterHtml[] = '</div>'; |
| 217 | 217 | } else { |
| 218 | 218 | $filterHtml[] = implode(LF, $filterTextfield); |
@@ -249,113 +249,113 @@ discard block |
||
| 249 | 249 | |
| 250 | 250 | $html = []; |
| 251 | 251 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 252 | - $html[] = $fieldInformationHtml; |
|
| 253 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 254 | - $html[] = '<div class="form-wizards-element">'; |
|
| 255 | - $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
| 256 | - $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
| 257 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 258 | - $html[] = '<label>'; |
|
| 259 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
| 260 | - $html[] = '</label>'; |
|
| 261 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 262 | - $html[] = '<div class="form-wizards-element">'; |
|
| 263 | - $html[] = '<select'; |
|
| 264 | - $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
| 265 | - $html[] = ' size="' . $size . '"'; |
|
| 266 | - $html[] = ' class="' . implode(' ', $classes) . '"'; |
|
| 267 | - $html[] = $multipleAttribute; |
|
| 268 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
| 269 | - $html[] = '>'; |
|
| 270 | - $html[] = implode(LF, $selectedItemsHtml); |
|
| 271 | - $html[] = '</select>'; |
|
| 272 | - $html[] = '</div>'; |
|
| 273 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 274 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 252 | + $html[] = $fieldInformationHtml; |
|
| 253 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 254 | + $html[] = '<div class="form-wizards-element">'; |
|
| 255 | + $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
| 256 | + $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
| 257 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 258 | + $html[] = '<label>'; |
|
| 259 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
| 260 | + $html[] = '</label>'; |
|
| 261 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 262 | + $html[] = '<div class="form-wizards-element">'; |
|
| 263 | + $html[] = '<select'; |
|
| 264 | + $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
| 265 | + $html[] = ' size="' . $size . '"'; |
|
| 266 | + $html[] = ' class="' . implode(' ', $classes) . '"'; |
|
| 267 | + $html[] = $multipleAttribute; |
|
| 268 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
| 269 | + $html[] = '>'; |
|
| 270 | + $html[] = implode(LF, $selectedItemsHtml); |
|
| 271 | + $html[] = '</select>'; |
|
| 272 | + $html[] = '</div>'; |
|
| 273 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 274 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 275 | 275 | if ($maxItems > 1 && $size >= 5) { |
| 276 | - $html[] = '<a href="#"'; |
|
| 277 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
| 278 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 279 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
| 280 | - $html[] = '>'; |
|
| 281 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
| 282 | - $html[] = '</a>'; |
|
| 276 | + $html[] = '<a href="#"'; |
|
| 277 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
| 278 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 279 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
| 280 | + $html[] = '>'; |
|
| 281 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
| 282 | + $html[] = '</a>'; |
|
| 283 | 283 | } |
| 284 | 284 | if ($maxItems > 1) { |
| 285 | - $html[] = '<a href="#"'; |
|
| 286 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
| 287 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 288 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
| 289 | - $html[] = '>'; |
|
| 290 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
| 291 | - $html[] = '</a>'; |
|
| 292 | - $html[] = '<a href="#"'; |
|
| 293 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
| 294 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 295 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
| 296 | - $html[] = '>'; |
|
| 297 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
| 298 | - $html[] = '</a>'; |
|
| 285 | + $html[] = '<a href="#"'; |
|
| 286 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
| 287 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 288 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
| 289 | + $html[] = '>'; |
|
| 290 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
| 291 | + $html[] = '</a>'; |
|
| 292 | + $html[] = '<a href="#"'; |
|
| 293 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
| 294 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 295 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
| 296 | + $html[] = '>'; |
|
| 297 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
| 298 | + $html[] = '</a>'; |
|
| 299 | 299 | } |
| 300 | 300 | if ($maxItems > 1 && $size >= 5) { |
| 301 | - $html[] = '<a href="#"'; |
|
| 302 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
| 303 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 304 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
| 305 | - $html[] = '>'; |
|
| 306 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
| 307 | - $html[] = '</a>'; |
|
| 301 | + $html[] = '<a href="#"'; |
|
| 302 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
| 303 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 304 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
| 305 | + $html[] = '>'; |
|
| 306 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
| 307 | + $html[] = '</a>'; |
|
| 308 | 308 | } |
| 309 | - $html[] = $alternativeFieldControlHtml; |
|
| 310 | - $html[] = '<a href="#"'; |
|
| 311 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
| 312 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 313 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
| 314 | - $html[] = '>'; |
|
| 315 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
| 316 | - $html[] = '</a>'; |
|
| 317 | - $html[] = '</div>'; |
|
| 318 | - $html[] = '</div>'; |
|
| 319 | - $html[] = '</div>'; |
|
| 320 | - $html[] = '</div>'; |
|
| 321 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 322 | - $html[] = '<label>'; |
|
| 323 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
| 324 | - $html[] = '</label>'; |
|
| 325 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 326 | - $html[] = '<div class="form-wizards-element">'; |
|
| 327 | - $html[] = implode(LF, $filterHtml); |
|
| 328 | - $html[] = '<select'; |
|
| 329 | - $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 330 | - $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
| 331 | - $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
| 332 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
| 333 | - $html[] = ' class="form-control t3js-formengine-select-itemstoselect"'; |
|
| 334 | - $html[] = ' size="' . $size . '"'; |
|
| 335 | - $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
| 336 | - $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 337 | - $html[] = '>'; |
|
| 338 | - $html[] = implode(LF, $selectableItemsHtml); |
|
| 339 | - $html[] = '</select>'; |
|
| 340 | - $html[] = '</div>'; |
|
| 309 | + $html[] = $alternativeFieldControlHtml; |
|
| 310 | + $html[] = '<a href="#"'; |
|
| 311 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
| 312 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 313 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
| 314 | + $html[] = '>'; |
|
| 315 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
| 316 | + $html[] = '</a>'; |
|
| 317 | + $html[] = '</div>'; |
|
| 318 | + $html[] = '</div>'; |
|
| 319 | + $html[] = '</div>'; |
|
| 320 | + $html[] = '</div>'; |
|
| 321 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
| 322 | + $html[] = '<label>'; |
|
| 323 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
| 324 | + $html[] = '</label>'; |
|
| 325 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 326 | + $html[] = '<div class="form-wizards-element">'; |
|
| 327 | + $html[] = implode(LF, $filterHtml); |
|
| 328 | + $html[] = '<select'; |
|
| 329 | + $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
| 330 | + $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
| 331 | + $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
| 332 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
| 333 | + $html[] = ' class="form-control t3js-formengine-select-itemstoselect"'; |
|
| 334 | + $html[] = ' size="' . $size . '"'; |
|
| 335 | + $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
| 336 | + $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
| 337 | + $html[] = '>'; |
|
| 338 | + $html[] = implode(LF, $selectableItemsHtml); |
|
| 339 | + $html[] = '</select>'; |
|
| 340 | + $html[] = '</div>'; |
|
| 341 | 341 | if (!empty($fieldControlHtml)) { |
| 342 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 343 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 344 | - $html[] = $fieldControlHtml; |
|
| 345 | - $html[] = '</div>'; |
|
| 346 | - $html[] = '</div>'; |
|
| 342 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 343 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 344 | + $html[] = $fieldControlHtml; |
|
| 345 | + $html[] = '</div>'; |
|
| 346 | + $html[] = '</div>'; |
|
| 347 | 347 | } |
| 348 | - $html[] = '</div>'; |
|
| 349 | - $html[] = '</div>'; |
|
| 350 | - $html[] = '</div>'; |
|
| 351 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 352 | - $html[] = '</div>'; |
|
| 348 | + $html[] = '</div>'; |
|
| 349 | + $html[] = '</div>'; |
|
| 350 | + $html[] = '</div>'; |
|
| 351 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 352 | + $html[] = '</div>'; |
|
| 353 | 353 | if (!empty($fieldWizardHtml)) { |
| 354 | 354 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 355 | 355 | $html[] = $fieldWizardHtml; |
| 356 | 356 | $html[] = '</div>'; |
| 357 | 357 | } |
| 358 | - $html[] = '</div>'; |
|
| 358 | + $html[] = '</div>'; |
|
| 359 | 359 | $html[] = '</div>'; |
| 360 | 360 | |
| 361 | 361 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/SelectMultipleSideBySideElement' => ' |
@@ -422,29 +422,29 @@ discard block |
||
| 422 | 422 | |
| 423 | 423 | $html = []; |
| 424 | 424 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 425 | - $html[] = $fieldInformationHtml; |
|
| 426 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 427 | - $html[] = '<div class="form-wizards-element">'; |
|
| 428 | - $html[] = '<label>'; |
|
| 429 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
| 430 | - $html[] = '</label>'; |
|
| 431 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 432 | - $html[] = '<div class="form-wizards-element">'; |
|
| 433 | - $html[] = '<select'; |
|
| 434 | - $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
| 435 | - $html[] = ' size="' . $size . '"'; |
|
| 436 | - $html[] = ' class="form-control tceforms-multiselect"'; |
|
| 437 | - $html[] = $multiple; |
|
| 438 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
| 439 | - $html[] = ' disabled="disabled">'; |
|
| 440 | - $html[] = '/>'; |
|
| 441 | - $html[] = implode(LF, $optionsHtml); |
|
| 442 | - $html[] = '</select>'; |
|
| 443 | - $html[] = '</div>'; |
|
| 444 | - $html[] = '</div>'; |
|
| 445 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 446 | - $html[] = '</div>'; |
|
| 447 | - $html[] = '</div>'; |
|
| 425 | + $html[] = $fieldInformationHtml; |
|
| 426 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 427 | + $html[] = '<div class="form-wizards-element">'; |
|
| 428 | + $html[] = '<label>'; |
|
| 429 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
| 430 | + $html[] = '</label>'; |
|
| 431 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
| 432 | + $html[] = '<div class="form-wizards-element">'; |
|
| 433 | + $html[] = '<select'; |
|
| 434 | + $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
| 435 | + $html[] = ' size="' . $size . '"'; |
|
| 436 | + $html[] = ' class="form-control tceforms-multiselect"'; |
|
| 437 | + $html[] = $multiple; |
|
| 438 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
| 439 | + $html[] = ' disabled="disabled">'; |
|
| 440 | + $html[] = '/>'; |
|
| 441 | + $html[] = implode(LF, $optionsHtml); |
|
| 442 | + $html[] = '</select>'; |
|
| 443 | + $html[] = '</div>'; |
|
| 444 | + $html[] = '</div>'; |
|
| 445 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
| 446 | + $html[] = '</div>'; |
|
| 447 | + $html[] = '</div>'; |
|
| 448 | 448 | $html[] = '</div>'; |
| 449 | 449 | |
| 450 | 450 | $resultArray['html'] = implode(LF, $html); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | 'active' => extension_loaded('Zend OPcache') && ini_get('opcache.enable') === '1', |
| 36 | 36 | 'version' => phpversion('Zend OPcache'), |
| 37 | 37 | 'warning' => self::isClearable() ? false : 'Either opcache_invalidate or opcache_reset are disabled in this installation. Clearing will not work.', |
| 38 | - 'clearCallback' => static function ($fileAbsPath) { |
|
| 38 | + 'clearCallback' => static function($fileAbsPath) { |
|
| 39 | 39 | if (self::isClearable()) { |
| 40 | 40 | if ($fileAbsPath !== null) { |
| 41 | 41 | opcache_invalidate($fileAbsPath); |