forked from t3kit/theme_t3kit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_tables.php
72 lines (64 loc) · 3.28 KB
/
ext_tables.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
defined('TYPO3_MODE') or die();
$boot = function ($_EXTKEY) {
if (TYPO3_MODE === 'BE') {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
// Content Elements Icons
$contentElementIconFilePrefix = 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/ContentElements/';
$contentElementIcons = [
'content-elements-contentElementSlider' => 'slider.svg',
'content-elements-bigIconTextButton' => 'bigIconTextButton.svg',
'content-elements-iconTextButton' => 'iconTextButton.svg',
'content-elements-imageTextLink' => 'imageTextLink.svg',
'content-elements-logoCarousel' => 'logoCarousel.svg',
'content-elements-quote' => 'quote.svg',
'content-elements-fullWidthImage' => 'fullWidthImage.svg',
'content-elements-responsiveVideo' => 'responsiveVideo.svg',
'content-elements-socialIcons' => 'socialIcons.svg',
'content-elements-copyrightText' => 'copyrightText.svg',
'content-elements-contacts' => 'contacts.svg',
'content-elements-button' => 'button.svg',
'content-elements-heroImage' => 'heroImage.svg',
'content-elements-contactsCard' => 'contactsCard.svg'
];
foreach ($contentElementIcons as $identifier => $contentElementIcon) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . $contentElementIcon]
);
}
// Grid element icons
$gridElementsPath = 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/GridElements/';
$gridElementsIcons = [
'grid-elements-2ColumnGrid' => '2-column-grid.svg',
'grid-elements-3ColumnGrid' => '3-column-grid.svg',
'grid-elements-4ColumnGrid' => '4-column-grid.svg',
'grid-elements-adv1ColumnGrid' => 'adv1-column-grid.svg',
'grid-elements-adv2ColumnGrid' => 'adv2-column-grid.svg',
'grid-elements-adv3ColumnGrid' => 'adv3-column-grid.svg',
'grid-elements-adv4ColumnGrid' => 'adv4-column-grid.svg',
'grid-elements-collapsible' => 'collapsible.svg',
'grid-elements-collapsibleGroup' => 'collapsibleGroup.svg',
'grid-elements-parallax' => 'parallax.svg',
'grid-elements-simpleAccordion' => 'simpleAccordion.svg',
'grid-elements-tabGroup' => 'tabGroup.svg',
'grid-elements-tab' => 'tab.svg',
'grid-elements-sliderContainer' => 'sliderContainer.svg'
];
foreach ($gridElementsIcons as $identifier => $gridElementsIcon) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $gridElementsPath . $gridElementsIcon]
);
}
// Add context sensitive help (csh) for the haiku table
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tt_content',
'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_tt_content.xml'
);
}
};
$boot($_EXTKEY);
unset($boot);