当前位置: 首页>>代码示例>>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;未经允许,请勿转载。