@@ -60,18 +60,18 @@ |
||
| 60 | 60 | $html = []; |
| 61 | 61 | if (!empty($selectIcons)) { |
| 62 | 62 | $html[] = '<div class="t3js-forms-select-single-icons icon-list">'; |
| 63 | - $html[] = '<div class="row">'; |
|
| 63 | + $html[] = '<div class="row">'; |
|
| 64 | 64 | foreach ($selectIcons as $i => $selectIcon) { |
| 65 | - $active = $selectIcon['active'] ? ' active' : ''; |
|
| 66 | - $html[] = '<div class="col col-auto item' . $active . '">'; |
|
| 65 | + $active = $selectIcon['active'] ? ' active' : ''; |
|
| 66 | + $html[] = '<div class="col col-auto item' . $active . '">'; |
|
| 67 | 67 | if (is_array($selectIcon)) { |
| 68 | 68 | $html[] = '<a href="#" title="' . htmlspecialchars($selectIcon['title'], ENT_COMPAT, 'UTF-8', false) . '" data-select-index="' . htmlspecialchars((string)$selectIcon['index']) . '">'; |
| 69 | - $html[] = $selectIcon['icon']; |
|
| 69 | + $html[] = $selectIcon['icon']; |
|
| 70 | 70 | $html[] = '</a>'; |
| 71 | 71 | } |
| 72 | - $html[] = '</div>'; |
|
| 72 | + $html[] = '</div>'; |
|
| 73 | 73 | } |
| 74 | - $html[] = '</div>'; |
|
| 74 | + $html[] = '</div>'; |
|
| 75 | 75 | $html[] = '</div>'; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -138,26 +138,26 @@ |
||
| 138 | 138 | |
| 139 | 139 | $html = []; |
| 140 | 140 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 141 | - $html[] = $fieldInformationHtml; |
|
| 142 | - $html[] = '<div class="form-control-wrap">'; |
|
| 143 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 144 | - $html[] = '<div class="form-wizards-element">'; |
|
| 145 | - $html[] = $editorHtml; |
|
| 146 | - $html[] = '</div>'; |
|
| 141 | + $html[] = $fieldInformationHtml; |
|
| 142 | + $html[] = '<div class="form-control-wrap">'; |
|
| 143 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 144 | + $html[] = '<div class="form-wizards-element">'; |
|
| 145 | + $html[] = $editorHtml; |
|
| 146 | + $html[] = '</div>'; |
|
| 147 | 147 | if (!empty($fieldControlHtml)) { |
| 148 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 149 | - $html[] = '<div class="btn-group">'; |
|
| 150 | - $html[] = $fieldControlHtml; |
|
| 151 | - $html[] = '</div>'; |
|
| 152 | - $html[] = '</div>'; |
|
| 148 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 149 | + $html[] = '<div class="btn-group">'; |
|
| 150 | + $html[] = $fieldControlHtml; |
|
| 151 | + $html[] = '</div>'; |
|
| 152 | + $html[] = '</div>'; |
|
| 153 | 153 | } |
| 154 | 154 | if (!empty($fieldWizardHtml)) { |
| 155 | 155 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 156 | 156 | $html[] = $fieldWizardHtml; |
| 157 | 157 | $html[] = '</div>'; |
| 158 | 158 | } |
| 159 | - $html[] = '</div>'; |
|
| 160 | - $html[] = '</div>'; |
|
| 159 | + $html[] = '</div>'; |
|
| 160 | + $html[] = '</div>'; |
|
| 161 | 161 | $html[] = '</div>'; |
| 162 | 162 | |
| 163 | 163 | $this->resultArray['html'] = implode(LF, $html); |
@@ -1441,7 +1441,7 @@ discard block |
||
| 1441 | 1441 | if (in_array('table', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectATable']) { |
| 1442 | 1442 | $out[] = '<div class="form-group">'; |
| 1443 | 1443 | $out[] = ' <label for="SET[queryTable]">Select a table:</label>'; |
| 1444 | - $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
| 1444 | + $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
| 1445 | 1445 | $out[] = '</div>'; |
| 1446 | 1446 | } |
| 1447 | 1447 | if ($this->table) { |
@@ -1481,19 +1481,19 @@ discard block |
||
| 1481 | 1481 | if (in_array('fields', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectFields']) { |
| 1482 | 1482 | $out[] = '<div class="form-group form-group-with-button-addon">'; |
| 1483 | 1483 | $out[] = ' <label for="SET[queryFields]">Select fields:</label>'; |
| 1484 | - $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
| 1484 | + $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
| 1485 | 1485 | $out[] = '</div>'; |
| 1486 | 1486 | } |
| 1487 | 1487 | if (in_array('query', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableMakeQuery']) { |
| 1488 | 1488 | $out[] = '<div class="form-group">'; |
| 1489 | 1489 | $out[] = ' <label>Make Query:</label>'; |
| 1490 | - $out[] = $queryCode; |
|
| 1490 | + $out[] = $queryCode; |
|
| 1491 | 1491 | $out[] = '</div>'; |
| 1492 | 1492 | } |
| 1493 | 1493 | if (in_array('group', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableGroupBy']) { |
| 1494 | 1494 | $out[] = '<div class="form-group form-inline">'; |
| 1495 | 1495 | $out[] = ' <label for="SET[queryGroup]">Group By:</label>'; |
| 1496 | - $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
| 1496 | + $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
| 1497 | 1497 | $out[] = '</div>'; |
| 1498 | 1498 | } |
| 1499 | 1499 | if (in_array('order', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableOrderBy']) { |
@@ -1503,7 +1503,7 @@ discard block |
||
| 1503 | 1503 | $orderBy[] = '<div class="form-check">'; |
| 1504 | 1504 | $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"'); |
| 1505 | 1505 | $orderBy[] = ' <label class="form-check-label" for="checkQueryOrderDesc">'; |
| 1506 | - $orderBy[] = 'Descending'; |
|
| 1506 | + $orderBy[] = 'Descending'; |
|
| 1507 | 1507 | $orderBy[] = ' </label>'; |
| 1508 | 1508 | $orderBy[] = '</div>'; |
| 1509 | 1509 | |
@@ -1512,13 +1512,13 @@ discard block |
||
| 1512 | 1512 | $orderBy[] = '<div class="form-check">'; |
| 1513 | 1513 | $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"'); |
| 1514 | 1514 | $orderBy[] = ' <label class="form-check-label" for="checkQueryOrder2Desc">'; |
| 1515 | - $orderBy[] = 'Descending'; |
|
| 1515 | + $orderBy[] = 'Descending'; |
|
| 1516 | 1516 | $orderBy[] = ' </label>'; |
| 1517 | 1517 | $orderBy[] = '</div>'; |
| 1518 | 1518 | } |
| 1519 | 1519 | $out[] = '<div class="form-group form-inline">'; |
| 1520 | 1520 | $out[] = ' <label>Order By:</label>'; |
| 1521 | - $out[] = implode(LF, $orderBy); |
|
| 1521 | + $out[] = implode(LF, $orderBy); |
|
| 1522 | 1522 | $out[] = '</div>'; |
| 1523 | 1523 | } |
| 1524 | 1524 | if (in_array('limit', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableLimit']) { |
@@ -1552,10 +1552,10 @@ discard block |
||
| 1552 | 1552 | $out[] = '<div class="form-group">'; |
| 1553 | 1553 | $out[] = ' <label>Limit:</label>'; |
| 1554 | 1554 | $out[] = ' <div class="form-inline">'; |
| 1555 | - $out[] = implode(LF, $limit); |
|
| 1555 | + $out[] = implode(LF, $limit); |
|
| 1556 | 1556 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
| 1557 | - $out[] = $prevButton; |
|
| 1558 | - $out[] = $nextButton; |
|
| 1557 | + $out[] = $prevButton; |
|
| 1558 | + $out[] = $nextButton; |
|
| 1559 | 1559 | $out[] = ' </div>'; |
| 1560 | 1560 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
| 1561 | 1561 | $out[] = ' <input type="button" class="btn btn-default" data-value="10" value="10">'; |
@@ -117,14 +117,14 @@ discard block |
||
| 117 | 117 | $itemValue = $this->formatValue($format, $itemValue); |
| 118 | 118 | $html = []; |
| 119 | 119 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 120 | - $html[] = $fieldInformationHtml; |
|
| 121 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 122 | - $html[] = '<div class="form-wizards-element">'; |
|
| 123 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 124 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
| 125 | - $html[] = '</div>'; |
|
| 126 | - $html[] = '</div>'; |
|
| 127 | - $html[] = '</div>'; |
|
| 120 | + $html[] = $fieldInformationHtml; |
|
| 121 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 122 | + $html[] = '<div class="form-wizards-element">'; |
|
| 123 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
| 124 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
| 125 | + $html[] = '</div>'; |
|
| 126 | + $html[] = '</div>'; |
|
| 127 | + $html[] = '</div>'; |
|
| 128 | 128 | $html[] = '</div>'; |
| 129 | 129 | $resultArray['html'] = implode(LF, $html); |
| 130 | 130 | return $resultArray; |
@@ -193,31 +193,31 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | $expansionHtml = []; |
| 195 | 195 | $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
| 196 | - $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
| 197 | - $expansionHtml[] = '<div class="form-wizards-element">'; |
|
| 198 | - $expansionHtml[] = '<div class="input-group">'; |
|
| 199 | - $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
| 200 | - $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
| 201 | - $expansionHtml[] = '<span class="input-group-btn">'; |
|
| 202 | - $expansionHtml[] = '<label class="btn btn-default" for="' . $attributes['id'] . '">'; |
|
| 203 | - $expansionHtml[] = $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render(); |
|
| 204 | - $expansionHtml[] = '</label>'; |
|
| 205 | - $expansionHtml[] = '</span>'; |
|
| 206 | - $expansionHtml[] = '</div>'; |
|
| 207 | - $expansionHtml[] = '</div>'; |
|
| 196 | + $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
| 197 | + $expansionHtml[] = '<div class="form-wizards-element">'; |
|
| 198 | + $expansionHtml[] = '<div class="input-group">'; |
|
| 199 | + $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
| 200 | + $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
| 201 | + $expansionHtml[] = '<span class="input-group-btn">'; |
|
| 202 | + $expansionHtml[] = '<label class="btn btn-default" for="' . $attributes['id'] . '">'; |
|
| 203 | + $expansionHtml[] = $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render(); |
|
| 204 | + $expansionHtml[] = '</label>'; |
|
| 205 | + $expansionHtml[] = '</span>'; |
|
| 206 | + $expansionHtml[] = '</div>'; |
|
| 207 | + $expansionHtml[] = '</div>'; |
|
| 208 | 208 | if (!empty($fieldControlHtml)) { |
| 209 | - $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 210 | - $expansionHtml[] = '<div class="btn-group">'; |
|
| 211 | - $expansionHtml[] = $fieldControlHtml; |
|
| 212 | - $expansionHtml[] = '</div>'; |
|
| 213 | - $expansionHtml[] = '</div>'; |
|
| 209 | + $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
| 210 | + $expansionHtml[] = '<div class="btn-group">'; |
|
| 211 | + $expansionHtml[] = $fieldControlHtml; |
|
| 212 | + $expansionHtml[] = '</div>'; |
|
| 213 | + $expansionHtml[] = '</div>'; |
|
| 214 | 214 | } |
| 215 | 215 | if (!empty($fieldWizardHtml)) { |
| 216 | 216 | $expansionHtml[] = '<div class="form-wizards-items-bottom">'; |
| 217 | 217 | $expansionHtml[] = $fieldWizardHtml; |
| 218 | 218 | $expansionHtml[] = '</div>'; |
| 219 | 219 | } |
| 220 | - $expansionHtml[] = '</div>'; |
|
| 220 | + $expansionHtml[] = '</div>'; |
|
| 221 | 221 | $expansionHtml[] = '</div>'; |
| 222 | 222 | $expansionHtml = implode(LF, $expansionHtml); |
| 223 | 223 | |
@@ -227,11 +227,11 @@ discard block |
||
| 227 | 227 | $fullElement = []; |
| 228 | 228 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
| 229 | 229 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
| 230 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
| 231 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
| 232 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
| 233 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
| 234 | - $fullElement[] = '</label>'; |
|
| 230 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
| 231 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
| 232 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
| 233 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
| 234 | + $fullElement[] = '</label>'; |
|
| 235 | 235 | $fullElement[] = '</div>'; |
| 236 | 236 | $fullElement[] = $expansionHtml; |
| 237 | 237 | $fullElement = implode(LF, $fullElement); |
@@ -260,19 +260,19 @@ discard block |
||
| 260 | 260 | } |
| 261 | 261 | $fullElement = []; |
| 262 | 262 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
| 263 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
| 264 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
| 265 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
| 266 | - $fullElement[] = $overrideLabel; |
|
| 267 | - $fullElement[] = '</label>'; |
|
| 263 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
| 264 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
| 265 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
| 266 | + $fullElement[] = $overrideLabel; |
|
| 267 | + $fullElement[] = '</label>'; |
|
| 268 | 268 | $fullElement[] = '</div>'; |
| 269 | 269 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
| 270 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
| 271 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
| 272 | - $fullElement[] = '</div>'; |
|
| 270 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
| 271 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
| 272 | + $fullElement[] = '</div>'; |
|
| 273 | 273 | $fullElement[] = '</div>'; |
| 274 | 274 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
| 275 | - $fullElement[] = $expansionHtml; |
|
| 275 | + $fullElement[] = $expansionHtml; |
|
| 276 | 276 | $fullElement[] = '</div>'; |
| 277 | 277 | $fullElement = implode(LF, $fullElement); |
| 278 | 278 | } |
@@ -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; |
@@ -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'], |