/**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo Html::beginTag('div', $this->options) . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     if ($this->submenuOptions === null) {
         // copying of [[options]] kept for BC
         // @todo separate [[submenuOptions]] from [[options]] completely before 2.1 release
         $this->submenuOptions = $this->options;
         unset($this->submenuOptions['id']);
     }
     parent::init();
     Html::addCssClass($this->options, ['widget' => 'dropdown-menu']);
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, ['widget' => 'nav', $this->navType]);
 }
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, ['widget' => 'progress']);
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, ['widget' => 'panel-group']);
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options) . "\n";
     echo Html::beginTag('div', ['class' => 'modal-dialog ' . $this->size]) . "\n";
     echo Html::beginTag('div', ['class' => 'modal-content']) . "\n";
     // echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
     // echo $this->renderCloseButton() . "\n";
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, ['widget' => 'carousel']);
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     if (empty($this->options['class'])) {
         Html::addCssClass($this->options, ['navbar', 'navbar-default']);
     } else {
         Html::addCssClass($this->options, ['widget' => 'navbar']);
     }
     if (empty($this->options['role'])) {
         $this->options['role'] = 'navigation';
     }
     $options = $this->options;
     $tag = ArrayHelper::remove($options, 'tag', 'nav');
     echo Html::beginTag($tag, $options);
     if ($this->renderInnerContainer) {
         if (!isset($this->innerContainerOptions['class'])) {
             Html::addCssClass($this->innerContainerOptions, 'container');
         }
         echo Html::beginTag('div', $this->innerContainerOptions);
     }
     echo Html::beginTag('div', ['class' => 'navbar-header']);
     if (!isset($this->containerOptions['id'])) {
         $this->containerOptions['id'] = "{$this->options['id']}-collapse";
     }
     echo $this->renderToggleButton();
     if ($this->brandLabel !== false) {
         Html::addCssClass($this->brandOptions, ['widget' => 'navbar-brand']);
         echo Html::a($this->brandLabel, $this->brandUrl === false ? Yii::$app->homeUrl : $this->brandUrl, $this->brandOptions);
     }
     echo Html::endTag('div');
     Html::addCssClass($this->containerOptions, ['collapse' => 'collapse', 'widget' => 'navbar-collapse']);
     $options = $this->containerOptions;
     $tag = ArrayHelper::remove($options, 'tag', 'div');
     echo Html::beginTag($tag, $options);
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     if ($this->route === null && Yii::$app->controller !== null) {
         $this->route = Yii::$app->controller->getRoute();
     }
     if ($this->params === null) {
         $this->params = Yii::$app->request->getQueryParams();
     }
     if ($this->dropDownCaret === null) {
         $this->dropDownCaret = Html::tag('b', '', ['class' => 'caret']);
     }
     Html::addCssClass($this->options, ['widget' => 'nav']);
 }