astra_check_is_ie()
Function to check if it is Internet Explorer.
Description
Return
(true) | false boolean
Source
File: classes/helper-functions.php
function astra_check_is_ie() { $is_ie = false; $user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : false; $ua = htmlentities( $user_agent, ENT_QUOTES, 'UTF-8' ); if ( strpos( $ua, 'Trident/7.0' ) !== false ) { $is_ie = true; } return $is_ie; }
Expand full source code Collapse full source code View on Trac