本文整理汇总了PHP中bp_group_type函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_group_type函数的具体用法?PHP bp_group_type怎么用?PHP bp_group_type使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_group_type函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_group_permalink
?>
</div>
<div class="main-column">
<div class="inner-tube">
<div id="group-name">
<h1><a href="<?php
bp_group_permalink();
?>
"><?php
bp_group_name();
?>
</a></h1>
<p class="status"><?php
bp_group_type();
?>
</p>
</div>
<div class="info-group">
<?php
if (function_exists('bp_wire_get_post_list')) {
?>
<?php
bp_wire_get_post_list(bp_get_group_id(), __('Group Wire', 'buddypress'), sprintf(__('The are no wire posts for %s', 'buddypress'), bp_get_group_name()), bp_group_is_member(), true);
?>
<?php
}
?>
</div>
示例2: do_action
<?php do_action( 'bp_after_group_menu_mods' ) ?>
<?php endif; ?>
<?php endif; ?>
</div><!-- #item-actions -->
<div id="item-header-avatar">
<a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>">
<?php bp_group_avatar() ?>
</a>
</div><!-- #item-header-avatar -->
<div id="item-header-content">
<h2><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></h2>
<span class="highlight"><?php bp_group_type() ?></span> <span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span>
<?php do_action( 'bp_before_group_header_meta' ) ?>
<div id="item-meta">
<?php bp_group_description() ?>
<div id="item-buttons">
<?php do_action( 'bp_group_header_actions' ); ?>
</div><!-- #item-buttons -->
<?php do_action( 'bp_group_header_meta' ) ?>
</div>
</div><!-- #item-header-content -->
示例3: bp_group_management_admin_main
//.........这里部分代码省略.........
bp_group_avatar('width=35&height=35');
?>
</a>
</td>
<td scope="row">
<?php
bp_group_name();
?>
<br/>
<?php
$controlActions = array();
$controlActions[] = '<a href="admin.php?page=bp-group-management&action=edit&id=' . bp_get_group_id() . '" class="edit">' . __('Members', 'bp-group-management') . '</a>';
$controlActions[] = '<a class="delete" href="admin.php?page=bp-group-management&action=delete&id=' . bp_get_group_id() . '">' . __("Delete") . '</a>';
$controlActions[] = '<a href="' . bp_get_group_permalink() . 'admin">' . __('Admin', 'bp-group-management') . '</a>';
$controlActions[] = "<a href='" . bp_get_group_permalink() . "' rel='permalink'>" . __('Visit', 'bp-group-management') . '</a>';
$controlActions = apply_filters('bp_gm_group_action_links', $controlActions);
?>
<?php
if (count($controlActions)) {
?>
<div class="row-actions">
<?php
echo implode(' | ', $controlActions);
?>
</div>
<?php
}
?>
</td>
<td scope="row">
<?php
bp_group_type();
?>
</td>
<td scope="row">
<?php
echo $group->date_created;
?>
</td>
<td scope="row">
<?php
bp_group_total_members();
?>
</td>
<?php
do_action('bp_gm_group_column_data');
?>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="tablenav">
<div class="tablenav-pages">
<span class="displaying-num" id="group-dir-count">
<?php
bp_groups_pagination_count();
?>
</span>
<span class="page-numbers" id="group-dir-pag">
<?php
bp_group_management_pagination_links();
?>
</span>
</div>
</div>
<?php
} else {
?>
You don't have any groups to manage.
<?php
}
?>
<a class="button" id="bp-gm-settings-link" href="admin.php?page=bp-group-management&action=settings"><?php
_e('Plugin settings', 'bp-group-management');
?>
</a>
</div>
<?php
}
示例4: bp_group_description_excerpt
</div>
<div class="item-quote">
<div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
<?php do_action( 'bp_directory_groups_item' ); ?>
</div>
<div class="action">
<?php //do_action( 'bp_directory_groups_actions' ); ?>
<div class="meta">
<?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
</div>
<?php do_action( 'bp_directory_groups_actions' ); ?>
</div>
<div class="clear"></div>
</div>
</li>
<?php endwhile; ?>
</ul>
示例5: display
//.........这里部分代码省略.........
<?php
$subgroup = $groups_template->group;
?>
<?php
if ($subgroup->status == 'hidden' && !(groups_is_user_member($bp->loggedin_user->id, $subgroup->id) || groups_is_user_admin($bp->loggedin_user->id, $bp->groups->current_group->id))) {
continue;
}
?>
<li id="tree-childof_<?php
bp_group_id();
?>
">
<div class="item-avatar">
<a href="<?php
bp_group_permalink();
?>
"><?php
bp_group_avatar('type=thumb&width=50&height=50');
?>
</a>
</div>
<div class="item">
<div class="item-title"><a href="<?php
bp_group_permalink();
?>
"><?php
bp_group_name();
?>
</a></div>
<div class="item-meta"><span class="activity"><?php
printf(__('active %s', 'buddypress'), bp_get_group_last_active());
?>
</span></div>
<div class="item-desc"><?php
bp_group_description_excerpt();
?>
</div>
<?php
do_action('bp_directory_groups_item');
?>
</div>
<div class="action">
<?php
do_action('bp_directory_groups_actions');
?>
<div class="meta">
<?php
bp_group_type();
?>
/ <?php
bp_group_member_count();
?>
</div>
</div>
<div class="clear"></div>
</li>
<?php
}
?>
</ul>
<div id="pag-bottom" class="pagination">
<div class="pag-count" id="group-dir-count-bottom">
<?php
bp_groups_pagination_count();
?>
</div>
<div class="pagination-links" id="group-dir-pag-bottom">
<?php
bp_groups_pagination_links();
?>
</div>
</div>
<script type="text/javascript">
jQuery('#nav-hierarchy-personal-li').attr('id','group-hierarchy-personal-li');
jQuery('#nav-hierarchy-groups-li').attr('id','group-hierarchy-group-li');
</script>
<?php
} else {
?>
<p><?php
_e('No member groups were found.', 'bp-group-hierarchy');
?>
</p>
<?php
}
?>
</div>
<?php
// reset the $groups_template global and continue with the page
$groups_template = $parent_template;
}