Project

General

Profile

Bug #23602 » deprecate_template.patch

Administrator Admin, 2010-09-24 18:20

View differences:

typo3/classes/class.typo3logo.php (Arbeitskopie)
$imgInfo = getimagesize(PATH_site . TYPO3_mainDir . $logoFile);
$logo = '<a href="http://www.typo3.com/" target="_blank" onclick="'.$GLOBALS['TBE_TEMPLATE']->thisBlur().'">'.
$logo = '<a href="http://www.typo3.com/" target="_blank">'.
'<img'.t3lib_iconWorks::skinImg('', $logoFile, $imgInfo[3]).' title="TYPO3 Content Management System" alt="" />'.
'</a>';
// overwrite with custom logo
if($GLOBALS['TBE_STYLES']['logo']) {
$imgInfo = @getimagesize(t3lib_div::resolveBackPath(PATH_typo3 . $GLOBALS['TBE_STYLES']['logo'], 3));
$logo = '<a href="http://www.typo3.com/" target="_blank" onclick="' . $GLOBALS['TBE_TEMPLATE']->thisBlur() . '">' .
$logo = '<a href="http://www.typo3.com/" target="_blank">' .
'<img src="' . $GLOBALS['TBE_STYLES']['logo'] . '" ' . $imgInfo[3] . ' title="TYPO3 Content Management System" alt="" />' .
'</a>';
}
typo3/template.php (Arbeitskopie)
*
* @param string Input string
* @return string Output string (in the old days this was wrapped in <font> tags)
* @deprecated since TYPO3 3.6
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6; please use CSS from now on
*/
function fw($str) {
t3lib_div::logDeprecatedFunction();
......
* Use this in links to remove the underlining after being clicked
*
* @return string
* @deprecated since TYPO3 4.5, will be removed in TYPO3 4.7
*/
function thisBlur() {
t3lib_div::logDeprecatedFunction();
return ($GLOBALS['CLIENT']['FORMSTYLE']?'this.blur();':'');
}
......
* Use for <a>-links to help texts
*
* @return string
* @deprecated since TYPO3 4.5, will be removed in TYPO3 4.7
*/
function helpStyle() {
t3lib_div::logDeprecatedFunction();
return $GLOBALS['CLIENT']['FORMSTYLE'] ? ' style="cursor:help;"':'';
}
......
*
* @return void
* @internal
* @deprecated since TYPO3 3.6
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6
*/
function middle() {
t3lib_div::logDeprecatedFunction();
}
/**
typo3/backend.php (Arbeitskopie)
* @return string HTML code snippet to display the TYPO3 logo
*/
protected function getLogo() {
$logo = '<a href="http://www.typo3.com/" target="_blank" onclick="'.$GLOBALS['TBE_TEMPLATE']->thisBlur().'">'.
$logo = '<a href="http://www.typo3.com/" target="_blank">'.
'<img'.t3lib_iconWorks::skinImg('','gfx/alt_backend_logo.gif','width="117" height="32"').' title="TYPO3 Content Management Framework" alt="" />'.
'</a>';
......
if(substr($GLOBALS['TBE_STYLES']['logo'], 0, 3) == '../') {
$imgInfo = @getimagesize(PATH_site.substr($GLOBALS['TBE_STYLES']['logo'], 3));
}
$logo = '<a href="http://www.typo3.com/" target="_blank" onclick="'.$GLOBALS['TBE_TEMPLATE']->thisBlur().'">'.
$logo = '<a href="http://www.typo3.com/" target="_blank">'.
'<img src="'.$GLOBALS['TBE_STYLES']['logo'].'" '.$imgInfo[3].' title="TYPO3 Content Management Framework" alt="" />'.
'</a>';
}
typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php (Arbeitskopie)
* @return string HTML code for a help-bubble image.
*/
function helpBubble() {
return '<img src="'.$GLOBALS['BACK_PATH'].'gfx/helpbubble.gif" width="14" height="14" hspace="2" align="top"'.$this->pObj->doc->helpStyle().' alt="" />';
return '<img src="'.$GLOBALS['BACK_PATH'].'gfx/helpbubble.gif" width="14" height="14" hspace="2" align="top" alt="" />';
}
/**
typo3/sysext/cms/layout/db_new_content_el.php (Arbeitskopie)
// Radio button:
$oC = "document.editForm.defValues.value=unescape('".rawurlencode($wInfo['params'])."');goToalt_doc();".(!$this->onClickEvent?"window.location.hash='#sel2';":'');
$content .= $this->elementWrapper['wizardPart'][0] .
'<input type="radio" name="tempB" value="' . htmlspecialchars($k) . '" onclick="' . htmlspecialchars($this->doc->thisBlur().$oC) . '" />' .
'<input type="radio" name="tempB" value="' . htmlspecialchars($k) . '" onclick="' . htmlspecialchars($oC) . '" />' .
$this->elementWrapper['wizardPart'][1];
// Onclick action for icon/title:
$aOnClick = 'document.getElementsByName(\'tempB\')['.$cc.'].checked=1;'.$this->doc->thisBlur().$oC.'return false;';
$aOnClick = 'document.getElementsByName(\'tempB\')['.$cc.'].checked=1;'.$oC.'return false;';
// Icon:
$iInfo = @getimagesize($wInfo['icon']);
(1-1/2)