本文整理汇总了PHP中bbp_user_subscribe_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_user_subscribe_link函数的具体用法?PHP bbp_user_subscribe_link怎么用?PHP bbp_user_subscribe_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_user_subscribe_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-author"><?php
_e('Author', 'bbpress');
?>
</th>
<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
示例3: elseif
?>
</span>
<?php
} elseif (bbp_is_subscriptions()) {
?>
<span class="bbp-topic-action">
<?php
do_action('bbp_theme_before_topic_subscription_action');
?>
<?php
bbp_user_subscribe_link(array('before' => '', 'subscribe' => '+', 'unsubscribe' => '×'));
?>
<?php
do_action('bbp_theme_after_topic_subscription_action');
?>
</span>
<?php
}
?>
<?php
}
?>
示例4: bbp_user_subscribe_link
<?php
}
?>
<?php
}
?>
</li><!-- .bbp-body -->
<li class="bbp-footer">
<div class="bbp-topic-action">
<?php
bbp_user_subscribe_link(array('before' => ''));
?>
<?php
bbp_user_favorites_link();
?>
</div>
</li>
</ul><!-- #topic-<?php
bbp_topic_id();
?>
-replies -->
<?php
示例5: bbp_user_favorites_link
<?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>'));
?>
<?php
do_action('bbp_theme_after_topic_subscription_action');
?>
</span>
<?php
}
?>
<?php
}
?>
<?php
do_action('bbp_theme_before_topic_title');
?>
示例6: _e
<li class="bbp-header list-group-item active">
<div class="bbp-reply-author"><?php
_e('Author', 'bbpress');
?>
</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
}
?>
示例7: do_action
do_action('bbp_template_before_replies_loop');
?>
<div class="topic-header clearfix">
<h1 class="topic-title"><?php
the_title();
?>
</h1>
<div class="topic-actions">
<?php
$args = array('subscribe' => __('Subscribe', 'bbpress'), 'unsubscribe' => __('Unsubscribe', 'bbpress'), 'user_id' => 0, 'topic_id' => 0, 'before' => '', 'after' => '');
bbp_user_subscribe_link($args);
?>
<?php
bbp_user_favorites_link();
?>
</div><!-- ."topic-actions -->
</div>
<ul id="topic-<?php
bbp_topic_id();
?>
-replies" class="forums bbp-replies">