adstate; if ($state == "published") $newsstate = "1"; if ($state == "pending") $newsstate = "0"; if (!$state) { $count = get_entities("object", "news", $owner->getGUID(), "", $limit, 0, true); $news = list_entities("object", "news", $owner->getGUID(), $limit, false, false, false); } else { $count = get_entities_from_metadata("approved", $newsstate, "object", "news", $owner->getGUID(), $limit, 0, "", 0, true); $news = list_entities_from_metadata("approved", $newsstate, "object", "news", $owner->getGUID(), $limit, false, false, false); } echo $news; if ($count > 5) { $url = $CONFIG->wwwroot . "pg/info/mynews?filter=" . $state; /*translation:more...*/ echo "
".elgg_echo("koolielu:more_dot")."
"; } ?>