forked from JeremyX9/session_popup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
47 lines (42 loc) · 1.74 KB
/
ext_localconf.php
File metadata and controls
47 lines (42 loc) · 1.74 KB
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
<?php
defined('TYPO3') || die('Access denied.');
(static function(): void {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SessionPopup',
'Sessionpopup',
[
\Webschmiede\SessionPopup\Controller\PopupController::class => 'show'
],
// non-cacheable actions
[
\Webschmiede\SessionPopup\Controller\PopupController::class => 'show'
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.ext-sessionpopup {
header = Session Popup
after = common
elements {
sessionpopup {
iconIdentifier = session_popup-plugin-sessionpopup
title = LLL:EXT:session_popup/Resources/Private/Language/locallang_db.xlf:tx_session_popup_sessionpopup.name
description = LLL:EXT:session_popup/Resources/Private/Language/locallang_db.xlf:tx_session_popup_sessionpopup.description
tt_content_defValues {
CType = sessionpopup_sessionpopup
}
}
}
show = *
}
}'
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'session_popup-plugin-sessionpopup',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:session_popup/Resources/Public/Icons/user_plugin_sessionpopup.svg']
);
})();