-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
22 lines (19 loc) · 1.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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied!');
}
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if ((bool)$extensionConfiguration['enableEmbedYouTubeHelper'] === true) {
// register embed youtube helper
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['onlineMediaHelpers']['youtube'] = WEBcoast\Typo3BaseSetup\Resources\OnlineMedia\Helpers\EmbedYouTubeHelper::class;
}
/** @var \TYPO3\CMS\Core\Configuration\ExtensionConfiguration $extensionConfiguration */
$extensionConfiguration = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class);
if ($extensionConfiguration->get('typo3_base_setup', 'enablePictureTagRenderer')) {
$rendererRegistry = TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(WEBcoast\Typo3BaseSetup\Resources\Rendering\PictureTagRenderer::class);
}
if ($extensionConfiguration->get('typo3_base_setup', 'enableEmbedRenderer')) {
$rendererRegistry = TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(WEBcoast\Typo3BaseSetup\Resources\Rendering\EmbedRenderer::class);
}