0, 'path' => \RX_BASEURL]); } return self::$_ismobile; } /** * Get current mobile mode * * @deprecated * @return bool */ public static function _isFromMobilePhone() { return self::isFromMobilePhone(); } /** * Detect mobile device by user agent * * @deprecated * @return bool */ public static function isMobileCheckByAgent() { return Rhymix\Framework\UA::isMobile(); } /** * Check if user-agent is a tablet PC as iPad or Andoid tablet. * * @deprecated * @return bool */ public static function isMobilePadCheckByAgent() { return Rhymix\Framework\UA::isTablet(); } /** * Set mobile mode * * @deprecated * @param bool $ismobile * @return void */ public static function setMobile($ismobile) { self::$_ismobile = (bool)$ismobile; } /** * Check if mobile view is enabled * * @raturn bool */ public static function isMobileEnabled() { $mobile_enabled = config('mobile.enabled'); if ($mobile_enabled === null) { $mobile_enabled = config('use_mobile_view') ? true : false; } return $mobile_enabled; } }