application/modules/g/views/helpers/Social.php
public function linkedinShareButton(array $params = array()) {
        $html = '<script type="in/share" ';
        if (!empty($params['url'])) {
            $html .= 'data-url="' . $this->view->escape($params['url']) . '" ';
        }
        if (!empty($params['counter'])) {
            $html .= 'data-counter="' . $this->view->escape($params['counter']) . '" ';
        }
        $html .= '></script>';

        // Add the LinkedIn Javascript to the stack
        // Must be rendered in the view using "$this->script()->render()"
        $this->view->script()->src('http://platform.linkedin.com/in.js');
        return $html;
    }
public function linkedinShareButton(array $params = array()) {
        $html = '<script type="in/share" ';
        if (!empty($params['url'])) {
            $html .= 'data-url="' . $this->view->escape($params['url']) . '" ';
        }
        if (!empty($params['counter'])) {
            $html .= 'data-counter="' . $this->view->escape($params['counter']) . '" ';
        }
        $html .= '></script>';

        // Add the LinkedIn Javascript to the stack
        // Must be rendered in the view using "$this->script()->render()"
        $this->view->script()->src('http://platform.linkedin.com/in.js');
        return $html;
    }
public function linkedinShareButton ( array $ params = array ( ) ) { $ html = '<script type="in/share" ' ; if ( ! empty ( $ params [ 'url' ] ) ) { $ html .= 'data-url="' . $ this -> view -> escape ( $ params [ 'url' ] ) . '" ' ; } if ( ! empty ( $ params [ 'counter' ] ) ) { $ html .= 'data-counter="' . $ this -> view -> escape ( $ params [ 'counter' ] ) . '" ' ; } $ html .= '></script>' ; // Add the LinkedIn Javascript to the stack // Must be rendered in the view using "$this->script()->render()" $ this -> view -> script ( ) -> src ( 'http://platform.linkedin.com/in.js' ) ; return $ html ; }
Generate a LinkedIn share button

@param array $params
@return string
@see http://www.linkedin.com/publishers
Generate a LinkedIn share button