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


PHP SocialManager::social_wrapper_div方法代碼示例

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


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

示例1: wallSocialPost

function wallSocialPost($userId, $friendId)
{
    $array = SocialManager::getWallMessagesPostHTML($userId, $friendId);
    $html = '';

    for($i = 0; $i < count($array); $i++) {
        $post = $array[$i]['html'];
        $comment = SocialManager::getWallMessagesHTML($userId, $friendId, $array[$i]['id']);

        $html .= SocialManager::social_wrapper_div($post.$comment, 5);
    }

    return $html;
}
開發者ID:annickvdp,項目名稱:Chamilo1.9.10,代碼行數:14,代碼來源:profile.php

示例2: get_lang

        if (!empty($user_info['diplomas'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyDiplomas') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['diplomas'] . '</div>';
            $more_info .= '<br />';
        }
        if (!empty($user_info['openarea'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyPersonalOpenArea') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['openarea'] . '</div>';
            $more_info .= '<br />';
        }
        if (!empty($user_info['teach'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyTeach') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['teach'] . '</div>';
            $more_info .= '<br />';
        }
        $socialRightInformation .= SocialManager::social_wrapper_div($more_info, 4);
    }
}
$tpl = new Template(get_lang('Social'));
// Block Avatar Social
SocialManager::setSocialUserBlock($tpl, $user_id, 'shared_profile');
$tpl->assign('social_friend_block', $friend_html);
$tpl->assign('social_menu_block', $social_menu_block);
$tpl->assign('social_wall_block', $social_wall_block);
$tpl->assign('social_post_wall_block', $social_post_wall_block);
$tpl->assign('social_extra_info_block', $social_extra_info_block);
$tpl->assign('social_course_block', $social_course_block);
$tpl->assign('social_group_info_block', $social_group_info_block);
$tpl->assign('social_rss_block', $social_rss_block);
$tpl->assign('social_skill_block', SocialManager::getSkillBlock($my_user_id));
$tpl->assign('sessionList', $social_session_block);
開發者ID:KRCM13,項目名稱:chamilo-lms,代碼行數:31,代碼來源:profile.php

示例3: get_lang

        $more_info .= '<div><h3>' . get_lang('MoreInformation') . '</h3></div>';
        $cut_size = 220;
        if (!empty($user_info['competences'])) {
            $more_info .= '<br />';
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyCompetences') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['competences'] . '</div>';
            $more_info .= '<br />';
        }
        if (!empty($user_info['diplomas'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyDiplomas') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['diplomas'] . '</div>';
            $more_info .= '<br />';
        }
        if (!empty($user_info['openarea'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyPersonalOpenArea') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['openarea'] . '</div>';
            $more_info .= '<br />';
        }
        if (!empty($user_info['teach'])) {
            $more_info .= '<div class="social-actions-message"><strong>' . get_lang('MyTeach') . '</strong></div>';
            $more_info .= '<div class="social-profile-extended">' . $user_info['teach'] . '</div>';
            $more_info .= '<br />';
        }
        $social_right_content .= SocialManager::social_wrapper_div($more_info, 9);
    }
}
$social_right_content .= MessageManager::generate_message_form('send_message');
$social_right_content .= MessageManager::generate_invitation_form('send_invitation');
$app['title'] = get_lang('Social');
$tpl = $app['template'];
$tpl->assign('content', $social_right_content);
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:31,代碼來源:profile.php


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