handler = "search2"; $cs_id = $b->get("curriculumSubject"); if ($cs_id) { $c .= elgg_view('output/browse2_cloud', array('cs_id' => $cs_id, 'b' => $b)); } /*translation:Advanced search*/ $title = elgg_echo("koolielu:advaned_search"); /*translation:Learning resources*/ $title = elgg_echo("koolielu:learningresources_title"); $c .= elgg_view('object/advsearch_top', array('b' => $b, 'content' => $content)); if ($b->canQuery()) { $c .= $b->doQuery(); } if ($cs_id) { $t = elgg_view("waramu/subjectBrowser", array('selected' => $cs_id)); $cs = getCurriculumSubject($cs_id); if ($cs[0]->level > 1) { $cobj = getCurriculumSubject(getCurriculumMainSubject($cs[0]->eid)); $cobj = $cobj[0]; } else { $cobj = $cs[0]; } $title .= ": " . $cobj->title; $mods = elgg_view("waramu/moderators", array('eid' => $cobj->eid)); } $body = elgg_view_layout('two_column_left_sidebar', "", $c, $t.$mods); page_draw($title, $body); ?>