本文整理汇总了PHP中bp_group_member_avatar_mini函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_group_member_avatar_mini函数的具体用法?PHP bp_group_member_avatar_mini怎么用?PHP bp_group_member_avatar_mini使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_group_member_avatar_mini函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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
//.........这里部分代码省略.........
示例2: while
<?php
}
?>
<ul id="members-list" class="item-list single-line">
<?php
while (bp_group_members()) {
bp_group_the_member();
?>
<li class="<?php
bp_group_member_css_class();
?>
">
<?php
bp_group_member_avatar_mini();
?>
<h5>
<?php
bp_group_member_link();
?>
<?php
if (bp_get_group_member_is_banned()) {
_e('(banned)', 'buddypress');
}
?>
<span class="small">
示例3: bp_group_management_admin_edit
//.........这里部分代码省略.........
<div class="pagination no-ajax">
<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>
</div>
<?php
}
?>
<ul id="members-list" class="item-list single-line">
<?php
while (bp_group_members()) {
bp_group_the_member();
?>
<?php
if (bp_get_group_member_is_banned()) {
?>
<li class="banned-user">
<?php
bp_group_member_avatar_mini();
?>
<?php
$unkicklink = "admin.php?page=bp-group-management&action=edit&id=" . $id . "&member_id=" . bp_get_group_member_id() . "&member_action=unkick";
$unkicklink = function_exists('wp_nonce_url') ? wp_nonce_url($unkicklink, 'bp-group-management-action_unkick') : $unkicklink;
?>
<?php
bp_group_member_link();
?>
<?php
_e('(banned)', 'bp-group-management');
?>
<span class="small"> - <a href="<?php
echo $unkicklink;
?>
" class="confirm" title="<?php
_e('Remove Ban', 'bp-group-management');
?>
"><?php
_e('Remove Ban', 'bp-group-management');
?>
</a>
<?php
} else {
?>
<li>
<?php
bp_group_member_avatar_mini();
?>
<?php