当前位置: 首页>>代码示例>>PHP>>正文


PHP bp_get_total_member_count函数代码示例

本文整理汇总了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>
开发者ID:jfeliweb,项目名称:BuddyPress-User-Account-Type,代码行数:29,代码来源:index.php

示例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')) {
        ?>
开发者ID:naomicbush,项目名称:bp-default,代码行数:30,代码来源:index.php

示例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>
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:29,代码来源:index.php

示例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')) {
        ?>
开发者ID:raminjan,项目名称:logicalbones_hug,代码行数:30,代码来源:index.php

示例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();
}
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:9,代码来源:bp-core-template.php

示例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 
}
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:31,代码来源:index.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 
}
?>
开发者ID:tamriel-foundry,项目名称:apoc2,代码行数:31,代码来源:index.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');
    ?>
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:31,代码来源:index.php

示例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')) {
        ?>
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:30,代码来源:index.php

示例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 
}
开发者ID:Tanver186,项目名称:Wonderflux,代码行数:31,代码来源:index.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>
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:29,代码来源:index.php

示例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')) {
        ?>
开发者ID:nikitansk,项目名称:devschool,代码行数:30,代码来源:index.php

示例13: kleo_total_members

 function kleo_total_members($atts, $content = null)
 {
     return bp_get_total_member_count();
 }
开发者ID:VLabsInc,项目名称:WordPressPlatforms,代码行数:4,代码来源:shortcodes.php


注:本文中的bp_get_total_member_count函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。