Automattic\Jetpack\Device_Detection

User_Agent_Info::isTierRichCss()publicWPSCache 1.0

This method detects for UA which are likely to be capable but may not necessarily support JavaScript. Excludes all iPhone Tier UA.

Метод класса: User_Agent_Info{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$User_Agent_Info = new User_Agent_Info();
$User_Agent_Info->isTierRichCss();

Код User_Agent_Info::isTierRichCss() WPSCache 1.12.4

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;
}