application/modules/g/views/helpers/Social.php
public function facebookFacepile(array $params = array(), $useFacebookPageAsUrl = false) {
        $this->_needsFacebookInit = true;
        $params = new Garp_Util_Configuration($params);
        $params->setDefault(
            'href', array_key_exists('href', $params) && $params['href'] ?
                $params['href'] :
                $this->_getCurrentUrl()
        )
            ->setDefault('max_rows', 1)
            ->setDefault('width', 450)
            ->setDefault('colorscheme', 'light');

        if ($useFacebookPageAsUrl) {
            $this->_setFacebookPageUrlAsHref($params);
        }

        $html = '<fb:facepile ' . $this->_renderHtmlAttribs($params) . '></fb:facepile>';
        return $html;
    }
public function facebookFacepile(array $params = array(), $useFacebookPageAsUrl = false) {
        $this->_needsFacebookInit = true;
        $params = new Garp_Util_Configuration($params);
        $params->setDefault(
            'href', array_key_exists('href', $params) && $params['href'] ?
                $params['href'] :
                $this->_getCurrentUrl()
        )
            ->setDefault('max_rows', 1)
            ->setDefault('width', 450)
            ->setDefault('colorscheme', 'light');

        if ($useFacebookPageAsUrl) {
            $this->_setFacebookPageUrlAsHref($params);
        }

        $html = '<fb:facepile ' . $this->_renderHtmlAttribs($params) . '></fb:facepile>';
        return $html;
    }
public function facebookFacepile ( array $ params = array ( ) , $ useFacebookPageAsUrl = false ) { $ this -> _needsFacebookInit = true ; $ params = new Garp_Util_Configuration ( $ params ) ; $ params -> setDefault ( 'href' , array_key_exists ( 'href' , $ params ) && $ params [ 'href' ] ? $ params [ 'href' ] : $ this -> _getCurrentUrl ( ) ) -> setDefault ( 'max_rows' , 1 ) -> setDefault ( 'width' , 450 ) -> setDefault ( 'colorscheme' , 'light' ) ; if ( $ useFacebookPageAsUrl ) { $ this -> _setFacebookPageUrlAsHref ( $ params ) ; } $ html = '<fb:facepile ' . $ this -> _renderHtmlAttribs ( $ params ) . '></fb:facepile>' ; return $ html ; }
Generate a Facebook facepile.

@param array $params Various Facebook URL parameters
@param bool $useFacebookPageAsUrl
@return string
Generate a Facebook facepile .