53 $this->heading = $a_val;
93 $this->footer = $a_val;
113 $this->panel_style = $a_val;
133 $this->heading_style = $a_val;
153 $this->footer_style = $a_val;
173 $tpl =
new ilTemplate(
"tpl.panel.html",
true,
true,
"Services/UIComponent/Panel");
175 $head_outer_div_style =
"";
177 $tpl->setCurrentBlock(
"heading");
181 case self::HEADING_STYLE_BLOCK:
182 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilBlockHeader");
183 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilBlockHeader");
184 $head_outer_div_style =
"il_Block";
187 case self::HEADING_STYLE_SUBHEADING:
188 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilHeader");
189 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilHeader");
193 $tpl->parseCurrentBlock();
199 $tpl->setCurrentBlock(
"footer");
203 case self::FOOTER_STYLE_BLOCK:
204 $tpl->setVariable(
"FOOT_DIV_STYLE",
"panel-footer ilBlockInfo");
208 $tpl->parseCurrentBlock();
212 case self::PANEL_STYLE_SECONDARY:
213 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-default " . $head_outer_div_style);
217 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-primary " . $head_outer_div_style);
setFooter($a_val)
Set footer.
__construct()
Constructor.
const PANEL_STYLE_PRIMARY
getHeadingStyle()
Get heading style.
setFooterStyle($a_val)
Set footer style.
setPanelStyle($a_val)
Set panel style.
special template class to simplify handling of ITX/PEAR
getFooterStyle()
Get footer style.
const HEADING_STYLE_SUBHEADING
static getInstance()
Get instance.
setHeadingStyle($a_val)
Set heading style.
setHeading($a_val)
Set heading.
const PANEL_STYLE_SECONDARY
const HEADING_STYLE_BLOCK
getPanelStyle()
Get panel style.