'1', 'subjects' => $subject, 'archived' => '0'), 'object', array('job_offering'), 0, 10, false);
} else {
$objs = list_entities_from_metadata_and_subtypes(array('approved' => '1', 'archived' => '0'), 'object', array('job_offering'), 0, 10, false);
}
$area2 = "";
if (!empty($objs)) {
// display subjects tagcloud
$tagcloud = "
" . ke_display_tagcloud($view='output/subjects_tagcloud', $threshold=0, $limit=30, $metadata_name = "subjects", $entity_type="object", $entity_subtype="job_offering", $owner_guid = "", $site_guid = -1, $only_approved = true) . "
";
$area2 .= $tagcloud;
if ($subject) {
$subjectobj = getSubject($subject);
$subjectname = $subjectobj->title;
/*translation:Browse by subject*/
$area2 .= elgg_echo("koolielu:Browse_by_subject") . ": " . $subjectname;
}
$area2 .= elgg_view("koolielu/ke_rss_link_view");
$area2 .= $objs;
}
/*translation:Job offers*/
$page_title = elgg_echo('koolielu:Job_offers');
page_draw($page_title, elgg_view_layout("two_column_left_sidebar", $area1, $area2));
?>