-
Notifications
You must be signed in to change notification settings - Fork 38
/
ext_localconf.php
62 lines (56 loc) · 2.18 KB
/
ext_localconf.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
<?php
use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
(static function () {
// register icons
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-col2',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/gridlayout_col2.gif']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-col3',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/gridlayout_col3.gif']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-col4',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/gridlayout_col4.gif']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-simpletabs',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/grid_simpletabs.png']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-tabs4',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/grid_tabs4.png']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-tabs6',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/grid_tabs6.png']
);
$iconRegistry->registerIcon(
'tx-bootstrapgrids-accordion',
BitmapIconProvider::class,
['source' => 'EXT:bootstrap_grids/Resources/Public/Icons/grid_accordion.png']
);
// Add pageTS config
ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:bootstrap_grids/Configuration/TypoScript/pageTs/tsconfig.ts">');
if(getenv('TYPO3_CONTEXT') === 'Development/BootstrapGrids/Docker') {
ExtensionManagementUtility::addTypoScript(
'bootstrap_grids',
'setup',
"@import 'EXT:bootstrap_grids/Configuration/TypoScript/Contribution/setup.typoscript'",
);
}
})();