コード例 #1
0
ファイル: BackendWidget.php プロジェクト: tqsq2005/dotplant2
 public function run()
 {
     if (!empty($this->footer)) {
         $this->footer = Html::tag('div', $this->footer, ['class' => 'widget-footer']);
     }
     if (!empty($this->icon)) {
         $this->title = Icon::show($this->icon) . $this->title;
     }
     $this->params['title'] = $this->title;
     $this->params['header_append'] = $this->header_append;
     $this->params['footer'] = $this->footer;
     $this->params['_id'] = $this->getId();
     return parent::run();
 }
コード例 #2
0
 /**
  * Ends the rendering of content.
  */
 public function endContent()
 {
     ContentDecorator::end();
 }