2 /***************************************************************
5 * (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
28 * 'About modules' script - the default start-up module.
29 * Will display the list of main- and sub-modules available to the user.
30 * Each module will be show with description and a link to the module.
33 * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
36 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
39 * [CLASS/FUNCTION INDEX of SCRIPT]
43 * 75: class SC_alt_intro
46 * 148: function printContent()
49 * (This index is automatically created/updated by the extension "extdeveval")
55 require ('template.php');
56 require_once ('class.alt_menu_functions.inc');
57 $LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml');
67 * Script Class for the introduction screen, alias "About > Modules" which shows the description of each available module for the user.
69 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
76 * Object for backend modules.
78 * @var t3lib_loadModules
84 * Initialization of script class
91 // Loads the available backend modules so we can create the description overview.
92 $this->loadModules
= t3lib_div
::makeInstance('t3lib_loadModules');
93 $this->loadModules
->observeWorkspaces
= TRUE
;
94 $this->loadModules
->load($TBE_MODULES);
98 * Main content - displaying the module descriptions
103 global $BE_USER,$LANG,$TYPO3_CONF_VARS;
104 global $TBE_TEMPLATE;
106 $alt_menuObj = t3lib_div
::makeInstance('alt_menu_functions');
108 $TBE_TEMPLATE->divClass
= $TBE_TEMPLATE->bodyTagId
;
111 <div id="typo3-docheader">
112 <div id="typo3-docheader-row1"> </div>
114 <div id="typo3-alt-intro-php-sub">
115 <h1>TYPO3 '.TYPO3_version
.'<br />'.$LANG->getLL('introtext').'</h1>
117 <p>'.t3lib_BEfunc
::TYPO3_copyRightNotice().'</p>';
120 '.t3lib_BEfunc
::displayWarningMessages();
123 <h3>' . $LANG->getLL('introtext2') . '</h3>';
126 // Printing the description of the modules available
127 $this->content
.=$alt_menuObj->topMenu($this->loadModules
->modules
,0,'',1);
128 $this->content
.='<br />';
130 // end text: 'Features may vary depending on your website and permissions'
131 $this->content
.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
132 $this->content
.= '<br /></div>';
134 // Renders the module page
135 $this->content
= $TBE_TEMPLATE->render(
142 * Outputting the accumulated content to screen
146 function printContent() {
152 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE
]['XCLASS']['typo3/alt_intro.php'])) {
153 include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE
]['XCLASS']['typo3/alt_intro.php']);
159 $SOBE = t3lib_div
::makeInstance('SC_alt_intro');
162 $SOBE->printContent();