latest_news_subjects; if ($chosen_subjects) { $subject_ids = split(",", $chosen_subjects); $news = list_entities_from_metadata_and_subtypes(array("subjects" => $subject_ids, "approved" => "1"), "object", array("news"), 0, $limit, false, false, true); } else { $news = list_entities_from_metadata("approved", "1", "object", "news", 0, $limit, false, false, true); } if ($news) { echo $news; } else { /*translation:No news found.*/ echo elgg_echo("koolielu:error_no_news_found"); } ?>