Layout fix for IEx browsers
This commit is contained in:
@@ -142,3 +142,11 @@ function windycoys_get_read_time($words) {
|
||||
$mins = ceil($words / $wpm);
|
||||
return $mins;
|
||||
}
|
||||
|
||||
function windycoys_is_ie() {
|
||||
$ua = htmlentities($_SERVER["HTTP_USER_AGENT"], ENT_QUOTES, "UTF-8");
|
||||
if (preg_match("~MSIE|Internet Explorer~i", $ua) || (strpos($ua, "Trident/7.0") !== false && strpos($ua, "rv:11.0") !== false)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user