-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
62 lines (57 loc) · 2.22 KB
/
Copy pathext_localconf.php
File metadata and controls
62 lines (57 loc) · 2.22 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* This file is part of the web-tp3/tp3-facebook.
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
defined('TYPO3_MODE') || die('Access denied.');
// wizards
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
FBPlugin {
iconIdentifier = ext-' . $_EXTKEY . '-wizard-icon
title = LLL:EXT:tp3_facebook/Resources/Private/Language/locallang_db.xlf:tx_tp3_facebook_domain_model_fbplugin
description = LLL:EXT:tp3_facebook/Resources/Private/Language/locallang_db.xlf:tx_tp3_facebook_domain_model_fbplugin.description
tt_content_defValues {
CType = list
list_type = tp3facebook_fbplugin
}
}
}
show = *
}
}'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Tp3.Tp3Facebook',
'FBPlugin',
[
'FBPlugin' => 'list, show'
],
// non-cacheable actions
[
'FBPlugin' => 'share'
]
);
/*
* Icons
*/
if (TYPO3_MODE === 'BE') {
$icons = [
'ext-' . $_EXTKEY . '-wizard-icon' => 'user_plugin_fbplugin.svg',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/' . $path]
);
}
}
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 10004000) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\Tp3\Tp3Facebook\Updates\Tp3FacebookpluginUpdate::class]
= \Tp3\Tp3Facebook\Updates\Tp3FacebookpluginUpdate::class;
}