You are here

README.txt in Browser Class 6

Same filename and directory in other branches
  1. 7 README.txt
-- SUMMARY --

This small module helps theme-developers to deal with cross-browser compatibility.
It makes easier to handle different types of non-widespread browsers just as much as it helps with using different versions of Internet Explorer.

The module extends the $body_classes variable in page.tpl.php based on the enduser's browser, with the following:
  * ie
  * ie[version]
  * opera
  * safari
  * chrome
  * netscape
  * ff
  * konqueror
  * dillo
  * chimera
  * beonex
  * aweb
  * amaya
  * icab
  * lynx
  * galeon
  * operamini

and with the following platforms:
  * win
  * ipad
  * ipod
  * iphone
  * mac
  * android
  * linux
  * nokia
  * blackberry
  * freebsd
  * openbsd
  * netbsd

The module checks if the device is mobile and adds "mobile" or "desktop" class.

The module also makes a $browser_classes variable available in page.tpl.php, which stores the data in an array, this way the developer can make use of it as needed, if he does not wish to use the $body_classes variable.



-- REQUIREMENTS --

None.


-- CONFIGURATION --

The module has a settings page (admin/settings/browserclass), where the administrator can choose between these options:
  * always add the class with JavaScript
  * only use JavaScript if page cache is enabled
This page is available only users with "administer browser class" permission.



-- DEVELOPERS --

Developers can add their own classes with hook_browserclass_classes(). More information in browserclass_hook.php file.



-- CONTACT --

Kalman Hosszu (hosszu.kalman http://drupal.org/user/267481) http://www.kalman-hosszu.com/

File

README.txt
View source
  1. -- SUMMARY --
  2. This small module helps theme-developers to deal with cross-browser compatibility.
  3. It makes easier to handle different types of non-widespread browsers just as much as it helps with using different versions of Internet Explorer.
  4. The module extends the $body_classes variable in page.tpl.php based on the enduser's browser, with the following:
  5. * ie
  6. * ie[version]
  7. * opera
  8. * safari
  9. * chrome
  10. * netscape
  11. * ff
  12. * konqueror
  13. * dillo
  14. * chimera
  15. * beonex
  16. * aweb
  17. * amaya
  18. * icab
  19. * lynx
  20. * galeon
  21. * operamini
  22. and with the following platforms:
  23. * win
  24. * ipad
  25. * ipod
  26. * iphone
  27. * mac
  28. * android
  29. * linux
  30. * nokia
  31. * blackberry
  32. * freebsd
  33. * openbsd
  34. * netbsd
  35. The module checks if the device is mobile and adds "mobile" or "desktop" class.
  36. The module also makes a $browser_classes variable available in page.tpl.php, which stores the data in an array, this way the developer can make use of it as needed, if he does not wish to use the $body_classes variable.
  37. -- REQUIREMENTS --
  38. None.
  39. -- CONFIGURATION --
  40. The module has a settings page (admin/settings/browserclass), where the administrator can choose between these options:
  41. * always add the class with JavaScript
  42. * only use JavaScript if page cache is enabled
  43. This page is available only users with "administer browser class" permission.
  44. -- DEVELOPERS --
  45. Developers can add their own classes with hook_browserclass_classes(). More information in browserclass_hook.php file.
  46. -- CONTACT --
  47. Kalman Hosszu (hosszu.kalman http://drupal.org/user/267481) http://www.kalman-hosszu.com/