[TASK] Separate ext:statictemplates code from core
[Packages/TYPO3.CMS.git] / typo3 / sysext / statictemplates / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'][] =
6 'TYPO3\\CMS\\Statictemplates\\StaticTemplatesHook->includeStaticTypoScriptSources';
7
8 // Register GMENU_LAYERS, GMENU_FOLDOUT and TMENU_LAYERS menu objects
9 /** @var $menuContentObjectFactory \TYPO3\CMS\Frontend\ContentObject\Menu\MenuContentObjectFactory */
10 $menuContentObjectFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
11 'TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\MenuContentObjectFactory'
12 );
13 $menuContentObjectFactory->registerMenuType(
14 'GMENU_LAYERS',
15 'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\GraphicalMenuLayersContentObject'
16 );
17 $menuContentObjectFactory->registerMenuType(
18 'GMENU_FOLDOUT',
19 'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\GraphicalMenuFoldoutContentObject'
20 );
21 $menuContentObjectFactory->registerMenuType(
22 'TMENU_LAYERS',
23 'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\TextMenuLayersContentObject'
24 );
25 ?>