Skip to content

Instantly share code, notes, and snippets.

@kremalicious
Created March 26, 2012 12:09
Show Gist options
  • Save kremalicious/2204685 to your computer and use it in GitHub Desktop.
Save kremalicious/2204685 to your computer and use it in GitHub Desktop.
Stud.IP Einbindung Touch Icons
<?
public static function initialize()
{
// set touch icons and favicon
self::addHeadElement('link', array('rel' => 'apple-touch-icon-precomposed', 'href' => Assets::image_path('apple-touch-icon-144x144-precomposed.png'), 'sizes' => '144x144'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon-precomposed', 'href' => Assets::image_path('apple-touch-icon-114x114-precomposed.png'), 'sizes' => '114x114'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon-precomposed', 'href' => Assets::image_path('apple-touch-icon-72x72-precomposed.png'), 'sizes' => '72x72'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon-precomposed', 'href' => Assets::image_path('apple-touch-icon-precomposed.png') ));
self::addHeadElement('link', array('rel' => 'shortcut icon', 'href' => Assets::image_path('favicon.ico') ));
// include jQuery + UI
self::addStylesheet('jquery-ui-1.8.14.custom.css', array('media' => 'screen, print'));
self::addStylesheet('jquery-ui-studip.css', array('media' => 'screen, print'));
// include default CSS
self::addStylesheet('style.css', array('media' => 'screen'));
self::addStylesheet('smiley.css', array('media' => 'screen, print'));
//include print CSS
self::addStylesheet('print.css', array('media' => 'print'));
// include ie-specific CSS
$css = sprintf('[if IE]><link rel="stylesheet" href="%s" media="screen,print"><![endif]', Assets::stylesheet_path('ie.css'));
self::addComment($css, 'IE');
self::setSqueezePackages("base");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment