-
Notifications
You must be signed in to change notification settings - Fork 13
/
ext_localconf.php
50 lines (42 loc) · 1.79 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Configure frontend plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'JonathanHeilmann.' . $_EXTKEY,
'Pi1',
array(
'Magnificpopup' => 'show'
),
array()
);
// Save the IRRE content (use hook to change colPos)
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$_EXTKEY] = \JonathanHeilmann\JhMagnificpopup\Hooks\UpdateColPosHook::class;
// Register icon
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx-jhmagnificpopup-pi1',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/ce_wiz.png']
);
// Page TSconfig to add new content element wizard and for global enabled iframe
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.plugins.elements.tx_jhmagnificpopup_pi1 {
iconIdentifier = tx-jhmagnificpopup-pi1
title = LLL:EXT:jh_magnificpopup/Resources/Private/Language/locallang.xml:pi1_title
description = LLL:EXT:jh_magnificpopup/Resources/Private/Language/locallang.xml:pi1_plus_wiz_description
tt_content_defValues {
CType = list
list_type = jhmagnificpopup_pi1
}
}
');
// Add eID for ajax-content
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['jh_magnificpopup_ajax'] = 'EXT:' . $_EXTKEY . '/Resources/Public/Php/EidRunner.php';
//
// alpha-features::
//
$extConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['jh_magnificpopup']);
if (isset($extConfig['enableAlphaFeatures']) && $extConfig['enableAlphaFeatures'] == 1) {
}