forked from svewap/ws_flexslider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
41 lines (33 loc) · 1.24 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
call_user_func(
function ($extKey) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'WapplerSystems.' . $extKey,
'Pi1',
array(
'Flexslider' => 'list',
),
// non-cacheable actions
array()
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ws_flexslider/Configuration/TSconfig/ContentElementWizard.txt">');
if (TYPO3_MODE === 'BE') {
$icons = [
'ext-wsflexslider-wizard-icon' => 'plugin_wizard.png',
'ext-wsflexslider-image' => 'picture.png',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:'.$extKey.'/Resources/Public/Icons/' . $path]
);
}
}
},
'ws_flexslider'
);