get("curriculumSubject"); $c .= elgg_view('output/browse2_cloud', array('cs_id' => $cs_id, 'b' => $b)); $w = waramu_get(); if ($b->canQuery()) { $query = $b->toQuery(); $rawids = $w->listIdentifiers("", $query); $rids = $rawids['identifiers'][0]['id']; $new_ids = array(); foreach ($rids as $rid) { $new_ids []= $rid[0]; } $sort_vals = array('created', 'download', 'favorites', 'title'); $c .= elgg_view('object/listing_header', array('ids' => $new_ids, 'sort_val' => $b->get("sort"), 'sort_vals' => $sort_vals, 'show_count' => 1, 'b' => $b)); } $t = elgg_view("waramu/subjectBrowser", array('selected' => $b->get('curriculumSubject'))); $cs = getCurriculumSubject($b->get('curriculumSubject')); if ($cs[0]->level > 1) { $tok = getCurriculumMainSubject($cs[0]->eid); } else { $tok = $cs[0]->eid; } $mods = elgg_view("waramu/moderators", array('eid' => $tok)); /*translation:Learning resources*/ $title = elgg_echo("koolielu:learningresources_title"); $body = elgg_view_layout('two_column_left_sidebar', "", $c, $t.$mods); page_draw($title, $body); ?>