Plugin

EE 1
EE 2
CSS Browser Selector

Developer

Ronny-André Bendiksen

3rd Party (Free)

Creative Commons Attribution Download v1.0

Compatibility

Requirements

  • jQuery for the Control Panel

Tags

This plugin returns the visitors operating system and browser as CSS browser selectors to use in your HTML.

Basic Usage

The following code returns CSS selectors:
{exp:css_browser_selector}

Or you can provide the user agent as a string:
{exp:css_browser_selector agent=“Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)”}

Keep in mind that you can use ExpressionEngine’s own Referrer module variable {ref_agent}:
{exp:css_browser_selector agent=”{ref_agent}”}

Parameters

agent
If empty, ExpressionEngine will use PHP’s own $_SERVER[‘HTTP_USER_AGENT’] variable.

Credits

This is an ExpressionEngine port of Bastian Allgeier’s PHP CSS Browser Selector. (Which is then a port of Rafael Lima’s Javascript CSS Browser Selector.)

Bastian Allgeier
http://bastian-allgeier.de/css_browser_selector

Rafael Lima
http://rafael.adm.br/css_browser_selector

Download CSS Browser Selector

EE Version Downloads Add-On Version Release Date
2.+ Download 1.0 2011-06-06 12:00 AM

CSS Browser Selector Links

This entry was last updated October 21, 2011, 11:01 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!