本文整理汇总了PHP中bbp_user_topics_created_url函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_user_topics_created_url函数的具体用法?PHP bbp_user_topics_created_url怎么用?PHP bbp_user_topics_created_url使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_user_topics_created_url函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_user_profile_url
<a href="<?php
bbp_user_profile_url($current_user->ID);
?>
" rel="me"><?php
_e('My Profile', 'magzilla');
?>
</a>
<a href="<?php
echo get_author_posts_url($current_user->ID);
?>
"><?php
_e('My Posts', 'magzilla');
?>
</a>
<!-- <a href="<?php
bbp_user_topics_created_url($current_user->ID);
?>
"><?php
_e('Topics Started', 'magzilla');
?>
</a>
<a href="<?php
bbp_user_replies_created_url($current_user->ID);
?>
"><?php
_e('Replies Created', 'magzilla');
?>
</a>
<a href="<?php
bbp_favorites_permalink($current_user->ID);
?>
示例2: _e
_e('Profile', 'bbpress');
?>
</a>
</span>
</li>
<li class="<?php
if (bbp_is_single_user_topics()) {
?>
current<?php
}
?>
">
<span class='bbp-user-topics-created-link'>
<a href="<?php
bbp_user_topics_created_url();
?>
" title="<?php
printf(esc_attr__("%s's Topics Started", 'bbpress'), 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
示例3: bbp_user_profile_url
<div class="cb-user-data clearfix">
<div class="cb-block"><i class="icon-user"></i>
<a class="url fn n" href="<?php
bbp_user_profile_url($cb_author_id);
?>
" rel="me"><?php
_e('Profile', 'bbpress');
?>
</a>
</div>
<div class="cb-block"><i class="icon-comment"></i>
<a href="<?php
bbp_user_topics_created_url($cb_author_id);
?>
"><?php
_e('Topics Started', 'bbpress');
?>
</a>
</div>
<div class="cb-block"><i class="icon-comments"></i>
<a href="<?php
bbp_user_replies_created_url($cb_author_id);
?>
"><?php
_e('Replies Created', 'bbpress');
?>
</a>
示例4: widget
//.........这里部分代码省略.........
<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>');
?>
</a>
<?php
if (bbp_is_favorites_active()) {
?>
<a href="<?php
bbp_favorites_permalink(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-favorite-count <?php
if (bbp_is_user_home() && bbp_is_favorites()) {
示例5: test_bbp_user_topics_created_url
/**
* @covers ::bbp_user_topics_created_url
*/
public function test_bbp_user_topics_created_url()
{
// Pretty permalinks
$this->set_permalink_structure('/%postname%/');
$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/topics/';
// Output.
$this->expectOutputString($topics_created_url);
bbp_user_topics_created_url($this->keymaster_id);
ob_clean();
// Ugly permalinks
$this->set_permalink_structure();
$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_tops=1';
// Output.
$this->expectOutputString($topics_created_url);
bbp_user_topics_created_url($this->keymaster_id);
}
示例6: 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;