當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SocialManager::getWallForm方法代碼示例

本文整理匯總了PHP中SocialManager::getWallForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP SocialManager::getWallForm方法的具體用法?PHP SocialManager::getWallForm怎麽用?PHP SocialManager::getWallForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SocialManager的用法示例。


在下文中一共展示了SocialManager::getWallForm方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array_unique_dimensional

        } 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>");
開發者ID:KRCM13,項目名稱:chamilo-lms,代碼行數:31,代碼來源:profile.php

示例2: api_get_user_info

        } 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 );
開發者ID:jloguercio,項目名稱:chamilo-lms,代碼行數:31,代碼來源:profile.php


注:本文中的SocialManager::getWallForm方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。