当前位置: 首页>>代码示例>>PHP>>正文


PHP MessageManager::generate_invitation_form方法代码示例

本文整理汇总了PHP中MessageManager::generate_invitation_form方法的典型用法代码示例。如果您正苦于以下问题:PHP MessageManager::generate_invitation_form方法的具体用法?PHP MessageManager::generate_invitation_form怎么用?PHP MessageManager::generate_invitation_form使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MessageManager的用法示例。


在下文中一共展示了MessageManager::generate_invitation_form方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: indexAction

 /**
  * @Route("/{username}")
  * @Method({"GET"})
  */
 public function indexAction($username)
 {
     $userId = \UserManager::get_user_id_from_username($username);
     $userInfo = api_get_user_info($userId);
     $this->getTemplate()->assign('user', $userInfo);
     $this->getTemplate()->assign('form_send_message', \MessageManager::generate_message_form('send_message'));
     $this->getTemplate()->assign('form_send_invitation', \MessageManager::generate_invitation_form('send_invitation'));
     $response = $this->getTemplate()->renderTemplate($this->getTemplatePath() . 'profile.tpl');
     return new Response($response, 200, array());
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:14,代码来源:ProfileController.php

示例2: 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);
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:31,代码来源:profile.php

示例3: profileAction

 /**
  * @Route("/{username}")
  * @Method({"GET"})
  * @Template("ChamiloCoreBundle:User:profile.html.twig")
  */
 public function profileAction($username)
 {
     $userId = \UserManager::get_user_id_from_username($username);
     $userInfo = api_get_user_info($userId);
     return array('user' => $userInfo, 'form_send_message' => \MessageManager::generate_message_form('send_message'), 'form_send_invitation' => \MessageManager::generate_invitation_form('send_invitation'));
 }
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:11,代码来源:UserController.php

示例4: listMyFriends

        }
        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);
    }
}
$social_right_content .= MessageManager::generate_message_form('send_message');
$social_right_content .= MessageManager::generate_invitation_form('send_invitation');


$tpl = new Template(get_lang('Social'));
$tpl->assign('social_avatar_block', $social_avatar_block);
$tpl->assign('social_menu_block', $social_menu_block);
$tpl->assign('social_right_content', $social_right_content);
$tpl->assign('socialRightInformation', $socialRightInformation);
$tpl->assign('socialAutoExtendLink', $socialAutoExtendLink);
$social_layout = $tpl->get_template('layout/social_layout.tpl');
$tpl->display($social_layout);

/*
* function list my friends
*/
function listMyFriends($user_id, $link_shared, $show_full_profile)
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:31,代码来源:profile.php

示例5: 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');
开发者ID:jloguercio,项目名称:chamilo-lms,代码行数:31,代码来源:profile.php

示例6: get_lang

            $item_1 = Display::tag('p', $url_open . $name . $url_close);
            $block_groups .= '
                <div class="col-md-4">
                    <div class="items-user">
                        <div class="items-user-avatar">
                            ' . $group['picture'] . '
                        </div>
                        <div class="user-info">
                            ' . $item_1 . '
                            <p>' . $members . '</p>
                            <p>' . $group['description'] . '</p>
                            <p>' . $tags . '</p>
                            <p>' . $url_open . get_lang('SeeMore') . $url_close . '</p>
                        </div>
                    </div>
                </div>';
        }
        $block_groups .= '</div></div></div>';
    }
    $visibility = array(true, true, true, true, true);
    $block_groups .= Display::return_sortable_grid('groups', null, $grid_groups, array('hide_navigation' => false, 'per_page' => $itemPerPage), $query_vars, false, $visibility, true, array(), $totalGroups);
    $block_search .= Display::panelCollapse(get_lang('Groups'), $block_groups, 'search-groups', null, 'groups-acorderon', 'groups-collapse');
}
$tpl = \Chamilo\CoreBundle\Framework\Container::getTwig();
// Block Social Avatar
SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'search');
$tpl->addGlobal('social_menu_block', $social_menu_block);
$tpl->addGlobal('social_search', $block_search);
$tpl->addGlobal('search_form', $searchForm);
$tpl->addGlobal('invitation_form', MessageManager::generate_invitation_form('send_invitation'));
echo $tpl->render('@template_style/social/search.html.twig');
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:31,代码来源:search.php


注:本文中的MessageManager::generate_invitation_form方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。