/** * For compatibiilty with mobile devices iframe is not used * * @return bool */ public static function isMobileDeviceCompatible() { $mobileExists = method_exists('\\XLite\\Core\\Request', 'isMobileDevice') && \XLite\Core\Request::isMobileDevice(); $mobileEnabled = method_exists(\XLite\Core\Request::getInstance(), 'isMobileEnabled') && \XLite\Core\Request::isMobileEnabled(); return $mobileExists && $mobileEnabled; }