[TASK] Re-work/simplify copyright header in JS files
[Packages/TYPO3.CMS.git] / typo3 / alt_clickmenu.php
1 <?php
2 /**
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * Context menu
17 *
18 * The script is called in the top frame of the backend typically by a click on an icon for which a context menu should appear.
19 * Either this script displays the context menu horizontally in the top frame or alternatively (default in MSIE, Mozilla) it writes the output to a <div>-layer in the calling document (which then appears as a layer/context sensitive menu)
20 * Writing content back into a <div>-layer is necessary if we want individualized context menus with any specific content for any specific element.
21 * Context menus can appear for either database elements or files
22 * The input to this script is basically the "&init" var which is divided by "|" - each part is a reference to table|uid|listframe-flag.
23 *
24 * If you want to integrate a context menu in your scripts, please see template::getContextMenuCode()
25 *
26 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
27 */
28 require __DIR__ . '/init.php';
29
30 $clickMenuController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ClickMenuController');
31
32 /**
33 * Include files for extra click menu options
34 * @deprecated since 6.1, will be removed 2 versions later
35 */
36 foreach ($SOBE->include_once as $INC_FILE) {
37 include_once $INC_FILE;
38 }
39
40 $clickMenuController->main();
41 $clickMenuController->printContent();