- Timestamp:
- 2014/03/27 15:22:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_SmartphoneUserAgent.php
r23124 r23354 37 37 public function isSmartphone() 38 38 { 39 $ nu = new Net_UserAgent_Mobile();39 $detect = new Mobile_Detect; 40 40 // SPでかつPC表示OFFの場合 41 return $nu->isSmartphone() && !SC_SmartphoneUserAgent_Ex::getSmartphonePcFlag(); 41 // TabletはPC扱い 42 return ($detect->isMobile() && !$detect->isTablet()) && !SC_SmartphoneUserAgent_Ex::getSmartphonePcFlag(); 42 43 } 43 44
Note: See TracChangeset
for help on using the changeset viewer.