Beispiel #1
0
 /**
  * Get favicon from a URL.
  *
  * @param string $sUrl
  * @return void The HTML favicon image.
  */
 public function favicon($sUrl)
 {
     $sImg = \PH7\Framework\Navigation\Browser::favicon($sUrl);
     $sName = \PH7\Framework\Http\Http::getHostName($sUrl);
     $this->imgTag($sImg, $sName, array('width' => 16, 'height' => 16));
 }
 /**
  * Get favicon from a URL.
  *
  * @static
  * @param string $sUrl
  * @return string The favicon image.
  */
 public static function favicon($sUrl)
 {
     $sApiUrl = 'http://www.google.com/s2/favicons?domain=';
     $sDomainName = \PH7\Framework\Http\Http::getHostName($sUrl);
     return $sApiUrl . $sDomainName;
 }