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


PHP bp_get_total_favorite_count_for_user函数代码示例

本文整理汇总了PHP中bp_get_total_favorite_count_for_user函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_total_favorite_count_for_user函数的具体用法?PHP bp_get_total_favorite_count_for_user怎么用?PHP bp_get_total_favorite_count_for_user使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_get_total_favorite_count_for_user函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    if (bp_get_total_group_count_for_user(bp_loggedin_user_id())) {
        ?>
			<li data-id="activity-groups" data-text="&rarr;">
				<?php 
        $this->component()->render_content('groups');
        ?>
			</li>
		<?php 
    }
    ?>
	<?php 
}
?>

	<?php 
if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
    ?>
		<li data-id="activity-tour-favorites" data-text="&rarr;">
			<?php 
    $this->component()->render_content('favorites');
    ?>
		</li>
	<?php 
}
?>

	<li data-id="activity-mentions" data-text="&rarr;">
		<?php 
$this->component()->render_content('mentions');
?>
	</li>
开发者ID:shads196770,项目名称:cbox-theme,代码行数:31,代码来源:template-items.php

示例2: do_action

						<?php 
    do_action('bp_before_activity_type_tab_favorites');
    ?>

						<?php 
    if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
        ?>

							<li id="activity-favorites"><a href="<?php 
        echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/';
        ?>
" title="<?php 
        _e("The activity I've marked as a favorite.", 'buddypress');
        ?>
"><?php 
        printf(__('My Favorites <span>%s</span>', 'buddypress'), bp_get_total_favorite_count_for_user(bp_loggedin_user_id()));
        ?>
</a></li>

						<?php 
    }
    ?>

						<?php 
    do_action('bp_before_activity_type_tab_mentions');
    ?>

						<li id="activity-mentions"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/';
    ?>
" title="<?php 
开发者ID:naomicbush,项目名称:bp-default,代码行数:31,代码来源:index.php

示例3: do_action

     * Fires before the listing of favorites activity type tab.
     *
     * @since 1.2.0
     */
    do_action('bp_before_activity_type_tab_favorites');
    ?>

				<?php 
    if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
        ?>

					<li id="activity-favorites"><a href="<?php 
        echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/';
        ?>
"><?php 
        printf(__('My Favorites %s', 'buddypress'), '<span>' . bp_get_total_favorite_count_for_user(bp_loggedin_user_id()) . '</span>');
        ?>
</a></li>

				<?php 
    }
    ?>

				<?php 
    if (bp_activity_do_mentions()) {
        ?>

					<?php 
        /**
         * Fires before the listing of mentions activity type tab.
         *
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:31,代码来源:index.php

示例4: bp_total_mention_count_for_user

/**
 * Echoes the total mention count for a specified user
 *
 * @since 1.2.0
 *
 * @param int $user_id Defaults to 0
 *
 * @uses bp_get_total_favorite_count_for_user()
 */
function bp_total_mention_count_for_user($user_id = 0)
{
    echo bp_get_total_favorite_count_for_user($user_id);
}
开发者ID:nxtclass,项目名称:NXTClass,代码行数:13,代码来源:bp-activity-template.php

示例5: do_action

									<?php 
    do_action('bp_before_activity_type_tab_favorites');
    ?>

									<?php 
    if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
        ?>

										<li id="activity-favorites"><a href="<?php 
        echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/';
        ?>
" title="<?php 
        _e("The activity I've marked as a favorite.", 'wplms_modern');
        ?>
"><?php 
        printf(__('My Favorites <span>%s</span>', 'wplms_modern'), bp_get_total_favorite_count_for_user(bp_loggedin_user_id()));
        ?>
</a></li>

									<?php 
    }
    ?>

									<?php 
    if (bp_activity_do_mentions()) {
        ?>

										<?php 
        do_action('bp_before_activity_type_tab_mentions');
        ?>
开发者ID:nikitansk,项目名称:devschool,代码行数:30,代码来源:index.php

示例6: do_action

     */
    do_action('bp_before_activity_type_tab_favorites');
    ?>

				<?php 
    if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
        ?>

					<li id="activity-favorites"><a href="<?php 
        echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/';
        ?>
" title="<?php 
        esc_attr_e("The activity I've marked as a favorite.", 'wonderflux');
        ?>
"><?php 
        printf(__('My Favorites %s', 'wonderflux'), '<span>' . bp_get_total_favorite_count_for_user(bp_loggedin_user_id()) . '</span>');
        ?>
</a></li>

				<?php 
    }
    ?>

				<?php 
    if (bp_activity_do_mentions()) {
        ?>

					<?php 
        /**
         * Fires before the listing of mentions activity type tab.
         *
开发者ID:Tanver186,项目名称:Wonderflux,代码行数:31,代码来源:index.php

示例7: bp_loggedin_user_domain

								<li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
							<?php endif; ?>
						<?php endif; ?>

						<?php do_action( 'bp_before_activity_type_tab_groups' ) ?>

						<?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>
							<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
								<li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
							<?php endif; ?>
						<?php endif; ?>

						<?php do_action( 'bp_before_activity_type_tab_favorites' ) ?>

						<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
							<li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
						<?php endif; ?>

						<?php do_action( 'bp_before_activity_type_tab_mentions' ) ?>

						<li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php printf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ) ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '(%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?></strong><?php endif; ?></a></li>

					<?php endif; ?>

					<?php do_action( 'bp_activity_type_tabs' ) ?>
				</ul>
			</div><!-- .item-list-tabs -->

			<div class="item-list-tabs no-ajax" id="subnav">
				<ul>
					<li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:index.php

示例8: do_action

						<?php 
    do_action('bp_before_activity_type_tab_favorites');
    ?>

						<?php 
    if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) {
        ?>

							<li id="activity-favorites"><a href="<?php 
        echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/';
        ?>
" title="<?php 
        _e("The activity I've marked as a favorite.", 'buddypress');
        ?>
"><?php 
        printf(__('%s <span>%s</span>', 'buddypress'), $fav_tab_text, bp_get_total_favorite_count_for_user(bp_loggedin_user_id()));
        ?>
</a></li>

						<?php 
    }
    ?>

						<?php 
    do_action('bp_before_activity_type_tab_mentions');
    ?>

						<li id="activity-mentions"><a href="<?php 
    echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/';
    ?>
" title="<?php 
开发者ID:par-orillonsoft,项目名称:Wishmagnet,代码行数:31,代码来源:index.php


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