* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ header('X-UA-Compatible: IE=edge,chrome=1'); $hasSidebar = page_findnearest($conf['sidebar']); $showSidebar = $hasSidebar && ($ACT=='show'); function ua_smt (){ // Get user agent $ua = $_SERVER['HTTP_USER_AGENT']; // Word list for checking mobile $ua_list = array('iPhone','iPad','iPod','Android'); foreach ($ua_list as $ua_smt) { // mobile -> true if (strpos($ua, $ua_smt) !== false) { return true; } } return false; } ?>