/** * Renders the widget. */ public function run() { $tag = ArrayHelper::remove($this->containerOptions, 'tag', 'section'); echo Html::endTag($tag); $tag = ArrayHelper::remove($this->options, 'tag', 'aside'); echo Html::endTag($tag); AdminLtePluginAsset::register($this->getView()); }
/** * Registers a specific Bootstrap plugin and the related events * @param string $name the name of the Bootstrap plugin */ protected function registerPlugin($name) { $view = $this->getView(); AdminLtePluginAsset::register($view); $id = $this->options['id']; if ($this->clientOptions !== false) { $options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions); $js = "jQuery('#{$id}').{$name}({$options});"; $view->registerJs($js); } $this->registerClientEvents(); }
/** * Renders the widget. */ public function run() { Html::addCssClass($this->options['class'], 'user-panel'); $tag = ArrayHelper::remove($this->options, 'tag', 'div'); echo Html::beginTag($tag, $this->options); Html::addCssClass($this->containerOptions['class'], 'pull-left image'); $containerOptions = $this->containerOptions; $tag = ArrayHelper::remove($containerOptions, 'tag', 'div'); echo Html::beginTag($tag, $containerOptions); if ($this->photoUrl) { echo Html::img($this->photoUrl, ['class' => 'img-circle']); } else { echo Html::img('/img/user_default.jpg', ['class' => 'img-circle']); } echo Html::endTag($tag); Html::addCssClass($this->containerOptions['class'], 'pull-left info'); $containerOptions = $this->containerOptions; $tag = ArrayHelper::remove($containerOptions, 'tag', 'div'); echo Html::beginTag($tag, $containerOptions); echo Html::tag('p', $this->name); echo Html::tag('p', $this->role); echo Html::endTag($tag); $tag = ArrayHelper::remove($this->options, 'tag', 'div'); echo Html::endTag($tag); AdminLtePluginAsset::register($this->getView()); }
/** * Renders the widget. */ public function run() { //$tag = ArrayHelper::remove($this->containerOptions, 'tag', 'div'); //echo Html::endTag($tag); /*if ($this->renderInnerContainer) { echo Html::endTag('div'); } */ $tag = ArrayHelper::remove($this->options, 'tag', 'nav'); echo Html::endTag($tag); $tag = ArrayHelper::remove($this->containerOptions, 'tag', 'header'); echo Html::endTag($tag); AdminLtePluginAsset::register($this->getView()); }