function render() { $param['network_id'] = PA::$network_info->network_id; $res = Network::get_members($param); $links['registered_users'] = count($res['users_data']); $this->email_domain_array = $this->get_email_by_domain($res['users_data']); $this->blog_post = Content::load_content_id_array(0, NULL, TRUE, 'ALL', 'created', 'DESC'); $image_array = Image::load_images(); $this->images = count($image_array); $this->profile_views = User::get_profile_view_stats('profile_visitor_count'); $this->profile_visits_by_user = User::get_profile_view_stats('profile_visited_count'); $relationship_stats = array(); $maximum_relation = 0; $minimum_relation = 0; $average_relation = 0; $relationship_stats = Relation::relation_stats(); if (count($relationship_stats) > 0) { $maximum_relation = max($relationship_stats); $minimum_relation = min($relationship_stats); $average_relation = array_sum($relationship_stats) / count($relationship_stats); } $this->relationship_stats = array('min' => $minimum_relation, 'max' => $maximum_relation, 'avg' => $average_relation); $this->inner_HTML = $this->generate_inner_html($links); $content = parent::render(); return $content; }