aioFaviconSettings = $aioFaviconSettings;
$this->aioFaviconType = $aioFaviconType;
}
// FaviconRenderHelper()
/**
* Renders all different configured Favicons
*
* @since 4.1
* @access public
* @author Arne Franken
*/
//public function renderFavicons() {
function renderFavicons() {
if (!empty($this->aioFaviconSettings)) {
//add comment to HTML
echo '';
foreach ((array)$this->aioFaviconSettings as $favicon => $url) {
if (!empty($url)) {
if (preg_match('/' . $this->aioFaviconType . '/i', $favicon)) {
if (preg_match('/ico/i', $favicon)) {
$this->render('shortcut icon',$url,null);
}
else if (preg_match('/gif/i', $favicon)) {
$this->render('icon',$url,'image/gif');
}
else if (preg_match('/png/i', $favicon)) {
$this->render('icon',$url,'image/png');
}
else if (preg_match('/apple/i', $favicon)) {
if ((isset($this->aioFaviconSettings['removeReflectiveShine'])
&& !$this->aioFaviconSettings['removeReflectiveShine'])) {
$this->render('apple-touch-icon',$url,null);
}
else {
$this->render('apple-touch-icon-precomposed',$url,null);
}
}
}
}
}
}
}
// renderFavicons()
/**
* Render tag to HTML
*
* @since 4.1
* @access private
* @author Arne Franken
*
* @param $rel String value for the rel attribute
* @param $url String value for the href attribute
* @param $type String value for the type attribute. May be null.
*/
//private function render($rel, $url, $type) {
function render($rel, $url, $type) {
?>/>