Download & Extend

Context Useragent

Main functionality

Adds a new condition to the context module that allows performing regular expression tests on the useragent string ($_SERVER['HTTP_USER_AGENT']). This allows adding different reactions based on the user's browser, operating system, or other needed contexts that may be found in the useragent string.

Submodule

The module also comes with a second submodule (Context Useragent Defaults) which provides a number of default contexts for popular browsers and operating systems. These contexts, by default, simply apply a body class to the page to identify the current user's browser (useful for targeting specific browsers in a theme's css [ex: body.ie7 #stinks{padding:5px;}]).

The contexts currently included in the Context Useragent Defaults submodule are as follows:

  • Browsers: Chrome 6 & 7, Firefox 2-4, Internet Explo[d]er 6-8, Opera 9 & 10, and Safari 3-5
  • OSs: Linux, Mac, and Windows

Requirements

Context 3.0 or higher

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0 tar.gz (8.74 KB) | zip (11.06 KB) 2010-Nov-02 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.65 KB) | zip (10.76 KB) 2011-Feb-25 Notes
6.x-1.x-dev tar.gz (8.64 KB) | zip (10.75 KB) 2011-Feb-25 Notes

Project Information


Maintainers for Context Useragent

Issues for Context Useragent

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants