This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
49 lines (32 loc) · 1.58 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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.
=====================================================
Changelog
=====================================================
1.1
Added selectors for Windows NT 4, Windows 2000, Windows XP, Windows Vista, Windows 7 and Windows 8. Now you can use the following selectors: winnt4, win2k, winxp, winvista, win7, win8.
1.0.1
Added support for Mobile Safari on iPad.
1.0
Initial release, no changes from the original PHP script by Bastian Allgeier.
=====================================================
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