Welcome Guest, Not a member yet? Register   Sign In
Having trouble with a foreach loop
#5

The Codeigniter useragent library is pretty basic. You could integrate https://github.com/serbanghita/Mobile-Detect into your project. It provides functions like is_mobile, is_tablet etc.
If you want to know screen resolutions you need to adopt some javascript solutions. I use this approach: https://github.com/hgoebl/mobile-detect..../README.md

Pretty easy to combine it with modernizr to append the desired classnames to the body tag.
Reply


Messages In This Thread
Having trouble with a foreach loop - by doomie22 - 09-15-2016, 06:05 AM
RE: Having trouble with a foreach loop - by Diederik - 09-16-2016, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB