本文整理汇总了PHP中SocialManager::getSkillBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialManager::getSkillBlock方法的具体用法?PHP SocialManager::getSkillBlock怎么用?PHP SocialManager::getSkillBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocialManager
的用法示例。
在下文中一共展示了SocialManager::getSkillBlock方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_lang
}
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);
$tpl->assign('social_right_information', $socialRightInformation);
$tpl->assign('social_auto_extend_link', $socialAutoExtendLink);
$formModalTpl = new Template();
$formModalTpl->assign('messageForm', MessageManager::generate_message_form('send_message'));
$formModalTpl->assign('invitationForm', MessageManager::generate_invitation_form('send_invitation'));
$formModals = $formModalTpl->fetch('default/social/form_modals.tpl');
$tpl->assign('formModals', $formModals);
$social_layout = $tpl->get_template('social/profile.tpl');
$tpl->display($social_layout);
示例2: get_lang
$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'));
$tpl = Container::getTwig();
// Block Avatar Social
SocialManager::setSocialUserBlock($tpl, $user_id, 'shared_profile', 0, $show_full_profile);
$tpl->addGlobal('social_friend_block', $friend_html);
$tpl->addGlobal('social_menu_block', $social_menu_block);
$tpl->addGlobal('social_wall_block', $social_wall_block);
$tpl->addGlobal('social_post_wall_block', $social_post_wall_block);
$tpl->addGlobal('social_extra_info_block', $social_extra_info_block);
$tpl->addGlobal('social_course_block', $social_course_block);
$tpl->addGlobal('social_group_info_block', $social_group_info_block);
$tpl->addGlobal('social_rss_block', $social_rss_block);
$tpl->addGlobal('social_skill_block', SocialManager::getSkillBlock($my_user_id));
$tpl->addGlobal('sessionList', $social_session_block);
$tpl->addGlobal('social_right_information', $socialRightInformation);
$tpl->addGlobal('social_auto_extend_link', $socialAutoExtendLink);
$formModals = Container::getTemplating()->render('@template_style/social/form_modals.html.twig', ['invitation_form' => MessageManager::generate_invitation_form('send_invitation')]);
$tpl->addGlobal('form_modals', $formModals);
echo $tpl->render('@template_style/social/profile.html.twig');