10 Yii::import(
'booster.widgets.TbWidget');
96 if ($this->padContent)
99 if (!isset($this->contentHtmlOptions[
'id'])) {
100 $this->contentHtmlOptions[
'id'] = $this->getId();
103 if (isset($this->headerHtmlOptions[
'class'])) {
104 $this->headerHtmlOptions[
'class'] =
'panel-heading ' . $this->headerHtmlOptions[
'class'];
106 $this->headerHtmlOptions[
'class'] =
'panel-heading';
109 echo CHtml::openTag(
'div', $this->htmlOptions);
124 echo CHtml::closeTag(
'div') .
"\n";
134 if ($this->title !==
false) {
135 echo CHtml::openTag(
'div', $this->headerHtmlOptions);
137 $this->title =
'<h3 class="panel-title" style="display: inline;">' . $this->title .
'</h3>';
139 if ($this->headerIcon) {
140 if (strpos($this->headerIcon,
'icon') ===
false && strpos($this->headerIcon,
'fa') ===
false)
141 $this->title =
'<span class="glyphicon glyphicon-' . $this->headerIcon .
'"></span> ' .
$this->title;
143 $this->title =
'<i class="' . $this->headerIcon .
'"></i> ' .
$this->title;
149 echo
'<div class="clearfix"></div>';
150 echo CHtml::closeTag(
'div');
161 if (empty($this->headerButtons))
164 echo
'<div class="pull-right">';
166 if (!empty($this->headerButtons) && is_array($this->headerButtons)) {
168 foreach ($this->headerButtons as $options) {
170 $class = $options[
'class'];
171 unset($options[
'class']);
173 if (strpos(
$class,
'TbButton') ===
false)
174 throw new CException(
'Button must be either TbButton, or TbButtonGroup');
176 if (!isset($options[
'htmlOptions']))
177 $options[
'htmlOptions'] = array();
181 $this->controller->widget(
$class, $options);
194 echo CHtml::openTag(
'div', $this->contentHtmlOptions);
195 if (!empty($this->content)) {
207 echo CHtml::closeTag(
'div');