Index: /home/ligaard/gt3/www/typo3coresvn/typo3/alt_intro.php =================================================================== --- /home/ligaard/gt3/www/typo3coresvn/typo3/alt_intro.php (revision 2974) +++ /home/ligaard/gt3/www/typo3coresvn/typo3/alt_intro.php (working copy) @@ -111,7 +111,7 @@ $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId; $this->content.= $TBE_TEMPLATE->startPage('About modules'); - $this->content .= ' + $modularContent['parts']['introText'] = '
'.t3lib_BEfunc::TYPO3_copyRightNotice().'
'; @@ -116,10 +116,10 @@'.t3lib_BEfunc::TYPO3_copyRightNotice().'
'; - $this->content .= ' + $modularContent['parts']['displayWarningMessages'] = ' '.t3lib_BEfunc::displayWarningMessages(); - $this->content .= ' + $modularContent['parts']['introText2'] = ''.$LANG->getLL('introtext2').'
'; @@ -124,15 +124,15 @@ // Printing the description of the modules available - $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1); - $this->content.='('.$LANG->getLL('endText').')
'; - $this->content.='('.$LANG->getLL('endText').')
'; + $modularContent['parts']['endText'] .=''. + $modularContent['parts']['loggedInUser'] ='
'.
htmlspecialchars($LANG->getLL('userInfo')).
sprintf(' %s (%s)',
$BE_USER->user['username'],
@@ -143,7 +143,31 @@
';
// End page
- $this->content.= $TBE_TEMPLATE->endPage();
+ $modularContent['parts']['endPage'].= $TBE_TEMPLATE->endPage();
+
+ // Default order (can be changed by hook below)
+ $modularContent['order'] = array('introText','displayWarningMessages','introText2','moduleDescriptions','endText','loggedInUser','endPage');
+
+ // Hook: postProcessIntroContentArray
+
+ $hookObjectsArr = array();
+ if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_intro.php']['processIntroContentArray'])) {
+ foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_intro.php']['processIntroContentArray'] as $classRef) {
+ $hookObjectsArr[] = t3lib_div::getUserObj($classRef);
+ }
+ }
+
+ reset($hookObjectsArr);
+ while (list(,$hookObj) = each($hookObjectsArr)) {
+ if (method_exists($hookObj,'processIntroContentArray')) {
+ $modularContent = $hookObj->processIntroContentArray($modularContent);
+ }
+ }
+
+ $this->content = empty($this->content) ? '' : $this->content;
+ foreach ($modularContent['order'] as $part) {
+ $this->content .= $modularContent['parts'][$part];
+ }
}
/**