public function getLogoFromUrl($url)
    {
        $pathInPiwik  = 'plugins/Morpheus/icons/dist/searchEngines/%s.png';
        $pathWithCode = sprintf($pathInPiwik, $this->getHostFromUrl($url));
        $absolutePath = PIWIK_INCLUDE_PATH . '/' . $pathWithCode;
        if (file_exists($absolutePath)) {
            return $pathWithCode;
        }
        return sprintf($pathInPiwik, 'xx');
    }
public function getLogoFromUrl($url)
    {
        $pathInPiwik  = 'plugins/Morpheus/icons/dist/searchEngines/%s.png';
        $pathWithCode = sprintf($pathInPiwik, $this->getHostFromUrl($url));
        $absolutePath = PIWIK_INCLUDE_PATH . '/' . $pathWithCode;
        if (file_exists($absolutePath)) {
            return $pathWithCode;
        }
        return sprintf($pathInPiwik, 'xx');
    }
public function getLogoFromUrl ( $ url ) { $ pathInPiwik = 'plugins/Morpheus/icons/dist/searchEngines/%s.png' ; $ pathWithCode = sprintf ( $ pathInPiwik , $ this -> getHostFromUrl ( $ url ) ) ; $ absolutePath = PIWIK_INCLUDE_PATH . '/' . $ pathWithCode ; if ( file_exists ( $ absolutePath ) ) { return $ pathWithCode ; } return sprintf ( $ pathInPiwik , 'xx' ) ; }
Return search engine logo path by URL

@param string $url
@return string path
@see plugins/Morpheus/icons/dist/searchEnginges/
Return search engine logo path by URL