Index: L:/x-htdocs/t3/41dev/typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php
===================================================================
--- L:/x-htdocs/t3/41dev/typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php (revision 2018)
+++ L:/x-htdocs/t3/41dev/typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php (working copy)
@@ -61,13 +61,13 @@
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"],
- '
'.$tmpl->helpConfig["imagetag"].'
'.
+ ''.$tmpl->helpConfig["imagetag"].'
'.
($tmpl->helpConfig["description"] ? implode(explode("//",$tmpl->helpConfig["description"]),"
")."
" : "").
($tmpl->helpConfig["bulletlist"] ? "- ".implode(explode("//",$tmpl->helpConfig["bulletlist"]),"
- ")."
" : "
")
);
@@ -173,10 +173,10 @@
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));
@@ -190,7 +190,7 @@
}
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);