本文整理汇总了PHP中bp_get_forum_topic_count函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_forum_topic_count函数的具体用法?PHP bp_get_forum_topic_count怎么用?PHP bp_get_forum_topic_count使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_get_forum_topic_count函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
</div>
</form>
<?php
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php
printf(__('All Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
?>
"><?php
printf(__('My Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
?>
</a></li>
示例2: printf
<?php else : ?>
<div id="message" class="info">
<p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
</div><!-- #new-topic-post -->
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs">
<ul>
<li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li>
<?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
<?php endif; ?>
<?php do_action( 'bp_forums_directory_group_types' ) ?>
<li id="forums-order-select" class="last filter">
<?php _e( 'Order By:', 'buddypress' ) ?>
<select>
<option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
<option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option>
<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>
示例3: bp_forum_topic_count
/**
* Output the total topic count for a given user.
*
* @see bp_get_forum_topic_count() for description of parameters.
*
* @param int $user_id See {@link bp_get_forum_topic_count()}.
*/
function bp_forum_topic_count($user_id = 0)
{
echo bp_get_forum_topic_count($user_id);
}
示例4: do_action
</div>
</form>
<?php
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul class="nav nav-pills">
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php
printf(__('All Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
?>
"><?php
printf(__('My Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
?>
</a></li>
示例5: do_action
* Fires before the display of the forum topics.
*
* @since 1.5.0
*/
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php
printf(__('All Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count() . '</span>');
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
?>
"><?php
printf(__('My Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count_for_user(bp_loggedin_user_id()) . '</span>');
?>
</a></li>
示例6: do_action
</div>
</form>
<?php
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php
printf(__('All Topics <span>%s</span>', 'T20'), bp_get_forum_topic_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
?>
"><?php
printf(__('My Topics <span>%s</span>', 'T20'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
?>
</a></li>
示例7: bp_root_domain
?>
<?php
}
?>
</div>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs">
<ul>
<li class="selected" id="forums-all"><a href="<?php
bp_root_domain();
?>
"><?php
printf(__('All Topics (%s)', 'buddypress'), bp_get_forum_topic_count());
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/';
?>
"><?php
printf(__('My Topics (%s)', 'buddypress'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
?>
</a></li>
<?php
}
示例8: do_action
*/
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" aria-label="<?php
esc_attr_e('Forums directory main navigation', 'buddypress');
?>
" role="navigation">
<ul>
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php
printf(__('All Topics %s', 'buddypress'), '<span>' . bp_get_forum_topic_count() . '</span>');
?>
</a></li>
<?php
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
?>
<li id="forums-personal"><a href="<?php
echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
?>
"><?php
printf(__('My Topics %s', 'buddypress'), '<span>' . bp_get_forum_topic_count_for_user(bp_loggedin_user_id()) . '</span>');
?>
</a></li>