本文整理汇总了PHP中bbp_user_replies_created_url函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_user_replies_created_url函数的具体用法?PHP bbp_user_replies_created_url怎么用?PHP bbp_user_replies_created_url使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_user_replies_created_url函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_author_posts_url
<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);
?>
"><?php
_e('Favorites', 'magzilla');
?>
</a>
<a href="<?php
bbp_subscriptions_permalink($current_user->ID);
?>
示例2: _e
_e('Topics Started', 'bbpress');
?>
</a>
</span>
</li>
<li class="<?php
if (bbp_is_single_user_replies()) {
?>
current<?php
}
?>
">
<span class='bbp-user-replies-created-link'>
<a href="<?php
bbp_user_replies_created_url();
?>
" title="<?php
printf(esc_attr__("%s's Replies Created", 'bbpress'), bbp_get_displayed_user_field('display_name'));
?>
"><?php
_e('Replies Created', 'bbpress');
?>
</a>
</span>
</li>
<?php
if (bbp_is_favorites_active()) {
?>
<li class="<?php
示例3: widget
//.........这里部分代码省略.........
?>
</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()) {
echo 'active';
}
?>
" title="<?php
printf(esc_attr__("Your Favorites", 'ipt_kb'));
?>
">
<span class="glyphicon ipt-icomoon-heart"></span> <?php
printf(__('%s Favorites', 'ipt_kb'), '<span class="badge">' . count(bbp_get_user_favorites_topic_ids(bbp_get_current_user_id())) . '</span>');
?>
</a>
<?php
}
?>
<?php
if (bbp_is_subscriptions_active()) {
?>
<a href="<?php
bbp_subscriptions_permalink(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-subscribe-count <?php
if (bbp_is_user_home() && bbp_is_subscriptions()) {
echo 'active';
}
?>
" title="<?php
printf(esc_attr__("Your Subscriptions", 'ipt_kb'));
?>
">
<span class="glyphicon ipt-icomoon-bookmarks"></span> <?php
printf(__('%s Subscriptions', 'ipt_kb'), '<span class="badge">' . count(bbp_get_user_subscribed_topic_ids(bbp_get_current_user_id())) . '</span>');
?>
</a>
<?php
}
?>
</div>
</div>
<?php
}
echo $args['after_widget'];
}
示例4: bbp_user_topics_created_url
</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>
</div>
<div class="cb-block"><i class="icon-heart"></i>
<a href="<?php
bbp_favorites_permalink($cb_author_id);
?>
"><?php
_e('Favorites', 'bbpress');
?>
</a>
示例5: test_bbp_user_replies_created_url
/**
* @covers ::bbp_user_replies_created_url
*/
public function test_bbp_user_replies_created_url()
{
// Pretty permalinks
$this->set_permalink_structure('/%postname%/');
$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/replies/';
// Output.
$this->expectOutputString($replies_created_url);
bbp_user_replies_created_url($this->keymaster_id);
ob_clean();
// Ugly permalinks
$this->set_permalink_structure();
$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_reps=1';
// Output.
$this->expectOutputString($replies_created_url);
bbp_user_replies_created_url($this->keymaster_id);
}