本文整理汇总了PHP中bbp_is_single_user_profile函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_is_single_user_profile函数的具体用法?PHP bbp_is_single_user_profile怎么用?PHP bbp_is_single_user_profile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_is_single_user_profile函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: myfossil_buddypress_bbpress_redirect_profile
function myfossil_buddypress_bbpress_redirect_profile()
{
global $bp;
if (bbp_is_single_user_profile()) {
global $wp_query;
$author_page_link = trailingslashit(bp_core_get_user_domain($wp_query->query_vars["bbp_user_id"]) . 'forums');
wp_redirect($author_page_link, 301);
exit;
}
}
示例2: bbp_displayed_user_field
" title="<?php
bbp_displayed_user_field('display_name');
?>
" rel="me">
<?php
echo get_avatar(bbp_get_displayed_user_field('user_email', 'raw'), apply_filters('bbp_single_user_details_avatar_size', 150));
?>
</a>
</span>
</div><!-- #author-avatar -->
<div id="bbp-user-navigation">
<ul>
<li class="<?php
if (bbp_is_single_user_profile()) {
?>
current<?php
}
?>
">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php
bbp_user_profile_url();
?>
" title="<?php
printf(esc_attr__("%s's Profile", 'bbpress'), bbp_get_displayed_user_field('display_name'));
?>
" rel="me"><?php
_e('Profile', 'bbpress');
?>
示例3: widget
//.........这里部分代码省略.........
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="submit user-submit thumbnail pull-left"><?php
echo get_avatar(bbp_get_current_user_id(), '64');
?>
</a>
<h4><?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
</h4>
<div class="btn-group">
<a class="btn btn-default btn-sm" href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
" title="<?php
printf(esc_attr__("Edit Your Profile", 'ipt_kb'));
?>
"><span class="glyphicon glyphicon-edit"></span> <?php
_e('Edit', 'bbpress');
?>
</a>
<?php
bbp_logout_link();
?>
</div>
<div class="clearfix"></div>
<div class="list-group">
<a href="<?php
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-forum-role <?php
if (bbp_is_user_home() && bbp_is_single_user_profile()) {
echo 'active';
}
?>
">
<span class="glyphicon ipt-icomoon-user4"></span> <?php
printf(__('%s Forum Role', 'ipt_kb'), '<span class="badge">' . bbp_get_user_display_role(bbp_get_current_user_id()) . '</span>');
?>
</a>
<a href="<?php
bbp_user_topics_created_url(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-topic-count <?php
if (bbp_is_user_home() && bbp_is_single_user_topics()) {
echo 'active';
}
?>
">
<span class="glyphicon ipt-icomoon-bubbles4"></span> <?php
printf(__('%s Topics Started', 'ipt_kb'), '<span class="badge">' . bbp_get_user_topic_count_raw(bbp_get_current_user_id()) . '</span>');
?>
</a>
<a href="<?php
bbp_user_replies_created_url(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-reply-count <?php
if (bbp_is_user_home() && bbp_is_single_user_replies()) {
echo 'active';
}
?>
">
<span class="glyphicon ipt-icomoon-reply"></span> <?php
printf(__('%s Replies Created', 'ipt_kb'), '<span class="badge">' . bbp_get_user_reply_count_raw(bbp_get_current_user_id()) . '</span>');
示例4: do_action
?>
<?php do_action( 'bbp_template_before_user_details' ); ?>
<div id="bbp-single-user-details">
<div id="bbp-user-avatar">
<span class='vcard'>
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">
<?php echo get_avatar( bbp_get_displayed_user_field( 'user_email' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>
</a>
</span>
</div><!-- #author-avatar -->
<div id="bbp-user-navigation">
<ul>
<li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>">
<span class="vcard bbp-user-profile-link">
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( __( "%s's Profile", 'bbpress' ), esc_attr( bbp_get_displayed_user_field( 'display_name' ) ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">
<span class='bbp-user-topics-created-link'>
<a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( __( "%s's Topics Started", 'bbpress' ), esc_attr( bbp_get_displayed_user_field( 'display_name' ) ) ); ?>"><?php _e( 'Topics Started', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif;