-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_tables.php
120 lines (103 loc) · 4.14 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
use Mindshape\MindshapeSeo\Controller\BackendController;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die();
call_user_func(function () {
ExtensionManagementUtility::addLLrefForTCAdescr('tx_mindshapeseo_domain_model_configuration', 'EXT:mindshape_seo/Resources/Private/Language/locallang.xlf');
if ((new Typo3Version())->getMajorVersion() < 12) {
ExtensionUtility::registerModule(
'MindshapeSeo',
'mindshapeseo',
'',
'after:web',
[],
[
'access' => 'user,group',
'iconIdentifier' => 'module-mindshapeseo',
'labels' => 'LLL:EXT:mindshape_seo/Resources/Private/Language/locallang_backend_seo_mainmodule.xlf',
]
);
ExtensionUtility::registerModule(
'MindshapeSeo',
'mindshapeseo',
'preview',
'',
[BackendController::class => 'preview'],
[
'access' => 'user,group',
'iconIdentifier' => 'module-mindshapeseo-preview',
'labels' => 'LLL:EXT:mindshape_seo/Resources/Private/Language/locallang_backend_preview.xlf',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
ExtensionUtility::registerModule(
'MindshapeSeo',
'mindshapeseo',
'settings',
'',
[BackendController::class => 'settings, saveConfiguration'],
[
'access' => 'user,group',
'iconIdentifier' => 'module-mindshapeseo-settings',
'labels' => 'LLL:EXT:mindshape_seo/Resources/Private/Language/locallang_backend_settings.xlf',
]
);
}
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'module-mindshapeseo-preview',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/seo-preview.svg']
);
$iconRegistry->registerIcon(
'module-mindshapeseo-settings',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/seo-settings.svg']
);
$iconRegistry->registerIcon(
'module-mindshapeseo',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/pie-chart.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-warning',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/exclamation-circle.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-error',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/exclamation-triangle.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-success',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/check-circle.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-caret-up',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/caret-up.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-caret-down',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/caret-down.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-angle-up',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/angle-up.svg']
);
$iconRegistry->registerIcon(
'provider-fontawesome-angle-down',
SvgIconProvider::class,
['source' => 'EXT:mindshape_seo/Resources/Public/Icons/FontAwesome/angle-down.svg']
);
});