Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Apple touch icons.
- * Create icons in sizes 57x57 (iPhone low res), 72x72 (iPad) and 114x114 (iPhone high res)
- */
- // iPhone.
- $icons['iphone_icon'] = array(
- 'href' => drupal_get_path('theme','ODDSITE') . '/apple-touch-icon-iphone.png',
- 'rel' => 'apple-touch-icon',
- );
- // iPad.
- $icons['ipad_icon'] = array(
- 'href' => drupal_get_path('theme','ODDSITE') . '/apple-touch-icon-ipad.png',
- 'rel' => 'apple-touch-icon',
- 'sizes' => '72x72',
- );
- // iPhone 4.
- $icons['iphone4_icon'] = array(
- 'href' => drupal_get_path('theme','ODDSITE') . '/apple-touch-icon-iphone4.png',
- 'rel' => 'apple-touch-icon',
- 'sizes' => '114x114',
- );
- // Add the icons to <head>.
- foreach ($icons as $key => $icon) {
- $element = array(
- '#tag' => 'link',
- '#attributes' => array(
- 'href' => $icon['href'],
- 'rel' => $icon['rel'],
- 'sizes' => $icon['sizes'],
- ),
- );
- drupal_add_html_head($element, $key);
- }
Add Comment
Please, Sign In to add comment