protected function _renderButton($label, $attrbs)
    {
        $attrbs = new AnConfig($attrbs);

        $attrbs->append(array(
            'class' => '',
        ));

        $attrbs->class .= 'btn small';

        if (isset($attrbs->type)) {
            $attrbs->class .= ' btn-'.$attrbs->type;

            unset($attrbs->type);
        }

        $attrbs = AnConfig::unbox($attrbs);

        foreach ($attrbs as $key => $value) {
            $attrbs[$key] = $key.'="'.$value.'"';
        }

        $attrbs = implode(' ', $attrbs);

        return '<a '.$attrbs.'>'.$label.'</a>';
    }
protected function _renderButton($label, $attrbs)
    {
        $attrbs = new AnConfig($attrbs);

        $attrbs->append(array(
            'class' => '',
        ));

        $attrbs->class .= 'btn small';

        if (isset($attrbs->type)) {
            $attrbs->class .= ' btn-'.$attrbs->type;

            unset($attrbs->type);
        }

        $attrbs = AnConfig::unbox($attrbs);

        foreach ($attrbs as $key => $value) {
            $attrbs[$key] = $key.'="'.$value.'"';
        }

        $attrbs = implode(' ', $attrbs);

        return '<a '.$attrbs.'>'.$label.'</a>';
    }
protected function _renderButton ( $ label , $ attrbs ) { $ attrbs = new AnConfig ( $ attrbs ) ; $ attrbs -> append ( array ( 'class' => '' , ) ) ; $ attrbs -> class .= 'btn small' ; if ( isset ( $ attrbs -> type ) ) { $ attrbs -> class .= ' btn-' . $ attrbs -> type ; unset ( $ attrbs -> type ) ; } $ attrbs = AnConfig :: unbox ( $ attrbs ) ; foreach ( $ attrbs as $ key => $ value ) { $ attrbs [ $ key ] = $ key . '="' . $ value . '"' ; } $ attrbs = implode ( ' ' , $ attrbs ) ; return '<a ' . $ attrbs . '>' . $ label . '</a>' ; }
Renders a button for a message.

@param string $label  Button label
@param array  $attrbs Button attributes

@return string
Renders a button for a message .