forked from t3kit/theme_t3kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
106 lines (98 loc) · 4.37 KB
/
ext_tables.php
File metadata and controls
106 lines (98 loc) · 4.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$contentElementIconFilePrefix = 'EXT:' . $_EXTKEY . '/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);
$iconRegistry->registerIcon(
'content-elements-accordion',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'accordion.svg']
);
$iconRegistry->registerIcon(
'content-elements-contentElementSlider',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'slider.svg']
);
$iconRegistry->registerIcon(
'content-elements-bigIconTextButton',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'bigIconTextButton.svg']
);
$iconRegistry->registerIcon(
'content-elements-iconTextButton',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'iconTextButton.svg']
);
$iconRegistry->registerIcon(
'content-elements-imageTextLink',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'imageTextLink.svg']
);
$iconRegistry->registerIcon(
'content-elements-logoCarousel',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'logoCarousel.svg']
);
$iconRegistry->registerIcon(
'content-elements-quote',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'quote.svg']
);
$iconRegistry->registerIcon(
'content-elements-tabs',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'tabs.svg']
);
$iconRegistry->registerIcon(
'content-elements-fullWidthImage',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'fullWidthImage.svg']
);
$iconRegistry->registerIcon(
'content-elements-responsiveVideo',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'responsiveVideo.svg']
);
$iconRegistry->registerIcon(
'content-elements-socialIcons',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'socialIcons.svg']
);
$iconRegistry->registerIcon(
'content-elements-copyrightText',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'copyrightText.svg']
);
$iconRegistry->registerIcon(
'content-elements-contacts',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $contentElementIconFilePrefix . 'contacts.svg']
);
// 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'
);
/***************
* Custom content elements
*/
# PageTS custom content elements
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
$_EXTKEY,
'Configuration/PageTS/custom_content_elements.txt',
'EXT:theme_t3kit :: Enable Custom Content Elemets (fileadmin/templates/...)'
);
# Static files for custom content elements
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
$_EXTKEY,
'Configuration/TypoScript/CustomContentElements/',
'EXT:theme_t3kit :: Enable Custom Content Elemets (fileadmin/templates/...)'
);
// Include ext_tables from 'custom_content_elements'
if (is_file(PATH_site . 'fileadmin/templates/theme_t3kit/custom_content_elements/Configuration/Backend/ext_tables.php')) {
require_once(PATH_site . 'fileadmin/templates/theme_t3kit/custom_content_elements/Configuration/Backend/ext_tables.php');
}
}