Automattic\WPSC\Device_Detection
User_Agent_Info::isTierRichCss
This method detects for UA which are likely to be capable but may not necessarily support JavaScript. Excludes all iPhone Tier UA.
Method of the class: User_Agent_Info{}
No Hooks.
Returns
null. Nothing (null).
Usage
$User_Agent_Info = new User_Agent_Info(); $User_Agent_Info->isTierRichCss();
User_Agent_Info::isTierRichCss() User Agent Info::isTierRichCss code WPSCache 3.1.0
public function isTierRichCss() {
if ( isset( $this->isTierRichCss ) ) {
return $this->isTierRichCss;
}
if ( $this->isTierIphone() ) {
return false;
}
// The following devices are explicitly ok.
if ( static::is_S60_OSSBrowser() ) {
$this->matched_agent = 'series60';
$this->isTierIphone = false;
$this->isTierRichCss = true;
$this->isTierGenericMobile = false;
} elseif ( static::is_opera_mini() ) {
$this->matched_agent = 'opera-mini';
$this->isTierIphone = false;
$this->isTierRichCss = true;
$this->isTierGenericMobile = false;
} elseif ( static::is_blackbeberry() ) {
$detectedDevice = static::detect_blackberry_browser_version();
if (
'blackberry-5' === $detectedDevice
|| 'blackberry-4.7' === $detectedDevice
|| 'blackberry-4.6' === $detectedDevice
) {
$this->matched_agent = $detectedDevice;
$this->isTierIphone = false;
$this->isTierRichCss = true;
$this->isTierGenericMobile = false;
}
} else {
$this->isTierRichCss = false;
}
return $this->isTierRichCss;
}