本文整理汇总了PHP中bp_group_member_unban_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_group_member_unban_link函数的具体用法?PHP bp_group_member_unban_link怎么用?PHP bp_group_member_unban_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_group_member_unban_link函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
?>
<?php
if (bp_get_group_member_is_banned()) {
_e('(banned)', 'buddypress');
}
?>
<span class="small">
<?php
if (bp_get_group_member_is_banned()) {
?>
<a href="<?php
bp_group_member_unban_link();
?>
" class="button confirm member-unban" title="<?php
_e('Unban this member', 'buddypress');
?>
"><?php
_e('Remove Ban', 'buddypress');
?>
</a>
<?php
} else {
?>
<a href="<?php
bp_group_member_ban_link();
示例2: groups_ajax_member_admin_list
function groups_ajax_member_admin_list()
{
global $bp;
?>
<?php
if (bp_group_has_members('group_id=' . $_REQUEST['group_id'] . '&per_page=' . $_REQUEST['num'])) {
?>
<?php
if (bp_group_member_needs_pagination()) {
?>
<div id="member-count" class="pag-count">
<?php
bp_group_member_pagination_count();
?>
</div>
<div id="member-admin-pagination" class="pagination-links">
<?php
bp_group_member_admin_pagination();
?>
</div>
<?php
}
?>
<ul id="members-list" class="item-list single-line">
<?php
while (bp_group_members()) {
bp_group_the_member();
?>
<?php
if (bp_group_member_is_banned()) {
?>
<li class="banned-user">
<?php
bp_group_member_avatar_mini();
?>
<h5><?php
bp_group_member_link();
?>
<?php
_e('(banned)', 'buddypress');
?>
<span class="small"> — <a href="<?php
bp_group_member_unban_link();
?>
" title="<?php
_e('Kick and ban this member', 'buddypress');
?>
"><?php
_e('Remove Ban', 'buddypress');
?>
</a> </h5>
<?php
} else {
?>
<li>
<?php
bp_group_member_avatar_mini();
?>
<h5><?php
bp_group_member_link();
?>
<span class="small"> — <a href="<?php
bp_group_member_ban_link();
?>
" title="<?php
_e('Kick and ban this member', 'buddypress');
?>
"><?php
_e('Kick & Ban', 'buddypress');
?>
</a> | <a href="<?php
bp_group_member_promote_link();
?>
" title="<?php
_e('Promote this member', 'buddypress');
?>
"><?php
_e('Promote to Moderator', 'buddypress');
?>
</a></span></h5>
<?php
}
?>
</li>
<?php
}
?>
</ul>
<?php
} else {
?>
<div id="message" class="info">
<p><?php
//.........这里部分代码省略.........