本文整理汇总了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="→">
<?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="→">
<?php
$this->component()->render_content('favorites');
?>
</li>
<?php
}
?>
<li data-id="activity-mentions" data-text="→">
<?php
$this->component()->render_content('mentions');
?>
</li>
示例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
示例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.
*
示例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);
}
示例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');
?>
示例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.
*
示例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>
示例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