2 namespace TYPO3\CMS\Backend\View;
34 \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
35 $this->logo =
'sysext/backend/Resources/Public/Images/typo3-topbar@2x.png';
45 $imgInfo = getimagesize(PATH_site . TYPO3_mainDir . $this->logo);
49 if (
$GLOBALS[
'TBE_STYLES'][
'logo']) {
51 $imgUrl = $GLOBALS[
'TBE_STYLES'][
'logo'];
56 $height = $imgInfo[1];
58 if (strpos($imgUrl,
'@2x.')) {
63 $logoTag =
'<img src="' . $imgUrl .
'" width="' . $width .
'" height="' . $height .
'" title="TYPO3 Content Management System" alt="" />';
64 return '<a class="typo3-topbar-site-logo" href="' . htmlspecialchars(TYPO3_URL_GENERAL) .
'" target="_blank">' . $logoTag .
'</a> <span class="typo3-topbar-site-name">' . htmlspecialchars(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'sitename']) .
' [' . TYPO3_version .
']</span>';
75 if (!is_string(
$logo)) {
76 throw new \InvalidArgumentException(
'parameter $logo must be of type string', 1194041104);