/** * Renders the widget. */ public function run() { echo "\n" . $this->renderTools(); echo "\n" . Html::endTag('div'); // modal-content echo "\n" . Html::endTag('div'); // modal-content echo Html::beginTag('div', ['class' => 'portlet-body']) . "\n"; echo $this->content . "\n"; echo "\n" . Html::endTag('div'); }
/** * (non-PHPdoc) * @see \yii\base\Widget::run() */ public function run() { $content = ''; $content .= Html::beginTag('div', $this->options); $content .= Html::beginTag('div', ['id' => $this->name . '-group', 'class' => $this->inline ? 'icheck-inline' : 'icheck-list']); if ($this->items) { foreach ($this->items as $value => $label) { $content .= Html::beginTag('label'); $content .= $this->renderContent($value); $content .= "\n" . $label . "\n"; $content .= Html::endTag('label'); } } $content .= Html::endTag('div'); $content .= Html::endTag('div'); echo $content; }
/** * Renders the closing tag of the modal body. * * @return string the rendering result */ protected function renderBodyEnd() { return Html::endTag('div'); }
/** * (non-PHPdoc) * @see \yii\base\Widget::run() */ public function run() { echo "\n" . Html::endTag('tbody'); echo $this->renderFooter(); echo "\n" . Html::endTag('table'); echo "\n" . Html::endTag('div'); }
/** * Renders the closing tag of the field container. * * @return string the rendering result. */ public function end() { return Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div'); }
/** * (non-PHPdoc) * @see \yii\base\Widget::run() */ public function run() { $content = ''; if ($this->label) { if (isset($this->labelOptions['class'])) { $this->labelOptions['class'] = 'control-label ' . $this->labelOptions['class']; } else { Html::addCssClass($this->labelOptions, 'col-md-4'); } $content .= Html::tag('label', $this->label, $this->labelOptions); } $content .= Html::beginTag('div', $this->options); $content .= Html::beginTag('div', ['id' => $this->name . '-group', 'class' => $this->inline ? 'icheck-inline' : 'icheck-list']); if ($this->items) { foreach ($this->items as $value => $label) { $content .= Html::beginTag('label'); $content .= $this->renderContent($value); $content .= "\n" . $label . "\n"; $content .= Html::endTag('label'); } } $content .= Html::endTag('div'); $content .= Html::endTag('div'); echo Html::tag('div', $content, ['class' => 'form-group']); }