| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- defined('TYPO3_MODE') || die('Access denied.');
- call_user_func(
- function()
- {
- \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
- 'Opentalent.OtWidgets',
- 'Events',
- [
- 'Event' => 'preview'
- ],
- // non-cacheable actions
- [
- 'Event' => '',
- ]
- );
- \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
- 'Opentalent.OtWidgets',
- 'AllEvents',
- [
- 'Event' => 'index,show,noEvents'
- ],
- // non-cacheable actions
- [
- 'Event' => '',
- ]
- );
- \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
- 'Opentalent.OtWidgets',
- 'Donors',
- [
- 'Donor' => 'getDonors'
- ],
- // non-cacheable actions
- [
- ]
- );
- \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
- 'Opentalent.OtWidgets',
- 'Members',
- [
- 'Member' => 'getMembers,getMembersCa'
- ],
- // non-cacheable actions
- [
- ]
- );
- // wizards
- \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
- 'mod {
- wizards.newContentElement.wizardItems.plugins {
- elements {
- events {
- iconIdentifier = ot_widgets-plugin-events
- title = LLL:EXT:ot_widgets/Resources/Private/Language/locallang_db.xlf:tx_ot_widgets_events.name
- description = LLL:EXT:ot_widgets/Resources/Private/Language/locallang_db.xlf:tx_ot_widgets_events.description
- tt_content_defValues {
- CType = list
- list_type = otwidgets_events
- }
- }
- donors {
- iconIdentifier = ot_widgets-plugin-donors
- title = LLL:EXT:ot_widgets/Resources/Private/Language/locallang_db.xlf:tx_ot_widgets_donors.name
- description = LLL:EXT:ot_widgets/Resources/Private/Language/locallang_db.xlf:tx_ot_widgets_donors.description
- tt_content_defValues {
- CType = list
- list_type = otwidgets_donors
- }
- }
- }
- show = *
- }
- }'
- );
- $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
-
- $iconRegistry->registerIcon(
- 'ot_widgets-plugin-events',
- \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
- ['source' => 'EXT:ot_widgets/Resources/Public/Icons/user_plugin_events.svg']
- );
-
- $iconRegistry->registerIcon(
- 'ot_widgets-plugin-donors',
- \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
- ['source' => 'EXT:ot_widgets/Resources/Public/Icons/user_plugin_donors.svg']
- );
-
- }
- );
|