function manage_content($contents_list)
 {
     global $login_uid;
     $i = 0;
     if (empty($contents_list)) {
         $contents_list = array();
     }
     $new_content = array();
     foreach ($contents_list as $contt) {
         $new_content[$i]['content_id'] = $contt['content_id'];
         $new_content[$i]['title'] = $contt['title'];
         $new_content[$i]['body'] = $contt['body'];
         $new_content[$i]['author_id'] = $contt['author_id'];
         $new_content[$i]['type'] = $contt['type'];
         $new_content[$i]['changed'] = $contt['changed'];
         $new_content[$i]['created'] = $contt['created'];
         $new_content[$i]['type_name'] = $contt['type_name'];
         $new_content[$i]['comment_count'] = $contt['comment_count'];
         $new_content[$i]['author_name'] = $contt['author_name'];
         $new_content[$i]['content_type_id'] = $contt['content_type_id'];
         $author = new User();
         $new_content[$i]['author_home_url'] = $author->url_from_id((int) $contt['author_id']);
         if (!empty($contt['parent_info'])) {
             $type = $contt['parent_info']['type'] == ALBUM_COLLECTION_TYPE ? 'Album' : 'Group';
             $new_content[$i]['parent_name'] = $contt['parent_info']['title'] . '(' . $type . ')';
         }
         // Route media and normal content through to the correct display/editing pages
         if (!in_array($contt['content_type_id'], array(IMAGE, AUDIO, VIDEO))) {
             $link_for_editing = PA::$url . "/post_content.php?cid=" . $new_content[$i]['content_id'];
             $image_hyperlink = PA::$url . PA_ROUTE_CONTENT . "/cid=" . $new_content[$i]['content_id'];
         } else {
             $link_for_editing = PA::$url . "/edit_media.php?cid=" . $new_content[$i]['content_id'] . "&type=" . $new_content[$i]['type'];
             $image_hyperlink = PA::$url . "/media_full_view.php?gid&cid=" . $new_content[$i]['content_id'];
         }
         $new_content[$i]['edit_link'] = $link_for_editing;
         $new_content[$i]['hyper_link'] = $image_hyperlink;
         $new_content[$i]['abuses'] = total_abuse($contt['content_id'], TYPE_CONTENT);
         $i++;
     }
     return $new_content;
 }
?>
_list">
        <ul class="list-group">
            <?php 
if (!empty($links)) {
    $i = 0;
    foreach ($links as $link) {
        $class = $i % 2 == 0 ? 'class="list-group-item"' : NULL;
        ++$i;
        ?>
            <li <?php 
        echo $class;
        ?>
>
                <a href="<?php 
        echo User::url_from_id($link['user_id']);
        ?>
">
                    <?php 
        echo uihelper_resize_mk_user_img($link['picture'], 35, 35, 'alt="facewall"');
        ?>
                    <span>
                            <?php 
        echo $link['display_name'];
        ?>
                        <?php 
        echo sprintf(__("(%d friends)"), $link['no_of_relations']);
        ?>
                    </span>
                </a>
            </li>