Title: Detector
Author: steve.barnett
Published: <strong>Agẹmọ  21, 2012</strong>
Last modified: Ọwẹ́wẹ̀  10, 2012

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/detector.svg)

# Detector

 Láti ọwọ́ [steve.barnett](https://profiles.wordpress.org/stevebarnett-1/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/detector.0.9.5.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/detector/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/detector/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/detector/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/detector/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/detector/)

## Àpèjúwe

[Detector](http://detector.dmolsen.com/) is a simple, PHP- and JavaScript-based 
browser- and feature-detection library that can adapt to new devices & browsers 
on its own without the need to pull from a central database of browser information.

Also available on GitHub: [https://github.com/SteveBarnett/Detector](https://github.com/SteveBarnett/Detector).

Full documentation is available at [github / dmolsen / Detector](https://github.com/dmolsen/Detector/).

### To Do

 * Add some useful responsive image handling, in the style of [picturefill.js](https://github.com/scottjehl/picturefill/).
   Based on families at first?
 * Add functions for conditional loading of content via JS, depending on screen 
   size.
 * wp_enqueue_script for Modernizr
 * Check Modernizr version, custom
 * Add option to add own [feature tests](https://github.com/dmolsen/Detector/wiki/Detector-Test-Tutorial)
   from admin area?
 * Add option to add own [families](https://github.com/dmolsen/Detector/wiki/Detector-Family-Tutorial)
   from admin area?
 * Add shortcodes?

## Ìgbéwọlẹ̀

 1. Go to Plugins > Add New, Upload and choose detector.zip.
 2. Activate the plugin.

## FAQ

  How do I use Detector?

In order to access the features you need to use the `$ua` object that is automatically
created with the inclusion of Detector in your application. Use the `$ua` object
in a similar way that you would have used the `Modernizr` object on the client-side:

    ```
    global $ua;

    // your script

    if ($ua->svg) {
        ...
    } elseif ($ua->canvas) {
        ...
    }
    ```

See the [full list of browser features](http://detector.dmolsen.com/demo/modernizr-listing/)
that are tested by Modernizr and available with Detector. All of the features tested
with [ua-parser-php](https://github.com/dmolsen/ua-parser-php) are also available
from the `$ua` variable (e.g. `$ua->isMobile` or `$ua->browserFull`)

Some features, (in particular `video`, `audio`, `input`, and `inputtypes`) have 
sub-features, so these are available as nested PHP objects:

    ```
    if ($ua->inputtypes->search) {
        print "<input type='search' ...";
    } else {
        print "<input type='text' ...";
    }
    ```

All features are returned as integer `1` or `0` for `true` or `false`, so they can
be used in logical evaluations in PHP. Sub-features can return `1`, `0`, or a real
value (e.g. screen width).

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Detector” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí 
plugin yìí.

Àwọn Olùkópa

 *   [ steve.barnett ](https://profiles.wordpress.org/stevebarnett-1/)

[Túmọ̀ “Detector” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/detector)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/detector/), ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/detector/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/detector/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/detector/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 0.9.5

Updated to match dmoslenÌtumọ̀ Yorùbá: ’s current Detector

#### 0.8.5

Updated to match dmoslenÌtumọ̀ Yorùbá: ’s current Detector

#### 0.8.2

Updated to match dmoslenÌtumọ̀ Yorùbá: ’s current Detector

#### 0.8.1

 * Initial release. [regexes.yaml from 2012/07/12: 303c8f9](https://github.com/tobie/ua-parser/commit/303c8f905aa34110467cdfe730cf066ae6f6e18e#regexes.yaml)

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.9.5**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 14 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.0.5**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/detector/)
 * Àwọn àmì
 * [detector](https://yor.wordpress.org/plugins/tags/detector/)[device](https://yor.wordpress.org/plugins/tags/device/)
   [modernizr](https://yor.wordpress.org/plugins/tags/modernizr/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/detector/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/detector/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/detector/reviews/)

## Àwọn Olùkópa

 *   [ steve.barnett ](https://profiles.wordpress.org/stevebarnett-1/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/detector/)