[BUGFIX] Improve styling of TS-Objectbrowsers edit view
[Packages/TYPO3.CMS.git] / typo3 / sysext / tstemplate / ext_tables.php
index 1d8c247..cc5dcc9 100644 (file)
@@ -1,5 +1,51 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE')  t3lib_extMgm::addModule('web', 'ts', '', t3lib_extMgm::extPath($_EXTKEY).'ts/');
-?>
\ No newline at end of file
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+               'web',
+               'ts',
+               '',
+               'EXT:tstemplate/Modules/TsTemplate/',
+               array(
+                       'script' => '_DISPATCH',
+                       'access' => 'admin',
+                       'name' => 'web_ts',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => 'EXT:tstemplate/Resources/Public/Icons/module-tstemplate.svg',
+                               ),
+                               'll_ref' => 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_mod.xlf',
+                       ),
+               )
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_ts',
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:constantEditor'
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_ts',
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:infoModify'
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_ts',
+               \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:objectBrowser'
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_ts',
+               \TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::class,
+               NULL,
+               'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:templateAnalyzer'
+       );
+
+}