Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : devices.php
<?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() || apply_filters( 'TieLabs/disable_is_mobile', false )  ) {
		return false;
	}

	// Cache the tie_is_mobile
	if( isset( $GLOBALS['tie_is_mobile'] ) ){
		$is_mobile = $GLOBALS['tie_is_mobile'];
	}
	else{

		/**
		 * 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');
		}

		$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;
}
© 2026 GrazzMean