forked from t3kit/theme_t3kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
55 lines (45 loc) · 2.22 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$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;