-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_tables.php
More file actions
57 lines (50 loc) · 1.74 KB
/
Copy pathext_tables.php
File metadata and controls
57 lines (50 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
48
49
50
51
52
53
54
55
56
57
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$testElementIconFilePrefix = 'EXT:theme_test/Resources/Public/Icons/ContentElements/';
$t3kitElementIconFilePrefix = 'EXT:theme_t3kit/Resources/Public/Icons/ContentElements/';
if (TYPO3_MODE === 'BE') {
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
// iconTextColor
$iconRegistry->registerIcon(
'content-elements-iconTextColor',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => $t3kitElementIconFilePrefix . 'element.svg'
]
);
// imageHeaderLink
$iconRegistry->registerIcon(
'content-elements-imageHeaderLink',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => $t3kitElementIconFilePrefix . 'element.svg'
]
);
// iconHeader
$iconRegistry->registerIcon(
'content-elements-iconHeader',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => $t3kitElementIconFilePrefix . 'element.svg'
]
);
// imageTextSections
$iconRegistry->registerIcon(
'content-elements-imageTextSection',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => $t3kitElementIconFilePrefix . 'element.svg'
]
);
// contentCarousel
$iconRegistry->registerIcon(
'content-elements-contentCarousel',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => $t3kitElementIconFilePrefix . 'element.svg'
]
);
}