forked from RozbehSharahi/bootstrap_grids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
56 lines (53 loc) · 2.08 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
<?php
defined('TYPO3') or die();
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;
call_user_func(
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">'
);
}
);