| Server IP : 119.59.104.26 / Your IP : 216.73.217.74 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/MIXThemes/framework/vendor/Mobile_Detect/ |
Upload File : |
<?php
/**
Check if the current device is mobile ( Not tablet )
*/
function tie_is_mobile(){
// Will recognize tablets as mobile, we use it as early check
if ( ! wp_is_mobile() ) {
return false;
}
/**
* We are using a Custom name for the Mobile_Detect Class name because some plugins -
* such as Envira Gallery uses an modefied/old version of the library
*/
if ( ! class_exists( 'TIE_Mobile_Detect' ) ){
require_once ( TIELABS_TEMPLATE_PATH . '/framework/vendor/Mobile_Detect/Mobile_Detect.php');
}
// Cache the tie_is_mobile
if( isset( $GLOBALS['tie_is_mobile'] ) ){
$is_mobile = $GLOBALS['tie_is_mobile'];
}
else{
$mobble_detect = new TIE_Mobile_Detect();
if ( $mobble_detect->isTablet() ){
$is_mobile = false;
}
else{
$is_mobile = $mobble_detect->isMobile();
}
$GLOBALS['tie_is_mobile'] = $is_mobile;
}
return $is_mobile;
}