forked from evoWeb/sessionplaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
121 lines (110 loc) · 2.97 KB
/
ext_localconf.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/*
* This file is part of the package evoweb\sessionplaner.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
defined('TYPO3_MODE') || die('Access denied.');
/**
* Register "sessionplannervh" as global fluid namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['sessionplanervh'][] = 'Evoweb\\Sessionplaner\\ViewHelpers';
/**
* Register Icons
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$icons = [
'plugin-display',
'plugin-session',
'plugin-suggest',
'plugin-speaker',
'record-day',
'record-room',
'record-session',
'record-slot',
'record-tag',
'record-speaker',
];
foreach ($icons as $icon) {
$iconRegistry->registerIcon(
'sessionplaner-' . $icon,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:sessionplaner/Resources/Public/Icons/' . $icon . '.svg']
);
}
/**
* Add default PageTsConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sessionplaner/Configuration/PageTS/ModWizards.tsconfig">'
);
/**
* Register Update Wizards
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\Evoweb\Sessionplaner\Updates\SessionPathSegmentUpdate::class]
= \Evoweb\Sessionplaner\Updates\SessionPathSegmentUpdate::class;
/**
* Configure Suggest Frontend Plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Evoweb.sessionplaner',
'Suggest',
[
'Suggest' => 'new, create',
],
[
'Suggest' => 'new, create',
]
);
/**
* Configure Session Frontend Plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Evoweb.sessionplaner',
'Session',
[
'Session' => 'list, show',
]
);
/**
* Configure Sessionplan Frontend Plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Evoweb.sessionplaner',
'Sessionplan',
[
'Sessionplan' => 'display',
]
);
/**
* Configure Speaker Frontend Plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Evoweb.sessionplaner',
'Speaker',
[
'Speaker' => 'list, show',
]
);
/**
* Register Title Provider
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
config.pageTitleProviders {
event {
provider = Evoweb\Sessionplaner\TitleTagProvider\EventTitleTagProvider
before = seo
after = altPageTitle
}
speaker {
provider = Evoweb\Sessionplaner\TitleTagProvider\SpeakerTitleTagProvider
before = seo
after = altPageTitle
}
}
'));