本文整理汇总了PHP中bp_group_admin_ids函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_group_admin_ids函数的具体用法?PHP bp_group_admin_ids怎么用?PHP bp_group_admin_ids使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_group_admin_ids函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
/* Manage Group Members */
if (bp_is_group_admin_screen('manage-members')) {
?>
<?php
do_action('bp_before_group_manage_members_admin');
?>
<div class="bp-widget">
<h4><?php
_e('Administrators', 'buddypress');
?>
</h4>
<?php
if (bp_has_members('&include=' . bp_group_admin_ids())) {
?>
<ul id="admins-list" class="item-list single-line>">
<?php
while (bp_members()) {
bp_the_member();
?>
<li>
<?php
echo bp_core_fetch_avatar(array('item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => __('Profile picture of %s', 'buddypress')));
?>
<h5>
<a href="<?php
bp_member_permalink();
示例2: bp_the_member
bp_the_member();
?>
<li>
<?php
echo bp_core_fetch_avatar(array('item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf(__('Profile picture of %s', 'vibe'), bp_get_member_name())));
?>
<h5>
<a href="<?php
bp_member_permalink();
?>
"> <?php
bp_member_name();
?>
</a>
<?php
if (count(bp_group_admin_ids(false, 'array')) > 1) {
?>
<span class="small">
<a class="button confirm admin-demote-to-member"
href="<?php
bp_group_member_demote_link(bp_get_member_user_id());
?>
"><?php
_e('Demote to Member', 'vibe');
?>
</a>
</span>
<?php
}
?>
</h5>