forked from t3kit/theme_t3kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
74 lines (61 loc) · 3.07 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
67
68
69
70
71
72
73
74
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (!TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('frontend_editing')) {
// Add an empty placeholder viewhelper if the EXT:frontend_editing is not active
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['core'][] = 'T3kit\\themeT3kit\\ViewHelpers';
}
$GLOBALS['TYPO3_CONF_VARS']
['SC_OPTIONS']
['cms/layout/class.tx_cms_layout.php']
['tt_content_drawItem']
['imageTextLink'] = \T3kit\themeT3kit\Hooks\ImageTextLinkPreviewRenderer::class;
// Register data handler hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$_EXTKEY] =
\T3kit\themeT3kit\Hooks\DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][$_EXTKEY] =
\T3kit\themeT3kit\Hooks\DataHandlerHook::class;
/**
* Load predefined configuration of fixedPostVars
*/
$extConf = \T3kit\themeT3kit\Utility\HelperUtility::getExtConf();
if (is_array($extConf) && $extConf['fixedPostVarsConfigurationfFile']) {
$filePath = PATH_site . trim($extConf['fixedPostVarsConfigurationfFile']);
}
if (isset($filePath) && file_exists($filePath)) {
require_once($filePath);
} else {
/** @noinspection PhpIncludeInspection */
@include_once(PATH_site . 'typo3conf/ext/theme_t3kit/Configuration/Realurl/predefined_fixedPostVars_conf.php');
}
// To enable dynamic fixed pages, following code needs to be added to realurl_conf.php to include the generated file
// Fixed pages, dynamically created (shorter url)
/*
$fixedPostVarsConfigurationUtility = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\T3kit\themeT3kit\Utility\FixedPostVarsConfigurationUtility::class
);
$fixedPostVarsFile = $fixedPostVarsConfigurationUtility->getSaveFilePath();
if (file_exists($fixedPostVarsFile)) {
\TYPO3\CMS\Core\Utility\GeneralUtility::requireOnce($fixedPostVarsFile);
}
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['imageTextLink']
= \T3kit\themeT3kit\Hooks\ImageTextLinkPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['t3kit'][] = 'T3kit\\themeT3kit\\ViewHelpers';
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['t3kit_default']
= 'EXT:theme_t3kit/Resources/Private/Extensions/RTE/Default.yaml';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\DmitryDulepov\Realurl\Utility::class]['className']
= \T3kit\themeT3kit\Xclass\Realurl\Utility::class;
$GLOBALS['TYPO3_CONF_VARS']['BE']['interfaces'] = 'frontend,backend';
// register to signal slot from SystemInformationToolbarItem to include
// Themes Development Mode constant setting per "siteroot" to system information
$signalSlotDispatcher = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class
);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class,
'getSystemInformation',
\T3kit\themeT3kit\Slot\GetSystemInformationSlot::class,
'getSystemInformation'
);