} else { break; } $i++; } //to avoid repeted courses $course_list_code = array_unique_dimensional($course_list_code); } //Social Block Menu $social_menu_block = SocialManager::show_social_menu('shared_profile', null, $user_id, $show_full_profile); //Setting some session info $user_info = api_get_user_info($my_user_id); $sessionList = SessionManager::getSessionsFollowedByUser($my_user_id, $user_info['status']); // My friends $friend_html = SocialManager::listMyFriendsBlock($user_id, $link_shared, $show_full_profile); $wallSocialAddPost = SocialManager::getWallForm(); $social_wall_block = $wallSocialAddPost; // Social Post Wall $posts = SocialManager::getWallMessagesByUser($my_user_id, $friendId); $posts = empty($posts) ? '<p>' . get_lang("NoPosts") . '</p>' : $posts; $social_post_wall_block = Display::panel($posts, get_lang('Posts')); $socialAutoExtendLink = Display::url(get_lang('SeeMore'), $socialAjaxUrl . '?u=' . $my_user_id . '&a=listWallMessage&start=10&length=5', array('class' => 'nextPage next')); // Added a Jquery Function to return the Preview of OpenGraph URL Content $htmlHeadXtra[] = '<script language="JavaScript"> $(document).ready(function() { $("label").remove(); $("[name=\'social_wall_new_msg_main\']").on("paste", function(e) { $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function() { $(".url_preview").html("<i class=\'fa fa-spinner fa-pulse fa-1x\'></i>");
} else { break; } $i++; } //to avoid repeted courses $course_list_code = ArrayClass::array_unique_dimensional($course_list_code); } //Social Block Menu $social_menu_block = SocialManager::show_social_menu('shared_profile', null, $user_id, $show_full_profile); //Setting some session info $user_info = api_get_user_info($my_user_id); $sessionList = SessionManager::getSessionsFollowedByUser($my_user_id, $user_info['status']); // My friends $friend_html = SocialManager::listMyFriendsBlock($user_id, $link_shared, $show_full_profile); $wallSocialAddPost = SocialManager::getWallForm($show_full_profile); $social_wall_block = $wallSocialAddPost; // Social Post Wall $posts = SocialManager::getWallMessagesByUser($my_user_id, $friendId); $posts = empty($posts) ? '<p>' . get_lang("NoPosts") . '</p>' : $posts; $social_post_wall_block = Display::panel($posts, get_lang('Posts')); $socialAutoExtendLink = Display::url(get_lang('SeeMore'), $socialAjaxUrl . '?u=' . $my_user_id . '&a=listWallMessage&start=10&length=5', array('class' => 'nextPage next')); // Added a Jquery Function to return the Preview of OpenGraph URL Content $htmlHeadXtra[] = '<script> $(document).ready(function() { $("[name=\'social_wall_new_msg_main\']").on("paste", function(e) { $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function() { $("[name=\'wall_post_button\']").prop( "disabled", true );