public function getLogoFromUrl($domain)
    {
        $social = $this->getSocialNetworkFromDomain($domain);
        $socialNetworks = $this->getDefinitions();

        $filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png';

        $socialDomains = array_keys($socialNetworks, $social);
        foreach ($socialDomains as $domain) {
            if (file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($filePattern, $domain))) {
                return sprintf($filePattern, $domain);
            }
        }

        return sprintf($filePattern, 'xx');
    }
public function getLogoFromUrl($domain)
    {
        $social = $this->getSocialNetworkFromDomain($domain);
        $socialNetworks = $this->getDefinitions();

        $filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png';

        $socialDomains = array_keys($socialNetworks, $social);
        foreach ($socialDomains as $domain) {
            if (file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($filePattern, $domain))) {
                return sprintf($filePattern, $domain);
            }
        }

        return sprintf($filePattern, 'xx');
    }
public function getLogoFromUrl ( $ domain ) { $ social = $ this -> getSocialNetworkFromDomain ( $ domain ) ; $ socialNetworks = $ this -> getDefinitions ( ) ; $ filePattern = 'plugins/Morpheus/icons/dist/socials/%s.png' ; $ socialDomains = array_keys ( $ socialNetworks , $ social ) ; foreach ( $ socialDomains as $ domain ) { if ( file_exists ( PIWIK_INCLUDE_PATH . '/' . sprintf ( $ filePattern , $ domain ) ) ) { return sprintf ( $ filePattern , $ domain ) ; } } return sprintf ( $ filePattern , 'xx' ) ; }
Return social network logo path by URL

@param string $domain
@return string path
@see plugins/Morpheus/icons/dist/socials/
Return social network logo path by URL