Project

General

Profile

Bug #17093 ยป ceditor.diff

Administrator Admin, 2007-03-07 23:56

View differences:

L:/x-htdocs/t3/41dev/typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php (working copy)
return 1;
}
}
function displayExample($theOutput) {
function displayExample($theOutput,$imageAlign) {
global $SOBE,$tmpl;
if ($tmpl->helpConfig["imagetag"] || $tmpl->helpConfig["description"] || $tmpl->helpConfig["header"]) {
// $theOutput.=$this->pObj->doc->divider(20);
$theOutput.=$this->pObj->doc->spacer(30);
$theOutput.=$this->pObj->doc->section($tmpl->helpConfig["header"],
'<div align="center">'.$tmpl->helpConfig["imagetag"].'</div><BR>'.
'<div align="'.($imageAlign!=''?$imageAlign:'left').'">'.$tmpl->helpConfig["imagetag"].'</div><BR>'.
($tmpl->helpConfig["description"] ? implode(explode("//",$tmpl->helpConfig["description"]),"<BR>")."<BR>" : "").
($tmpl->helpConfig["bulletlist"] ? "<ul><li>".implode(explode("//",$tmpl->helpConfig["bulletlist"]),"<li>")."</ul>" : "<BR>")
);
......
debug($TSCE_tmpl->setup);
*/
$tmpl->ext_getTSCE_config($category);
# NOT WORKING:
$BE_USER_modOptions=t3lib_BEfunc::getModTSconfig($this->id,'properties');
# NOW WORKING:
if ($BE_USER_modOptions["properties"]["constantEditor."]["example"]=="top") {
$theOutput=$this->displayExample($theOutput);
$theOutput=$this->displayExample($theOutput,$BE_USER_modOptions["properties"]["constantEditor."]["example."]["imageAlign"]);
}
$printFields = trim($tmpl->ext_printFields($theConstants,$category));
......
}
if ($BE_USER_modOptions["properties"]["constantEditor."]["example"]!="top") {
$theOutput=$this->displayExample($theOutput);
$theOutput=$this->displayExample($theOutput,$BE_USER_modOptions["properties"]["constantEditor."]["example."]["imageAlign"]);
}
$theOutput.=$this->pObj->doc->spacer(10);
    (1-1/1)