52 $this->heading = $a_val;
60 public function setBody(
string $a_val): void
82 $this->panel_style = $a_val;
92 $this->heading_style = $a_val;
102 $this->footer_style = $a_val;
112 $tpl =
new ilTemplate(
"tpl.panel.html",
true,
true,
"Services/UIComponent/Panel");
114 $head_outer_div_style =
"";
116 $tpl->setCurrentBlock(
"heading");
117 $tpl->setVariable(
"HEADING", $this->
getHeading());
120 case self::HEADING_STYLE_BLOCK:
121 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilBlockHeader");
122 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilBlockHeader");
123 $head_outer_div_style =
"il_Block";
126 case self::HEADING_STYLE_SUBHEADING:
127 $tpl->setVariable(
"HEAD_DIV_STYLE",
"panel-heading ilHeader");
128 $tpl->setVariable(
"HEAD_H3_STYLE",
"ilHeader");
132 $tpl->parseCurrentBlock();
135 $tpl->setVariable(
"BODY", $this->
getBody());
138 $tpl->setCurrentBlock(
"footer");
139 $tpl->setVariable(
"FOOTER", $this->
getFooter());
142 case self::FOOTER_STYLE_BLOCK:
143 $tpl->setVariable(
"FOOT_DIV_STYLE",
"panel-footer ilBlockInfo");
147 $tpl->parseCurrentBlock();
151 case self::PANEL_STYLE_SECONDARY:
152 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-default " . $head_outer_div_style);
156 $tpl->setVariable(
"PANEL_STYLE",
"panel panel-primary " . $head_outer_div_style);
const PANEL_STYLE_PRIMARY
setPanelStyle(int $a_val)
setHeadingStyle(int $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFooterStyle(int $a_val)
setHeading(string $a_val)
const HEADING_STYLE_SUBHEADING
const PANEL_STYLE_SECONDARY
const HEADING_STYLE_BLOCK