Add support for touch icons:


Original request:

See https://developer.apple.com/library/ios/documentation/AppleApplications/... for documentation.

The tag value contains three comma-separated parameters; I'm not completely familiar with the Meta Tag API yet, but I think it would be ideal if these were implemented as separate fields and then combined automatically.

Files: 
CommentFileSizeAuthor
#5 smartappbanners-2085747.patch2.33 KBjazzslider

Comments

jazzslider’s picture

Status:Active» Needs review
StatusFileSize
new2.76 KB
PASSED: [[SimpleTest]]: [MySQL] 73 pass(es).
[ View ]

The attached patch implements a very basic version of this. I did not, unfortunately, see a way to implement the three named parameters as separate fields, so those using this tag will have to enter the entire string as defined in the docs. That's probably acceptable to most people who would use this.

jbrown’s picture

Status:Needs review» Needs work

Shouldn't it be
<meta name="apple-itunes-app" content="app-id=#" />

instead of

<meta property="apple-itunes-app" content="app-id=#" />

jazzslider’s picture

Issue summary:View changes
StatusFileSize
new2.75 KB

Indeed it should —thanks for the catch, I've updated the patch accordingly.

DamienMcKenna’s picture

I think this needs some a little further work:

  • Please don't provide a 160 character long URL as part of the help text :) This should be the URL of a link, e.g. "Parameters for configuring the [link]Smart App Banner[/link]."
  • I don't think you need the custom theme function, the default should work.
jazzslider’s picture

StatusFileSize
new2.33 KB

Please see my latest patch, which implements your recommendations.

Thanks!
Adam

DamienMcKenna’s picture

Title:Add support for apple-itunes-app meta tag» Add support for Apple's custom meta tags

Lets expand this to cover Apple's other meta tags too.

DamienMcKenna’s picture

Dave Reid’s picture

Note that 'apple-touch-icon' is used by a lot more than just Apple devices, so caution in how it's labeled otherwise it might be easily ignored.

Dave Reid’s picture

DamienMcKenna’s picture

Title:Add support for Apple's custom meta tags» Add support for touch icons
Issue summary:View changes

Lets refocus the request.

DamienMcKenna’s picture

Version:7.x-1.0-beta7» 7.x-1.x-dev
Dave Reid’s picture

DamienMcKenna’s picture

+1 for the responsive_favicons module, it and the service it uses (http://realfavicongenerator.net/) work really well.