* Modified typo3/sysext/cms/tslib/class.tslib_content.php:
[Packages/TYPO3.CMS.git] / typo3 / alt_intro.php
index 4761b53..8f66a22 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
+*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is 
 ***************************************************************/
 /** 
  * 'About modules' script - the default start-up module.
- *
  * Will display the list of main- and sub-modules available to the user.
  * Each module will be show with description and a link to the module.
- * 
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
+ * $Id$ 
+ * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   75: class SC_alt_intro 
+ *   84:     function init()   
+ *   97:     function main()   
+ *  166:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 3
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -47,15 +59,27 @@ require_once ('class.alt_menu_functions.inc');
 include ('sysext/lang/locallang_alt_intro.php');
 
 
-// ***************************
-// Script Class
-// ***************************
+
+
+
+
+
+
+/**
+ * Script Class for the introduction screen, alias "About > Modules" which shows the description of each available module for the user.
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_intro {
        var $loadModules;
        var $content;
        
-       /** 
-        * Initialization
+       /**
+        * Initialization of script class
+        *
+        * @return      void
         */
        function init() {
                global $TBE_MODULES;
@@ -65,8 +89,10 @@ class SC_alt_intro {
                $this->loadModules->load($TBE_MODULES);
        }
 
-       /** 
+       /**
         * Main content - displaying the module descriptions
+        *
+        * @return      void
         */
        function main() {
                global $BE_USER,$LANG,$TYPO3_CONF_VARS;
@@ -75,9 +101,7 @@ class SC_alt_intro {
                $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
                        
                $TBE_TEMPLATE->docType='xhtml_trans';
-               $TBE_TEMPLATE->inDocStyles.='
-               DIV.typo3-def{width:600px;}
-               ';
+               $TBE_TEMPLATE->divClass=$TBE_TEMPLATE->bodyTagId;
                $this->content.=$TBE_TEMPLATE->startPage('About modules');
 
                        
@@ -90,7 +114,7 @@ class SC_alt_intro {
                } else {
                        $warrantyNote='TYPO3 comes with ABSOLUTELY NO WARRANTY; <a href="http://typo3.com/1316.0.html" target="_blank">click for details.</a>';
                }
-               $cNotice='<a href="http://typo3.com/" target="_blank"><img src="gfx/loginlogo_transp.gif" width="75" vspace="2" height="19" alt="TYPO3 logo" border="0" align="left" />TYPO3 CMS ver. '.htmlspecialchars($GLOBALS['TYPO_VERSION']).'</a>. Copyright &copy; 1998-2003 Kasper Sk&aring;rh&oslash;j. Extensions are copyright of their respective owners. Go to <a href="http://typo3.com/" target="_blank">http://typo3.com/</a> for details.
+               $cNotice='<a href="http://typo3.com/" target="_blank"><img src="gfx/loginlogo_transp.gif" width="75" vspace="2" height="19" alt="TYPO3 logo" align="left" />TYPO3 CMS ver. '.htmlspecialchars($GLOBALS['TYPO_VERSION']).'</a>. Copyright &copy; 1998-2004 Kasper Sk&aring;rh&oslash;j. Extensions are copyright of their respective owners. Go to <a href="http://typo3.com/" target="_blank">http://typo3.com/</a> for details.
                '.strip_tags($warrantyNote,'<a>').' This is free software, and you are welcome to redistribute it under certain conditions; <a href="http://typo3.com/1316.0.html" target="_blank">click for details</a>. Obstructing the appearance of this notice is prohibited by law.';
 
 
@@ -116,24 +140,28 @@ class SC_alt_intro {
                $this->content.='<br />';
 
                        // end text: 'Features may vary depending on your website and permissions'
-               $this->content.='<p><em>('.$LANG->getLL('endText').')</em></p>';
+               $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
                $this->content.='<hr />';
 
-                       // Logged in user, eg: 'You're logged in as user: admin (Kasper Skårhøj, kasper@typo3.com)'
-               $this->content.='<p>'.
+                       // Logged in user, eg: 'You're logged in as user: admin (Kasper Skaarhoj, kasper@typo3.com)'
+               $this->content.='<p class="c-user">'.
                                htmlspecialchars($LANG->getLL('userInfo')).
                                sprintf(' <strong>%s</strong> (%s)',
                                                $BE_USER->user['username'],
                                                (implode(', ',array($BE_USER->user['realName'],$BE_USER->user['email'])))
                                                ).
-                               '</p>';
+                               '</p>
+                               <br />
+                               <br />';
 
                        // End page
                $this->content.= $TBE_TEMPLATE->endPage();
        }
 
-       /** 
-        * Prints output
+       /**
+        * Outputting the accumulated content to screen
+        *
+        * @return      void
         */
        function printContent() {
                echo $this->content;
@@ -161,5 +189,4 @@ $SOBE = t3lib_div::makeInstance('SC_alt_intro');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
\ No newline at end of file