public function CheckItemToNavbar($type = 'item', $id) { if (!$type) { $type = 'item'; } $m = $this->modulesbyfilename['navbar']; $s = $m->Content; return (bool) strpos($s, 'id="navbar-' . $type . '-' . $id . '"'); }