@@ -1,78 +1,78 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if ( !defined( 'TYPO3_MODE' ) ) { |
4 | - die( 'Access denied.' ); |
|
4 | + die( 'Access denied.' ); |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | $registerPlugins = function (array $plugins, string $pluginGroup) { |
8 | - foreach ( $plugins as $pluginName ) { |
|
9 | - $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_' . $pluginName] = 'pi_flexform'; |
|
10 | - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( |
|
11 | - 'aimeos_' . $pluginName, |
|
12 | - 'FILE:EXT:aimeos/Configuration/FlexForms/' . str_replace( '-', '', ucwords( $pluginName, '-' ) ) . '.xml' |
|
13 | - ); |
|
14 | - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( |
|
15 | - 'Aimeos.aimeos', |
|
16 | - $pluginName, |
|
17 | - 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf:aimeos_' . $pluginName . '.title', |
|
18 | - 'aimeos_' .$pluginName, |
|
19 | - 'Aimeos Shop: ' .$pluginGroup |
|
20 | - ); |
|
21 | - } |
|
8 | + foreach ( $plugins as $pluginName ) { |
|
9 | + $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_' . $pluginName] = 'pi_flexform'; |
|
10 | + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( |
|
11 | + 'aimeos_' . $pluginName, |
|
12 | + 'FILE:EXT:aimeos/Configuration/FlexForms/' . str_replace( '-', '', ucwords( $pluginName, '-' ) ) . '.xml' |
|
13 | + ); |
|
14 | + \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( |
|
15 | + 'Aimeos.aimeos', |
|
16 | + $pluginName, |
|
17 | + 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf:aimeos_' . $pluginName . '.title', |
|
18 | + 'aimeos_' .$pluginName, |
|
19 | + 'Aimeos Shop: ' .$pluginGroup |
|
20 | + ); |
|
21 | + } |
|
22 | 22 | }; |
23 | 23 | |
24 | 24 | $registerPlugins( |
25 | - [ |
|
26 | - 'jsonapi', |
|
27 | - 'locale-select' |
|
28 | - ], 'Tools' |
|
25 | + [ |
|
26 | + 'jsonapi', |
|
27 | + 'locale-select' |
|
28 | + ], 'Tools' |
|
29 | 29 | ); |
30 | 30 | $registerPlugins( |
31 | - [ |
|
32 | - 'catalog-attribute', |
|
33 | - 'catalog-count', |
|
34 | - 'catalog-detail', |
|
35 | - 'catalog-filter', |
|
36 | - 'catalog-home', |
|
37 | - 'catalog-list', |
|
38 | - 'catalog-price', |
|
39 | - 'catalog-search', |
|
40 | - 'catalog-session', |
|
41 | - 'catalog-stage', |
|
42 | - 'catalog-stock', |
|
43 | - 'catalog-suggest', |
|
44 | - 'catalog-supplier', |
|
45 | - 'catalog-tree', |
|
46 | - ], |
|
47 | - 'Catalog' |
|
31 | + [ |
|
32 | + 'catalog-attribute', |
|
33 | + 'catalog-count', |
|
34 | + 'catalog-detail', |
|
35 | + 'catalog-filter', |
|
36 | + 'catalog-home', |
|
37 | + 'catalog-list', |
|
38 | + 'catalog-price', |
|
39 | + 'catalog-search', |
|
40 | + 'catalog-session', |
|
41 | + 'catalog-stage', |
|
42 | + 'catalog-stock', |
|
43 | + 'catalog-suggest', |
|
44 | + 'catalog-supplier', |
|
45 | + 'catalog-tree', |
|
46 | + ], |
|
47 | + 'Catalog' |
|
48 | 48 | ); |
49 | 49 | $registerPlugins( |
50 | - [ |
|
51 | - 'basket-bulk', |
|
52 | - 'basket-related', |
|
53 | - 'basket-small', |
|
54 | - 'basket-standard', |
|
55 | - ], |
|
56 | - 'Basket' |
|
50 | + [ |
|
51 | + 'basket-bulk', |
|
52 | + 'basket-related', |
|
53 | + 'basket-small', |
|
54 | + 'basket-standard', |
|
55 | + ], |
|
56 | + 'Basket' |
|
57 | 57 | ); |
58 | 58 | $registerPlugins( |
59 | - [ |
|
60 | - 'checkout-confirm', |
|
61 | - 'checkout-standard', |
|
62 | - 'checkout-update', |
|
63 | - ], |
|
64 | - 'Checkout' |
|
59 | + [ |
|
60 | + 'checkout-confirm', |
|
61 | + 'checkout-standard', |
|
62 | + 'checkout-update', |
|
63 | + ], |
|
64 | + 'Checkout' |
|
65 | 65 | ); |
66 | 66 | $registerPlugins( |
67 | - [ |
|
68 | - 'account-download', |
|
69 | - 'account-history', |
|
70 | - 'account-favorite', |
|
71 | - 'account-profile', |
|
72 | - 'account-review', |
|
73 | - 'account-subscription', |
|
74 | - 'account-watch', |
|
75 | - ], |
|
76 | - 'Account' |
|
67 | + [ |
|
68 | + 'account-download', |
|
69 | + 'account-history', |
|
70 | + 'account-favorite', |
|
71 | + 'account-profile', |
|
72 | + 'account-review', |
|
73 | + 'account-subscription', |
|
74 | + 'account-watch', |
|
75 | + ], |
|
76 | + 'Account' |
|
77 | 77 | ); |
78 | 78 |