/** * Detects templates based on the given browser string * (defaults, of course, to "default") */ function detectTemplateType() { $device = \Bonita\Main::detectDevice(); return $this->setTemplateType($device); }