Feature #18075 ยป modular-alt_intro.patch
/home/ligaard/gt3/www/typo3coresvn/typo3/alt_intro.php (working copy) | ||
---|---|---|
$TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId;
|
||
$this->content.= $TBE_TEMPLATE->startPage('About modules');
|
||
$this->content .= '
|
||
$modularContent['parts']['introText'] = '
|
||
<h1>TYPO3 '.TYPO3_version.'<br />'.$LANG->getLL('introtext').'</h1>
|
||
<p>'.t3lib_BEfunc::TYPO3_copyRightNotice().'</p>';
|
||
... | ... | |
<p>'.t3lib_BEfunc::TYPO3_copyRightNotice().'</p>';
|
||
$this->content .= '
|
||
$modularContent['parts']['displayWarningMessages'] = '
|
||
'.t3lib_BEfunc::displayWarningMessages();
|
||
$this->content .= '
|
||
$modularContent['parts']['introText2'] = '
|
||
<p>'.$LANG->getLL('introtext2').'</p>';
|
||
... | ... | |
// Printing the description of the modules available
|
||
$this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
|
||
$this->content.='<br />';
|
||
$modularContent['parts']['moduleDescriptions'] =$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
|
||
$modularContent['parts']['moduleDescriptions'] .='<br />';
|
||
// end text: 'Features may vary depending on your website and permissions'
|
||
$this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
|
||
$this->content.='<hr />';
|
||
$modularContent['parts']['endText'] ='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
|
||
$modularContent['parts']['endText'] .='<hr />';
|
||
// Logged in user, eg: 'You're logged in as user: admin (John Doe, john@doe.email)'
|
||
$this->content.='<p class="c-user">'.
|
||
$modularContent['parts']['loggedInUser'] ='<p class="c-user">'.
|
||
htmlspecialchars($LANG->getLL('userInfo')).
|
||
sprintf(' <strong>%s</strong> (%s)',
|
||
$BE_USER->user['username'],
|
||
... | ... | |
<br />';
|
||
// 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];
|
||
}
|
||
}
|
||
/**
|