Bachir Soussi Chiadmi 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago
..
tests 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago
README.txt 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago
metatag_mobile.info 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago
metatag_mobile.metatag.inc 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago
metatag_mobile.module 3413d81bb8 updated context, metatag, imagestyleflush, browscap 7 years ago

README.txt

Metatag: Mobile
---------------
This submodule of Metatag adds a number of new meta tags commonly used for
tailoring the experience of people using mobile devices.

Mobile:






iOS:







Android:



Windows:





















Configuration
--------------------------------------------------------------------------------
By default the two link alternative meta tags include a prefix - "android-app://" and "ios-app://". To remove this prefix just change the theme
functions, e.g.:

/**
* Implements theme_metatag_mobile_android_app().
*
* Remove the default prefix.
*/
function MYTHEME_metatag_mobile_android_app($variables) {
// Pass everything through to the normal 'link' tag theme.
$variables['element']['#name'] = 'alternative';

// Don't actually want this.
// $variables['element']['#value'] = 'android-app://' . $variables['element']['#value'];

return theme('metatag_link_rel', $variables);
}

/**
* Implements theme_metatag_mobile_ios_app().
*
* Remove the default prefix.
*/
function MYTHEME_metatag_mobile_ios_app($variables) {
// Pass everything through to the normal 'link' tag theme.
$variables['element']['#name'] = 'alternative';

// Don't actually want this.
// $variables['element']['#value'] = 'ios-app://' . $variables['element']['#value'];

return theme('metatag_link_rel', $variables);
}


Credits / Contact
--------------------------------------------------------------------------------
Originally developed by Damien McKenna [1].


References
--------------------------------------------------------------------------------
1: https://www.drupal.org/u/damienmckenna.