"TYPO3 4.0.1: typo3_src-4.0.1/typo3/alt_menu_sel.php Source File", "datetime" => "Sat Dec 2 19:22:20 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

alt_menu_sel.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00053 require ('init.php');
00054 require ('template.php');
00055 require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
00056 require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
00057 require_once ('class.alt_menu_functions.inc');
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00073 class SC_alt_menu_sel {
00074         var $content;
00075 
00081         function main() {
00082                 global $TBE_MODULES,$TBE_TEMPLATE;
00083 
00084                         // Initialize modules
00085                 $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00086                 $loadModules->observeWorkspaces = TRUE;
00087                 $loadModules->load($TBE_MODULES);
00088 
00089                         // Start page
00090                 $TBE_TEMPLATE->form = '<form action="">';
00091                 $TBE_TEMPLATE->docType = 'xhtml_trans';
00092 
00093                 $this->content.=$TBE_TEMPLATE->startPage('Selector box menu');
00094 
00095                         // Make menu and add it:
00096                 $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00097                 $this->content.=$alt_menuObj->topMenu($loadModules->modules,0,'',2);
00098 
00099                         // End page:
00100                 $this->content.=$TBE_TEMPLATE->endPage();
00101         }
00102 
00108         function printContent() {
00109                 echo $this->content;
00110         }
00111 }
00112 
00113 // Include extension?
00114 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php'])  {
00115         include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php']);
00116 }
00117 
00118 
00119 
00120 
00121 
00122 
00123 
00124 
00125 
00126 
00127 
00128 // Make instance:
00129 $SOBE = t3lib_div::makeInstance('SC_alt_menu_sel');
00130 $SOBE->main();
00131 $SOBE->printContent();
00132 ?>