Zum Inhalt springen

Browser Weiche Android

Aus Computech CMS Wiki
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
  if(stripos($ua,'android') !== false) { // && stripos($ua,'mobile') !== false) {
      echo ('<link rel="stylesheet" type="text/css" href="'. path_to_theme().'/css/android.css">');
}