widgets/TopBar.php
protected function renderItems()
    {
        $items = array();
        if (!empty($this->leftItems)) {
            $tItems = array();
            foreach ($this->leftItems as $item) {
                $tItems[] = $this->renderItem($item);
            }
            $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_LEFT)) . implode(
                    "\n",
                    $tItems
                ) . \CHtml::closeTag(
                    'ul'
                );
        }
        if (!empty($this->rightItems)) {
            $tItems = array();
            foreach ($this->rightItems as $item) {
                $tItems[] = $this->renderItem($item);
            }
            $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_RIGHT)) . implode(
                    "\n",
                    $tItems
                ) . \CHtml::closeTag(
                    'ul'
                );
        }

        return \CHtml::tag('section', array('class' => 'top-bar-section'), implode("\n", $items), true);
    }
protected function renderItems()
    {
        $items = array();
        if (!empty($this->leftItems)) {
            $tItems = array();
            foreach ($this->leftItems as $item) {
                $tItems[] = $this->renderItem($item);
            }
            $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_LEFT)) . implode(
                    "\n",
                    $tItems
                ) . \CHtml::closeTag(
                    'ul'
                );
        }
        if (!empty($this->rightItems)) {
            $tItems = array();
            foreach ($this->rightItems as $item) {
                $tItems[] = $this->renderItem($item);
            }
            $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_RIGHT)) . implode(
                    "\n",
                    $tItems
                ) . \CHtml::closeTag(
                    'ul'
                );
        }

        return \CHtml::tag('section', array('class' => 'top-bar-section'), implode("\n", $items), true);
    }
protected function renderItems ( ) { $ items = array ( ) ; if ( ! empty ( $ this -> leftItems ) ) { $ tItems = array ( ) ; foreach ( $ this -> leftItems as $ item ) { $ tItems [ ] = $ this -> renderItem ( $ item ) ; } $ items [ ] = \ CHtml :: openTag ( 'ul' , array ( 'class' => Enum :: POS_LEFT ) ) . implode ( "\n" , $ tItems ) . \ CHtml :: closeTag ( 'ul' ) ; } if ( ! empty ( $ this -> rightItems ) ) { $ tItems = array ( ) ; foreach ( $ this -> rightItems as $ item ) { $ tItems [ ] = $ this -> renderItem ( $ item ) ; } $ items [ ] = \ CHtml :: openTag ( 'ul' , array ( 'class' => Enum :: POS_RIGHT ) ) . implode ( "\n" , $ tItems ) . \ CHtml :: closeTag ( 'ul' ) ; } return \ CHtml :: tag ( 'section' , array ( 'class' => 'top-bar-section' ) , implode ( "\n" , $ items ) , true ) ; }
Renders widget's items.
@return string
Renders widget s items .