function icons() { global $ss_settings; $favicon_item = $ss_settings['favicon']; $apple_icon_item = $ss_settings['apple_icon']; // Add the favicon if (!empty($favicon_item['url']) && $favicon_item['url'] != '') { $favicon = StacheStack_Image::_resize($favicon_item['url'], 32, 32, true, false); echo '<link rel="shortcut icon" href="' . $favicon['url'] . '" type="image/x-icon" />'; } // Add the apple icons if (!empty($apple_icon_item['url'])) { $iphone_icon = StacheStack_Image::_resize($apple_icon_item['url'], 57, 57, true, false); $iphone_icon_retina = StacheStack_Image::_resize($apple_icon_item['url'], 57, 57, true, true); $ipad_icon = StacheStack_Image::_resize($apple_icon_item['url'], 72, 72, true, false); $ipad_icon_retina = StacheStack_Image::_resize($apple_icon_item['url'], 72, 72, true, true); ?> <!-- For iPhone --><link rel="apple-touch-icon-precomposed" href="<?php echo $iphone_icon['url']; ?> "> <!-- For iPhone 4 Retina display --><link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $iphone_icon_retina['url']; ?> "> <!-- For iPad --><link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $ipad_icon['url']; ?> "> <!-- For iPad Retina display --><link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $ipad_icon_retina['url']; ?> "> <?php } }