[TASK] Merge submodule version into core
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 //replace old Login
6 $pluginContent = trim('
7 plugin.tx_felogin_pi1 = USER_INT
8 plugin.tx_felogin_pi1 {
9 includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
10 userFunc = tx_felogin_pi1->main
11 }
12 ');
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
14 # Setting ' . $_EXTKEY . ' plugin TypoScript
15 ' . $pluginContent);
16 $addLine = '
17 tt_content.login = COA
18 tt_content.login {
19 10 = < lib.stdheader
20 20 >
21 20 = < plugin.tx_felogin_pi1
22 }
23 ';
24 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
26 mod.wizards.newContentElement.wizardItems.forms {
27 elements {
28 login {
29 icon = gfx/c_wiz/login_form.gif
30 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title
31 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_description
32 tt_content_defValues {
33 CType = login
34 }
35 }
36 }
37 show :=addToList(login)
38 }
39 ');
40
41 // Page module hook
42 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] =
43 'EXT:' . $_EXTKEY . '/Classes/Hooks/CmsLayout.php:TYPO3\CMS\Felogin\Hooks\CmsLayout';
44
45 ?>