本文整理汇总了PHP中bbp_forum_subscription_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_forum_subscription_link函数的具体用法?PHP bbp_forum_subscription_link怎么用?PHP bbp_forum_subscription_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_forum_subscription_link函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: x_bbpress_add_actions_single_forum
function x_bbpress_add_actions_single_forum()
{
?>
<div class="x-bbp-header">
<div class="actions">
<a href="<?php
echo get_post_type_archive_link(bbp_get_forum_post_type());
?>
"><?php
_e('To Forums List', '__x__');
?>
</a>
<?php
bbp_forum_subscription_link();
?>
</div>
</div>
<?php
}
示例2: bbp_get_template_part
?>
<div class="bbp-search-form">
<?php
bbp_get_template_part('form', 'search');
?>
</div>
<?php
}
?>
<?php
bbp_forum_subscription_link();
?>
<?php
do_action('bbp_template_before_forums_index');
?>
<?php
if (bbp_has_forums()) {
?>
<?php
bbp_get_template_part('loop', 'forums');
?>
<?php
示例3: do_action
>
<li class="bbp-forum-info">
<?php
if (bbp_is_user_home() && bbp_is_subscriptions()) {
?>
<span class="bbp-row-actions">
<?php
do_action('bbp_theme_before_forum_subscription_action');
?>
<?php
bbp_forum_subscription_link(array('before' => '', 'subscribe' => '+', 'unsubscribe' => '×'));
?>
<?php
do_action('bbp_theme_after_forum_subscription_action');
?>
</span>
<?php
}
?>
<?php
do_action('bbp_theme_before_forum_title');
?>
示例4: close_pagination_wrapper
/**
* Close the additional container for the top pagination.
*/
public function close_pagination_wrapper()
{
if ($this->pagination_counter == 0) {
?>
</div>
<div class="fusion-clearfix"></div>
<?php
if (bbp_is_single_forum()) {
remove_filter('bbp_get_forum_subscribe_link', array($this, 'remove_single_description'));
?>
<div class="bbp-header fusion-bbp-header">
<div class="bbp-reply-favs">
<?php
bbp_forum_subscription_link();
?>
</div><!-- .bbp-reply-content -->
<div class="fusion-clearfix"></div>
</div><!-- .bbp-header -->
<?php
}
}
$this->pagination_counter++;
}