2 /***************************************************************
5 * (c) 1999-2005 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 ***************************************************************/
29 * Displays the logo in the top frame (upper left corner)
32 * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
33 * XHTML compliant content
35 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
38 * [CLASS/FUNCTION INDEX of SCRIPT]
42 * 66: class SC_alt_toplogo
44 * 105: function printContent()
47 * (This index is automatically created/updated by the extension "extdeveval")
54 require ('template.php');
60 * Script Class for rendering of the logo frame content in upper left corner of the TYPO3 backend frameset
62 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
66 class SC_alt_toplogo
{
70 * Create content with the logo
75 global $TBE_TEMPLATE,$TBE_STYLES;
78 $TBE_TEMPLATE->docType
= 'xhtml_trans';
80 $this->content
.=$TBE_TEMPLATE->startPage('Logo frame');
83 if ($TBE_STYLES['logo']) {
84 if (substr($TBE_STYLES['logo'],0,3)=='../') {
85 $imgInfo = @getimagesize
(PATH_site
.substr($TBE_STYLES['logo'],3));
87 $this->content
.='<a href="http://www.typo3.com/" target="_blank" onclick="'.$TBE_TEMPLATE->thisBlur().'">'.
88 '<img src="'.$TBE_STYLES['logo'].'" '.$imgInfo[3].' title="TYPO3 Content Management Framework" alt="" />'.
91 $this->content
.='<a href="http://www.typo3.com/" target="_blank" onclick="'.$TBE_TEMPLATE->thisBlur().'">'.
92 '<img'.t3lib_iconWorks
::skinImg('','gfx/alt_backend_logo.gif','width="117" height="32"').' title="TYPO3 Content Management Framework" alt="" />'.
97 $this->content
.=$TBE_TEMPLATE->endPage();
101 * Outputting the accumulated content to screen
105 function printContent() {
110 // Include extension?
111 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_toplogo.php']) {
112 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_toplogo.php']);
127 $SOBE = t3lib_div
::makeInstance('SC_alt_toplogo');
129 $SOBE->printContent();