-
Notifications
You must be signed in to change notification settings - Fork 25
/
ext_localconf.php
80 lines (73 loc) · 3.14 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
75
76
77
78
79
80
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Include Frontend Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Luxletter',
'Fe',
[\In2code\Luxletter\Controller\FrontendController::class => 'unsubscribe'],
[\In2code\Luxletter\Controller\FrontendController::class => 'unsubscribe'],
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Luxletter',
'Unsubscribe2',
[\In2code\Luxletter\Controller\FrontendController::class => 'unsubscribe2,unsubscribe2Update'],
[\In2code\Luxletter\Controller\FrontendController::class => 'unsubscribe2,unsubscribe2Update'],
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Luxletter',
'Preview',
[\In2code\Luxletter\Controller\FrontendController::class => 'preview'],
[\In2code\Luxletter\Controller\FrontendController::class => 'preview'],
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Luxletter',
'TrackingPixel',
[\In2code\Luxletter\Controller\FrontendController::class => 'trackingPixel'],
[\In2code\Luxletter\Controller\FrontendController::class => 'trackingPixel'],
);
/**
* Fluid Namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['luxletter'][] = 'In2code\Luxletter\ViewHelpers';
/**
* Add an absRefPrefix for FluidStyledMailContent to prefix images with absolute paths
* Todo: Can be removed if TYPO3 11 support is dropped and should be replaced with `fluidStyledMailContent.config.forceAbsoluteUrls = 1`
*/
if (\TYPO3\CMS\Core\Core\Environment::isCli() === false) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'luxletterFluidStyledMailContent',
'setup',
'fluidStyledMailContent.config.absRefPrefix = '
. \In2code\Luxletter\Utility\ConfigurationUtility::getCurrentDomain()
);
}
/**
* Update Wizards
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['luxletterReceiversUpdateWizard']
= \In2code\Luxletter\Update\LuxletterReceiversUpdateWizard::class;
/**
* Add TypoScript automatically (to use it in backend modules)
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'Luxletter',
'setup',
'@import "EXT:luxletter/Configuration/TypoScript/Basic/setup.typoscript"'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'Luxletter',
'constants',
'@import "EXT:luxletter/Configuration/TypoScript/Basic/constants.typoscript"'
);
/**
* CacheHash: Add LUX paramters to excluded variables
*/
\In2code\Luxletter\Utility\CacheHashUtility::addArgumentsToExcludedVariables();
}
);