31 $this->lng = $DIC->language();
32 $this->
user = $DIC->user();
33 parent::__construct($a_title, $a_postvar);
35 $this->dirs =
array(
"all",
"top",
"bottom",
"left",
"right");
45 $this->allvalue = $a_allvalue;
55 return $this->allvalue;
65 $this->topvalue = $a_topvalue;
75 return $this->topvalue;
85 $this->bottomvalue = $a_bottomvalue;
95 return $this->bottomvalue;
105 $this->leftvalue = $a_leftvalue;
115 return $this->leftvalue;
125 $this->rightvalue = $a_rightvalue;
135 return $this->rightvalue;
147 foreach ($this->dirs as $dir) {
182 $layout_tpl =
new ilTemplate(
"tpl.prop_trbl_layout.html",
true,
true,
"Services/Style/Content");
184 foreach ($this->dirs as $dir) {
185 $tpl =
new ilTemplate(
"tpl.prop_trbl_select.html",
true,
true,
"Services/Style/Content");
186 $pre_options = array_merge(
199 foreach ($pre_options as $option) {
200 $tpl->setCurrentBlock(
"pre_option");
201 $tpl->setVariable(
"VAL_PRE", $option);
202 $tpl->setVariable(
"TXT_PRE", $option);
204 $tpl->setVariable(
"PRE_SELECTED",
'selected="selected"');
206 $tpl->parseCurrentBlock();
210 $tpl->setVariable(
"TXT_DIR",
$lng->txt(
"sty_$dir"));
211 $tpl->setVariable(
"DIR", $dir);
213 $layout_tpl->setVariable(strtoupper($dir),
$tpl->get());
216 $a_tpl->setCurrentBlock(
"prop_generic");
217 $a_tpl->setVariable(
"PROP_GENERIC", $layout_tpl->get());
218 $a_tpl->parseCurrentBlock();
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
static _getStyleParameterValues($par)