-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
54 lines (41 loc) · 1.89 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
<?php
if (!defined ('TYPO3')) die ('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43('jvchat','','_pi1','list_type',0);
$iconRegistry =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extension-jvchat',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:jvchat/Resources/Public/Icons/Extension.svg']
);
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
jvchat {
iconIdentifier = extension-jvchat
title = LLL:EXT:jvchat/Resources/Private/Language/locallang.xlf:pi1_title
description = LLL:EXT:jvchat/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description
tt_content_defValues {
CType = list
list_type = jvchat_pi1
}
}
}
show = *
}
}'
);
/** @var \TYPO3\CMS\Core\Information\Typo3Version $version */
$version = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Information\Typo3Version');
if ($version->getMajorVersion() < 10) {
// @todo remove once TYPO3 8.6.x support is dropped
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_jvchat_pi1'] = 'EXT:jvchat/Classes/Eid/JvchatEid.php';
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['JV\Jvchat\Scheduler\MailchatsTask'] = array(
'extension' => 'jvchat',
'title' => 'Send New Chat Notifications',
'description' => 'set only frequency ',
'additionalFields' => 'JV\Jvchat\Scheduler\MailchatsTaskAdditionalFieldProvider'
);