当前位置: 首页>>代码示例>>PHP>>正文


PHP bbp_user_subscribe_link函数代码示例

本文整理汇总了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 
    }
开发者ID:agiper,项目名称:wordpress,代码行数:33,代码来源:class-avada-layout-bbpress.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 
开发者ID:JMulligan,项目名称:skeleton_wp,代码行数:31,代码来源:loop-replies.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' => '&times;'));
        ?>

					<?php 
        do_action('bbp_theme_after_topic_subscription_action');
        ?>

				</span>

			<?php 
    }
    ?>

		<?php 
}
?>
开发者ID:berniecultess,项目名称:infirev,代码行数:31,代码来源:loop-single-topic.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 
开发者ID:roycocup,项目名称:enclothed,代码行数:30,代码来源:loop-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');
?>
开发者ID:sleepystephen,项目名称:ipt-knowledgebase-theme-wp,代码行数:31,代码来源:loop-single-topic.php

示例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 
}
?>
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:31,代码来源:loop-replies.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">

开发者ID:philtrimble,项目名称:GCFB-Portal-Theme---Main,代码行数:29,代码来源:loop-replies.php


注:本文中的bbp_user_subscribe_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。