-
Notifications
You must be signed in to change notification settings - Fork 5
/
ext_localconf.php
62 lines (54 loc) · 2.49 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
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] =
\AndrasOtto\Csp\Hooks\TypoScriptFrontendControllerHook::class . '->contentPostProcAll';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['csp'] =
'EXT:csp/Classes/Hooks/PageLayoutView.php:AndrasOtto\Csp\Hooks\PageLayoutView';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][\AndrasOtto\Csp\Evaluation\DataAttributeEvaluation::class] = '';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_adminpanel.php']['extendAdminPanel'][] =
\AndrasOtto\Csp\Hooks\AdminPanelViewHook::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], [
"SCRIPT" => \AndrasOtto\Csp\ContentObject\ScriptContentObject::class
]);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'AndrasOtto.csp',
'IframePlugin',
[
'Iframe' => 'render'
],
[]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.special {
elements {
csp_iframe {
icon = ' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('csp') . 'Resources/Public/Backend/Images/csp.png
title = LLL:EXT:csp/Resources/Private/Language/newContentElements.xlf:iframe.title
description = LLL:EXT:csp/Resources/Private/Language/newContentElements.xlf:iframe.description
tt_content_defValues {
CType = list
list_type = csp_iframeplugin
}
}
}
show := addToList(csp_iframe)
}
}'
);
/** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
$rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(\AndrasOtto\Csp\Resource\Rendering\YouTubeRenderer::class);
$rendererRegistry->registerRendererClass(\AndrasOtto\Csp\Resource\Rendering\VimeoRenderer::class);
unset($rendererRegistry);