-
Notifications
You must be signed in to change notification settings - Fork 19
/
ext_tables.php
executable file
·57 lines (54 loc) · 3.82 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
// Add/register icons
if (TYPO3_MODE === 'BE') {
// Add Rootline fields for default meta-tags
$TYPO3_CONF_VARS['FE']['addRootLineFields'] = 'layout,abstract,keywords,description,author,author_email,';
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= $TYPO3_CONF_VARS['FE']['addRootLineFields'];
$TYPO3_CONF_VARS['FE']['addRootLineFields'] = implode(',', array_unique(explode(',', $TYPO3_CONF_VARS['FE']['addRootLineFields'])));
// TYPO3 skin css overrides
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][]
= \KayStrobach\ThemesGridelements\Hooks\PageRenderer::class . '->addJSCSS';
// register svg icons: identifier and filename
$iconsSvg = [
'themes-backendlayout-content' => 'BackendLayouts/Content.svg',
'themes-backendlayout-contentempty' => 'BackendLayouts/ContentEmpty.svg',
'themes-backendlayout-contentstartsite' => 'BackendLayouts/ContentStartsite.svg',
'themes-backendlayout-contentmenu' => 'BackendLayouts/ContentMenu.svg',
'themes-backendlayout-contentmenusidebar' => 'BackendLayouts/ContentMenuSidebar.svg',
'themes-backendlayout-contentsidebar' => 'BackendLayouts/ContentSidebar.svg',
'themes-backendlayout-contentsidebarmenu' => 'BackendLayouts/ContentSidebarMenu.svg',
'themes-backendlayout-contentspecial' => 'BackendLayouts/ContentSpecial.svg',
'themes-backendlayout-default' => 'BackendLayouts/Default.svg',
'themes-backendlayout-menucontent' => 'BackendLayouts/MenuContent.svg',
'themes-backendlayout-menucontentsidebar' => 'BackendLayouts/MenuContentSidebar.svg',
'themes-backendlayout-menusidebarcontent' => 'BackendLayouts/MenuSidebarContent.svg',
'themes-backendlayout-sidebarcontent' => 'BackendLayouts/SidebarContent.svg',
'themes-backendlayout-sidebarcontentmenu' => 'BackendLayouts/SidebarContentMenu.svg',
'themes-backendlayout-sidebarmenucontent' => 'BackendLayouts/SidebarMenuContent.svg',
'new-content-el-2-column' => 'GridElements/new_content_el_2_Column.svg',
'new-content-el-3-column' => 'GridElements/new_content_el_3_Column.svg',
'new-content-el-4-column' => 'GridElements/new_content_el_4_Column.svg',
'new-content-el-accordion' => 'GridElements/new_content_el_Accordion.svg',
'new-content-el-carousel' => 'GridElements/new_content_el_Carousel.svg',
'new-content-el-container' => 'GridElements/new_content_el_Container.svg',
'new-content-el-row' => 'GridElements/new_content_el_Row.svg',
'new-content-el-singlecolumnheaderfooter' => 'GridElements/new_content_el_SingleColumnHeaderFooter.svg',
'new-content-el-singlecolumnhorizontal' => 'GridElements/new_content_el_SingleColumnHorizontal.svg',
'new-content-el-singlecolumnvertical' => 'GridElements/new_content_el_SingleColumnVertical.svg',
'new-content-el-tab' => 'GridElements/new_content_el_Tab.svg',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($iconsSvg as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $path]
);
}
}
},
'themes_gridelements'
);