本文整理汇总了PHP中bbp_user_favorites_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_user_favorites_link函数的具体用法?PHP bbp_user_favorites_link怎么用?PHP bbp_user_favorites_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_user_favorites_link函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add_bbp_header
/**
* Add some header informtaion below the top pagination, like favorites link and subscription link.
*/
public function add_bbp_header()
{
?>
<div class="bbp-header fusion-bbp-header">
<div class="bbp-reply-favs">
<?php
if (!bbp_show_lead_topic()) {
?>
<?php
bbp_user_favorites_link();
?>
<?php
bbp_user_subscribe_link();
?>
<?php
}
?>
</div><!-- .bbp-reply-content -->
<div class="fusion-clearfix"></div>
</div><!-- .bbp-header -->
<?php
}
示例2: _e
<th class="bbp-reply-content">
<?php
if (!bbp_show_lead_topic()) {
?>
<?php
_e('Posts', 'bbpress');
?>
<?php
bbp_user_subscribe_link();
?>
<?php
bbp_user_favorites_link();
?>
<?php
} else {
?>
<?php
_e('Replies', 'bbpress');
?>
<?php
}
?>
</th>
示例3: do_action
<?php
if (bbp_is_user_home()) {
?>
<?php
if (bbp_is_favorites()) {
?>
<span class="bbp-topic-action">
<?php
do_action('bbp_theme_before_topic_favorites_action');
?>
<?php
bbp_user_favorites_link(array('before' => '', 'favorite' => '+', 'favorited' => '×'));
?>
<?php
do_action('bbp_theme_after_topic_favorites_action');
?>
</span>
<?php
} elseif (bbp_is_subscriptions()) {
?>
<span class="bbp-topic-action">
<?php
示例4: do_action
<?php
if (bbp_is_user_home()) {
?>
<?php
if (bbp_is_favorites()) {
?>
<li class="bbp-topic-action">
<?php
do_action('bbp_theme_before_topic_favorites_action');
?>
<?php
bbp_user_favorites_link(array('mid' => '+', 'post' => ''), array('pre' => '', 'mid' => '×', 'post' => ''));
?>
<?php
do_action('bbp_theme_after_topic_favorites_action');
?>
</li>
<?php
} elseif (bbp_is_subscriptions()) {
?>
<li class="bbp-topic-action">
<?php
示例5: x_bbpress_add_actions_replies
function x_bbpress_add_actions_replies()
{
?>
<?php
if (!bbp_show_lead_topic() && !bbp_is_single_user_replies() && !x_is_buddypress_user()) {
?>
<div class="x-bbp-header">
<div class="actions">
<a href="<?php
echo bbp_get_forum_permalink(bbp_get_topic_forum_id());
?>
"><?php
_e('To Parent Forum', '__x__');
?>
</a>
<?php
bbp_topic_subscription_link();
?>
<?php
bbp_user_favorites_link();
?>
</div>
</div>
<?php
}
?>
<?php
}
示例6: do_action
</span>
<?php
}
?>
<?php
if (bbp_is_user_home()) {
?>
<?php
if (bbp_is_favorites()) {
?>
<span class="bbp-topic-action pull-right">
<?php
do_action('bbp_theme_before_topic_favorites_action');
?>
<?php
bbp_user_favorites_link(array('before' => '', 'favorite' => '+', 'favorited' => '<span class="glyphicon glyphicon-remove"></span>'));
?>
<?php
do_action('bbp_theme_after_topic_favorites_action');
?>
</span>
<?php
} elseif (bbp_is_subscriptions()) {
?>
<span class="bbp-topic-action pull-right">
<?php
do_action('bbp_theme_before_topic_subscription_action');
?>
<?php
bbp_user_subscribe_link(array('before' => '', 'subscribe' => '+', 'unsubscribe' => '<span class="glyphicon glyphicon-remove"></span>'));
?>
示例7: _e
</div><!-- .bbp-reply-author -->
<div class="bbp-reply-content">
<?php
if (!bbp_show_lead_topic()) {
?>
<?php
_e('Posts', 'bbpress');
?>
<div class="btn-group pull-right bbp-topic-action">
<?php
//bbp_user_subscribe_link(array ('subscribe' => __( 'Loading', 'bbpress' ),'unsubscribe' => __( 'Loading', 'bbpress' )));
bbp_user_subscribe_link(array('subscribe' => __('Subscribe', 'bbpress'), 'unsubscribe' => __('Unsubscribe', 'bbpress')));
?>
<?php
//bbp_user_favorites_link(array ('favorite' => __( 'Loading', 'bbpress' ),'favorited' => __( 'Loading', 'bbpress' )));
bbp_user_favorites_link(array('favorite' => __('Favorite', 'bbpress'), 'favorited' => __('Favorited', 'bbpress')));
?>
</div>
<?php
} else {
?>
<?php
_e('Replies', 'bbpress');
?>
<?php
}
?>
</div><!-- .bbp-reply-content -->
</li><!-- .bbp-header -->
<?php