2020-09-21 16:36:01 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
(function (string $extKey) {
|
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
|
|
|
"@import 'EXT:" . $extKey . "/Configuration/PageTSconfig/*.tsconfig'"
|
|
|
|
);
|
|
|
|
|
|
|
|
$icons = [
|
|
|
|
'skill',
|
2020-09-22 14:03:20 +02:00
|
|
|
'skillset',
|
2020-09-21 16:36:01 +02:00
|
|
|
];
|
|
|
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
|
|
|
|
\TYPO3\CMS\Core\Imaging\IconRegistry::class
|
|
|
|
);
|
|
|
|
foreach ($icons as $icon) {
|
|
|
|
$iconRegistry->registerIcon(
|
|
|
|
'skilldisplay-' . $icon,
|
|
|
|
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
|
|
|
|
[
|
|
|
|
'source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $icon . '.png',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$extKey] =
|
|
|
|
\SkillDisplay\Typo3Extension\Backend\Preview::class;
|
|
|
|
})('skilldisplay');
|