concrete/src/Application/Service/UserInterface.php
public function button($text, $href, $buttonAlign = 'right', $innerClass = null, $args = [])
    {
        if ('right' == $buttonAlign) {
            $innerClass .= ' pull-right';
        } elseif ('left' == $buttonAlign) {
            $innerClass .= ' pull-left';
        }
        $argsstr = '';
        foreach ($args as $k => $v) {
            $argsstr .= $k . '="' . $v . '" ';
        }

        return '<a href="' . $href . '" class="btn btn-default ' . $innerClass . '" ' . $argsstr . '>' . $text . '</a>';
    }
public function button($text, $href, $buttonAlign = 'right', $innerClass = null, $args = [])
    {
        if ('right' == $buttonAlign) {
            $innerClass .= ' pull-right';
        } elseif ('left' == $buttonAlign) {
            $innerClass .= ' pull-left';
        }
        $argsstr = '';
        foreach ($args as $k => $v) {
            $argsstr .= $k . '="' . $v . '" ';
        }

        return '<a href="' . $href . '" class="btn btn-default ' . $innerClass . '" ' . $argsstr . '>' . $text . '</a>';
    }
public function button ( $ text , $ href , $ buttonAlign = 'right' , $ innerClass = null , $ args = [ ] ) { if ( 'right' == $ buttonAlign ) { $ innerClass .= ' pull-right' ; } elseif ( 'left' == $ buttonAlign ) { $ innerClass .= ' pull-left' ; } $ argsstr = '' ; foreach ( $ args as $ k => $ v ) { $ argsstr .= $ k . '="' . $ v . '" ' ; } return '<a href="' . $ href . '" class="btn btn-default ' . $ innerClass . '" ' . $ argsstr . '>' . $ text . '</a>' ; }
Generates a simple link button in the Concrete style.

@param string $text The text of the button
@param string $href
@param string $buttonAlign
@param string $innerClass
@param array $args Extra args passed to the link

@return string
Generates a simple link button in the Concrete style .