2 /***************************************************************
5 * (c) 1999-2004 Kasper Skaarhoj (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 * Creates the selector-box menu.
29 * The selector-box menu is an alternative to the vertical default menu.
30 * If configured to appear it will be displayed in the top-frame.
33 * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
36 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
39 * [CLASS/FUNCTION INDEX of SCRIPT]
43 * 73: class SC_alt_menu_sel
45 * 107: function printContent()
48 * (This index is automatically created/updated by the extension "extdeveval")
54 require ('template.php');
55 require_once (PATH_t3lib
.'class.t3lib_loadmodules.php');
56 require_once (PATH_t3lib
.'class.t3lib_basicfilefunc.php');
57 require_once ('class.alt_menu_functions.inc');
67 * Script Class for rendering the selector box menu
69 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
73 class SC_alt_menu_sel
{
77 * Main function, making the selector box menu
82 global $TBE_MODULES,$TBE_TEMPLATE;
85 $loadModules = t3lib_div
::makeInstance('t3lib_loadModules');
86 $loadModules->load($TBE_MODULES);
89 $TBE_TEMPLATE->form
= '<form action="">';
90 $TBE_TEMPLATE->docType
= 'xhtml_trans';
92 $this->content
.=$TBE_TEMPLATE->startPage('Selector box menu');
94 // Make menu and add it:
95 $alt_menuObj = t3lib_div
::makeInstance('alt_menu_functions');
96 $this->content
.=$alt_menuObj->topMenu($loadModules->modules
,0,'',2);
99 $this->content
.=$TBE_TEMPLATE->endPage();
103 * Outputting the accumulated content to screen
107 function printContent() {
112 // Include extension?
113 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_menu_sel.php']) {
114 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_menu_sel.php']);
128 $SOBE = t3lib_div
::makeInstance('SC_alt_menu_sel');
130 $SOBE->printContent();