* Fixed bug #0000527: Title tag is added even if the page title was empty. Thanks...
[Packages/TYPO3.CMS.git] / typo3 / alt_menu.php
index 4e73c9b..01f11d3 100755 (executable)
@@ -1,22 +1,22 @@
 <?php
 /***************************************************************
 *  Copyright notice
-*  
-*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
+*
+*  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
-*  This script is part of the TYPO3 project. The TYPO3 project is 
+*  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
-* 
+*
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
+*  A copy is found in the textfile GPL.txt and important notices to the license
 *  from the author is found in LICENSE.txt distributed with these scripts.
 *
-* 
+*
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
-/** 
+/**
  * Displays the vertical menu in the left most frame of TYPO3s backend
  *
  * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML-trans compliant
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
 /**
  * [CLASS/FUNCTION INDEX of SCRIPT]
  *
  *
  *
- *   78: class SC_alt_menu 
- *   89:     function init()   
- *  105:     function main()   
- *  177:     function printContent()   
+ *   78: class SC_alt_menu
+ *   89:     function init()
+ *  105:     function main()
+ *  182:     function printContent()
  *
  * TOTAL FUNCTIONS: 3
  * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
+
 require ('init.php');
 require ('template.php');
 require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
@@ -71,7 +71,7 @@ require_once ('class.alt_menu_functions.inc');
 /**
  * Script Class for rendering the vertical menu in the left side of the backend frameset
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  * @package TYPO3
  * @subpackage core
  */
@@ -88,7 +88,7 @@ class SC_alt_menu {
         */
        function init() {
                global $TBE_MODULES;
-               
+
                        // Setting GPvars:
                $this->_clearCacheFiles = t3lib_div::_GP('_clearCacheFiles');
 
@@ -103,8 +103,8 @@ class SC_alt_menu {
         * @return      void
         */
        function main() {
-               global $BE_USER,$TYPO3_CONF_VARS,$TBE_TEMPLATE,$TYPO_VERSION;
-               
+               global $BE_USER,$TYPO3_CONF_VARS,$TBE_TEMPLATE;
+
                $TBE_TEMPLATE->docType='xhtml_trans';
                $TBE_TEMPLATE->divClass='vertical-menu';
                $this->content.=$TBE_TEMPLATE->startPage('Vertical Backend Menu');
@@ -112,27 +112,31 @@ class SC_alt_menu {
 
                        // Printing the menu
                $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-               $this->content.=$alt_menuObj->topMenu($this->loadModules->modules);
-               
+               $this->content.= $alt_menuObj->topMenu($this->loadModules->modules);
+               $this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_modules', $GLOBALS['BACK_PATH']);
+
                        // clear cache commands for Admins
                if($BE_USER->isAdmin()) {
                        $functionsArray = $alt_menuObj->adminFunctions($backPath);
-                       
+
                        $this->content.='
-                       
-<!-- 
+
+<!--
   Menu with admin functions: Clearing cache:
 -->
 <div id="typo3-alt-menu-php-adminFunc">';
-                               
+
                                // Header: Admin functions
-                       $this->content.='<h2 class="bgColor5">'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.adminFunctions',1).'</h2>';
+                       $this->content.=
+                               '<h2 class="bgColor5">'.
+                               $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.adminFunctions',1).
+                               '</h2>';
 
                                // Table with those admin functions
                        $this->content.='
                                <table border="0" cellpadding="0" cellspacing="1" width="100%">';
 
-                       $rows=array();                  
+                       $rows=array();
                        foreach($functionsArray as $functionsArraySetup)        {
                                $rows[]='
                                        <tr>
@@ -140,7 +144,7 @@ class SC_alt_menu {
                                                <td><a href="'.htmlspecialchars($functionsArraySetup['href']).'">'.htmlspecialchars($functionsArraySetup['title']).'</a></td>
                                        </tr>';
                        }
-                       
+
                                // Imploding around the divider table row:
                        $this->content.=implode('
                                        <tr>
@@ -149,6 +153,7 @@ class SC_alt_menu {
 
                        $this->content.='
                                </table>';
+                       $this->content.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_adminFunction', $GLOBALS['BACK_PATH']);
                        $this->content.='
 </div>
 ';
@@ -156,9 +161,9 @@ class SC_alt_menu {
 
                        // Printing bottons (logout button)
                $this->content.='
-               
 
-<!-- 
+
+<!--
   Logout button / username
 -->
 <div id="typo3-alt-menu-php-logininfo">'.$alt_menuObj->topButtons().