Project

General

Profile

Bug #20489 » 0011166_v3.patch

Administrator Admin, 2009-05-28 08:36

View differences:

t3lib/class.t3lib_tceforms_fe.php (Arbeitskopie)
class t3lib_TCEforms_FE extends t3lib_TCEforms {
/**
* Constructs this object.
*/
public function __construct() {
$this->initializeTemplateContainer();
parent::__construct();
}
/**
* Function for wrapping labels.
*
* @param string The string to wrap
......
$GLOBALS['TSFE']->additionalHeaderData[$key] = '<link rel="' . $relation . '" type="text/css" href="' . $href . '"' . ($title ? (' title="' . $title . '"') : '') . ' />';
}
}
/**
* Initializes an anonymous template container.
* The created container can be compared to alt_doc.php in backend-only disposal.
*
* @return void
*/
public function initializeTemplateContainer() {
t3lib_div::requireOnce(PATH_typo3 . 'template.php');
$GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('frontendDoc');
$GLOBALS['SOBE'] = new stdClass();
$GLOBALS['SOBE']->doc = $GLOBALS['TBE_TEMPLATE'];
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tceforms_fe.php']) {
typo3/template.php (Arbeitskopie)
}
/**
* Extension class for "template" - used in the context of frontend editing.
*/
class frontendDoc extends template {
var $backPath = 'typo3/';
/**
* Used in the frontend context to insert header data via TSFE->additionalHeaderData.
* Mimics header inclusion from template->startPage().
*
* @return void
*/
public function insertHeaderData() {
$GLOBALS['TSFE']->additionalHeaderData['docStyle'] = $this->docStyle();
$GLOBALS['TSFE']->additionalHeaderData['JSLibraries'] = $this->renderJSlibraries();
$GLOBALS['TSFE']->additionalHeaderData['JScode'] = $this->JScode;
$GLOBALS['TSFE']->additionalHeaderData['JScodeArray'] = $this->wrapScriptTags(implode("\n", $this->JScodeArray));
if ($this->extJScode) {
$GLOBALS['TSFE']->additionalHeaderData['extJScode'] = $this->wrapScriptTags('Ext.onReady(function() {' . chr(10) . $this->extJScode . chr(10) . '});');
}
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/template.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/template.php']);
}
typo3/sysext/fe_edit/view/class.tx_feedit_editpanel.php (Arbeitskopie)
$finalOut = $tceforms->printNeededJSFunctions_top() . ($conf['edit.']['displayRecord'] ? $content : '') . $panel . ($theCmd=='new' ? $blackLine : '') . $tceforms->printNeededJSFunctions();
$GLOBALS['SOBE']->doc->insertHeaderData();
return $finalOut;
}
(3-3/3)