[TASK] Cleanup ext_localconf.php of sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 // unserializing the configuration so we can use it here:
6 $_EXTCONF = unserialize($_EXTCONF);
7 if (!$_EXTCONF || $_EXTCONF['setPageTSconfig']) {
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/pageTSconfig.txt">');
9 }
10 if (!$_EXTCONF || $_EXTCONF['removePositionTypes']) {
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
12 TCEFORM.tt_content.imageorient.types.image.removeItems = 8,9,10,17,18,25,26
13 ');
14 }
15
16 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_headertag'] = array(
17 'title' => 'CSS Styled Content: &lt;header&gt; tag only when needed',
18 'version' => 6002000,
19 'description' => '<p>lib.stdheader: The &lt;header&gt; tag now only wraps the header if the header element has a date set, else the output is just a straight &lt;hX&gt; tag.</p>',
20 );
21
22 // Mark the delivered TypoScript templates as "content rendering template" (providing the hooks of "static template 43" = content (default))
23 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/';
24 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/v6.1/';
25 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/v6.0/';
26 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/v4.7/';
27 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/v4.6/';
28 $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'][] = 'cssstyledcontent/static/v4.5/';