detection = 'FusionLibrary\Device_Detection'; } else { $this->detection = 'Automattic\Jetpack\Device_Detection'; } } /** * Returns is mobile. * * @access public * @since 3.4 * @return boolean */ public function is_mobile() { return apply_filters( 'awb_device_detection_is_mobile', call_user_func( [ $this->detection, 'is_phone' ] ) ); } /** * Returns is tablet. * * @access public * @since 3.4 * @return boolean */ public function is_tablet() { return apply_filters( 'awb_device_detection_is_tablet', call_user_func( [ $this->detection, 'is_tablet' ] ) ); } } /* Omit closing PHP tag to avoid 'Headers already sent' issues. */