-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathext_localconf.php
66 lines (55 loc) · 2.8 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
63
64
65
66
<?php
defined('TYPO3_MODE') || die();
call_user_func(function() {
$extensionKey = "typo3themeskeleton";
// Typo3 extension manager gearwheel icon (ext_conf_template.txt)
$rtePresets = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get($extensionKey, "rtePresets");
// Register own rte ckeditor config
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['rte_theme'] = $rtePresets;
// Add addRootLineFields for example slide in TypoScript
$rootLineFields = &$GLOBALS["TYPO3_CONF_VARS"]["FE"]["addRootLineFields"];
if (trim($rootLineFields) != "") $rootLineFields .= ',';
$rootLineFields .= 'backend_layout';
// register svg icons: identifier and filename
$iconsPng = [
// BackendLayouts
'hh_one_column' => 'BackendIcons/header-1col.png',
'hh_navaside_left' => 'BackendIcons/header-sidenav-left.png',
// Gridelements
'hh_grid_1_column' => 'gridelements/1_column.png',
'hh_grid_2_column' => 'gridelements/2_column.png',
'hh_grid_3_column' => 'gridelements/3_column.png',
'hh_grid_4_column' => 'gridelements/4_column.png',
'hh_grid_25-75_column' => 'gridelements/25-75.png',
'hh_grid_33-66_column' => 'gridelements/33-66.png',
'hh_grid_66-33_column' => 'gridelements/66-33.png',
'hh_grid_75-25_column' => 'gridelements/75-25.png',
'hh_grid_slider' => 'gridelements/slider.png',
'hh_grid_tabs' => 'gridelements/tabs.png'
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
foreach ($iconsPng as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => "EXT:{$extensionKey}/Resources/Public/Images/{$path}"]
);
};
// Add UserTS config as default for all BE users
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:typo3themeskeleton/Configuration/TsConfig/User/0100_default.typoscript">');
// AJAX eID
// $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['hhtheme'] = "EXT:{$extensionKey}/Classes/EidApi/index.php";
// after Install - disable not used extensions
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
'afterExtensionInstall',
GroundStack\Typo3ThemeSkeleton\Signals\AfterExtensionInstall::class,
'disableExtensions'
);
});