Esempio n. 1
0
 public function run()
 {
     if (count($this->roles) == 0 || Yii::$app->user->identity->in($this->roles)) {
         echo Html::endTag('div') . Html::endTag('div');
         // .col-*
     }
 }
Esempio n. 2
0
 public function run()
 {
     $content = empty($this->content) ? '' : $this->content;
     $tail = Html::endTag('div');
     // .box-body
     if (!empty($this->footer)) {
         $tail .= Html::tag('div', $this->footer, ['class' => 'box-footer']);
     }
     $tail .= Html::endTag('div');
     // .box ends
     return $content . $tail;
 }