Topic: Mobile detect plugin request;
Hi,
can anybody make plugin for this: http://mobiledetect.net/ please? I am not able to do it manul into header.chunk.php
Pages 1
Hi,
can anybody make plugin for this: http://mobiledetect.net/ please? I am not able to do it manul into header.chunk.php
Monstra have this method
if (Agent::isMobile()) { // Do something... }
@nakome, @raipergm34
PHP rules!
Also you can add this using javascript
As you see in code if the resolution is not bigger then 800px user will be redirected to m.domain.com
And depending on what you are tying to achieve..
If its the frontend you might want to look at using Bootstrap's responsive grid system so that it automatically reflows/ hides & shows depending on screen size.
http://getbootstrap.com/css/#grid
http://getbootstrap.com/css/#responsive-utilities
Php ismobile function is for include or o require_once files in same template or load other scripts without redirecting page.
Yes but he wants to redirect user i guess... Well he have many solutions now
Thanks guysm i wanted to generate another link on my webpage, if is mobile then a href = .... else a href = .... so i am going to try it, but i think it should work for me
@raipergm34
As been a wille now did it worked for you?
Yes it did
Pages 1