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