88 lines
2.4 KiB
PHP
88 lines
2.4 KiB
PHP
<?php
|
|
|
|
defined('TYPO3_MODE') or die();
|
|
|
|
call_user_func(function() {
|
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
|
|
'ep_events',
|
|
'Configuration/TypoScript',
|
|
'EP Events'
|
|
);
|
|
|
|
// Add category page type
|
|
$GLOBALS['PAGES_TYPES'][\EP\EpEvents\Constants::PAGETYPE_CATEGORY] = [
|
|
'type' => 'web',
|
|
'allowedTables' => '*',
|
|
];
|
|
|
|
// Add offer page type
|
|
$GLOBALS['PAGES_TYPES'][\EP\EpEvents\Constants::PAGETYPE_OFFER] = [
|
|
'type' => 'web',
|
|
'allowedTables' => '*',
|
|
];
|
|
|
|
// Register icons
|
|
$icons = [
|
|
'apps-pagetree-category-page' => 'EXT:ep_events/Resources/Public/images/apps-pagetree-category-page.svg',
|
|
'apps-pagetree-example-page' => 'EXT:ep_events/Resources/Public/images/apps-pagetree-example-page.svg',
|
|
];
|
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
|
foreach ($icons as $identifier => $path) {
|
|
$iconRegistry->registerIcon(
|
|
$identifier,
|
|
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
|
['source' => $path]
|
|
);
|
|
}
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'OfferTeasers',
|
|
'EP Events: Reisebeispiele Slider'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'Testimonials',
|
|
'EP Events: Testimonials Slider'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'Contacts',
|
|
'EP Events: Team'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'ActivityTeasers',
|
|
'EP Events: Programmpunkte Slider'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'ActivityDetail',
|
|
'EP Events: Programmpunkt Detail'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'ContactForm',
|
|
'EP Events: Kontaktformular'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'Configurator',
|
|
'EP Events: Anfragurator'
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
'EP.EpEvents',
|
|
'SearchResult',
|
|
'EP Events: Suchergebnis'
|
|
);
|
|
|
|
});
|