public function render(array $data, array $attrs = array())
    {
        $output = array();
        $attrs  = array_merge(array('class' => 'uk-description-list-horizontal'), $attrs);
        $attrs  = $this->_mergeAttr($attrs, $this->_jbSrt('data-list'));

        $output[] = '<dl ' . $this->buildAttrs($attrs) . '>';

        foreach ($data as $label => $text) {
            $label = $this->_translate($label);
            $output[] = '<dt title="' . $this->_cleanValue($label) . '">' . $label . '</dt>';
            $output[] = '<dd>' . $text . '</dd>';
        }

        $output[] = '</dl>';

        return implode('', $output);
    }
public function render(array $data, array $attrs = array())
    {
        $output = array();
        $attrs  = array_merge(array('class' => 'uk-description-list-horizontal'), $attrs);
        $attrs  = $this->_mergeAttr($attrs, $this->_jbSrt('data-list'));

        $output[] = '<dl ' . $this->buildAttrs($attrs) . '>';

        foreach ($data as $label => $text) {
            $label = $this->_translate($label);
            $output[] = '<dt title="' . $this->_cleanValue($label) . '">' . $label . '</dt>';
            $output[] = '<dd>' . $text . '</dd>';
        }

        $output[] = '</dl>';

        return implode('', $output);
    }
public function render ( array $ data , array $ attrs = array ( ) ) { $ output = array ( ) ; $ attrs = array_merge ( array ( 'class' => 'uk-description-list-horizontal' ) , $ attrs ) ; $ attrs = $ this -> _mergeAttr ( $ attrs , $ this -> _jbSrt ( 'data-list' ) ) ; $ output [ ] = '<dl ' . $ this -> buildAttrs ( $ attrs ) . '>' ; foreach ( $ data as $ label => $ text ) { $ label = $ this -> _translate ( $ label ) ; $ output [ ] = '<dt title="' . $ this -> _cleanValue ( $ label ) . '">' . $ label . '</dt>' ; $ output [ ] = '<dd>' . $ text . '</dd>' ; } $ output [ ] = '</dl>' ; return implode ( '' , $ output ) ; }
Create data list.

@param array $data
@param array $attrs
@return string
Create data list .