public function run()
    {
        if (empty($this->links)) {
            return '';
        }

        $html[] = Html::beginTag('nav', $this->containerOptions);
        $html[] = Html::beginTag($this->tag, $this->options);

        if ($this->innerContainerOptions !== false) {
            $innerContainerTag = ArrayHelper::remove($this->innerContainerOptions, 'tag', 'div');
            $html[] = Html::beginTag($innerContainerTag, $this->innerContainerOptions);
        }
        $html[] = implode('', $this->prepareLinks());

        if ($this->innerContainerOptions !== false) {
            $html[] = Html::endTag($innerContainerTag);
        }

        $html[] = Html::endTag($this->tag);
        $html[] = Html::endTag('nav');

        return implode("\n", $html);
    }
public function run()
    {
        if (empty($this->links)) {
            return '';
        }

        $html[] = Html::beginTag('nav', $this->containerOptions);
        $html[] = Html::beginTag($this->tag, $this->options);

        if ($this->innerContainerOptions !== false) {
            $innerContainerTag = ArrayHelper::remove($this->innerContainerOptions, 'tag', 'div');
            $html[] = Html::beginTag($innerContainerTag, $this->innerContainerOptions);
        }
        $html[] = implode('', $this->prepareLinks());

        if ($this->innerContainerOptions !== false) {
            $html[] = Html::endTag($innerContainerTag);
        }

        $html[] = Html::endTag($this->tag);
        $html[] = Html::endTag('nav');

        return implode("\n", $html);
    }
public function run ( ) { if ( empty ( $ this -> links ) ) { return '' ; } $ html [ ] = Html :: beginTag ( 'nav' , $ this -> containerOptions ) ; $ html [ ] = Html :: beginTag ( $ this -> tag , $ this -> options ) ; if ( $ this -> innerContainerOptions !== false ) { $ innerContainerTag = ArrayHelper :: remove ( $ this -> innerContainerOptions , 'tag' , 'div' ) ; $ html [ ] = Html :: beginTag ( $ innerContainerTag , $ this -> innerContainerOptions ) ; } $ html [ ] = implode ( '' , $ this -> prepareLinks ( ) ) ; if ( $ this -> innerContainerOptions !== false ) { $ html [ ] = Html :: endTag ( $ innerContainerTag ) ; } $ html [ ] = Html :: endTag ( $ this -> tag ) ; $ html [ ] = Html :: endTag ( 'nav' ) ; return implode ( "\n" , $ html ) ; }
Render the widget.
@return string the result of widget execution to be outputted.
@throws InvalidConfigException
Render the widget .