Developer Question: Getting device type in php
Hello UNA π
Is there any preexisting functions that deliver the device type back (phone, tablet, PC) in php on server side.
Or has this been done in any UNA modules or framework where I can see the code. I want to use what is available to me before I start including libraries to handle this.
Thank you π
-
-
·
LeonidS
- ·
Hello ο»Ώ@Wiseο»Ώ !
UNA has the bx_is_mobile function (inc/utils.inc.php file) which processes the $_SERVER['HTTP_USER_AGENT'] parameter.
-
·
LeonidS
-
- · Wise
- ·
Thank you my friend ο»Ώ@LeonidSο»Ώ
I think I will comb through that file to find other gems ππ