Closed (fixed)
Project:
WebApp
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Apr 2012 at 15:50 UTC
Updated:
23 Jan 2014 at 14:08 UTC
Jump to comment: Most recent
This module works excellent. Thanks! When are you releasing it?
I use this code in template.php to add Touch icons:
function YOURTHEME_preprocess_html(&$vars) {
// Add Touch Icons
$touchicon = array(
'#tag' => 'link',
'#attributes' => array(
'href' => base_path().path_to_theme(). '/images/apple-touch-icon.png',
'rel' => 'apple-touch-icon',
),
);
$touchicon72x72 = array(
'#tag' => 'link',
'#attributes' => array(
'href' => base_path().path_to_theme(). '/images/apple-touch-icon-72x72.png',
'sizes' => '72x72',
'rel' => 'apple-touch-icon',
),
);
$touchicon114x114 = array(
'#tag' => 'link',
'#attributes' => array(
'href' => base_path().path_to_theme(). '/images/apple-touch-icon-114x114.png',
'sizes' => '114x114',
'rel' => 'apple-touch-icon',
),
);
$touchstartupimage = array(
'#tag' => 'link',
'#attributes' => array(
'href' => base_path().path_to_theme(). '/images/apple-touch-startup-image.png',
'rel' => 'apple-touch-startup-image',
),
);
drupal_add_html_head($touchicon, 'apple_touch_icon');
drupal_add_html_head($touchicon72x72, 'apple_touch_icon72x72');
drupal_add_html_head($touchicon114x114, 'apple_touch_icon114x114');
drupal_add_html_head($touchstartupimage, 'apple-touch-startup-image');
}
Comments
Comment #1
grienauerI have added some functions!
- deliver App icons for all different iOS devices like iPad, iPhone and iPod Touch and for devices with Retina displays
- Startup Images for all different iOS device/screen Sizes and pixel ratio
- Homescreen App title (only iOS6)
and applied for full project access :) (I am exited ;))
thx for your compliment! Its my firstborn module and as a designer it's not easy for me to build a module... ;)
Comment #2
pedrospKudos for the module !
I've been fishing around and your module summed up almost all requirements all-in-one.
I hope it will upgrade soon to a standard project.
Comment #3
Chris CharltonAny update to your project application?
Comment #4
grienauerNot jet... I am not a coder so it takes me decades to fix simple bugs ;)
But it's on my todo :)
Comment #5
grienauerIt only took 1 year and 9 months... but now it's rewritten and a full project!
YESSSS!
Some features are in the pipeline... and will not take nearly 2 years again...
:)
Comment #6
grienauerComment #7
acke commentedCool! Congrats! 1 year and 9 months sounds like a record... :)