private function currentMobile()
    {
        if (!$this->MobileDetect || !($this->MobileDetect instanceof \Mobile_Detect)) {
            return false;
        }

        //for phones only, not tablets
        //create your own Strategy if needed, and change this functionality
        return $this->MobileDetect->isMobile() && !$this->MobileDetect->isTablet();
    }
private function currentMobile()
    {
        if (!$this->MobileDetect || !($this->MobileDetect instanceof \Mobile_Detect)) {
            return false;
        }

        //for phones only, not tablets
        //create your own Strategy if needed, and change this functionality
        return $this->MobileDetect->isMobile() && !$this->MobileDetect->isTablet();
    }
private function currentMobile ( ) { if ( ! $ this -> MobileDetect || ! ( $ this -> MobileDetect instanceof \ Mobile_Detect ) ) { return false ; } //for phones only, not tablets //create your own Strategy if needed, and change this functionality return $ this -> MobileDetect -> isMobile ( ) && ! $ this -> MobileDetect -> isTablet ( ) ; }
Whether current page was accessed from a mobile phone

@return bool true for phones, else false
Whether current page was accessed from a mobile phone