public static function indexAction()
 {
     $userId = self::getContributorAndId();
     $user = $userId['user'];
     $id = $userId['id'];
     $socialLinks = array();
     $providers = array('google', 'linkedin', 'facebook');
     foreach ($providers as $provider) {
         $link = get_user_meta($id, '_cma_social_' . $provider . '_url', true);
         if (!empty($link)) {
             $socialLinks[$provider] = $link;
         }
     }
     return array('name' => $user->display_name, 'user_id' => $id, 'link' => get_user_meta($id, '_cma_social_url', true), 'socialLinks' => $socialLinks, 'questions' => CMA_Thread::getQuestionsByUser($id, -1, $onlyVisible = true), 'answers' => CMA_Answer::getByUser($id, $approved = true, $limit = -1, $page = 1, $onlyVisible = true));
 }