本文整理汇总了PHP中bbp_subscriptions_permalink函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_subscriptions_permalink函数的具体用法?PHP bbp_subscriptions_permalink怎么用?PHP bbp_subscriptions_permalink使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_subscriptions_permalink函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_subscriptions_permalink
if (bbp_is_user_home() || current_user_can('edit_users')) {
?>
<?php
if (bbp_is_subscriptions_active()) {
?>
<li class="<?php
if (bbp_is_subscriptions()) {
?>
current<?php
}
?>
">
<span class="bbp-user-subscriptions-link">
<a href="<?php
bbp_subscriptions_permalink();
?>
" title="<?php
printf(esc_attr__("%s's Subscriptions", 'bbpress'), bbp_get_displayed_user_field('display_name'));
?>
"><?php
_e('Subscriptions', 'bbpress');
?>
</a>
</span>
</li>
<?php
}
?>
<li class="<?php
示例2: bbp_user_replies_created_url
<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);
?>
"><?php
_e('Subscriptions', 'magzilla');
?>
</a> -->
<?php
} else {
?>
<a href="<?php
echo get_edit_user_link($current_user->ID);
?>
"><?php
_e('My profile', 'magzilla');
示例3: bbp_favorites_permalink
</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>
</div>
<div class="cb-block"><i class="icon-bookmark"></i>
<a href="<?php
bbp_subscriptions_permalink($cb_author_id);
?>
"><?php
_e('Subscriptions', 'bbpress');
?>
</a>
</div>
<div class="cb-block cb-last-block"><i class="icon-signout"></i>
<a class="wp-logout" href="<?php
echo wp_logout_url();
?>
"><?php
esc_html_e('Log Out', 'login-with-ajax');
?>
</a>
示例4: 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'];
}
示例5: test_bbp_subscriptions_permalink
/**
* @covers ::bbp_subscriptions_permalink
*/
public function test_bbp_subscriptions_permalink()
{
// Pretty permalinks
$this->set_permalink_structure('/%postname%/');
$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
// Output.
$this->expectOutputString($subscriptions_url);
bbp_subscriptions_permalink($this->keymaster_id);
ob_clean();
// Ugly permalinks
$this->set_permalink_structure();
$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_subs=subscriptions';
// Output.
$this->expectOutputString($subscriptions_url);
bbp_subscriptions_permalink($this->keymaster_id);
}
示例6: widget
//.........这里部分代码省略.........
do_action('login_form');
?>
<button type="submit" name="user-submit" id="user-submit" tabindex="<?php
bbp_tab_index();
?>
" class="button submit user-submit"><?php
_e('Log In', 'bbpress');
?>
</button>
<?php
bbp_user_login_fields();
?>
</div>
</fieldset>
</form>
<?php
if (!empty($settings['register'])) {
?>
<div class="bbp-register-info"><?php
_ex("Don't have an account?", 'bbPress', 'bunyad-widgets');
?>
<a href="<?php
echo esc_url($settings['register']);
?>
" class="register-modal"><?php
_ex('Register Now!', 'bbPress', 'bunyad-widgets');
?>
</a>
</div>
<?php
}
?>
<?php
} else {
?>
<div class="bbp-logged-in">
<a href="<?php
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="submit user-submit"><?php
echo get_avatar(bbp_get_current_user_id(), '60');
?>
</a>
<div class="content">
<?php
_ex('Welcome back, ', 'bbPress', 'bunyad-widgets');
?>
<?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
<ol class="links">
<li><a href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
">
<?php
_ex('Edit Profile', 'bbPress', 'bunyad-widgets');
?>
</a></li>
<li><a href="<?php
bbp_subscriptions_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Subscriptions', 'bbPress', 'bunyad-widgets');
?>
</a></li>
<li><a href="<?php
bbp_favorites_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Favorites', 'bbPress', 'bunyad-widgets');
?>
</a></li>
</ol>
<?php
bbp_logout_link();
?>
</div>
</div>
<?php
}
echo $args['after_widget'];
}
示例7: bbp_user_profile_link
?>
<?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
<ol class="links">
<li><a href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
">
<?php
_ex('Edit Profile', 'bbPress', 'bunyad');
?>
</a></li>
<li><a href="<?php
bbp_subscriptions_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Subscriptions', 'bbPress', 'bunyad');
?>
</a></li>
<li><a href="<?php
bbp_favorites_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Favorites', 'bbPress', 'bunyad');
?>
</a></li>
</ol>