本文整理汇总了PHP中bp_get_total_member_count函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_total_member_count函数的具体用法?PHP bp_get_total_member_count怎么用?PHP bp_get_total_member_count使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_get_total_member_count函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_directory_members_search_form
<div id="members-dir-search" class="dir-search" role="search">
<?php
bp_directory_members_search_form();
?>
</div><!-- #members-dir-search -->
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="members-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug());
?>
"><?php
printf(__('All %1s <span>%2s</span>', 'buddypress'), ucfirst(buatp_get_dir_name()), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/';
?>
"><?php
printf(__('My Friends <span>%s</span>', 'buddypress'), bp_get_total_friend_count(bp_loggedin_user_id()));
?>
</a></li>
示例2: do_action
?>
<div class="item-list-tabs activity-type-tabs" role="navigation">
<ul>
<?php
do_action('bp_before_activity_type_tab_all');
?>
<li class="selected" id="activity-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_activity_slug());
?>
" title="<?php
_e('The public activity for everyone on this site.', 'buddypress');
?>
"><?php
printf(__('All Members <span>%s</span>', 'buddypress'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in()) {
?>
<?php
do_action('bp_before_activity_type_tab_friends');
?>
<?php
if (bp_is_active('friends')) {
?>
示例3: bp_directory_members_search_form
<div id="members-dir-search" class="dir-search" role="search">
<?php
bp_directory_members_search_form();
?>
</div><!-- #members-dir-search -->
<div class="item-list-tabs tabs-top" role="navigation">
<ul class="nav nav-pills">
<li class="selected" id="members-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug());
?>
"><?php
printf(__('All Members <span>%s</span>', 'firmasite'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/';
?>
"><?php
printf(__('My Friends <span>%s</span>', 'firmasite'), bp_get_total_friend_count(bp_loggedin_user_id()));
?>
</a></li>
示例4: do_action
?>
<div class="item-list-tabs activity-type-tabs" role="navigation">
<ul>
<?php
do_action('bp_before_activity_type_tab_all');
?>
<li class="selected" id="activity-all"><a href="<?php
bp_activity_directory_permalink();
?>
" title="<?php
_e('The public activity for everyone on this site.', 'logicalboneshug');
?>
"><?php
printf(__('All Members <span>%s</span>', 'logicalboneshug'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in()) {
?>
<?php
do_action('bp_before_activity_type_tab_friends');
?>
<?php
if (bp_is_active('friends')) {
?>
示例5: bp_total_member_count
/**
* Output the total member count for the site.
*
* @since 1.2.0
*/
function bp_total_member_count()
{
echo bp_get_total_member_count();
}
示例6: do_action
do_action('bp_before_directory_members_content');
?>
<div id="members-dir-search" class="dir-search">
<?php
bp_directory_members_search_form();
?>
</div><!-- #members-dir-search -->
<div class="item-list-tabs">
<ul>
<li class="selected" id="members-all"><a href="<?php
bp_root_domain();
?>
"><?php
printf(__('All Members (%s)', 'buddypress'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in() && function_exists('bp_get_total_friend_count') && bp_get_total_friend_count(bp_loggedin_user_id())) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/';
?>
"><?php
printf(__('My Friends (%s)', 'buddypress'), bp_get_total_friend_count(bp_loggedin_user_id()));
?>
</a></li>
<?php
}
示例7: apoc_title
apoc_title();
?>
</h1>
<p class="post-byline"><?php
apoc_description();
?>
</p>
</header>
<nav id="directory-nav" class="dir-list-tabs" role="navigation">
<ul id="directory-actions" class="directory-tabs">
<li class="selected" id="members-all"><a href="<?php
echo trailingslashit(SITEURL . '/' . bp_get_members_root_slug());
?>
">All Members<span><?php
echo bp_get_total_member_count();
?>
</span></a></li>
<?php
if (is_user_logged_in()) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/';
?>
">My Friends<span><?php
echo bp_get_total_friend_count();
?>
</span></a></li>
<?php
}
?>
示例8: do_action
" role="navigation">
<ul>
<?php
/**
* Fires before the listing of activity type tabs.
*
* @since 1.2.0
*/
do_action('bp_before_activity_type_tab_all');
?>
<li class="selected" id="activity-all"><a href="<?php
bp_activity_directory_permalink();
?>
"><?php
printf(__('All Members %s', 'buddypress'), '<span>' . bp_get_total_member_count() . '</span>');
?>
</a></li>
<?php
if (is_user_logged_in()) {
?>
<?php
/**
* Fires before the listing of friends activity type tab.
*
* @since 1.2.0
*/
do_action('bp_before_activity_type_tab_friends');
?>
示例9: do_action
?>
<div class="item-list-tabs activity-type-tabs" role="navigation">
<ul>
<?php
do_action('bp_before_activity_type_tab_all');
?>
<li class="selected" id="activity-all"><a href="<?php
bp_activity_directory_permalink();
?>
" title="<?php
_e('The public activity for everyone on this site.', 'buddypress');
?>
"><?php
printf(__('All Members <span>%s</span>', 'buddypress'), number_format_i18n(bp_get_total_member_count()));
?>
</a></li>
<?php
if (is_user_logged_in()) {
?>
<?php
do_action('bp_before_activity_type_tab_friends');
?>
<?php
if (bp_is_active('friends')) {
?>
示例10: do_action
* Fires before the display of the members list tabs.
*
* @since 1.8.0
*/
do_action('bp_before_directory_members_tabs');
?>
<form action="" method="post" id="members-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="members-all"><a href="<?php
bp_members_directory_permalink();
?>
"><?php
printf(__('All Members %s', 'wonderflux'), '<span>' . bp_get_total_member_count() . '</span>');
?>
</a></li>
<?php
if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/';
?>
"><?php
printf(__('My Friends %s', 'wonderflux'), '<span>' . bp_get_total_friend_count(bp_loggedin_user_id()) . '</span>');
?>
</a></li>
<?php
}
示例11: bp_directory_members_search_form
<div id="members-dir-search" class="dir-search" role="search">
<?php
bp_directory_members_search_form();
?>
</div><!-- #members-dir-search -->
<div id="item-nav">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="members-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug());
?>
"><?php
printf(__('All Members <span>%s</span>', 'status'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) {
?>
<li id="members-personal"><a href="<?php
echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/';
?>
"><?php
printf(__('My Friends <span>%s</span>', 'status'), bp_get_total_friend_count(bp_loggedin_user_id()));
?>
</a></li>
示例12: do_action
?>
<div id="members-activity">
<div class="item-list-tabs activity-type-tabs" role="navigation">
<ul>
<?php
do_action('bp_before_activity_type_tab_all');
?>
<li class="selected" id="activity-all"><a href="<?php
bp_activity_directory_permalink();
?>
" title="<?php
_e('The public activity for everyone on this site.', 'wplms_modern');
?>
"><?php
printf(__('All Members <span>%s</span>', 'wplms_modern'), bp_get_total_member_count());
?>
</a></li>
<?php
if (is_user_logged_in()) {
?>
<?php
do_action('bp_before_activity_type_tab_friends');
?>
<?php
if (bp_is_active('friends')) {
?>
示例13: kleo_total_members
function kleo_total_members($atts, $content = null)
{
return bp_get_total_member_count();
}