Fixed bug 10056: Misspelling english word "guesbooks"
[Packages/TYPO3.CMS.git] / typo3 / alt_toplogo.php
index e5250cb..e083254 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -52,6 +52,7 @@
 
 require ('init.php');
 require ('template.php');
+require ('classes/class.typo3logo.php');
 
 
 
@@ -75,23 +76,11 @@ class SC_alt_toplogo {
                global $TBE_TEMPLATE,$TBE_STYLES;
 
                        // Start page
-               $TBE_TEMPLATE->docType = 'xhtml_trans';
-
                $this->content.=$TBE_TEMPLATE->startPage('Logo frame');
 
                        // Set logo:
-               if ($TBE_STYLES['logo'])        {
-                       if (substr($TBE_STYLES['logo'],0,3)=='../')     {
-                               $imgInfo = @getimagesize(PATH_site.substr($TBE_STYLES['logo'],3));
-                       }
-                       $this->content.='<a href="http://www.typo3.com/" target="_blank" onclick="'.$TBE_TEMPLATE->thisBlur().'">'.
-                               '<img src="'.$TBE_STYLES['logo'].'" '.$imgInfo[3].' title="TYPO3 Content Management Framework" alt="" />'.
-                               '</a>';
-               } else {
-                       $this->content.='<a href="http://www.typo3.com/" target="_blank" onclick="'.$TBE_TEMPLATE->thisBlur().'">'.
-                               '<img'.t3lib_iconWorks::skinImg('','gfx/alt_backend_logo.gif','width="117" height="32"').' title="TYPO3 Content Management Framework" alt="" />'.
-                               '</a>';
-               }
+               $logo = t3lib_div::makeInstance('TYPO3logo');
+               $this->content .= $logo->render();
 
                        // End page:
                $this->content.=$TBE_TEMPLATE->endPage();
@@ -107,24 +96,16 @@ class SC_alt_toplogo {
        }
 }
 
-// Include extension?
+
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_toplogo.php'])  {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_toplogo.php']);
 }
 
 
 
-
-
-
-
-
-
-
-
-
 // Make instance:
 $SOBE = t3lib_div::makeInstance('SC_alt_toplogo');
 $SOBE->main();
 $SOBE->printContent();
-?>
+
+?>
\ No newline at end of file