public function login($service, $config = array())
    {
        $config = new AnConfig($config);

        $config->append(array(
            'html' => $this->icon($service),
            'url' => $this->url($service),
            'attributes' => array(),
        ));

        $html = $this->getService('com:base.template.helper.html');

        $link = $html->link($config->html, $config->url, $config->attributes)
                     ->class('btn btn-'.$service)
                     ->dataTrigger('PostLink')
                     ->title($service);

        return $link;
    }
public function login($service, $config = array())
    {
        $config = new AnConfig($config);

        $config->append(array(
            'html' => $this->icon($service),
            'url' => $this->url($service),
            'attributes' => array(),
        ));

        $html = $this->getService('com:base.template.helper.html');

        $link = $html->link($config->html, $config->url, $config->attributes)
                     ->class('btn btn-'.$service)
                     ->dataTrigger('PostLink')
                     ->title($service);

        return $link;
    }
public function login ( $ service , $ config = array ( ) ) { $ config = new AnConfig ( $ config ) ; $ config -> append ( array ( 'html' => $ this -> icon ( $ service ) , 'url' => $ this -> url ( $ service ) , 'attributes' => array ( ) , ) ) ; $ html = $ this -> getService ( 'com:base.template.helper.html' ) ; $ link = $ html -> link ( $ config -> html , $ config -> url , $ config -> attributes ) -> class ( 'btn btn-' . $ service ) -> dataTrigger ( 'PostLink' ) -> title ( $ service ) ; return $ link ; }
Returns the logo for a service.

@param string $service
@param array  $config

@return LibBaseTemplateHelperHtmlElement
Returns the logo for a service .