"; $area2 .= "
"; $area2 .= ""; $area2 .= "
"; $user_guid = get_loggedin_user()->getGUID(); if ($filter == 'published' || !$filter) { // Also show archieved news $objs .= list_entities_from_metadata('approved', '1', 'object', 'news', $user_guid, 10, false, false, true); } else if ($filter == 'pending') { $objs .= list_entities_from_metadata('approved', '0', 'object', 'news', $user_guid, 10, false, false, true); } $area2 .= ""; // contentWrapper $area1 .= elgg_view("koolielu/ke_menu_categories_view"); if (empty($objs)) { /*translation:No news found.*/ $area2 .= elgg_echo("koolielu:error_no_news_found"); } else { $area2 .= $objs; } $body = elgg_view_layout('two_columns', $area1, $area2); page_draw($title, $body); ?>