Files
website-typo3/public/typo3conf/ext/ep_theme/ext_tables.php
T

40 lines
1.6 KiB
PHP

<?php
defined('TYPO3_MODE') or die();
call_user_func(function () {
if ($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] !== '') {
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',';
}
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= 'og_image';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_eptheme_domain_model_slide');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_eptheme_domain_model_lineup');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_eptheme_domain_model_badge');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_eptheme_domain_model_addresscheck');
if (TYPO3_MODE === 'BE') {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'content-ep_theme-ce',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:ep_theme/Resources/Public/images/logo.svg']
);
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'EP.EpTheme',
'web',
'management',
'after:list',
[
'Backend' => 'listPages',
],
[
'access' => 'user,group',
'labels' => 'LLL:EXT:ep_theme/Resources/Private/Language/locallang_mod.xlf',
'icon' => 'EXT:ep_products/Resources/Public/Icons/logo.svg'
]
);
});